/* =========================================================
   TreyCaptures — Portfolio
   Sleek. Slim. Rebranded-Apple. 2026-04-21
   ========================================================= */

:root {
  --bg: #fbfbfa;
  --bg-2: #ffffff;
  --bg-3: #f4f4f3;
  --bg-dark: #1d1d1f;
  --bg-dark-2: #161618;

  --ink: #1d1d1f;
  --ink-mid: #424245;
  --ink-dim: #6e6e73;
  --ink-faint: #a1a1a6;
  --on-dark: #f5f5f7;
  --on-dark-dim: #a1a1a6;

  --line: #e5e5e7;
  --line-strong: #d2d2d7;
  --line-dark: #2a2a2c;

  --accent: #b08544;
  --accent-hover: #c39752;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --display: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, monospace;

  --max: 1280px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --radius: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --shadow-card: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --shadow-hover: 0 6px 14px rgba(0,0,0,.06), 0 28px 60px rgba(0,0,0,.12);
}

/* ---------- reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1,h2,h3,h4 { margin: 0; font-weight: 600; letter-spacing: -.022em; line-height: 1.08; }
p { margin: 0 0 .75em; }

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg); padding: .5rem 1rem; border-radius: 6px;
  z-index: 10000;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem var(--pad);
  background: rgba(251,251,250,0);
  transition: background .3s var(--ease), backdrop-filter .3s var(--ease), border-color .3s, padding .25s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(251,251,250,.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  padding-top: .55rem; padding-bottom: .55rem;
  border-bottom-color: var(--line);
}
.nav__brand {
  display: flex; align-items: center; gap: .55rem;
  font-weight: 600; font-size: .95rem;
  letter-spacing: -.01em;
  color: var(--ink);
}
.nav__brand img { width: 26px; height: 26px; object-fit: contain; }
.nav__links {
  display: flex; align-items: center; gap: 2rem;
  font-size: .8rem; letter-spacing: -.005em;
  color: var(--ink-mid);
  font-weight: 500;
}
.nav__links a { transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  background: var(--ink);
  color: var(--bg) !important;
  padding: .5rem 1rem;
  border-radius: 999px;
  font-weight: 500;
  transition: background .25s, transform .2s;
}
.nav__cta:hover { background: #000; color: #fff !important; transform: translateY(-1px); }
@media (max-width: 800px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.4rem;
  font-size: .92rem; font-weight: 500;
  letter-spacing: -.005em;
  border-radius: 999px;
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn--primary {
  background: var(--ink); color: var(--bg);
  border: 1px solid var(--ink);
}
.btn--primary:hover { background: #000; transform: translateY(-1px); }
.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-1px); }

/* ---------- shared ---------- */
.eyebrow {
  font-size: .8rem;
  color: var(--ink-dim); margin: 0 0 1rem;
  font-weight: 500;
  letter-spacing: -.005em;
}
.eyebrow span { color: var(--accent); margin-right: .4rem; font-weight: 600; }
.tag {
  display: inline-block;
  font-size: .72rem;
  color: var(--ink-dim);
  padding-bottom: .35rem;
  font-weight: 500;
  letter-spacing: -.005em;
}
.section-head { max-width: var(--max); margin: 0 auto 4rem; padding: 0 var(--pad); }
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 600; line-height: 1.04;
  color: var(--ink);
  letter-spacing: -.032em;
  max-width: 22ch;
}
.section-sub { color: var(--ink-mid); max-width: 60ch; margin-top: 1.25rem; font-size: 1.1rem; line-height: 1.5; }

/* ---------- HERO ---------- */
.hero {
  padding: clamp(7rem, 14vh, 10rem) 0 0;
  position: relative;
}
.hero__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: 78vh;
}
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; min-height: auto; padding-top: 1rem; }
}

.hero__title {
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 6.4rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.045em;
  margin: 0 0 1.5rem;
  color: var(--ink);
}
.hero__title em { font-style: normal; color: var(--accent); }
.hero__title .g { color: var(--accent); font-style: normal; font-family: inherit; }

.hero__lede {
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  color: var(--ink-mid);
  max-width: 50ch;
  margin-bottom: 2rem;
  line-height: 1.5;
}
.hero__lede strong { color: var(--ink); font-weight: 600; }

