/* eyekor studios
   Layout: a full-screen sculpture hero (ported from the 21st.dev "Sculpture Hero"), then one
   left-aligned column of short sections with hairline rules and small uppercase labels.
   One type system throughout: Geist for text and headings, Instrument Serif italic for accents,
   IBM Plex Mono only for technical artefacts (the lighting plot, the spec table, the email address).
   Two palettes, both monochrome: cream by default, near-black behind the toggle in the hero nav. */

:root {
  /* light (default) */
  --bg: #EBE9E5;
  --bg-2: #E3E1DC;
  --bg-3: #DAD8D2;
  --fg: #151514;
  --fg-2: #4a4946;
  --mute: #63615b;
  --line: rgba(21, 21, 20, .18);
  --line-2: rgba(21, 21, 20, .08);
  /* type */
  --font-sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
  --sh-head: var(--font-sans);
  --sh-accent: var(--font-display);
  --sh-body: var(--font-sans);
  --sh-acc: var(--fg);
  --head-h: 66px;
  --gutter: clamp(20px, 3.2vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #111110;
  --bg-2: #181816;
  --bg-3: #201f1c;
  --fg: #F1EFEA;
  --fg-2: #b8b5ad;
  --mute: #85827b;
  --line: rgba(241, 239, 234, .16);
  --line-2: rgba(241, 239, 234, .075);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .6s ease, color .6s ease;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--bg); }
