/* ==========================================================================
   BRIX ORIGINALS — STYLES
   Brand colors and fonts live in :root below. Change them there.
   Fonts come from the Typekit link in each page's <head>.
   ========================================================================== */

:root {
  --black: #000000;
  --ink: #0a0d0c;
  --ink-2: #101514;
  --white: #ffffff;
  --sage: #a3d4b4;
  --sage-light: #cbe9d1;
  --sage-pale: #ddf2de;
  --line: rgba(255, 255, 255, .16);
  --text-dim: rgba(255, 255, 255, .68);

  --font-head: "area-normal", "Helvetica Neue", Arial, sans-serif;
  --font-body: "neue-haas-grotesk-display", "Helvetica Neue", Arial, sans-serif;
  --font-wide: "area-extended", "area-normal", "Helvetica Neue", Arial, sans-serif;

  --pad: max(clamp(20px, 4vw, 64px), calc(10vw - 96px));   /* side margin: 64px max on normal screens, grows gently on very wide ones */
  --nav-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--white);
  font-family: var(--font-body); font-weight: 400; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  animation: pageIn .6s var(--ease) both;
}
body.leaving { animation: pageOut .28s ease forwards; }
@keyframes pageIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes pageOut { from { opacity: 1; } to { opacity: 0; } }

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 700; line-height: 1.05; letter-spacing: -.01em; }
p { margin: 0; }

