/* 5.41 Studio — chapter + screen styles (Projects, Clients, Photos, About, Contact). Tokens come from base.css only. */

/* ---------- Shared ---------- */
.gr-empty { padding: 48px var(--gutter); color: var(--dim); }

.gr-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line); color: var(--ink); background: var(--bg);
  font-family: var(--font-mono); font-size: var(--step-osd); letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .12s steps(2), color .12s steps(2), border-color .12s steps(2);
}
.gr-btn:hover, .gr-btn:focus-visible { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }
.gr-cta {
  min-height: 56px; padding: 0 32px; background: var(--amber); color: var(--amber-ink); border: 1px solid var(--amber);
  font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 13px;
}
.gr-cta:hover, .gr-cta:focus-visible { background: var(--ink); border-color: var(--ink); }

/* chapters sit on solid black; each cover overlaps the previous chapter a little so the joins have no hard edge */
.gr-chapter { position: relative; background: var(--bg); }
.gr-chapter + .gr-chapter .gr-cover { margin-top: -8vh; margin-top: -8svh; }

/* ---------- Reveal (reference timing): opacity .5s linear + translateX(-12px) -> 0 over 1s easeOutCubic ---------- */
.gr-rv { opacity: 0; transform: translate3d(-12px, 0, 0); transition: opacity .5s linear, transform 1s var(--ease-rv); }
.gr-rv.is-in { opacity: 1; transform: none; }

.gr-chapter .gr-dim { color: var(--tx-body); }

/* ---------- Chapter cover: a compact (~48svh) window onto a stationary layer ----------
   The section is clipped; the media is position: fixed inside it, so the footage stays put on screen while the
   window edge moves. Heading + subline scroll 1:1 (no pin, no fade). */
.gr-cover {
  position: relative; isolation: isolate; clip-path: inset(0); pointer-events: none;
  min-height: 48vh; min-height: 48svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--hud-h) + 28px) var(--gutter) clamp(18px, 2.4vw, 32px);
}
.gr-cover.is-short { min-height: 34vh; min-height: 34svh; }
.gr-cover-media { position: fixed; inset: 0; z-index: -1; overflow: hidden; opacity: .4; }
.gr-cover-plate { position: absolute; inset: 0; }
.gr-cover-img, .gr-cover-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gr-cover-vid { z-index: 1; }
.gr-cover-inner { position: relative; }
.gr-cover-word { margin: 0; font-size: clamp(52px, min(15vw, 22vh), 330px); font-size: clamp(52px, min(15vw, 22svh), 330px); color: var(--ink); white-space: nowrap; line-height: .96; letter-spacing: -.04em; }
.gr-cover.is-sentence .gr-cover-word { white-space: normal; font-size: clamp(34px, min(6.6vw, 11svh), 112px); line-height: .98; max-width: 24ch; text-wrap: balance; }
.gr-cover-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-top: clamp(10px, 1.4vw, 20px); }
.gr-cover-line { font-family: var(--font-body); font-size: clamp(16px, 1.4vw, 22px); line-height: 1.1; letter-spacing: -.03em; text-transform: none; color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .gr-cover-media { position: absolute; }
}

/* ---------- PROJECTS showcase ---------- */
.gr-show {
  display: grid; grid-template-columns: minmax(170px, 220px) minmax(0, 1fr); align-items: start;
  gap: clamp(20px, 3vw, 48px); padding: clamp(20px, 3vw, 40px) var(--gutter) clamp(40px, 5vw, 72px);
}
.gr-ix { position: sticky; top: calc(var(--hud-h) + 56px); max-height: calc(100vh - 120px); max-height: calc(100svh - 120px); overflow-y: auto; padding-right: 10px; scrollbar-width: thin; scrollbar-color: var(--faint) transparent; overscroll-behavior: contain; }
.gr-ix-group { margin-bottom: 10px; }
.gr-ix-folder { display: block; padding: 3px 0; margin-bottom: 2px; color: var(--faint); letter-spacing: .12em; text-align: left; font-family: var(--font-mono); font-size: var(--step-osd); text-transform: uppercase; }
.gr-ix-folder:hover, .gr-ix-folder[aria-current] { color: var(--ink); }
.gr-ix-item { position: relative; display: block; width: 100%; padding: 3px 0 3px 14px; text-align: left; color: var(--tx-body); font-size: 13px; line-height: 1.3; transition: color .2s var(--ease); }
.gr-ix-item::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left center; transition: transform .25s var(--ease); }
.gr-ix-item:hover { color: var(--ink); }
.gr-ix-item[aria-current] { color: var(--tx-title); }
.gr-ix-item[aria-current]::before { transform: scaleX(1); }