a { color: inherit; }
img, svg { max-width: 100%; }
[hidden], svg[hidden] { display: none !important; }
.wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
section { scroll-margin-top: calc(var(--head-h) + 8px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── type ───────────────────────────────────────────────────────── */
.label, .kicker, .meta, .founding, .originals, .field label, .form-note {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.55;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
}
.accent { font-family: var(--font-display); font-style: italic; font-weight: 400; letter-spacing: -.02em; }
h1, h2, h3 { text-wrap: balance; }

/* ── buttons and links ──────────────────────────────────────────── */
.btn, .sh-btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  background: var(--fg); color: var(--bg); border: 1px solid var(--fg);
  text-decoration: none; font: inherit; font-size: 14.5px; font-weight: 500; letter-spacing: -.01em;
  cursor: pointer; white-space: nowrap;
  transition: transform .3s var(--ease), opacity .2s, background .25s, color .25s, border-color .25s;
}
.btn:hover, .sh-btn:hover { transform: translateY(-1px); }
.btn svg, .sh-btn svg, .link-arrow svg, .sh-txt svg { transition: transform .3s var(--ease); flex: none; }
.btn:hover svg, .sh-btn:hover svg, .link-arrow:hover svg, .sh-txt:hover svg { transform: translateX(3px); }
.link-arrow, .sh-txt {
  display: inline-flex; align-items: center; gap: 8px;
  color: inherit; text-decoration: none; font-size: 14.5px; font-weight: 500; letter-spacing: -.01em;
  padding: 4px 0; border-bottom: 1px solid color-mix(in srgb, var(--fg) 30%, transparent);
  transition: border-color .25s;
}
.link-arrow:hover, .sh-txt:hover { border-color: var(--fg); }
.sh-navcta {
  color: inherit; text-decoration: none; font-size: 13.5px; padding: 8px 14px;
  border: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); border-radius: 999px;
  transition: background .25s, color .25s;
}
.sh-navcta:hover { background: var(--fg); color: var(--bg); }
.sh-brand { font-family: var(--sh-head); font-weight: 600; font-size: 17px; letter-spacing: -.02em; color: inherit; text-decoration: none; }
.sh-link { color: inherit; text-decoration: none; font-size: 13.5px; letter-spacing: -.005em; opacity: .72; transition: opacity .2s; }
.sh-link:hover { opacity: 1; }
:is(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

/* ── fixed header: hidden over the hero (which carries its own nav), appears once it has scrolled past ── */
.site-head {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 30;
  height: var(--head-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: opacity .35s ease, transform .35s var(--ease), background-color .6s ease;
}
.site-head.solid { opacity: 1; pointer-events: auto; transform: none; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-head .nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
@media (max-width: 767px) { .site-head .sh-link { display: none; } }

/* ── hero: the Sculpture Hero, as published ─────────────────────── */
.sh-root {
  position: relative; width: 100%;
  min-height: 100vh; min-height: 100svh;
  overflow: hidden; isolation: isolate;
  background: var(--bg); color: var(--fg);
  font-family: var(--sh-body); -webkit-font-smoothing: antialiased;
  touch-action: pan-y;
  display: flex; flex-direction: column;
  transition: background-color .6s ease, color .6s ease;
}
.sh-stage { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.sh-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .5s ease; }
.sh-fallback { position: absolute; display: block; max-width: none; user-select: none; -webkit-user-drag: none; transition: opacity .5s ease; }
.sh-fallback:not([src]) { opacity: 0; }
.sh-root[data-gl="on"] .sh-canvas { opacity: 1; }
.sh-root[data-gl="on"] .sh-fallback { opacity: 0; }
.sh-root[data-swap="1"] .sh-canvas, .sh-root[data-swap="1"] .sh-fallback { opacity: 0; transition-duration: .25s; }
.sh-backdrop {
  position: absolute; left: 50%; z-index: 0; transform: translate(-50%, -50%);
  white-space: nowrap; pointer-events: none; user-select: none;
  font-family: var(--sh-head); font-weight: 600; letter-spacing: -.06em; line-height: .8;
  color: color-mix(in srgb, var(--fg) 5%, transparent);
}
.sh-nav { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px clamp(20px, 3.2vw, 48px) 0; }
.sh-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); list-style: none; margin: 0; padding: 0; }
.sh-theme {
  display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 50%; cursor: pointer;
  color: inherit; background: transparent; border: 1px solid color-mix(in srgb, var(--fg) 22%, transparent);
  transition: background .25s, color .25s;
}
.sh-theme:hover { background: var(--fg); color: var(--bg); }
.sh-theme:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }
.sh-hint {
  position: absolute; z-index: 1; transform: translate(-50%, 0);
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .62;
  pointer-events: none; transition: opacity .8s ease;
}
.sh-hint::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: sh-pulse 2.4s ease-in-out infinite; }
.sh-root[data-touched="1"] .sh-hint, .sh-root[data-gl="off"] .sh-hint { opacity: 0; }
@keyframes sh-pulse { 0%, 100% { transform: scale(.6); opacity: .45; } 50% { transform: scale(1); opacity: 1; } }
.sh-spacer { flex: 1 1 auto; min-height: 0; }
.sh-content {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: end;
  gap: clamp(24px, 4vw, 72px);
  padding: 0 clamp(20px, 3.2vw, 48px) clamp(28px, 3.4vw, 52px);
}
.sh-eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .62; margin: 0 0 clamp(14px, 1.6vw, 22px); display: flex; align-items: center; gap: 12px; }
.sh-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.sh-h1 { font-family: var(--sh-head); font-weight: 500; font-size: clamp(40px, min(6.6vw, 11.5vh), 124px); line-height: .92; letter-spacing: -.045em; margin: 0; text-wrap: balance; }
.sh-h1 .sh-line { display: block; }
.sh-accent { font-family: var(--sh-accent); font-style: italic; font-weight: 400; letter-spacing: -.02em; color: var(--sh-acc); }
.sh-aside { max-width: 400px; justify-self: end; padding-bottom: .6em; }
.sh-body { font-size: clamp(15px, 1.1vw, 17px); line-height: 1.5; letter-spacing: -.01em; margin: 0 0 26px; opacity: .78; text-wrap: pretty; }
.sh-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.sh-root a:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }
@media (max-width: 1023px) {
  .sh-content { grid-template-columns: 1fr; gap: 28px; }
  .sh-aside { justify-self: start; max-width: 520px; padding-bottom: 0; }
  .sh-h1 { font-size: clamp(40px, min(9.5vw, 9vh), 96px); }
}
@media (max-width: 767px) { .sh-links li:not(.sh-keep) { display: none; } }
@media (max-width: 639px) {
  .sh-nav { padding-top: 20px; }
  .sh-h1 { font-size: clamp(36px, min(12.5vw, 7.2vh), 60px); line-height: .94; }
  .sh-body { font-size: 15px; margin-bottom: 20px; }
  .sh-eyebrow { font-size: 11px; }
  .sh-ctas { gap: 18px; }
  .sh-btn, .btn { height: 48px; }
  .sh-content { padding-bottom: 40px; }
}