.hero__pov {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.2vw, 1.95rem);
  font-weight: 600;
  font-style: italic;
  color: var(--accent);
  letter-spacing: -.022em;
  margin: 0 0 2.4rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
  line-height: 1.2;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.4rem; }
.hero__signoff {
  margin: 1.6rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: .85rem;
  color: var(--ink-dim);
  letter-spacing: -.005em;
}
.hero__signoff strong { color: var(--ink); font-weight: 600; }

.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--line); padding-top: 1.6rem;
  max-width: 40rem;
}
.hero__stats li { display: flex; flex-direction: column; gap: .3rem; }
.hero__stats span {
  font-family: var(--display);
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -.03em;
}
.hero__stats small { font-size: .78rem; color: var(--ink-dim); font-weight: 500; }

.hero__media {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr .68fr;
  gap: .9rem;
  min-height: 540px;
}
@media (max-width: 980px) {
  .hero__media { min-height: 420px; }
}

.hero__photo {
  margin: 0; overflow: hidden; border-radius: var(--radius);
  position: relative;
  background: var(--bg-3);
}
.hero__photo img { width: 100%; height: 100%; transition: transform 1.6s var(--ease); }
.hero__photo:hover img { transform: scale(1.04); }
.hero__photo--lg {
  grid-column: 1 / span 2; grid-row: 1 / span 1; aspect-ratio: 16/10;
  background: linear-gradient(180deg, #2a2a2c 0%, #1d1d1f 100%);
}
.hero__photo--lg img { object-fit: contain; object-position: 50% 50%; }
.hero__photo--sm { grid-column: 1 / span 1; grid-row: 2 / span 1; }
.hero__photo--mark {
  grid-column: 2 / span 1; grid-row: 2 / span 1;
  background: var(--bg-dark);
  display: flex; align-items: center; justify-content: center;
}
.hero__photo--mark img { width: 78%; height: auto; object-fit: contain; padding: .9rem; filter: invert(1) brightness(1.1); }
.hero__photo--mark img:not([src*="Logo"]) { width: 100%; height: 100%; object-fit: cover; padding: 0; filter: none; }
.hero__photo--mark:has(img:not([src*="Logo"])) { background: var(--bg-3); }
.hero__photo--sm:has(img[src*="Logo"]) { background: var(--bg-dark); display: flex; align-items: center; justify-content: center; }
.hero__photo--sm img[src*="Logo"] { width: 78%; height: auto; object-fit: contain; padding: .9rem; filter: invert(1) brightness(1.1); }
.hero__photo--lg img[src*="Logo"] { object-fit: contain; max-width: 60%; max-height: 70%; margin: auto; padding: 1.5rem; filter: invert(1) brightness(1.1); }

/* ---------- marquee ---------- */
.marquee {
  margin-top: 6rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  background: var(--bg);
}
.marquee__track {
  display: inline-flex;
  gap: 2.4rem;
  white-space: nowrap;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--ink-mid);
  animation: scroll 70s linear infinite;
  font-weight: 500;
  letter-spacing: -.005em;
}
.marquee__track span:nth-child(odd) { color: var(--ink); }
.marquee__track span:nth-child(even) { color: var(--ink-faint); font-weight: 300; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- THESIS ---------- */
.thesis {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(7rem, 14vh, 11rem) var(--pad) clamp(5rem, 9vh, 7rem);
}
.thesis__head {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.035em;
  max-width: 24ch;
  margin: 0 0 5rem;
  color: var(--ink);
}
.thesis__head em { font-style: normal; color: var(--accent); }
.thesis__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  border-top: 1px solid var(--line);
  padding-top: 3rem;
}
@media (max-width: 800px) { .thesis__cols { grid-template-columns: 1fr; gap: 2.2rem; } }
.thesis__cols article h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  margin-bottom: .8rem;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -.018em;
}
.thesis__cols article p { color: var(--ink-mid); font-size: .98rem; line-height: 1.55; }
.thesis__cols article p em { color: var(--ink); font-style: normal; font-weight: 500; }

/* ---------- LENS ---------- */
.lens {
  padding: clamp(5rem, 10vh, 8rem) 0;
  background: var(--bg-3);
}
.lens__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 1rem;
}
@media (max-width: 980px) { .lens__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; } }
@media (max-width: 560px) { .lens__grid { grid-template-columns: 1fr; } }