.gr-pns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); min-width: 0; }
.gr-pn { display: block; width: 100%; padding: 0; text-align: left; color: var(--ink); }
.gr-pn-frame { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel-2); border: 1px solid var(--line); transition: border-color .12s steps(2); }
.gr-pn-frame::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .24); pointer-events: none; }
.gr-pn-plate { position: absolute; left: 0; right: 0; top: -5%; bottom: -5%; } /* drift is capped at 4% of the panel height */
.gr-pn-img, .gr-pn-vid, .gr-tile-frame .gr-pn-img, .gr-tile-frame .gr-pn-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gr-pn-img { opacity: 0; transition: opacity .3s var(--ease); }
.gr-pn-img.is-loaded { opacity: 1; }
.gr-pn-vid { opacity: 0; transition: opacity .3s var(--ease); }
.is-empty .gr-pn-img, .gr-pn-frame.is-empty { background: var(--panel-2); }
.has-video .gr-pn-vid { opacity: 1; }
.gr-pn-meta { position: absolute; z-index: 2; left: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; max-width: 78%; padding: clamp(10px, 1.2vw, 16px); }
.gr-pn-code { padding: 3px 8px; background: var(--bg); color: var(--ink); }
.gr-pn-title { font-size: clamp(15px, 1.35vw, 20px); line-height: 1.15; font-weight: 600; color: var(--tx-title); text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.gr-pn-client { color: var(--tx-body); }
.gr-pn-play { position: absolute; z-index: 2; right: clamp(10px, 1.2vw, 16px); bottom: clamp(10px, 1.2vw, 16px); display: grid; place-items: center; width: 40px; height: 40px; background: var(--bg); border: 1px solid var(--ink); color: var(--ink); font-size: 16px; letter-spacing: 0; transition: background .12s steps(2), color .12s steps(2), border-color .12s steps(2); }
.gr-pn:hover .gr-pn-frame, .gr-pn:focus-visible .gr-pn-frame, .gr-tile:hover .gr-tile-frame, .gr-tile:focus-visible .gr-tile-frame { border-color: var(--amber); }
.gr-pn:hover .gr-pn-play, .gr-pn:focus-visible .gr-pn-play, .gr-tile:hover .gr-pn-play, .gr-tile:focus-visible .gr-pn-play { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
.gr-pn:focus-visible, .gr-tile:focus-visible { outline: none; }
.gr-pn:focus-visible .gr-pn-frame, .gr-tile:focus-visible .gr-tile-frame { outline: 2px solid var(--amber); outline-offset: 3px; }

.gr-pn-tall { grid-column: 1 / -1; padding-top: 14px; margin-top: clamp(6px, 1vw, 14px); border-top: 1px solid var(--line); }
.gr-tall-head { margin: 0 0 12px; }
.gr-tiles { display: flex; gap: var(--gap); overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--faint) transparent; }
.gr-tile { flex: 1 0 clamp(120px, 12vw, 170px); max-width: 190px; padding: 0; text-align: left; color: var(--ink); scroll-snap-align: start; }
.gr-tile-frame { position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; background: var(--panel-2); border: 1px solid var(--line); transition: border-color .12s steps(2); }
.gr-tile-frame::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .24); pointer-events: none; }
.gr-tile .gr-pn-meta { padding: 10px; max-width: 100%; }
.gr-tile-title { font-size: 14px; line-height: 1.2; font-weight: 600; color: var(--tx-title); text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }
.gr-tile .gr-pn-play { width: 40px; height: 40px; right: 10px; top: 10px; bottom: auto; font-size: 12px; }