.eyebrow { font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--sage); }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="2"] { transition-delay: .12s; }
[data-reveal="3"] { transition-delay: .24s; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad);
  transition: background .4s ease, backdrop-filter .4s ease, height .4s ease;
  animation: fadeDown 1.1s var(--ease) .15s both;
}
.nav.solid { background: rgba(8, 11, 10, .74); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); height: 68px; }
.nav__logo img { height: 46px; width: auto; transition: height .4s ease; }
.nav.solid .nav__logo img { height: 38px; }
.nav__links { display: flex; gap: clamp(20px, 3.2vw, 48px); }
.nav__links a { position: relative; font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; padding: 8px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 2px; height: 2px; width: 100%; background: var(--sage); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

/* ---------- Hero (pure full-screen video) ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; display: grid; place-items: center; text-align: center; overflow: hidden; }
.hero__video, .hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__video { object-fit: cover; }
/* Embed is 16:9; sized so it always covers the hero and crops the overflow */
.hero__embed {
  position: absolute; top: 50%; left: 50%; border: 0; pointer-events: none;
  width: max(100vw, calc(100svh * 16 / 9)); height: max(100svh, calc(100vw * 9 / 16));
  transform: translate(-50%, -50%);
}
.hero__shade { background: rgba(0, 0, 0, .18); }
.hero__content { position: relative; padding: 0 var(--pad); max-width: none; }
.hero__title { font-size: clamp(40px, 7.4vw, 118px); text-transform: uppercase; letter-spacing: -.02em; text-wrap: balance; animation: rise 1.4s var(--ease) .5s both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- Mission ---------- */
.mission { position: relative; padding: clamp(80px, 11vw, 170px) var(--pad) clamp(70px, 9vw, 140px); }
.mission > * { position: relative; z-index: 1; }
.mission__bg { position: absolute; inset: 0; z-index: 0 !important; overflow: hidden; }
.mission__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mission__bg span { position: absolute; inset: 0; background: #000; }
.dot { color: var(--sage); }
.rule { border: 0; height: 1px; background: var(--sage); opacity: .55; margin: 0 var(--pad) clamp(60px, 7vw, 110px); }
.mission h2 { font-size: clamp(27px, 4.2vw, 64px); letter-spacing: -.02em; max-width: 16ch; }
.mission p { margin-top: clamp(24px, 3vw, 44px); max-width: 52ch; font-size: clamp(19px, 1.7vw, 27px); line-height: 1.4; color: rgba(255,255,255,.86); }

/* ---------- Section heads ---------- */
.section { padding: 0 0 clamp(70px, 8vw, 130px); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 0 var(--pad); margin-bottom: 28px; }
.section__title { font-size: clamp(27px, 3.7vw, 54px); }
.section__link { font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); }
.section__link:hover { color: var(--white); }

/* ---------- Video cards ---------- */
.card { position: relative; display: block; overflow: hidden; background: var(--ink-2); cursor: pointer; text-align: left; width: 100%; }
.card--h { aspect-ratio: 16 / 9; }
.card--v { aspect-ratio: 9 / 16; }
.card__live { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity .5s ease; pointer-events: none; background: #0c1110; }
.card__live.on { opacity: 1; }
.card__live iframe { position: absolute; top: 50%; left: 50%; border: 0; width: 100%; height: 100%; transform: translate(-50%, -50%) scale(1.02); }
.card--plain .card__live { filter: brightness(.8); transition: filter .5s ease; }
.card--plain:hover .card__live { filter: brightness(1.05); }
.card--plain { background: #0c1110; box-shadow: inset 0 0 0 1px var(--line); }
.card__thumb, .card__preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__preview { opacity: 0; transition: opacity .35s ease; }
.card.previewing .card__preview { opacity: 1; }
.card__thumb, .card__bg { transition: transform .7s var(--ease), filter .5s ease; filter: brightness(.7); transform: scale(1); will-change: transform, filter; }
.card__bg { position: absolute; inset: 0; background: linear-gradient(135deg, #151c1a, #0c1110); filter: brightness(1); }
.card:hover .card__thumb, .card:focus-visible .card__thumb { transform: scale(1.07); filter: brightness(1.02); }
.card:hover .card__bg, .card:focus-visible .card__bg { transform: scale(1.07); filter: brightness(1.9); }
@media (hover: none) { .card__thumb { filter: none; } }
.card__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,0) 42%, rgba(0,0,0,0) 60%, rgba(0,0,0,.5) 100%); }
.card--plain .card__shade { background: none; }
.card__text { position: absolute; top: 0; left: 0; right: 0; padding: clamp(16px, 1.8vw, 30px); display: block; }
.card__name { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(17px, 1.7vw, 28px); line-height: 1.1; }
.card__sub { display: block; margin-top: 6px; font-weight: 400; font-size: clamp(14px, 1.2vw, 19px); color: rgba(255,255,255,.82); }
.card--playing iframe, .card--playing video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.card__tags { position: absolute; left: clamp(16px, 1.8vw, 30px); bottom: clamp(14px, 1.6vw, 26px); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-light); }

/* Home: six chosen videos (2 x 3), vertical row of five */
.work-grid, .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.vrow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.more { text-align: center; padding: clamp(40px, 5vw, 70px) var(--pad) 0; }
.btn-outline {
  display: inline-block; border: 1.5px solid var(--white); border-radius: 999px; padding: 20px 46px; line-height: 1; cursor: pointer; background: transparent; color: var(--white);
  font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: .2em; text-transform: uppercase;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.btn-outline:hover { background: var(--sage); border-color: var(--sage); color: var(--black); }

/* ---------- Logo marquee ---------- */
.marquee {
  overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(24px, 3vw, 34px) 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: scroll 38s linear infinite; }
.marquee__item { flex: none; height: 84px; padding: 0 clamp(28px, 3.8vw, 60px); display: flex; align-items: center; font-family: var(--font-wide); font-weight: 700; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.55); white-space: nowrap; }
.marquee__item img { height: calc(56px * var(--ls, 1)); width: auto; max-width: none; opacity: .75; }
@media (max-width: 700px) { .marquee__item { height: 62px; } .marquee__item img { height: calc(40px * var(--ls, 1)); } }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Quotes over the fading image ---------- */
.proof { position: relative; overflow: hidden; padding: clamp(150px, 22vh, 260px) var(--pad) clamp(110px, 16vh, 200px); }
.proof__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.proof::before, .proof::after { content: ""; position: absolute; left: 0; right: 0; pointer-events: none; z-index: 1; }
.proof::before { top: 0; height: 38%; background: linear-gradient(var(--ink), transparent); }
.proof::after  { bottom: 0; height: 55%; background: linear-gradient(transparent, var(--ink)); }
.proof__shade { position: absolute; inset: 0; background: rgba(0,0,0,.42); }
.proof__inner { position: relative; z-index: 2; max-width: 1500px; margin: 0 auto; }
.proof h2 { text-align: center; font-size: clamp(24px, 3.4vw, 51px); max-width: 18ch; margin: 0 auto clamp(48px, 6vw, 90px); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3.4vw, 56px); }
.quote { margin: 0; text-align: center; }
.stars { display: flex; justify-content: center; gap: 6px; margin-bottom: 18px; }
.stars svg { width: 22px; height: 22px; fill: var(--sage); }
.quote p { font-size: clamp(17px, 1.45vw, 23px); line-height: 1.45; }

/* ---------- Let's talk ---------- */
.cta { background: var(--sage-pale); color: var(--black); text-align: center; padding: clamp(90px, 12vw, 180px) var(--pad); }
.cta .dot { color: #4f9a6c; }
.cta h2 { font-size: clamp(32px, 5.9vw, 93px); text-transform: uppercase; letter-spacing: -.02em; }
.btn {
  display: inline-block; margin-top: 44px; font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: .16em; text-transform: uppercase;
  padding: 22px 46px; border-radius: 999px; background: var(--black); color: var(--white); border: 1px solid var(--black);
  transition: background .35s ease, color .35s ease;
}
.btn:hover { background: transparent; color: var(--black); }
.btn--sage { background: var(--sage); color: var(--black); border-color: var(--sage); }
.btn--sage:hover { background: transparent; color: var(--sage); }

/* ---------- Footer ---------- */
.footer { background: var(--black); padding: clamp(56px, 7vw, 96px) var(--pad) 36px; }
.footer__signoff { font-family: var(--font-head); font-weight: 700; font-size: clamp(28px, 4.6vw, 70px); color: var(--sage); letter-spacing: -.02em; line-height: 1; margin-bottom: clamp(44px, 6vw, 90px); text-transform: uppercase; }
.footer__top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; align-items: flex-start; }
.footer__logo img { height: 56px; width: auto; }
.footer__cols { display: flex; gap: clamp(36px, 7vw, 110px); flex-wrap: wrap; }
.footer h4 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--sage); margin-bottom: 16px; }
.footer__col a { display: block; padding: 4px 0; color: var(--text-dim); transition: color .3s ease; }
.footer__col a:hover { color: var(--white); }
.social { display: flex; gap: 12px; }
.footer__col .social a { display: grid; padding: 0; }
.social a { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .3s ease, border-color .3s ease, color .3s ease; color: var(--white); }
.social a:hover { background: var(--sage); border-color: var(--sage); color: var(--black); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.footer__bottom { margin-top: clamp(48px, 6vw, 88px); padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: rgba(255,255,255,.45); }

/* ---------- Inner pages ---------- */
.page-head { padding: calc(var(--nav-h) + clamp(50px, 8vw, 120px)) var(--pad) clamp(30px, 4vw, 60px); }
.page-head h1 { font-size: clamp(28px, 4.5vw, 72px); text-transform: uppercase; letter-spacing: -.025em; }
.page-head p { margin-top: 22px; max-width: 52ch; color: var(--text-dim); font-size: clamp(17px, 1.4vw, 22px); }

/* Filters */
.filters { display: flex; gap: 10px; flex-wrap: wrap; padding: 0 var(--pad); margin-bottom: 30px; }
.filters--end { justify-content: center; }
.filter { font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-dim); transition: background .3s ease, color .3s ease, border-color .3s ease; }
.filter:hover { border-color: var(--sage); color: var(--white); }
.filter.active { background: var(--sage); border-color: var(--sage); color: var(--black); }

