/* ============================================================
   GREGORIO VASTA — STUDIO SYDNEY
   Cyber-sigilism, done for a jeweller.
   Tokens · components · the flip · motion · responsive
   ============================================================ */

/* ---------- 0. FONTS (self-hosted, was Google Fonts) ---------- */
@font-face {
  font-family: "Antonio";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("../fonts/antonio-700.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/space-grotesk.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/jetbrains-mono.woff2") format("woff2");
}

/* ---------- 1. TOKENS ---------- */
:root {
  --bg:     #000;
  --fg:     #fff;
  --line:   rgba(255, 255, 255, .18);
  --muted:  rgba(255, 255, 255, .5);
  --accent: #c9ccd1;                 /* chrome — reads as metal */

  --font-display: "Antonio", "Arial Narrow", sans-serif;
  --font-body:    "Space Grotesk", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --maxw: 1280px;
  --pad:  clamp(20px, 5vw, 64px);
  --gut:  clamp(24px, 4vw, 56px);

  --rule:  1px solid var(--line);
  --t:     .45s cubic-bezier(.22, 1, .36, 1);
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(15px, 1vw + .6rem, 17px);
  line-height: 1.55;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--accent); color: #000; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- 3. LAYOUT PRIMITIVES ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(56px, 9vw, 128px); }
.section--tight { padding-block: clamp(40px, 6vw, 80px); }

/* clear the fixed nav so the system strip never sits under it */
main { padding-top: clamp(58px, 6vw, 68px); }

.mono {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }
.accent { color: var(--accent); }

.label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 4. SKIP LINK ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--fg);
  color: var(--bg);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .12em;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- 5. FLOATING NAV ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gut);
  padding: 18px var(--pad);
  mix-blend-mode: difference;            /* stays legible over either bg */
  pointer-events: none;
}
.nav > * { pointer-events: auto; }

.nav__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .04em;
  color: #fff;
}

.nav__links {
  display: flex;
  gap: clamp(14px, 2.4vw, 34px);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
}
.nav__links a { position: relative; padding: 4px 0; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__links a[aria-current="page"] { opacity: 1; }

/* mobile nav toggle */
.nav__toggle { display: none; }

/* ---------- 6. SYSTEM HEADER STRIP ---------- */
.sys {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
  border-bottom: var(--rule);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.sys__l { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sys__sep { color: var(--line); }
.sys__r { color: var(--accent); white-space: nowrap; }

/* ---------- 7. MASTHEAD ---------- */
.masthead { padding-block: clamp(28px, 5vw, 56px) clamp(8px, 2vw, 20px); }

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.wordmark b { color: var(--accent); font-weight: 700; }

.masthead__rule {
  height: 1px;
  background: var(--line);
  margin-block: clamp(18px, 3vw, 30px);
}

.headline {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: -.01em;
  font-size: clamp(2.9rem, 12.5vw, 11rem);
}
/* stroked / outlined word */
.headline .stroke {
  color: transparent;
  -webkit-text-stroke: 1.4px var(--fg);
  text-stroke: 1.4px var(--fg);
}
@supports not ((-webkit-text-stroke: 1px #fff) or (text-stroke: 1px #fff)) {
  .headline .stroke { color: var(--muted); }
}

.meta-line {
  margin-top: clamp(16px, 2.5vw, 28px);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.meta-line .accent { color: var(--accent); }

/* ---------- 8. TICKER ---------- */
.ticker {
  border-block: var(--rule);
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
}
.ticker__track {
  display: inline-flex;
  align-items: center;
  padding-block: 14px;
  will-change: transform;
  animation: marquee 32s linear infinite;
}
.ticker__track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  letter-spacing: .04em;
  text-transform: uppercase;
  padding-inline: clamp(14px, 2.5vw, 28px);
}
.ticker__track i {
  color: var(--accent);
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- 9. PROSE / GENERIC BLOCKS ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent);
}

.block-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: -.005em;
  font-size: clamp(1.9rem, 5.5vw, 4.2rem);
}
.block-title .stroke {
  color: transparent;
  -webkit-text-stroke: 1.2px var(--fg);
}
@supports not ((-webkit-text-stroke: 1px #fff)) {
  .block-title .stroke { color: var(--muted); }
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.5;
  max-width: 56ch;
  color: rgba(255, 255, 255, .82);
}
.prose p { max-width: 62ch; color: rgba(255, 255, 255, .78); }
.prose p + p { margin-top: 1.1em; }

/* about page opening statement (no portrait) */
.about-intro .label { margin-bottom: clamp(18px, 2.4vw, 28px); }
.about-intro__lede {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  line-height: 1.3;
  letter-spacing: -.005em;
  max-width: 40ch;
  color: rgba(255, 255, 255, .92);
}

/* two-column editorial split */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: var(--gut);
  align-items: start;
}
.split__aside { position: sticky; top: 96px; }

/* ---------- 10. ARCHIVE ROWS (THE FLIP) ---------- */
.row {
  /* scoped tokens — flipping these inverts only this row */
  --row-bg: transparent;
  --row-fg: var(--fg);
  --row-line: var(--line);
  --row-muted: var(--muted);
  --row-accent: var(--accent);

  position: relative;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: clamp(16px, 4vw, 56px);
  padding: clamp(20px, 3.4vw, 38px) var(--pad);
  margin-inline: calc(var(--pad) * -1);
  border-bottom: 1px solid var(--row-line);
  background: var(--row-bg);
  color: var(--row-fg);
  transition: background var(--t), color var(--t), border-color var(--t);
  overflow: hidden;
}
.row > * { position: relative; z-index: 1; }

/* THE FLIP — invert this row's scheme */
.row:hover,
.row:focus-within,
.row.is-flipped {
  --row-bg: var(--fg);
  --row-fg: var(--bg);
  --row-line: rgba(0, 0, 0, .18);
  --row-muted: rgba(0, 0, 0, .5);
  --row-accent: #666;                 /* chrome shifts cooler when flipped */
}

.row__id {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .12em;
  color: var(--row-accent);
  transition: color var(--t);
}
.row__name {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: .01em;
  font-size: clamp(1.5rem, 4.4vw, 3rem);
}
.row__spec {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--row-muted);
  text-align: right;
  white-space: normal;
  transition: color var(--t);
}
.row__arrow {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--row-accent);
  transition: transform var(--t), color var(--t);
}
.row:hover .row__arrow,
.row:focus-within .row__arrow { transform: translateX(6px); }