@media (max-width: 800px) {
  .gr-show { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 0; }
  .gr-ix {
    position: sticky; top: calc(var(--hud-h) + 56px); z-index: 3; display: flex; gap: 8px; max-height: none;
    overflow-x: auto; overflow-y: hidden; margin: 0 calc(-1 * var(--gutter)); padding: 10px var(--gutter);
    background: var(--bg); border-bottom: 1px solid var(--line); scrollbar-width: none;
  }
  .gr-ix::-webkit-scrollbar { display: none; }
  .gr-ix-group { display: contents; margin: 0; }
  .gr-ix-item { display: none; }
  .gr-ix-folder { flex: none; min-height: 40px; margin: 0; padding: 0 14px; border: 1px solid var(--line); color: var(--dim); white-space: nowrap; }
  .gr-ix-folder[aria-current] { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
  .gr-pns { margin-top: 20px; gap: 12px; }
  .gr-pn-play { width: 36px; height: 36px; }
  .gr-tile { flex: none; width: 140px; }
}
@media (max-width: 640px) {
  .gr-pns { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .gr-pn-play { width: 44px; height: 44px; }
  .gr-pn-title { font-size: 18px; }
  .gr-pn-meta { max-width: 74%; padding: 14px; }
}

/* ---------- CLIENTS ----------
   Identical 3:2 cells. Columns 6 / 4 / 3 / 2 (--n). The grid runs on half-columns (2n) with every cell spanning 2,
   so clients.js can centre a short last row by offsetting its first cell. Cells overlap by 1px so every cell keeps a full border. */
.gr-cl-wrap { padding: clamp(18px, 2.4vw, 32px) var(--gutter) clamp(40px, 5vw, 72px); }
.gr-cl-head { margin: 0 0 12px; }
.gr-cl-grid { --n: 2; list-style: none; margin: 0; padding: 0 1px 1px 0; display: grid; grid-template-columns: repeat(calc(var(--n) * 2), minmax(0, 1fr)); }
@media (min-width: 480px) { .gr-cl-grid { --n: 3; } }
@media (min-width: 700px) { .gr-cl-grid { --n: 4; } }
@media (min-width: 1100px) { .gr-cl-grid { --n: 6; } }
.gr-cl { position: relative; grid-column: span 2; aspect-ratio: 3 / 2; margin: 0 -1px -1px 0; border: 1px solid var(--line); }
.gr-cl-box { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; outline-offset: -3px; }
.gr-cl-logo { width: 62%; height: 38%; object-fit: contain; object-position: center; filter: brightness(0) invert(1); opacity: .7; transition: opacity .2s var(--ease); }
.gr-cl-mark { width: 62%; font-size: clamp(16px, 1.9vw, 27px); line-height: 1; text-align: center; color: var(--ink); opacity: .7; transition: opacity .2s var(--ease); overflow-wrap: anywhere; text-wrap: balance; }
.gr-cl-box:hover .gr-cl-logo, .gr-cl-box:hover .gr-cl-mark, .gr-cl-box:focus-visible .gr-cl-logo, .gr-cl-box:focus-visible .gr-cl-mark { opacity: 1; }
.gr-cl-note { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 10px; color: var(--tx-body); opacity: 0; transition: opacity .2s var(--ease); }
.gr-cl-box:hover .gr-cl-note, .gr-cl-box:focus-visible .gr-cl-note { opacity: 1; }
@media (hover: none) { .gr-cl-note { opacity: .75; } }

/* ---------- PHOTOS chapter ---------- */
.gr-ph-chapter { padding: clamp(14px, 2.4vw, 32px) var(--gutter) clamp(40px, 5vw, 72px); }
.gr-strip { display: flex; align-items: flex-start; gap: clamp(10px, 1.8vw, 26px); max-width: 1500px; margin: 0 auto; }
.gr-lane { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: clamp(10px, 1.8vw, 26px); will-change: transform; }
.gr-lane-3-1 { margin-top: clamp(20px, 3vw, 44px); }
.gr-lane-3-2 { margin-top: clamp(8px, 1.4vw, 20px); }
.gr-lane-2-1 { margin-top: clamp(24px, 8vw, 48px); }
.gr-st { display: block; width: 100%; padding: 0; text-align: left; }
.gr-st-frame { position: relative; display: block; aspect-ratio: var(--ar); overflow: hidden; background: var(--panel-2); border: 1px solid var(--line); transition: border-color .12s steps(2); }
.gr-st-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s var(--ease); }
.gr-st-img.is-loaded { opacity: 1; }
.gr-st:hover .gr-st-frame, .gr-st:focus-visible .gr-st-frame { border-color: var(--amber); }
.gr-st:focus-visible { outline: none; }
.gr-st:focus-visible .gr-st-frame { outline: 2px solid var(--amber); outline-offset: 3px; }
.gr-st-no { display: inline-block; margin-top: 6px; color: var(--tx-body); }
.gr-strip-cta { display: flex; justify-content: center; margin-top: clamp(24px, 3vw, 40px); }

/* ---------- PHOTOS screen ---------- */
.gr-ph-wrap { padding: var(--gutter) var(--gutter) 96px; }
.gr-ph-bar { margin-bottom: 18px; }
.gr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.gr-chip { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); color: var(--ink); letter-spacing: .1em; }
.gr-chip:hover { border-color: var(--ink); }
.gr-chip[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
.gr-ph-grid { --row-h: clamp(200px, 17vw, 340px); list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px var(--gap); }
.gr-ph-grid::after { content: ""; flex-grow: 1000000; }
.gr-ph-item { flex: calc(var(--ar) * 100) 1 calc(var(--ar) * var(--row-h)); min-width: 0; }
.gr-ph { display: block; width: 100%; padding: 0; }
.gr-ph-frame { position: relative; display: block; width: 100%; aspect-ratio: var(--ar); background: var(--panel-2); overflow: hidden; }
.gr-ph-frame::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line); pointer-events: none; }
.gr-ph-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s var(--ease); }
.gr-ph-img.is-loaded { opacity: 1; }
.gr-ph:hover .gr-ph-frame::after, .gr-ph:focus-visible .gr-ph-frame::after { border: 2px solid var(--amber); }
.gr-ph:focus-visible { outline: none; }
.gr-ph-no { display: inline-block; margin-top: 6px; padding: 2px 6px; margin-left: -6px; color: var(--dim); }
.gr-ph-item:hover .gr-ph-no { background: var(--amber); color: var(--amber-ink); }
@media (max-width: 640px) { .gr-ph-grid { --row-h: 130px; gap: 14px 8px; } }