.lens__card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg-dark);
  transition: transform .4s var(--ease);
}
.lens__card:hover { transform: translateY(-2px); }
.lens__card--tall { grid-row: span 2; }
.lens__card--wide { grid-column: span 2; }

.lens__img { width: 100%; height: 100%; }
.lens__img img { width: 100%; height: 100%; transition: transform 1.4s var(--ease); }
.lens__card:hover img { transform: scale(1.06); }

.lens__meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.85));
  transform: translateY(20%);
  opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.lens__card:hover .lens__meta { transform: translateY(0); opacity: 1; }
.lens__meta .tag { color: rgba(245,245,247,.72); }
.lens__meta h3 { font-family: var(--display); font-size: 1.1rem; margin-top: .25rem; color: #fff; font-weight: 600; letter-spacing: -.018em; }
.lens__meta p { color: rgba(245,245,247,.72); font-size: .85rem; margin: .35rem 0 0; }

/* ---------- BUILDS ---------- */
.builds { padding: clamp(6rem, 11vh, 9rem) 0; background: var(--bg); }
.builds__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
@media (max-width: 980px) { .builds__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .builds__grid { grid-template-columns: 1fr; } }

.build {
  background: var(--bg-2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-card);
}
.build:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.build figure {
  margin: 0; aspect-ratio: 16/10; overflow: hidden;
  background: var(--bg-3);
  display: flex; align-items: center; justify-content: center;
}
.build figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.build:hover figure img { transform: scale(1.04); }
.build > div { padding: 1.6rem 1.6rem 1.8rem; flex: 1; display: flex; flex-direction: column; }
.build h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  margin: .35rem 0 .55rem;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -.02em;
}
.build p { color: var(--ink-mid); font-size: .92rem; margin: 0; line-height: 1.5; }

/* ---------- WORK / EXECUTION ---------- */
.work {
  padding: clamp(6rem, 11vh, 9rem) 0;
  background: var(--bg-dark);
  color: var(--on-dark);
}
.work .section-head h2 { color: var(--on-dark); }
.work .section-sub { color: var(--on-dark-dim); }
.work .eyebrow { color: var(--on-dark-dim); }
.work .eyebrow span { color: var(--accent-hover); }
.work .tag { color: var(--on-dark-dim); }