/* Portfolio grid: full-bleed, 3 columns */
.grid { grid-template-columns: repeat(3, 1fr); }
.grid .card { animation: tileIn .8s var(--ease) both; }
@keyframes tileIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.loadmore { text-align: center; padding: 60px var(--pad) 0; }
.loadmore .btn-outline { cursor: pointer; }
.empty { padding: 80px var(--pad); text-align: center; color: var(--text-dim); }
body[data-page="portfolio"] .page-head { text-align: center; }
body[data-page="portfolio"] .page-head p { margin-left: auto; margin-right: auto; }
.vscroll { display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--pad); scroll-padding: 0 var(--pad); }
.vscroll::-webkit-scrollbar { display: none; }
.vscroll .card { flex: 0 0 clamp(170px, 19vw, 280px); scroll-snap-align: start; }
.varrows { display: flex; justify-content: center; gap: 14px; margin-top: 26px; }
.varrows button { width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid var(--white); background: transparent; color: var(--white); display: grid; place-items: center; cursor: pointer; transition: background .3s ease, color .3s ease, border-color .3s ease; }
.varrows button:hover { background: var(--sage); border-color: var(--sage); color: var(--black); }
.varrows svg { width: 22px; height: 22px; }

/* ---------- Popup player ---------- */
.modal { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.88); display: grid; place-items: center; padding: 56px 20px 20px; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s; }
.modal.open { opacity: 1; visibility: visible; }
.modal__close { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--white); background: transparent; color: var(--white); display: grid; place-items: center; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.modal__close:hover { background: var(--sage); border-color: var(--sage); color: var(--black); }
.modal__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.modal__box { width: min(1180px, 100%); }
.modal__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.modal__box--v { width: min(calc((100svh - 130px) * 9 / 16), 100%); }
.modal__box--v .modal__frame { aspect-ratio: 9 / 16; }
.modal__frame iframe, .modal__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal__title { margin-top: 14px; font-family: var(--font-head); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 14px; color: var(--text-dim); text-align: center; }
.portfolio-verticals { padding-top: clamp(80px, 10vw, 160px); }