/* ---------- PLAYBACK player + photo viewer (overlays) ---------- */
.gr-player, .gr-viewer { display: flex; flex-direction: column; background: #000; overscroll-behavior: contain; }
.gr-player, .gr-viewer.is-floating { position: fixed; left: 0; right: 0; top: var(--gr-top, var(--hud-h)); bottom: var(--gr-bottom, var(--hud-h)); z-index: 47; }
.gr-viewer { position: absolute; inset: 0; z-index: 5; }
.gr-viewer.is-floating { inset: auto; }
.gr-player-bar, .gr-viewer-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 4px var(--gutter); border-bottom: 1px solid var(--line); }
.gr-player-pos, .gr-viewer-pos { color: var(--amber); }
.gr-player-stage { flex: 1 1 auto; min-height: 0; container-type: size; display: flex; align-items: center; justify-content: center; padding: var(--gap); }
.gr-player-frame { flex: none; width: min(100cqw, 100cqh * 16 / 9); aspect-ratio: 16 / 9; background: var(--panel); border: 1px solid var(--line); }
.gr-player-frame.is-vertical { width: auto; height: min(100cqh, 100cqw * 16 / 9); aspect-ratio: 9 / 16; }
.gr-player-iframe { width: 100%; height: 100%; border: 0; background: #000; }
.gr-player-info { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 10px var(--gutter) 14px; border-top: 1px solid var(--line); }
.gr-player-text { min-width: 0; flex: 1 1 260px; }
.gr-player-title { color: var(--ink); font-size: var(--step-small); letter-spacing: .08em; }
.gr-player-client { margin-top: 4px; }
.gr-player-ctl { display: flex; flex-wrap: wrap; gap: 8px; }

.gr-viewer-stage { position: relative; flex: 1 1 auto; min-height: 0; touch-action: pan-y pinch-zoom; }
.gr-viewer-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.gr-viewer-nav { position: absolute; top: 0; bottom: 0; width: clamp(56px, 12vw, 140px); display: flex; align-items: center; color: var(--ink); font-size: 22px; padding: 0 clamp(12px, 2vw, 28px); }
.gr-viewer-nav.is-prev { left: 0; justify-content: flex-start; }
.gr-viewer-nav.is-next { right: 0; justify-content: flex-end; }
.gr-viewer-nav span { display: block; padding: 10px 12px; background: rgba(0, 0, 0, .55); font-size: 16px; letter-spacing: 0; }
.gr-viewer-nav:hover span, .gr-viewer-nav:focus-visible span { background: var(--amber); color: var(--amber-ink); }
.gr-viewer-foot { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; padding: 6px var(--gutter); border-top: 1px solid var(--line); }
.gr-viewer-cap { color: var(--ink); min-width: 0; }
.gr-hint-touch { display: none; }
@media (hover: none) { .gr-hint-keys { display: none; } .gr-hint-touch { display: inline; } }
@media (max-width: 720px) { .gr-player-bar, .gr-viewer-bar { min-height: 48px; } .gr-player-ctl .gr-btn { flex: 1 1 auto; } }

/* ---------- ABOUT: short statement run, then two bios + a gear still ---------- */
.gr-story { position: relative; background: var(--bg); }
.gr-st-wrap { position: relative; }
/* the sticky stage is shorter than the viewport and the wrapper adds only a short run (~22svh) of scroll */
.gr-st-statement { --stage: min(42svh, 400px); height: calc(var(--stage) + 20svh); }
.gr-st-stick { position: sticky; top: calc(50vh - var(--stage) / 2); top: calc(50svh - var(--stage) / 2); height: var(--stage); overflow: hidden; }
.gr-st-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.gr-st-bg-plate { position: absolute; inset: 0; transform: scale(1.1); }
.gr-is-anim .gr-st-bg { will-change: opacity; }
.gr-st-bg-img { width: 100%; height: 100%; object-fit: cover; }
.gr-st-inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter); }
.gr-st-big { margin: 0; max-width: 1400px; font-size: clamp(30px, 4.4vw, 80px); line-height: 1; text-wrap: pretty; color: var(--ink); }
.gr-w { position: relative; display: inline-block; color: var(--faint); }
.gr-w-lit { position: absolute; left: 0; top: 0; white-space: nowrap; color: var(--ink); opacity: 0; }
.gr-st-meter { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 14px; height: 1px; background: var(--line); }
.gr-st-meter i { display: block; height: 100%; background: var(--amber); transform: scaleX(0); transform-origin: left center; will-change: transform; }