/* ---------- 11. FEATURED WORK BLOCKS (with media) ---------- */
.feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--gut);
  align-items: center;
  padding-block: clamp(36px, 6vw, 80px);
}
.feature:nth-child(even) .feature__media { order: 2; }

.media {
  position: relative;
  overflow: hidden;
  background: #0b0b0b;
  border: var(--rule);
  aspect-ratio: 4 / 5;
}
.media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}
.media:hover img { transform: scale(1.045); }
.media video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* render a colour clip in monochrome so it sits with the rest of the site */
.media--mono video,
.media--mono img { filter: grayscale(1) contrast(1.05); }
/* subtle uniform vignette so bright- and dark-background shots settle into the
   black layout consistently (non-destructive; sits above the image) */
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 clamp(26px, 6vw, 68px) rgba(0, 0, 0, .38);
}

/* process: design -> make visual pair */
.process-visuals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2.2vw, 30px);
  padding-top: clamp(8px, 1.4vw, 18px);
}
.process-visuals .media { aspect-ratio: 4 / 5; }
.pv-cap {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* full-bleed editorial image band */
.bleed {
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-block: var(--rule);
}
.bleed img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 640px) {
  .process-visuals { grid-template-columns: 1fr; }
  .bleed { aspect-ratio: 4 / 3; }
}

.feature__name {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: .96;
  font-size: clamp(2rem, 5vw, 3.6rem);
}
.feature__id { margin-bottom: 14px; }
.feature__spec {
  margin: 18px 0;
  padding-block: 14px;
  border-block: var(--rule);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.feature__note { color: rgba(255, 255, 255, .78); max-width: 48ch; }

/* ---------- 11b. ARCHIVE GALLERY (photo grid, keeps the flip) ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.2vw, 30px);
  padding-top: clamp(8px, 1.4vw, 18px);
}
.tile { display: flex; flex-direction: column; }
.tile .media { aspect-ratio: 4 / 5; }
.tile__cap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-top: none;
  background: transparent;
  color: var(--fg);
  transition: background var(--t), color var(--t), border-color var(--t);
}
/* the flip — caption inverts on hover */
.tile:hover .tile__cap,
.tile:focus-within .tile__cap {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.tile__id {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .12em;
  color: var(--accent);
}
.tile:hover .tile__id { color: #666; }
.tile__name {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
}
.tile__spec {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--t);
}
.tile:hover .tile__spec { color: rgba(0, 0, 0, .55); }

/* ---------- 12. QUAD / GRID OF STAGES ---------- */
.quad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: var(--rule);
  border-left: var(--rule);
}
.quad__cell {
  padding: clamp(22px, 2.6vw, 36px);
  border-right: var(--rule);
  border-bottom: var(--rule);
}
.quad__num {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--accent);
  margin-bottom: 18px;
}
.quad__h {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  line-height: 1;
  margin-bottom: 12px;
}
.quad__p { font-size: .92rem; color: var(--muted); line-height: 1.5; }