/* ── sections ───────────────────────────────────────────────────── */
.section { border-top: 1px solid var(--line-2); }
.section .wrap { display: grid; grid-template-columns: 1fr; gap: 28px; padding-block: clamp(72px, 10vw, 150px); }
@media (min-width: 880px) { .section .wrap { grid-template-columns: 220px minmax(0, 1fr); gap: 48px; } }
.section .label { margin: 0; padding-top: 8px; display: flex; align-items: center; gap: 12px; }
.section .label::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.section h2:not(.label) { font-family: var(--font-sans); font-weight: 500; font-size: clamp(2rem, 3.8vw, 3.6rem); line-height: .98; letter-spacing: -.045em; margin: 0 0 22px; }
.section.lifted { background: var(--bg-2); }
.section p { text-wrap: pretty; }

/* thesis */
.section.thesis h2.lede { font-family: var(--font-sans); font-weight: 500; font-size: clamp(2.2rem, 4.6vw, 4.4rem); line-height: .96; letter-spacing: -.045em; margin: 0 0 .5em; max-width: 20ch; }
.thesis .thesis-text { font-family: var(--font-display); font-size: clamp(1.35rem, 2.1vw, 1.9rem); line-height: 1.3; letter-spacing: -.005em; margin: 0; max-width: 30em; color: var(--fg-2); }

/* what we make */
.work-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 760px) { .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.work { border-top: 1px solid var(--line); padding-block: 26px 10px; transition: border-color .25s; min-width: 0; }
.work:hover { border-color: var(--fg); }
.frames { display: flex; gap: 12px; height: 96px; color: var(--mute); margin: 0 0 26px; transition: color .25s; }
.work:hover .frames { color: var(--fg); }
.frame { position: relative; height: 100%; max-width: 100%; flex: none; border: 1px solid currentColor; }
.frame::after { content: attr(data-label); position: absolute; left: 7px; bottom: 5px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--mute); white-space: nowrap; }
.frame.r9x16 { aspect-ratio: 9 / 16; }
.frame.r1x1 { aspect-ratio: 1 / 1; }
.frame.r239 { aspect-ratio: 2.39 / 1; }
.frame.r16x9 { aspect-ratio: 16 / 9; }
.work .kicker { margin: 0 0 18px; }
.work h3 { font-family: var(--font-sans); font-weight: 500; font-size: clamp(1.5rem, 2.1vw, 1.9rem); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 14px; }
.work p { margin: 0 0 20px; color: var(--fg-2); max-width: 34em; }
.originals { margin: 44px 0 0; padding-top: 22px; border-top: 1px solid var(--line-2); }

/* how we work */
.rules { list-style: none; margin: 0; padding: 0; display: grid; }
.rules li { border-top: 1px solid var(--line); padding-block: 26px; display: grid; grid-template-columns: 1fr; gap: 8px 40px; }
@media (min-width: 760px) { .rules li { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: baseline; } }
.rules li:last-child { border-bottom: 1px solid var(--line); }
.rules strong { font-family: var(--font-sans); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2.3rem); line-height: 1.04; letter-spacing: -.04em; display: block; text-wrap: balance; }
.rules span { color: var(--fg-2); max-width: 34em; }