.gr-bios { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 4fr); gap: clamp(20px, 3.4vw, 56px); align-items: start; max-width: 1500px; margin: 0 auto; padding: clamp(24px, 3.2vw, 44px) var(--gutter) clamp(32px, 4vw, 56px); }
.gr-bio-fig { margin: 0; aspect-ratio: 1 / 1; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; will-change: clip-path; }
.gr-bio-img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.gr-bio-label { margin: 0 0 10px; }
.gr-bio-p { margin: 0 0 14px; max-width: 54ch; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.55; color: var(--tx-body); }
.gr-bio-p:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
  .gr-bios { grid-template-columns: 1fr 1fr; }
  .gr-bio-fig { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
  .gr-st-statement { --stage: min(56svh, 460px); }
  .gr-bios { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

/* reduced motion: everything lit and visible; nothing pinned */
.gr-story.is-static .gr-st-statement { height: auto; }
.gr-story.is-static .gr-st-stick { position: relative; top: auto; height: auto; min-height: var(--stage); }
.gr-story.is-static .gr-st-bg { opacity: .4; }
.gr-story.is-static .gr-st-bg-plate { transform: none; }
.gr-story.is-static .gr-w-lit { opacity: 1; }
.gr-story.is-static .gr-st-meter { display: none; }
.gr-story.is-static .gr-bio-fig { will-change: auto; }

/* ---------- SYSTEM INFO ---------- */
.gr-sys { max-width: 1500px; margin: 0 auto; padding: clamp(16px, 2.4vw, 32px) var(--gutter) clamp(40px, 5vw, 72px); }
.gr-sys-head { margin: 0 0 12px; }
.gr-sys-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 5vw, 80px); border-top: 1px solid var(--line); }
.gr-sys-row { display: grid; grid-template-columns: clamp(96px, 11vw, 150px) minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.gr-sys-key { color: var(--tx-body); }
.gr-sys-val { color: var(--tx-title); font-size: var(--step-small); overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .gr-sys-table { grid-template-columns: minmax(0, 1fr); }
  .gr-sys-row { grid-template-columns: 100px minmax(0, 1fr); padding: 12px 0; }
}

/* ---------- CONTACT ---------- */
.gr-contact { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; max-width: 1500px; margin: 0 auto; padding: clamp(18px, 2.4vw, 32px) var(--gutter) 0; }
.gr-contact-tag { margin: 0 0 10px; }
.gr-email { display: block; width: fit-content; max-width: 100%; margin: 0; font-size: clamp(28px, 3.4vw, 56px); line-height: .95; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.gr-email:hover, .gr-email:focus-visible { color: var(--amber); }
.gr-contact-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* compact form: 6-column grid, labels above the fields */
.gr-form { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px 12px; }
.gr-field { grid-column: span 6; }
.gr-field.is-half { grid-column: span 3; }
.gr-field.is-third { grid-column: span 2; }
.gr-field.is-full { grid-column: span 6; }
.gr-field-label { display: block; margin-bottom: 6px; color: var(--tx-body); }
.gr-input { display: block; width: 100%; min-height: 44px; padding: 8px 12px; margin: 0; background: #000; color: var(--ink); border: 1px solid var(--line); border-radius: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.4; -webkit-appearance: none; appearance: none; }
.gr-input::placeholder { color: var(--faint); }
.gr-input:focus { border-color: var(--amber); outline: 2px solid var(--amber); outline-offset: 0; }
.gr-input[aria-invalid="true"] { border-style: dashed; border-color: var(--amber); }
.gr-textarea { min-height: 84px; resize: vertical; }
.gr-select-wrap { position: relative; }
.gr-select { padding-right: 40px; cursor: pointer; }
.gr-select-wrap::after { content: "▾"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--amber); font-family: var(--font-mono); }
.gr-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.gr-form-actions { grid-column: span 6; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.gr-send { min-height: 48px; padding: 0 32px; background: var(--amber); color: var(--amber-ink); border: 1px solid var(--amber); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.gr-send:hover, .gr-send:focus-visible { background: var(--ink); border-color: var(--ink); }
.gr-send:disabled { opacity: .5; cursor: progress; }
.gr-status { margin: 0; min-height: 1.4em; color: var(--ink); }
.gr-status.is-ok { color: var(--ok); }
.gr-status.is-error { color: var(--amber); }
.gr-status a { color: inherit; }

.gr-foot { margin: clamp(28px, 4vw, 56px) var(--gutter) 0; padding: 14px 0 calc(var(--hud-h) + 18px); border-top: 1px solid var(--line); color: var(--tx-body); }

@media (max-width: 860px) {
  .gr-contact { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 600px) {
  .gr-field.is-half, .gr-field.is-third { grid-column: span 6; }
  .gr-send { width: 100%; }
}