.work__feature {
  max-width: var(--max); margin: 0 auto 4rem;
  padding: 0 var(--pad);
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 3rem; align-items: center;
}
@media (max-width: 900px) { .work__feature { grid-template-columns: 1fr; gap: 1.8rem; } }
.work__feature figure {
  margin: 0; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 16/11;
}
.work__feature figure img { width: 100%; height: 100%; transition: transform 2s var(--ease); }
.work__feature:hover figure img { transform: scale(1.03); }
.work__feature h3 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: .4rem 0 1rem; color: #fff;
  font-weight: 600;
  letter-spacing: -.028em;
  line-height: 1.1;
}
.work__feature p { color: var(--on-dark-dim); font-size: 1.05rem; margin-bottom: 1.2rem; line-height: 1.5; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li {
  font-size: .76rem;
  color: var(--on-dark-dim);
  padding: .42rem .9rem;
  border: 1px solid rgba(245,245,247,.18);
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: -.005em;
}

.work__grid {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .9rem;
}
@media (max-width: 1100px) { .work__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .work__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .work__grid { grid-template-columns: 1fr; } }

.work__card {
  background: var(--bg-dark-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  transition: transform .4s var(--ease);
}
.work__card:hover { transform: translateY(-3px); }
.work__img { aspect-ratio: 4/5; overflow: hidden; }
.work__img img { width: 100%; height: 100%; transition: transform 1.5s var(--ease); }
.work__card:hover .work__img img { transform: scale(1.06); }
.work__card .tag { display: block; padding: .8rem 1rem .15rem; }
.work__card h4 {
  font-family: var(--display);
  font-size: .98rem;
  padding: 0 1rem 1rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: -.012em;
}

/* reel */
.reel {
  max-width: var(--max);
  margin: 4rem auto 0;
  padding: 0 var(--pad);
}
.reel header { margin-bottom: 1.8rem; }
.reel header h3 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: .25rem 0 .6rem;
  color: #fff; font-weight: 600;
  letter-spacing: -.025em;
}
.reel header p { color: var(--on-dark-dim); max-width: 64ch; font-size: 1rem; }
.reel header code { font-family: var(--mono); color: var(--accent-hover); font-size: .85em; }
.reel__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .9rem;
  border-top: 1px solid rgba(245,245,247,.15);
  padding-top: 1.6rem;
}
@media (max-width: 900px) { .reel__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .reel__list { grid-template-columns: 1fr; } }
.reel__list li {
  padding: 1.1rem 1.3rem;
  background: var(--bg-dark-2);
  border-radius: var(--radius-sm);
  display: flex; flex-direction: column; gap: .35rem;
  transition: transform .3s var(--ease), background .3s;
  border: 1px solid transparent;
}
.reel__list li:hover { background: #232325; transform: translateY(-2px); border-color: rgba(245,245,247,.08); }
.reel__list strong { font-family: var(--display); font-size: 1rem; font-weight: 500; color: #fff; letter-spacing: -.015em; }
.reel__list span { font-size: .76rem; color: var(--on-dark-dim); font-weight: 400; }

/* ---------- WORKFLOW (editorial) ---------- */
.workflow {
  padding: clamp(6rem, 12vh, 10rem) 0 clamp(4rem, 8vh, 6rem);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.workflow::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 12% 0%, var(--bg-3) 0%, transparent 60%),
    radial-gradient(700px 400px at 88% 100%, var(--bg-3) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.workflow > * { position: relative; z-index: 1; }

.flow.flow--editorial {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  flex-direction: column;
  gap: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  counter-reset: flow;
}

.flow.flow--editorial .flow__step {
  display: grid;
  grid-template-columns: clamp(7rem, 18vw, 14rem) 1fr clamp(6rem, 14vw, 12rem);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2rem, 5vh, 3.5rem) 0;
  border-top: 1px solid var(--line);
  border-right: none;
  background: transparent;
  position: relative;
  transition: padding-left .5s var(--ease);
}
.flow.flow--editorial .flow__step:last-child { border-bottom: 1px solid var(--line); }
.flow.flow--editorial .flow__step:hover { background: transparent; padding-left: 1.5rem; }
.flow.flow--editorial .flow__step::after { display: none; }
.flow.flow--editorial .flow__step::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--accent);
  transition: width .5s var(--ease);
}
.flow.flow--editorial .flow__step:hover::before { width: 4px; }

/* asymmetric stagger — editorial wave */
.flow.flow--editorial .flow__step[data-step="02"] { padding-left: 4%; }
.flow.flow--editorial .flow__step[data-step="03"] { padding-left: 8%; }
.flow.flow--editorial .flow__step[data-step="04"] { padding-left: 4%; }
.flow.flow--editorial .flow__step[data-step="05"] { padding-left: 0; }
.flow.flow--editorial .flow__step[data-step="02"]:hover { padding-left: calc(4% + 1.5rem); }
.flow.flow--editorial .flow__step[data-step="03"]:hover { padding-left: calc(8% + 1.5rem); }
.flow.flow--editorial .flow__step[data-step="04"]:hover { padding-left: calc(4% + 1.5rem); }
@media (max-width: 800px) {
  .flow.flow--editorial .flow__step,
  .flow.flow--editorial .flow__step[data-step="02"],
  .flow.flow--editorial .flow__step[data-step="03"],
  .flow.flow--editorial .flow__step[data-step="04"],
  .flow.flow--editorial .flow__step[data-step="05"] { padding-left: 0; }
  .flow.flow--editorial .flow__step { grid-template-columns: 1fr; gap: .6rem; }
}

.flow.flow--editorial .flow__num {
  font-family: var(--display);
  font-size: clamp(4rem, 11vw, 9rem);
  font-weight: 700;
  letter-spacing: -.06em;
  color: var(--ink-faint);
  line-height: .85;
  margin: 0;
  display: block;
  transition: color .5s var(--ease), transform .5s var(--ease);
  font-feature-settings: "tnum";
}
.flow.flow--editorial .flow__step:hover .flow__num {
  color: var(--ink);
  transform: translateX(-.5rem);
}

