* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background: #ffffff;
  color: #000000;
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
  overflow-x: clip;   /* NOT `hidden` — that breaks position:sticky (the page-2 video pin) */
}

/* WebGL canvas — covers the hero viewport and scrolls away with the page
   like normal content. */
#fold-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: block;
  z-index: 0;
}

/* ---- Scrollable content ------------------------------------------------- */
.hero {
  position: relative;   /* anchors the bottombar */
  height: 100vh;
  height: 100dvh;   /* tracks the REAL visible area under mobile browser bars */
}

/* ---- Page 2 — white stage; final word morphs through real materials ----- */
.page2 {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p2-quote {
  position: relative;
  z-index: 1;                       /* above the WebGL stage canvas */
  font-family: "Anton", "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;                 /* Anton is single-weight (already heavy) */
  text-transform: uppercase;
  font-size: clamp(40px, 8.8vw, 150px);
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-align: center;
  color: #000000;
}

/* scroll-in reveal: the headline lines rise as the section arrives, then the
   material word fades up beneath them — a statement, not a second hero */
.p2-line {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.p2-line2 { transition-delay: 0.15s; }
#frag-canvas, .frag { opacity: 0; transition: opacity 0.9s ease 0.45s; }
.page2.seen .p2-line { opacity: 1; transform: none; }
.page2.seen #frag-canvas, .page2.seen .frag { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .p2-line, #frag-canvas, .frag { opacity: 1; transform: none; transition: none; }
}

/* the "FRAGMENT" slot — flat white fallback; goes transparent once the
   material render takes over in the canvas behind it */
.frag {
  position: relative;
  color: #000000;
  display: inline-block;      /* lets the material word own a taller line */
  margin-top: 0.06em;
}

/* full-section WebGL stage (opaque black render with the 3D word + bloom) */
#frag-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* ---- Top row -------------------------------------------------------- */
/* Sits at the top of the hero and scrolls away with the page — nothing
   floats over the video section. */
.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 26px 32px;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  user-select: none;
}

/* Top-left statement + pill button (reference style) */
.statement {
  font-size: clamp(18px, 1.55vw, 29px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: #000000;
}

.book-call {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  background: #0a0a0a;
  color: #ffffff;
  text-decoration: none;
  border-radius: 999px;
  padding: 15px 26px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.book-call:hover { opacity: 0.85; transform: translateY(-1px); }
.bc-arrow { font-size: 14px; letter-spacing: 0; }

.topnav {
  display: flex;
  gap: 34px;
}

.topnav a,
.menu-link {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000000;
  text-decoration: none;
  transition: color 0.25s ease;
}

/* ---- Persistent header (every section after the hero) ----------------- */
.global-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 26px 32px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, background 0.25s ease;
}
.global-bar.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.global-brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #000000;
  transition: color 0.25s ease;
}
.global-bar.dark {
  background: rgba(10, 10, 10, 0.88);
}
.global-bar.dark .global-brand,
.global-bar.dark .menu-link {
  color: #ffffff;
}

/* ---- Menu overlay ----------------------------------------------------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #0a0a0a;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  padding: 26px 32px 36px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.menu-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
body.menu-open { overflow: hidden; }
.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.menu-brand { font-size: 22px; font-weight: 800; letter-spacing: 0.02em; }
.menu-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 0;
}
.menu-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.menu-item {
  font-family: "Anton", "Inter", sans-serif;
  text-transform: uppercase;
  font-size: clamp(44px, 8vw, 104px);
  line-height: 1.04;
  color: #ffffff;
  text-decoration: none;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s ease;
}
.menu-overlay.open .menu-item { opacity: 1; transform: none; }
.menu-overlay.open .menu-item:nth-child(2) { transition-delay: 0.06s; }
.menu-overlay.open .menu-item:nth-child(3) { transition-delay: 0.12s; }
.menu-overlay.open .menu-item:nth-child(4) { transition-delay: 0.18s; }
.menu-item:hover { color: rgba(255, 255, 255, 0.55); }
.menu-foot a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
}
.menu-foot a:hover { color: #ffffff; }
@media (max-width: 900px) {
  .menu-overlay { padding: 14px 20px 28px; }
}

/* ---- Bottom row ----------------------------------------------------- */
.bottombar {
  position: absolute;   /* inside .hero — scrolls away with the page */
  bottom: 32px;
  left: 32px;
  right: 32px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.studio-line {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  color: #000000;
}

.scroll-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

.scroll-icon svg { display: block; }

/* ===== Page 3 — Vision / capability cards ================================= */
.vision {
  background: #0a0a0a;
  color: #ffffff;
  padding: 90px 40px 60px;
  text-align: center;
}

.vision-head {
  font-family: "Anton", "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(32px, 5vw, 76px);
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin: 0 0 20px;
}

.vision-sub {
  font-family: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
  max-width: 640px;
  margin: 0 auto 40px;
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 32px;
  max-width: 1456px;
  margin: 0 auto;
  text-align: left;
}

.vision-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  overflow: hidden;
  padding-bottom: 26px;
}

.vision-photo {
  aspect-ratio: 9 / 10;
  background: #161616;
  position: relative;
}
.vision-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- card header is a button: the whole block toggles the description --- */
.vision-heading {
  margin: 0;
  font: inherit;
  font-weight: 400;
}

.vision-toggle {
  all: unset;
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 26px 24px 0;
  cursor: pointer;
}
.vision-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: -4px;
}

.vision-titlerow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.vision-title {
  font-family: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
}