/* ---------- 13. STAGES (process, stacked & numbered) ---------- */
.stage {
  display: grid;
  grid-template-columns: clamp(70px, 12vw, 160px) 1fr;
  gap: var(--gut);
  padding-block: clamp(28px, 4vw, 52px);
  border-top: var(--rule);
  align-items: start;
}
.stage:first-child { border-top: none; }
.stage__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--accent);
}
@supports not ((-webkit-text-stroke: 1px #fff)) {
  .stage__num { color: var(--accent); }
}
.stage__h {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  line-height: 1;
  margin-bottom: 14px;
}
.stage__p { color: rgba(255, 255, 255, .78); max-width: 60ch; }

/* ---------- 14. TESTIMONIAL ---------- */
.quote { border-block: var(--rule); }
.quote blockquote {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: -.005em;
  font-size: clamp(1.7rem, 5vw, 4rem);
  max-width: 18ch;
}
.quote__src {
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.quotes-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  margin-top: clamp(34px, 5vw, 58px);
}
.quote--sm blockquote {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.4;
  max-width: 34ch;
}
.quote--sm .quote__src { margin-top: 16px; }
@media (max-width: 720px) {
  .quotes-row { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- 15. CTA BLOCK ---------- */
.cta {
  border-top: var(--rule);
  padding-block: clamp(56px, 10vw, 150px);
  text-align: center;
}
.cta__big {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: .88;
  letter-spacing: -.01em;
  font-size: clamp(2.8rem, 13vw, 11rem);
  transition: color var(--t), transform .35s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}
.cta__big span { display: block; }
.cta__big:hover { color: var(--accent); }
.cta__sub {
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.cta__sub a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 16. FOOTNOTE BAR + FOOTER ---------- */
.footnote {
  border-top: var(--rule);
  padding-block: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.footnote .accent { color: var(--accent); }

.site-foot {
  border-top: var(--rule);
  padding-block: clamp(40px, 6vw, 72px);
}
.site-foot__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--gut);
}
.site-foot h4 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.site-foot__big {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: .98;
}
.site-foot__big b { color: var(--accent); }
.site-foot ul { list-style: none; display: grid; gap: 10px; }
.site-foot a {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}
.site-foot a:hover { color: var(--accent); }
.site-foot__legal {
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 18px;
  border-top: var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .04em;
  text-transform: none;
  color: var(--muted);
}

/* ---------- 17. FORM (ENQUIRE) ---------- */
.form { display: grid; gap: 26px; }
.field { display: grid; gap: 8px; }
.field > label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.field .req { color: var(--accent); }

.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 2px;
  transition: border-color var(--t);
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.field select { appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%),
                    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: right 6px center, right 1px center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.field select option { background: #0b0b0b; color: #fff; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, .3); }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--accent); }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }

.btn {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--fg);
  padding: 16px 30px;
  transition: background var(--t), color var(--t);
}
.btn:hover { background: var(--accent); }
.btn::after { content: "→"; }

.form-note {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* honeypot */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* enquire two-column layout — form leads, info trails */
.enquire-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--gut);
  align-items: start;
}
.enquire-aside { position: sticky; top: 100px; }
@media (max-width: 900px) {
  .enquire-grid { grid-template-columns: 1fr; gap: 44px; }
  .enquire-aside { position: static; }
}

/* info cards beside form */
.info-card {
  border: var(--rule);
  padding: clamp(22px, 3vw, 34px);
}
.info-card + .info-card { margin-top: 22px; }
.info-card h3 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.info-card p { font-size: .95rem; color: rgba(255, 255, 255, .78); }
.info-card a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }

/* thank-you (success) banner */
.notice {
  border: 1px solid var(--accent);
  padding: 18px 22px;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .08em;
  color: var(--accent);
  display: none;
}
.notice.is-on { display: block; }

.form-error {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--accent);
}
.form-error[hidden] { display: none; }
.form-error a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 18. MOTION / REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.22, 1, .36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 19. RESPONSIVE ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split__aside { position: static; }
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature:nth-child(even) .feature__media { order: 0; }
  .quad { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .site-foot__grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 640px) {
  .nav { padding-inline: var(--pad); }
  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 22px;
    padding: var(--pad);
    background: #000;
    mix-blend-mode: normal;
    font-size: 1rem;
    transform: translateY(-100%);
    transition: transform var(--t);
  }
  body.nav-open .nav__links { transform: none; }
  body.nav-open { overflow: hidden; }
  .nav__toggle {
    display: block;
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #fff;
    z-index: 110;
  }
  .nav { mix-blend-mode: normal; }   /* difference + fixed menu conflicts on small screens */

  .row {
    grid-template-columns: 1fr;
    grid-template-areas: "name" "spec";
    row-gap: 12px;
  }
  .row__name { grid-area: name; }
  .row__spec { grid-area: spec; text-align: left; }
  .row__arrow { display: none; }

  .quad { grid-template-columns: 1fr; }
  .stage { grid-template-columns: 1fr; gap: 12px; }
  .form__row { grid-template-columns: 1fr; }
  .sys { flex-direction: row; }
  .sys__l .sys__hide { display: none; }
}