.flow__icon { display: none; }

.flow.flow--editorial .flow__body { display: block; }
.flow.flow--editorial .flow__step h3 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -.035em;
  color: var(--ink);
  line-height: 1;
  margin: 0 0 .8rem;
}
.flow.flow--editorial .flow__step p {
  font-size: 1.02rem;
  color: var(--ink-mid);
  margin: 0;
  max-width: 44ch;
  line-height: 1.5;
}

.flow.flow--editorial .flow__verb {
  display: block;
  text-align: right;
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  color: var(--accent);
  letter-spacing: -.01em;
  opacity: .7;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.flow.flow--editorial .flow__step:hover .flow__verb {
  opacity: 1;
  transform: translateX(-.4rem);
}
@media (max-width: 800px) {
  .flow.flow--editorial .flow__verb { text-align: left; }
}

.flow__stack {
  max-width: var(--max);
  margin: 3rem auto 0;
  padding: 0 var(--pad);
}
.flow__stack h3 {
  font-size: .8rem;
  color: var(--ink-dim);
  margin-bottom: 1rem;
  font-weight: 500;
}
.flow__chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.flow__chips span {
  font-size: .82rem;
  padding: .5rem 1rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  transition: border-color .25s, background .25s;
  font-weight: 500;
  letter-spacing: -.005em;
}
.flow__chips span:hover { border-color: var(--ink); background: var(--bg); }

/* ---------- LAB / SOFTWARE ---------- */
.lab {
  padding: clamp(6rem, 11vh, 9rem) 0;
  background: var(--bg-dark);
  color: var(--on-dark);
}
.lab .section-head h2 { color: var(--on-dark); }
.lab .section-sub { color: var(--on-dark-dim); }
.lab .eyebrow { color: var(--on-dark-dim); }

.lab__grid {
  max-width: var(--max); margin: 3rem auto 0;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
@media (max-width: 1100px) { .lab__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .lab__grid { grid-template-columns: 1fr; } }

.lab__card {
  background: var(--bg-dark-2);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
  transition: transform .4s var(--ease), box-shadow .4s;
  border: 1px solid var(--line-dark);
}
.lab__card:hover { transform: translateY(-4px); box-shadow: 0 12px 48px rgba(0,0,0,.4); }
.lab__card--featured { grid-column: span 2; }
@media (max-width: 1100px) { .lab__card--featured { grid-column: span 1; } }

.lab__img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-dark-2);
}
.lab__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.lab__card:hover .lab__img img { transform: scale(1.03); }

.lab__img--dark {
  display: flex; align-items: center; justify-content: center;
  background: #0d0d0f;
}

.lab__term {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--accent);
  text-align: center;
  margin: 0;
  line-height: 1.8;
  letter-spacing: .06em;
  white-space: pre;
  opacity: .9;
}

.lab__badge {
  position: absolute; top: .85rem; right: .85rem;
  background: #30d158;
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .28rem .6rem;
  border-radius: 999px;
}

.lab__body {
  padding: 1.4rem 1.6rem 1.8rem;
  flex: 1; display: flex; flex-direction: column;
}
.lab__body .tag { color: var(--on-dark-dim); margin-bottom: .1rem; }
.lab__body h3 {
  font-family: var(--display);
  font-size: 1.18rem;
  margin: .3rem 0 .5rem;
  color: var(--on-dark);
  font-weight: 600;
  letter-spacing: -.02em;
}
.lab__body p { color: var(--on-dark-dim); font-size: .88rem; line-height: 1.55; margin-bottom: .9rem; }

.lab__chips {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin-top: auto;
}
.lab__chips span {
  font-size: .7rem;
  color: var(--ink-faint);
  padding: .28rem .65rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-weight: 500;
  font-family: var(--mono);
  letter-spacing: .025em;
}

/* ---------- BRIDGES (section connectors) ---------- */
.bridge {
  background: var(--bg);
  text-align: center;
  padding: clamp(3rem, 6vh, 5rem) var(--pad);
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-dim);
  letter-spacing: -.012em;
  position: relative;
}
.bridge span {
  display: inline-flex; align-items: center; gap: 1.2rem;
}
.bridge span::before, .bridge span::after {
  content: "";
  display: inline-block;
  width: clamp(2rem, 6vw, 5rem);
  height: 1px;
  background: var(--line-strong);
}