/* virtual studios and locations: the headline across the full width, copy left, photo right */
.stages-cols { display: grid; grid-template-columns: 1fr; gap: 32px; margin-top: 48px; } /* collapses with the h2's 22px margin to 48px, the same as the column gutter */
.stage-photo { margin: 0; display: flex; flex-direction: column; }
.sp-frame { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--line); background: var(--bg-2); overflow: hidden; --pos: 50; }
/* the comparison: two frames of the same set, the "in session" one clipped at the handle; the layers overhang by 10px for the scroll drift */
.cmp { position: absolute; left: 0; right: 0; top: -10px; bottom: -10px; }
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.cmp-after { clip-path: inset(0 calc(100% - var(--pos) * 1%) 0 0); }
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent; touch-action: pan-y; }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: calc(var(--pos) * 1%); width: 0; pointer-events: none; }
.cmp-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -0.5px; width: 1px; background: #fff; opacity: .9; }
.cmp-knob { position: absolute; top: 50%; left: 0; width: 36px; height: 36px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--bg); color: var(--fg); border: 1px solid var(--line); display: grid; place-items: center; box-shadow: 0 2px 12px rgba(0, 0, 0, .22); }
.cmp-range:focus-visible ~ .cmp-handle .cmp-knob { outline: 2px solid var(--fg); outline-offset: 2px; }
.cmp-hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); margin: 0; pointer-events: none; font-family: var(--font-sans); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .55); opacity: .9; transition: opacity .4s var(--ease); }
.sp-frame.touched .cmp-hint { opacity: 0; }
@media (min-width: 880px) {
  .stages h2 .accent { display: block; } /* the italic half takes its own line, as in the hero */
  .stages-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: stretch; }
  .stages-copy { grid-column: 1; grid-row: 1; }
  .stage-photo { grid-column: 2; grid-row: 1; }
  /* the frame grows until the photo and its caption stand exactly as tall as the copy beside them */
  .sp-frame { flex: 1; aspect-ratio: auto; min-height: 0; }
}
.stages p { color: var(--fg-2); margin: 0; max-width: 36em; }
.stages p + p { margin-top: 18px; }
.stages .why { font-family: var(--font-display); font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.3; letter-spacing: -.005em; color: var(--fg); margin-top: 24px; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr; gap: 36px; }
@media (min-width: 880px) { .contact { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 64px; } .contact h2 .accent { display: block; } }
.founding { color: var(--fg); opacity: .62; margin: 0 0 16px; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; background: var(--bg-2); color: var(--fg);
  border: 1px solid var(--line); border-radius: 10px; padding: 13px 16px; font: inherit; font-size: 15px;
}
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px;
}
.field textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form-note { margin: 0; text-transform: none; letter-spacing: -.005em; font-size: 13px; }
.form-msg { margin: 0; color: var(--fg); border: 1px solid var(--line); padding: 14px 16px; border-radius: 10px; font-size: 14px; line-height: 1.5; }
.form-msg.err { border-color: var(--fg); }
.field-error { margin: 0; font-size: 13px; letter-spacing: -.005em; color: var(--fg); }
.field [aria-invalid="true"] { border-color: var(--fg); }
.direct p { color: var(--fg-2); margin: 0 0 18px; max-width: 30em; }
.email { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 28px; }
.email code { font-family: var(--font-mono); font-size: 15px; color: var(--fg); user-select: all; -webkit-user-select: all; word-break: break-all; }
.copy { font: inherit; font-size: 12px; letter-spacing: .02em; background: transparent; border: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); color: var(--fg); padding: 6px 12px; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s; }
.copy:hover { background: var(--fg); color: var(--bg); }
.direct .meta { margin: 0; line-height: 2; }

/* footer */
.site-foot { border-top: 1px solid var(--line-2); }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding-block: 28px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.site-foot .sh-brand { text-transform: none; letter-spacing: -.02em; color: var(--fg); }
.site-foot a { text-decoration: none; color: var(--mute); }
.site-foot a:hover { color: var(--fg); }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.legal .wrap { padding-block: 0 28px; font-size: 12px; letter-spacing: -.005em; color: var(--mute); line-height: 1.7; }
.legal p { margin: 0; max-width: 70ch; }

/* ── skip link, current section, touch-sized targets ─────────────── */
.skip-link {
  position: fixed; top: calc(10px + env(safe-area-inset-top, 0px)); left: 10px; z-index: 50;
  padding: 10px 16px; border-radius: 999px; background: var(--fg); color: var(--bg);
  font-size: 14px; font-weight: 500; text-decoration: none;
  transform: translateY(-200%); transition: transform .2s var(--ease);
}
.skip-link:focus-visible { transform: none; outline-offset: 3px; }
#main-content:focus { outline: none; }
.sh-link[aria-current="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: color-mix(in srgb, var(--fg) 45%, transparent); }
@media (hover: none), (pointer: coarse) {
  .sh-theme { width: 44px; height: 44px; }
  .sh-navcta { padding: 12px 16px; }
  .sh-txt, .link-arrow { padding: 10px 0; }
  .copy { padding: 11px 16px; }
  .site-foot a { display: inline-block; padding: 10px 0; }
}

/* ── social-image mode (?og): the hero alone, no chrome ──────────── */
html.og .site-head, html.og .sh-nav, html.og .sh-hint { display: none; }
html.og .sh-root { min-height: 100vh; }
html.og .sh-content { padding-bottom: 44px; }

/* ── scroll reveal (resting state is visible; JS only adds the entrance) ── */
html.reveal-ready .reveal:not(.in) { opacity: 0; transform: translateY(14px); }
.reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sh-hint::before { animation: none; }
  .btn, .btn svg, .link-arrow svg, .work, .reveal, .sh-canvas, .sh-fallback, .sh-btn, .sh-btn svg, .sh-txt svg, .site-head { transition: none; }
  html.reveal-ready .reveal:not(.in) { opacity: 1; transform: none; }
}