/* ---------- 20. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
      transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
  /* the * rule above doesn't reach the VT pseudo-elements */
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

/* ---------- 21. ENHANCEMENTS (page transitions · cursor · scroll hero · lightbox) ---------- */

/* cross-document view transitions (Chromium): a quiet crossfade between pages.
   No-op where unsupported. The nav is identical page to page, so the crossfade
   leaves it visually steady without needing a named snapshot. */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .42s;
  animation-timing-function: cubic-bezier(.22, 1, .36, 1);
}

/* scroll-driven hero: the masthead drifts up and dissolves as the page scrolls
   in (pure CSS scroll timeline; static fallback where unsupported). */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .masthead {
      animation: gv-hero-dissolve linear both;
      animation-timeline: scroll(root);
      animation-range: 0 72vh;
    }
  }
}
@keyframes gv-hero-dissolve {
  to { opacity: .12; transform: translateY(-42px); }
}

/* lightbox (work page archive) — native <dialog>, built by JS */
.lightbox {
  inset: 0;
  width: 100%; height: 100%;
  max-width: 100vw; max-height: 100vh;
  border: 0;
  padding: clamp(16px, 4vw, 56px);
  background: #000;
  color: var(--fg);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: #000; }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] { animation: gv-fade .3s ease both; }
  .lightbox[open] .lightbox__fig { animation: gv-rise .42s cubic-bezier(.22, 1, .36, 1) both; }
}
@keyframes gv-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gv-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.lightbox__fig {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 2vw, 22px);
  max-height: 100%;
}
.lightbox__img {
  max-width: min(92vw, 1080px);
  max-height: 76vh;
  object-fit: contain;
  border: var(--rule);
  background: #0b0b0b;
}
.lightbox__cap { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.lightbox__name {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
}
.lightbox__spec {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.lightbox__close,
.lightbox__nav {
  position: fixed;
  background: none;
  border: 1px solid var(--line);
  color: var(--fg);
  font-family: var(--font-mono);
  letter-spacing: .14em;
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.lightbox__close { top: clamp(14px, 3vw, 28px); right: clamp(14px, 3vw, 28px); padding: 10px 16px; font-size: .7rem; }
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
}
.lightbox__prev { left: clamp(14px, 3vw, 32px); }
.lightbox__next { right: clamp(14px, 3vw, 32px); }
body.is-lightbox { overflow: hidden; }
@media (max-width: 640px) {
  .lightbox__nav { width: 44px; height: 44px; font-size: 1rem; }
  .lightbox__img { max-height: 66vh; }
}

/* generated chrome diamond in the home hero (desktop only; mounted by hero3d.js) */
.hero-wrap { position: relative; }
/* text sits above the stone but lets drags fall through to it (no links here) */
.hero-wrap > .sys,
.hero-wrap > .masthead { position: relative; z-index: 1; pointer-events: none; }
.hero3d {
  position: absolute;
  top: 52%;
  right: 1%;
  transform: translateY(-50%);
  width: min(38vw, 500px);
  aspect-ratio: 1;
  z-index: 0;
  pointer-events: auto;   /* grab to rotate (hero3d.js) */
}
.hero3d canvas { display: block; width: 100%; height: 100%; }
@media (max-width: 820px) { .hero3d { display: none; } }
