@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-tight-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-tight-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --charcoal: #2c302e;
  --white: #ffffff;
  --header: 4.5rem;
  --wrap: 68rem;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--charcoal);
}

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--white);
  font-family: "Inter Tight", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

[hidden] {
  display: none !important;
}

img {
  display: block;
  border: 0;
}

h1,
h2,
p {
  font-style: normal;
}

h1,
h2 {
  font-weight: 500;
  letter-spacing: -0.03em;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

::selection {
  background: var(--white);
  color: var(--charcoal);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  background: var(--white);
  color: var(--charcoal);
  padding: 0.5rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.label {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--charcoal);
  color: var(--white);
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  min-height: var(--header);
  padding-block: 0.85rem;
}

.brand {
  display: block;
  color: inherit;
  text-decoration: none;
  line-height: 0;
}

.brand img {
  height: 32px;
  width: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.25rem;
}

.nav a {
  color: inherit;
  text-decoration: none;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.35em;
  text-decoration-thickness: 1px;
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 2.5rem 0 clamp(3.25rem, 8vh, 5.5rem);
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.gem-wrap {
  position: absolute;
  right: max(-4rem, calc((100% - 72rem) / 2));
  top: 50%;
  width: min(48vw, 540px);
  transform: translateY(-46%);
  pointer-events: none;
  z-index: 0;
}

.gem {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.strike {
  transform-box: fill-box;
  transform-origin: 0 50%;
  animation: strike 8.5s cubic-bezier(0.45, 0.02, 0.2, 1) infinite;
}


@keyframes strike {
  0%,
  12% {
    transform: translateX(-40px);
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  32% {
    transform: translateX(620px);
    opacity: 0;
  }

  100% {
    transform: translateX(620px);
    opacity: 0;
  }
}

/* Lightning strike from the left: bolt hits the gem, facets light up */
.bolt path {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  opacity: 0;
  animation: bolt 8.5s linear infinite;
}

.bolt .bolt-fork {
  animation-name: bolt-fork;
}

@keyframes bolt {
  0%,
  9% {
    stroke-dashoffset: 1;
    opacity: 0;
  }

  9.5% {
    opacity: 1;
  }

  12% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  13% {
    opacity: 0.25;
  }

  14% {
    opacity: 1;
  }

  15% {
    opacity: 0.4;
  }

  19%,
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

@keyframes bolt-fork {
  0%,
  10.5% {
    stroke-dashoffset: 1;
    opacity: 0;
  }

  11% {
    opacity: 0.9;
  }

  12.5% {
    stroke-dashoffset: 0;
    opacity: 0.9;
  }

  14% {
    opacity: 0.2;
  }

  17%,
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

.impact {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  opacity: 0;
  animation: impact 8.5s ease-out infinite;
}

@keyframes impact {
  0%,
  11.5% {
    opacity: 0;
    transform: scale(0.3);
  }

  13% {
    opacity: 1;
    transform: scale(1);
  }

  22%,
  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}

.ff {
  opacity: 0;
  animation: facet 8.5s ease-out infinite;
}

.ff2 { animation-delay: 0.12s; }
.ff3 { animation-delay: 0.24s; }
.ff4 { animation-delay: 0.36s; }

@keyframes facet {
  0%,
  12.5% {
    opacity: 0;
  }

  14.5% {
    opacity: 0.5;
  }

  28%,
  100% {
    opacity: 0;
  }
}

.lockup {
  --mark: clamp(92px, 16vw, 156px);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, calc(var(--mark) * 2.31));
  gap: calc(var(--mark) * 0.216);
  margin: 0 0 calc(var(--mark) * 0.55);
}

.lockup .mark {
  width: 38.1%;
  height: auto;
}

.lockup .word {
  width: 100%;
  height: auto;
}

.hero h1 {
  margin: 0.75rem 0 0;
  max-width: 11em;
  font-size: clamp(2.75rem, 6.4vw, 4.75rem);
  line-height: 1.02;
}

.hero .offer,
.meaning,
.how {
  margin: 1.15rem 0 0;
  max-width: 32em;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.45;
}

.meaning {
  margin-top: 0.85rem;
}

.hero-cta {
  margin: 1.6rem 0 0;
}

.hero-cta a {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
  text-underline-offset: 0.35em;
}

section {
  scroll-margin-top: 6.5rem;
}

#work,
#divisions,
#enquire {
  padding: clamp(4.25rem, 8vw, 6.75rem) 0;
}

h2 {
  margin: 0;
  max-width: 11.5em;
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  line-height: 1.05;
}

.caps,
.steps {
  list-style: none;
  margin: clamp(2rem, 4vw, 3.25rem) 0 0;
  padding: 0;
}

.caps {
  max-width: 40rem;
}

.caps li {
  border-top: 1px solid currentColor;
  padding: 1rem 0;
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
}

.caps li:last-child {
  border-bottom: 1px solid currentColor;
}

.caps .cap {
  font-weight: 500;
  font-size: inherit;
  letter-spacing: -0.02em;
  line-height: inherit;
}

/* tile cap size set with balanced tiles */


.detail {
  font-weight: 400;
  font-size: 1.0625rem;
  letter-spacing: 0;
  line-height: 1.45;
}

.how {
  margin-top: 1.25rem;
}

.divisions {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 0;
  align-items: stretch;
}

a.tile {
  display: grid;
  grid-template-rows: 1fr auto;
  align-content: stretch;
  justify-items: center;
  gap: 1rem;
  margin: 0;
  min-height: 100%;
  aspect-ratio: 1 / 1;
  padding: 1.25rem 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: inherit;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
}

a.tile:hover {
  background: rgba(255, 255, 255, 0.08);
}

.tile-mark {
  display: grid;
  place-items: center;
  align-content: center;
  width: 100%;
  min-height: 0;
  align-self: stretch;
}

.tile img {
  display: block;
  width: 6.25rem;
  max-width: 78%;
  height: auto;
}

.tile .cap {
  margin: 0;
  font-weight: 500;
}

.tile .cap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6em;
  width: 100%;
  font-size: 0.9375rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.division {
  padding: clamp(4.25rem, 10vw, 7rem) 0 clamp(5rem, 12vw, 8rem);
}

.division-mark {
  width: min(100%, 16rem);
  height: auto;
  margin: 0;
}

.division h1 {
  margin: 2.25rem 0 0;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.division p {
  margin-top: 1rem;
  max-width: 26em;
  font-size: 1.125rem;
  line-height: 1.45;
}

h3 {
  font-style: normal;
  font-weight: 500;
}

.enquire-grid {
  display: grid;
  gap: 2.5rem;
}

.enquire-panel {
  min-width: 0;
}

form {
  display: grid;
  gap: 1.35rem;
  max-width: 36rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

input,
textarea,
button {
  font-family: inherit;
  font-style: normal;
  border-radius: 0;
}

input,
textarea {
  width: 100%;
  margin: 0;
  padding: 0.55rem 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  color: var(--white);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  appearance: none;
}

textarea {
  resize: vertical;
  min-height: 7.5rem;
}

input:focus,
textarea:focus,
input:focus-visible,
textarea:focus-visible {
  outline: none;
  border-bottom-color: var(--white);
  border-bottom-width: 2px;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-bottom-width: 2px;
}

.form-error {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.4;
}

button {
  justify-self: start;
  margin-top: 0.35rem;
  padding: 0.9rem 1.3rem;
  border: 1px solid var(--white);
  background: var(--white);
  color: var(--charcoal);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
}

button:hover,
button:focus-visible {
  background: transparent;
  color: var(--white);
}

.done {
  margin: 0;
  max-width: 16em;
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

footer {
  background: var(--charcoal);
  color: var(--white);
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 1.25rem;
}

.footer-grid {
  display: grid;
  gap: 2.25rem;
}

.footer-lockup {
  --mark: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(var(--mark) * 2.31);
  max-width: 100%;
  gap: calc(var(--mark) * 0.216);
  color: inherit;
  text-decoration: none;
}

.footer-lockup .mark {
  width: 38.1%;
  height: auto;
}

.footer-lockup .word {
  width: 100%;
  height: auto;
}

.footer-meta {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 0;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
  opacity: 0.45;
}

footer .nav {
  align-content: end;
}

@media (min-width: 720px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 5rem));
  }
}

@media (min-width: 860px) {
  .divisions {
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
  }

  .enquire-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 4rem;
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 2rem 3rem;
  }

  footer .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }
}

@media (min-height: 1100px) {
  .hero {
    min-height: 0;
    padding-top: 14vh;
  }
}

@media (max-width: 900px) {
  .gem-wrap {
    top: 0;
    right: -18%;
    width: min(78vw, 420px);
    transform: none;
    opacity: 0.72;
  }
}

@media (max-width: 380px) {
  .nav {
    gap: 0.45rem 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .strike {
    animation: none;
    transform: translateX(250px);
    opacity: 0.55;
  }

  .bolt,
  .impact,
  .facet-flash {
    display: none;
  }
}

/* Ice-blue diamond on division pages */
.division {
  position: relative;
  overflow: hidden;
  min-height: min(calc(100svh - var(--header)), 46rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.division .wrap {
  position: relative;
  z-index: 1;
}

.division .lockup {
  margin-bottom: 0;
}

.sparkle {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: sparkle 8.5s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 17% { opacity: 0; transform: scale(0.4) rotate(0deg); }
  23% { opacity: 1; transform: scale(1.15) rotate(20deg); }
  38%, 100% { opacity: 0; transform: scale(0.4) rotate(45deg); }
}

.sparkle-2 { animation-delay: -0.25s; }
.sparkle-3 { animation-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .sparkle { animation: none; opacity: 0.6; }
  .sparkle-2,
  .sparkle-3 { display: none; }
}

.nav a[aria-current="page"] {
  color: #c8a24c;
}

/* Sub-brand lockups: mark + VAYRA artwork, division label underneath.
   Brand kit label style: Inter Tight Medium, all caps, +18% tracking,
   justified letter by letter to the exact width of the VAYRA wordmark. */
a.tile {
  grid-template-rows: 1fr;
}

.sub-lockup {
  --label-size: 0.5rem;
}

.tile .sub-lockup {
  justify-items: center;
}

.tile .sub-lockup img,
.division-lockup .division-mark {
  display: block;
}

.sub-label {
  display: block;
  width: 6.25rem;
  max-width: 78%;
  margin: calc(var(--label-size) * 1.1) 0 0;
  font-family: "Inter Tight", system-ui, sans-serif;
  font-size: var(--label-size);
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.sub-letters {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.sub-letters span {
  letter-spacing: 0;
}

.division-lockup {
  --label-size: clamp(0.625rem, 1.1vw, 0.75rem);
  display: inline-grid;
  width: min(100%, 16rem);
}

.division-lockup .division-mark {
  width: 100%;
}

.division .sub-label,
.division-lockup .sub-label {
  width: 100%;
  max-width: none;
  margin: calc(var(--label-size) * 1.6) 0 0;
  font-size: var(--label-size);
  letter-spacing: 0.18em;
  line-height: 1;
}

.division .division-line {
  margin: 2.25rem 0 0;
  max-width: 26em;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero h1.lockup {
  max-width: none;
  font-size: inherit;
  line-height: normal;
  margin: 0 0 calc(var(--mark) * 0.2);
}

/* Night-sky lightning: whole page lights up when the bolt hits, then back to charcoal.
   Synced to the 8.5s bolt cycle (strike lands ~1.0s in). Two flickers max per cycle. */
.sky-flash {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse 90% 70% at 72% 28%, rgba(244, 251, 255, 0.95) 0%, rgba(200, 228, 248, 0.7) 40%, rgba(150, 196, 232, 0.45) 100%);
  mix-blend-mode: screen;
  animation: sky-flash 8.5s linear infinite;
  will-change: opacity;
}

@keyframes sky-flash {
  0%, 11.6% { opacity: 0; }
  12.1% { opacity: 0.62; }
  12.7% { opacity: 0.12; }
  13.5% { opacity: 0.42; }
  14.6% { opacity: 0.14; }
  17%, 100% { opacity: 0; }
}

/* Gem catches the sky light */
.gem-body {
  animation: gem-lit 8.5s linear infinite;
}

@keyframes gem-lit {
  0%, 11.6% { filter: none; }
  12.2% { filter: brightness(1.6) drop-shadow(0 0 18px rgba(200, 235, 255, 0.85)); }
  13.5% { filter: brightness(1.3) drop-shadow(0 0 10px rgba(200, 235, 255, 0.6)); }
  18%, 100% { filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sky-flash { display: none; }
  .gem-body { animation: none; }
}

/* Division pages: big strike + page flash only on home */
.quiet-strike .sky-flash,
.quiet-strike .bolt,
.quiet-strike .impact { display: none; }
.quiet-strike .gem-body { animation: none; }
.quiet-strike .strike { opacity: 0.35; }

/* Division pages: smaller, quieter diamond (home keeps the big one) */
.quiet-strike .facet-flash { display: none; }
.division .gem-wrap {
  width: min(30vw, 340px);
  right: max(1rem, calc((100% - 68rem) / 2));
  transform: translateY(-50%);
}
@media (max-width: 900px) {
  .division .gem-wrap {
    top: 1rem;
    right: -8%;
    width: min(46vw, 240px);
    transform: none;
    opacity: 0.6;
  }
}

.footer-lockup--division { width: 150px; }
.footer-lockup--division .footer-division { width: 100%; height: auto; display: block; }

/* Gem always fits: cap width by available hero height (viewBox 480x560, tip at y=524) */
.gem-wrap {
  width: min(48vw, 540px, calc((100svh - var(--header) - 5rem) * 0.857));
  transform: translateY(-50%);
}
.division .gem-wrap {
  width: min(30vw, 340px, calc((min(calc(100svh - var(--header)), 46rem) - 5rem) * 0.857));
  transform: translateY(-50%);
}
@media (max-width: 900px) {
  .gem-wrap { width: min(78vw, 420px, calc((100svh - var(--header) - 3rem) * 0.857)); transform: none; }
  .division .gem-wrap { width: min(46vw, 240px); transform: none; }
}