/* ---------- BEYOND ---------- */
.beyond { padding: clamp(6rem, 11vh, 9rem) 0; background: var(--bg); }
.beyond__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 1.4rem;
}
@media (max-width: 800px) { .beyond__grid { grid-template-columns: 1fr; } }

.beyond__card {
  padding: 2.4rem;
  background: var(--bg-2);
  border-radius: var(--radius);
  transition: transform .4s var(--ease), box-shadow .4s;
  box-shadow: var(--shadow-card);
}
.beyond__card--solo { grid-column: 1 / -1; max-width: 64rem; }
.beyond__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.beyond__card h3 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  margin: .5rem 0 .9rem;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.12;
}
.beyond__card p { color: var(--ink-mid); margin-bottom: 1.2rem; line-height: 1.55; }
.beyond__card code {
  font-family: var(--mono); color: var(--ink);
  font-size: .85em;
  background: var(--bg-3);
  padding: 1px 6px;
  border-radius: 4px;
}
.beyond__card .chips li { color: var(--ink-mid); border-color: var(--line-strong); }

/* ---------- PROOF / CLOSING ---------- */
.proof {
  background: var(--bg-dark);
  color: var(--on-dark);
  padding: clamp(6rem, 12vh, 9rem) 0;
  border-top: 1px solid var(--line-dark);
}
.proof-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.proof .eyebrow { color: var(--on-dark-dim); }
.proof__stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem 2.5rem;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: 2.5rem 0;
  margin-bottom: 3rem;
}
@media (max-width: 980px) { .proof__stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .proof__stats { grid-template-columns: repeat(2, 1fr); } }
.proof__stats li { display: flex; flex-direction: column; gap: .4rem; }
.proof__stats span {
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 600;
  color: var(--on-dark);
  line-height: 1;
  letter-spacing: -.04em;
}
.proof__stats small {
  font-size: .78rem;
  color: var(--on-dark-dim);
  font-weight: 500;
  letter-spacing: -.005em;
}
.proof__claim {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.12;
  color: var(--on-dark);
  margin: 0;
  max-width: 22ch;
}
.proof__claim span { color: var(--accent-hover); }

/* ---------- CONTACT ---------- */
.contact {
  background: var(--bg);
  text-align: center;
  border-top: 1px solid var(--line);
}
.contact-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(6rem, 14vh, 11rem) var(--pad);
}
.contact h2 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 7.5vw, 5.6rem);
  font-weight: 600;
  line-height: 1.02;
  margin: 0 auto 1.2rem;
  max-width: 18ch;
  color: var(--ink);
  letter-spacing: -.04em;
}
.contact__lede { color: var(--ink-mid); max-width: 48ch; margin: 0 auto 2.5rem; font-size: 1.1rem; line-height: 1.5; }
.contact__row { display: inline-flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }

/* ---------- INQUIRY FORM ---------- */
.inquiry {
  max-width: 560px;
  margin: 2.4rem auto 0;
  text-align: left;
  display: grid;
  gap: 1.1rem;
}
.inquiry__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 540px) { .inquiry__row { grid-template-columns: 1fr; } }
.inquiry__field { display: flex; flex-direction: column; gap: .4rem; }
.inquiry__field > span {
  font-size: .78rem;
  color: var(--ink-dim);
  font-weight: 500;
  letter-spacing: -.005em;
}
.inquiry__field input,
.inquiry__field select,
.inquiry__field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: .75rem .9rem;
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}
.inquiry__field textarea { resize: vertical; min-height: 120px; line-height: 1.5; font-family: inherit; }
.inquiry__field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%236e6e73' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  padding-right: 2.4rem;
}
.inquiry__field input:focus,
.inquiry__field select:focus,
.inquiry__field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(29,29,31,.08);
}
.inquiry__field input:invalid:not(:placeholder-shown),
.inquiry__field textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(196,61,54,.5);
}