/* plus / minus affordance */
.vision-sign {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.3s ease;
}
.vision-sign::before,
.vision-sign::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(255, 255, 255, 0.8);
  transition: transform 0.3s ease;
}
.vision-sign::before { width: 9px; height: 1px; transform: translate(-50%, -50%); }
.vision-sign::after  { width: 1px; height: 9px; transform: translate(-50%, -50%); }

.vision-card:hover .vision-sign,
.vision-toggle:hover .vision-sign {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
}
.vision-card.open .vision-sign {
  transform: rotate(180deg);
  border-color: rgba(255, 255, 255, 0.55);
}
.vision-card.open .vision-sign::after { transform: translate(-50%, -50%) scaleY(0); }

.vision-card { transition: border-color 0.25s ease; }
.vision-card:hover { border-color: rgba(255, 255, 255, 0.26); }
.vision-card.open { border-color: rgba(255, 255, 255, 0.26); }

.vision-rule {
  display: block;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin: 16px 0;
}

.vision-tags {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

/* --- collapsible description: 0fr -> 1fr animates to natural height --- */
.vision-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}
.vision-card.open .vision-panel { grid-template-rows: 1fr; }

.vision-panel-inner { overflow: hidden; }

.vision-panel-body {
  padding: 22px 24px 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease 0.06s, transform 0.3s ease 0.06s;
}
.vision-card.open .vision-panel-body { opacity: 1; transform: none; }

.vision-panel-body p {
  font-family: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 14.5px;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.74);
  margin: 0 0 20px;
}

.vision-panel-body ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.vision-panel-body li {
  position: relative;
  font-family: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.6);
  padding: 11px 0 11px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.vision-panel-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 5px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  .vision-panel,
  .vision-panel-body,
  .vision-sign,
  .vision-sign::before,
  .vision-sign::after,
  .vision-card { transition: none; }
}

/* placeholder fill — removed once real photos are dropped in */
.vision-photo.placeholder::after {
  content: attr(data-ph);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.22);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
}

@media (max-width: 900px) {
  .p2-quote { font-size: clamp(48px, 14vw, 150px); }
  .vision { padding: 80px 20px 48px; }
  .vision-sub { margin-bottom: 32px; }
  .vision-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ===== Page 4 — Work / selected projects ================================= */
.work {
  background: #ffffff;
  color: #0d0d0d;
  padding: 110px 0 56px;
  font-family: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
}

.work-intro { padding: 0 40px; }

.work-head {
  font-family: "Anton", "Inter", sans-serif;
  font-weight: 400;                 /* Anton is single-weight (already heavy) */
  text-transform: uppercase;
  font-size: clamp(30px, 5.5vw, 108px);
  line-height: 0.99;
  letter-spacing: 0.005em;
  margin: 0 0 40px;
}

/* Project rows — full-bleed photo triptych, caption overlaid on the image */
.work-list { display: flex; }
.work-row {
  position: relative;
  flex: 1 1 0;
  height: clamp(420px, 60vh, 640px);
  overflow: hidden;
  color: #ffffff;
}
.work-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.work-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.32) 32%, transparent 58%);
  pointer-events: none;
}

.work-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px 28px;
}

.work-title {
  font-family: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.1;
  margin: 0 0 10px;
}
.work-tags {
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

/* Trusted by */
.work-trusted {
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
  margin-top: 44px; padding: 0 40px;
}
.work-trusted-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.work-brands {
  display: flex; align-items: center; gap: 52px; flex-wrap: wrap;
}
.brand-mark { height: 30px; width: auto; object-fit: contain; opacity: 0.88; }

@media (max-width: 900px) {
  .work { padding: 90px 0 40px; }
  .work-intro { padding: 0 20px; }
  .work-head { font-size: clamp(30px, 9vw, 64px); margin-bottom: 28px; }
  .work-list { flex-direction: column; }
  .work-row { flex: none; height: 420px; }
  .work-trusted { padding: 0 20px; gap: 20px 32px; margin-top: 32px; }
  .work-brands { gap: 26px; }
}

/* ===== Page 5 — Contact ==================================================== */
.contact {
  position: relative;
  background: #0a0a0a;
  color: #ffffff;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contact-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
}

.contact-head {
  font-family: "Anton", "Inter", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(36px, 6.2vw, 92px);
  line-height: 0.99;
  letter-spacing: 0.005em;
  margin: 0 0 28px;
}

.contact-sub {
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 40px;
}

.contact-ctas {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  padding: 16px 26px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.cta-pill:hover { background: #ffffff; color: #0a0a0a; border-color: #ffffff; }

.contact-copyright {
  position: absolute;
  left: 40px;
  bottom: 28px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}
.contact-copyright:hover { color: #ffffff; }

@media (max-width: 820px) {
  .contact { padding: 28px; }
  .contact-copyright { left: 20px; bottom: 20px; }
}

/* ===== Mobile-only refinements ============================================ */
@media (max-width: 900px) {
  /* hero: statement higher, studio line lower */
  .topbar { padding: 14px 20px; }
  .bottombar { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); left: 20px; right: 20px; }

  /* work: trusted-by becomes an inverted band flush with the section bottom —
     label on one line, all five logos on the next */
  .work { padding-bottom: 0; }
  .work-trusted {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-top: 0;
    background: #0a0a0a;
    color: #ffffff;
    padding: 30px 20px 38px;
  }
  .work-brands {
    flex-wrap: nowrap;
    width: 100%;
    justify-content: space-between;
    gap: 0;
  }
  .brand-mark {
    height: 14px;
    max-width: 18%;
    filter: invert(1);
    opacity: 0.92;
  }
}