/* About */
.about-intro { padding: 0 var(--pad) clamp(40px, 5vw, 80px); max-width: 1100px; }
.about-intro p { font-size: clamp(22px, 2.4vw, 38px); line-height: 1.25; font-family: var(--font-head); font-weight: 700; letter-spacing: -.01em; }
.about-list { padding: 0 var(--pad) clamp(70px, 9vw, 140px); }
.about-list__row { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(20px, 5vw, 90px); padding: 30px 0; border-top: 1px solid var(--line); }
.about-list__row h3 { font-size: clamp(22px, 2.4vw, 36px); }
.about-list__row p { font-size: clamp(17px, 1.4vw, 22px); color: rgba(255,255,255,.84); max-width: 52ch; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 7vw, 120px); padding: 0 var(--pad) clamp(80px, 10vw, 150px); }
.contact__info .eyebrow { display: block; margin-bottom: 14px; }
.contact__info a.big { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: clamp(22px, 2.6vw, 40px); border-bottom: 2px solid var(--sage); padding-bottom: 4px; word-break: break-all; }
.contact__info .social { margin-top: 30px; }
.reach { display: flex; align-items: center; gap: 16px; margin-top: 20px; font-family: var(--font-head); font-weight: 700; font-size: clamp(18px, 1.9vw, 28px); word-break: break-word; }
.reach .ico { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--sage); color: var(--ink); display: grid; place-items: center; transition: transform .3s ease, background .3s ease; }
.reach .ico svg { width: 24px; height: 24px; fill: currentColor; }
.reach:hover .ico { transform: scale(1.08); background: var(--sage-light); }
.reach--sm { font-size: clamp(16px, 1.4vw, 20px); }
.form { display: grid; gap: 22px; }
.field label { display: block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--sage); margin-bottom: 8px; font-family: var(--font-head); font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 18px; color: var(--white); background: rgba(255,255,255,.06); border: 1.5px solid rgba(163,212,180,.45); padding: 14px 16px; border-radius: 12px; outline: none; transition: border-color .3s ease, background .3s ease; }
.field select option { color: #000; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sage); background: rgba(163,212,180,.1); }
.form .btn { justify-self: start; margin-top: 10px; background: var(--sage); color: var(--black); border-color: var(--sage); cursor: pointer; }
.form .btn:hover { background: transparent; color: var(--sage); }
.form__note { min-height: 1.4em; color: var(--sage-light); }
.form__note.err { color: #ffb4a8; }
.hp { position: absolute; left: -9999px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .vrow { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  :root { --nav-h: 72px; }
  .nav__logo img { height: 38px; }
  .nav__links a { font-size: 12px; letter-spacing: .1em; }
  .quotes { grid-template-columns: 1fr; }
  .work-grid, .grid { grid-template-columns: 1fr; }
  .vrow { grid-template-columns: repeat(2, 1fr); }
  .vrow .card:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 2px); margin: 0 auto; }
  .contact, .about-list__row { grid-template-columns: 1fr; }
  .footer__top { flex-direction: column; }
}
@media (hover: none) { .card__preview { display: none; } }

/* ---------- Brand break: logo divider after the verticals ---------- */
.brandbreak { position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(20px, 4vw, 70px); padding: clamp(90px, 14vw, 220px) var(--pad); overflow: hidden; }
.brandbreak::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(90vw, 1000px); aspect-ratio: 2 / 1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(163,212,180,.20), rgba(163,212,180,0) 70%); animation: breathe 7s ease-in-out infinite; pointer-events: none; }
.brandbreak__rule { position: relative; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(163,212,180,0), var(--sage)); transform: scaleX(0); transform-origin: right center; transition: transform 1.4s var(--ease); }
.brandbreak__rule:last-child { background: linear-gradient(270deg, rgba(163,212,180,0), var(--sage)); transform-origin: left center; }
.brandbreak.in .brandbreak__rule { transform: none; }
.brandbreak__logo { position: relative; flex: none; width: clamp(130px, 17vw, 270px); height: auto; opacity: 0; transform: scale(.92); transition: opacity 1.2s ease .3s, transform 1.4s var(--ease) .3s; filter: drop-shadow(0 0 26px rgba(163,212,180,.35)); }
.brandbreak.in .brandbreak__logo { opacity: 1; transform: none; }
@keyframes breathe { 0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(.94); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .brandbreak::before { animation: none; } }