.inquiry__actions {
  display: flex; align-items: center; gap: 1rem;
  margin-top: .4rem;
  flex-wrap: wrap;
}
.inquiry__or { font-size: .85rem; color: var(--ink-dim); }
.inquiry__or a { color: var(--ink); border-bottom: 1px solid var(--line-strong); transition: border-color .2s; }
.inquiry__or a:hover { border-color: var(--ink); }

.inquiry__status {
  font-size: .9rem;
  color: var(--ink-mid);
  margin: 0;
  padding: .8rem 1rem;
  background: var(--bg-3);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 2rem var(--pad);
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  color: var(--ink-dim);
  font-size: .82rem;
  font-weight: 500;
}
.foot > div { display: flex; align-items: center; gap: .65rem; }
.foot img { width: 24px; height: 24px; object-fit: contain; }

/* ---------- LIGHTBOX (images + videos) ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10,10,12,.94);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(2rem, 6vh, 5rem) clamp(1.5rem, 4vw, 4rem);
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.lightbox.is-open { opacity: 1; }
.lightbox__inner {
  max-width: min(1400px, 92vw);
  max-height: 86vh;
  display: flex; align-items: center; justify-content: center;
  width: 100%;
}
.lightbox__inner img,
.lightbox__inner video {
  max-width: 100%;
  max-height: 86vh;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 80px rgba(0,0,0,.6);
  background: #000;
}
.lightbox__inner video { width: 100%; outline: none; }
.lightbox__close {
  position: fixed;
  top: clamp(1rem, 2vh, 1.6rem);
  right: clamp(1rem, 2vw, 1.6rem);
  width: 46px; height: 46px;
  background: rgba(255,255,255,.08);
  color: #fff;
  border: none; border-radius: 50%;
  font-size: 1.6rem; line-height: 1;
  cursor: pointer;
  transition: background .2s, transform .2s;
  z-index: 1;
  font-family: var(--display);
  font-weight: 300;
}
.lightbox__close:hover { background: rgba(255,255,255,.18); transform: scale(1.05); }
.lightbox__close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* play indicator on reel items */
.reel__list li[data-video] { position: relative; padding-right: 3rem; }
.reel__list li[data-video]::after {
  content: "";
  position: absolute;
  top: 50%; right: 1.2rem;
  width: 0; height: 0;
  border-left: 9px solid var(--accent-hover);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  transform: translateY(-50%);
  transition: transform .25s var(--ease);
}
.reel__list li[data-video]:hover::after { transform: translateY(-50%) translateX(2px); }
.reel__list li[data-video]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal--d1 { transition-delay: .08s; }
.reveal--d2 { transition-delay: .16s; }
.reveal--d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* ============= IN-BROWSER EDITOR ============= */
.tc-editor {
  position: fixed; bottom: 18px; right: 18px; z-index: 99999;
  display: flex; gap: .5rem; align-items: center;
  padding: .5rem .75rem;
  background: rgba(29,29,31,.94);
  color: #fbfbfa;
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .78rem;
}
.tc-editor button {
  background: #fbfbfa; color: #1d1d1f;
  border: 0; border-radius: 999px;
  padding: .35rem .9rem;
  font: inherit; font-weight: 600;
  cursor: pointer; line-height: 1;
}
.tc-editor button:hover { background: #b08544; color: #fff; }
.tc-editor__hint { opacity: .82; padding-right: .25rem; }
.tc-edit-on {
  outline: 1px dashed rgba(176,133,68,.85);
  outline-offset: 3px;
  cursor: text;
  border-radius: 2px;
}
.tc-edit-on:focus {
  outline: 2px solid #b08544;
  background: rgba(176,133,68,.06);
}

/* ============= WORK FEATURE GALLERY ============= */
.work__gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .6rem;
  margin: 1.5rem auto 3rem;
  max-width: 100%;
}
.work__gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3/4;
  border-radius: 10px;
  background: #1d1d1f;
}
.work__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  display: block;
  transition: transform .8s var(--ease, cubic-bezier(.2,.7,.2,1));
}
.work__gallery figure:hover img { transform: scale(1.05); }
.work__gallery__zoom img {
  object-position: 50% 28%;
  transform: scale(1.15);
}
.work__gallery__zoom:hover img { transform: scale(1.22); }
@media (max-width: 960px) {
  .work__gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .work__gallery { grid-template-columns: repeat(2, 1fr); }
}