/* ---------- About page ---------- */
.a-hero { position: relative; height: min(36vh, 340px); min-height: 230px; display: grid; place-items: center; overflow: hidden; background: #000; }
.a-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
iframe.a-hero__video { top: 50%; left: 50%; inset: auto; width: max(100vw, calc(36vh * 16 / 9)); height: max(56.25vw, 36vh); transform: translate(-50%, -50%); pointer-events: none; }
.a-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.35) 60%, rgba(0,0,0,.7)); }
.a-hero h1 { position: relative; white-space: nowrap; font-size: clamp(14px, 5.3vw, 92px); letter-spacing: -.02em; text-align: center; padding: 0 var(--pad); }

.a-story { padding: clamp(60px, 8vw, 130px) var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: center; }
.a-label { display: block; margin-bottom: clamp(18px, 2vw, 30px); font-family: var(--font-head); font-weight: 700; font-size: clamp(16px, 1.5vw, 22px); letter-spacing: .22em; text-transform: uppercase; color: var(--sage); }
.a-story__body p { font-size: clamp(18px, 1.55vw, 24px); line-height: 1.5; color: rgba(255,255,255,.88); margin-bottom: 1.2em; max-width: 56ch; }
.a-collage { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(var(--rows, 6), 1fr); gap: clamp(8px, 1vw, 14px); width: 100%; }
.a-collage__item { border: 1px solid var(--sage); overflow: hidden; display: grid; place-items: center; color: rgba(163,212,180,.7); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; background: rgba(163,212,180,.04); min-height: 0; }
.a-collage__item img { width: 100%; height: 100%; object-fit: cover; }

.a-founder { padding: clamp(60px, 8vw, 130px) var(--pad); border-top: 1px solid var(--line); }
.a-founder__inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.a-photo { position: relative; aspect-ratio: 3 / 4; background: linear-gradient(135deg, #151c1a, #0c1110); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; color: var(--text-dim); overflow: hidden; }
.a-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.a-founder h2 { font-size: clamp(34px, 4.4vw, 68px); letter-spacing: -.02em; }
.a-founder__title { margin: 12px 0 clamp(20px, 2.6vw, 36px); font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--sage); }
.a-founder__text p { font-size: clamp(18px, 1.5vw, 23px); line-height: 1.5; color: rgba(255,255,255,.9); max-width: 48ch; }

/* Some Fun Facts: the section is tall; the stage inside sticks while you scroll through the years */
.a-fun { position: relative; border-top: 1px solid var(--line); }
.a-fun__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; padding: calc(var(--nav-h) + 12px) var(--pad) 24px; display: flex; flex-direction: column; overflow: hidden; }
.a-fun__title { text-align: center; font-size: clamp(28px, 3.6vw, 56px); letter-spacing: -.02em; }
.a-rail { position: relative; display: flex; justify-content: space-between; max-width: 900px; width: 100%; margin: clamp(14px, 2.4vh, 28px) auto 0; padding-top: 18px; }
.a-rail__line { position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--line); }
.a-rail__line i { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: var(--sage); transition: width .5s var(--ease); }
.a-rail__yr { position: relative; font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .1em; color: var(--text-dim); padding: 2px 4px; transition: color .3s ease; }
.a-rail__yr::before { content: ""; position: absolute; left: 50%; top: -17px; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--ink); border: 1px solid var(--line); transition: background .3s ease, border-color .3s ease, transform .3s ease; }
.a-rail__yr.on { color: var(--sage); }
.a-rail__yr.on::before { background: var(--sage); border-color: var(--sage); transform: scale(1.3); }
.a-slides { position: relative; flex: 1; min-height: 0; max-width: 1180px; width: 100%; margin: 0 auto; }
.a-slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 5vw, 80px); align-items: center; opacity: 0; visibility: hidden; transform: translateY(24px); transition: opacity .6s ease, transform .7s var(--ease), visibility 0s .6s; }
.a-slide.on { opacity: 1; visibility: visible; transform: none; transition: opacity .6s ease, transform .7s var(--ease); }
.a-slide.flip .a-slide__text { order: 2; }
.a-slide__year { font-family: var(--font-head); font-weight: 700; font-size: clamp(44px, 6vw, 96px); color: var(--sage); letter-spacing: -.03em; line-height: 1; }
.a-slide p { margin-top: 16px; font-size: clamp(17px, 1.5vw, 23px); line-height: 1.5; color: rgba(255,255,255,.88); max-width: 40ch; }
.a-slide__pics { display: flex; justify-content: center; align-items: center; }
.polaroid { margin: 0; position: relative; width: clamp(110px, min(16vw, 27vh), 240px); padding: 8px 8px 26px; background: #f4f4ef; color: #333; box-shadow: 0 14px 34px rgba(0,0,0,.45); transition: transform .5s var(--ease); }
.polaroid + .polaroid { margin-left: clamp(-60px, -4vw, -28px); }
.polaroid.p0 { transform: rotate(-5deg) translateY(10px); z-index: 1; }
.polaroid.p1 { transform: rotate(3deg) translateY(-18px); z-index: 2; }
.polaroid.p2 { transform: rotate(-2deg) translateY(14px); z-index: 3; }
.polaroid.p3 { transform: rotate(6deg) translateY(-8px); z-index: 4; }
.polaroid:hover { transform: rotate(0) scale(1.05); z-index: 9; }
.polaroid img, .polaroid span { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #d9ddd6; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #6c746d; }
.a-fun__end { height: clamp(60px, 8vw, 120px); }
@media (max-width: 900px) {
  .a-story, .a-founder__inner { grid-template-columns: 1fr; }
  .a-photo { width: 100%; max-width: none; margin: 0; }
  .a-founder__text { text-align: center; }
  .a-founder__text p { margin: 0 auto; }
  .a-slide, .a-slide.flip { grid-template-columns: 1fr; align-content: center; gap: 18px; text-align: center; }
  .a-slide.flip .a-slide__text { order: 0; }
  .a-slide p { margin-left: auto; margin-right: auto; }
  .polaroid { width: clamp(96px, min(28vw, 18vh), 170px); }
  .a-slide__pics { margin-top: 26px; }
  .a-rail__yr { font-size: 11px; letter-spacing: 0; }
}
@media (prefers-reduced-motion: reduce) { .a-slide, .a-slide.on { transition: none; } }



/* ---------- Polish: accessibility, touch, wide screens ---------- */
::selection { background: var(--sage); color: var(--ink); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 4px; }
.card:focus-visible { outline-offset: -3px; border-radius: 0; }
.btn:focus-visible, .btn-outline:focus-visible, .filter:focus-visible { border-radius: 999px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; }
[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

/* dark-theme autofill (browsers paint it white/yellow otherwise) */
.field input:-webkit-autofill, .field textarea:-webkit-autofill, .field select:-webkit-autofill {
  -webkit-text-fill-color: var(--white); caret-color: var(--white);
  box-shadow: 0 0 0 100px #16211c inset; transition: background-color 9999s ease 0s;
}
/* custom select arrow */
.field select { -webkit-appearance: none; appearance: none; padding-right: 46px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3d4b4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; }
.form .btn:disabled { opacity: .55; cursor: progress; }

/* hero scroll cue */
.hero__cue { position: absolute; left: 50%; bottom: 28px; width: 1px; height: 54px; background: linear-gradient(var(--sage), transparent); transform-origin: top; animation: cue 2.2s var(--ease) 1.8s infinite; opacity: 0; }
@keyframes cue { 0% { opacity: 0; transform: scaleY(0); } 40% { opacity: .9; transform: scaleY(1); } 100% { opacity: 0; transform: scaleY(1) translateY(16px); } }

/* phones: home verticals become a swipe row, like the Portfolio page */
@media (max-width: 900px) {
  .vrow { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 4px; padding: 0 var(--pad); scroll-padding: 0 var(--pad); }
  .vrow::-webkit-scrollbar { display: none; }
  .vrow .card { flex: 0 0 clamp(150px, 42vw, 240px); scroll-snap-align: start; width: auto; margin: 0; }
  .vrow .card:last-child:nth-child(odd) { grid-column: auto; width: auto; margin: 0; }
  .contact { row-gap: 56px; }
}

/* very large screens: nudge small type up so it doesn't feel tiny */
@media (min-width: 1900px) {
  body { font-size: 18px; }
  .nav__links a { font-size: 16px; }
  .eyebrow, .field label { font-size: 15px; }
  .footer__col a, .footer__col p { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  .hero__cue { display: none; }
}

/* small phones: keep the logo and links from colliding */
@media (max-width: 420px) {
  .nav__logo img, .nav.solid .nav__logo img { height: 30px; }
  .nav__links { gap: 14px; }
  .nav__links a { font-size: 11px; letter-spacing: .06em; }
}
.nav.solid { background: rgba(8, 11, 10, .9); }
.modal__frame { box-shadow: 0 0 0 1px rgba(163,212,180,.22), 0 30px 80px rgba(0,0,0,.6); }
