/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --paper: #e8e8e6;      /* light grey stage */
  --paper-2: #f2f2f0;
  --ink: #0d0d0d;        /* near-black stage */
  --ink-2: #161616;
  --white: #ffffff;
  --coral: #f0502e;      /* primary action */
  --butter: #f7f0a8;     /* secondary action */
  --text-on-paper: #0d0d0d;
  --muted-on-paper: #5a5a58;
  --text-on-ink: #f2f2f0;
  --muted-on-ink: #8d8d8a;
  --line-on-paper: rgba(0, 0, 0, 0.14);
  --line-on-ink: rgba(255, 255, 255, 0.13);

  --serif: "Zodiak", Georgia, serif;
  --sans: "Switzer", -apple-system, "Segoe UI", sans-serif;

  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 48px; --s6: 96px;

  --edge: 6vw;
  --container: 1240px;
  --radius: 14px;
}

@media (min-width: 900px) { :root { --edge: 64px; } }

/* ============================================================
   RESET
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--text-on-paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -0.015em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--edge); }

/* ============================================================
   STAGES — the page alternates between paper and ink
   ============================================================ */
.stage { position: relative; padding: var(--s6) 0; }

.stage--paper {
  background-color: var(--paper);
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.085) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--text-on-paper);
}

.stage--ink {
  background-color: var(--ink);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--text-on-ink);
}

/* ============================================================
   FLOATING PILL NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 18px; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 var(--edge);
  pointer-events: none;
}

.nav > * { pointer-events: auto; }

.nav__pill {
  background: var(--ink);
  color: var(--text-on-ink);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: var(--s4);
  min-width: 232px;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: -0.01em;
}

.nav__burger {
  width: 22px; height: 16px;
  position: relative;
  flex-shrink: 0;
}

.nav__burger span,
.nav__burger span::before,
.nav__burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px; height: 1.6px;
  background: currentColor;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.nav__burger span { top: 7px; }
.nav__burger span::before { top: -6px; }
.nav__burger span::after { top: 6px; }

.nav__burger.is-open span { background: transparent; }
.nav__burger.is-open span::before { transform: translateY(6px) rotate(45deg); }
.nav__burger.is-open span::after { transform: translateY(-6px) rotate(-45deg); }

.nav__actions { display: flex; gap: var(--s2); }

.nav__drawer {
  position: absolute;
  top: 78px;
  left: var(--edge);
  width: 232px;
  background: var(--ink);
  color: var(--text-on-ink);
  border-radius: 12px;
  padding: var(--s3);
  display: none;
  flex-direction: column;
  gap: 2px;
}

.nav__drawer.is-open { display: flex; }

.nav__drawer a {
  font-family: var(--serif);
  font-size: 21px;
  padding: 9px 10px;
  border-radius: 8px;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav__drawer a:hover,
.nav__drawer a.is-active { background: rgba(255, 255, 255, 0.08); }
.nav__drawer a.is-active { color: var(--coral); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.18s ease, filter 0.18s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }

.btn--coral { background: var(--coral); color: #fff; }
.btn--butter { background: var(--butter); color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--text-on-ink); }
.btn--outline-ink { border: 1px solid var(--line-on-paper); color: var(--ink); }
.btn--outline-paper { border: 1px solid var(--line-on-ink); color: var(--text-on-ink); }

/* ============================================================
   HERO — centered serif headline inside a 3D image corridor
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 140px var(--edge) var(--s6);
}

.corridor {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1100px;
  perspective-origin: 50% 50%;
  pointer-events: none;
}

.corridor__side {
  display: flex;
  align-items: center;
  height: 100%;
  transform-style: preserve-3d;
}

.corridor__side--left { justify-content: flex-start; }
.corridor__side--right { justify-content: flex-end; }

.corridor__panel {
  flex-shrink: 0;
  border-radius: 3px;
  overflow: hidden;
  background: var(--ink-2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  opacity: 0;
  animation: panel-in 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.corridor__panel img { width: 100%; height: 100%; object-fit: cover; }

@keyframes panel-in { to { opacity: 1; } }

/* left wall — panels angle inward, shrinking toward the centre */
.corridor__side--left .corridor__panel:nth-child(1) { width: 210px; height: 86%; transform: rotateY(34deg) translateZ(-40px); animation-delay: 0.05s; }
.corridor__side--left .corridor__panel:nth-child(2) { width: 190px; height: 70%; transform: rotateY(34deg) translateZ(-120px); animation-delay: 0.12s; }
.corridor__side--left .corridor__panel:nth-child(3) { width: 170px; height: 54%; transform: rotateY(34deg) translateZ(-200px); animation-delay: 0.19s; }
.corridor__side--left .corridor__panel:nth-child(4) { width: 150px; height: 40%; transform: rotateY(34deg) translateZ(-280px); animation-delay: 0.26s; }

/* right wall — mirrored */
.corridor__side--right .corridor__panel:nth-child(1) { width: 150px; height: 40%; transform: rotateY(-34deg) translateZ(-280px); animation-delay: 0.26s; }
.corridor__side--right .corridor__panel:nth-child(2) { width: 170px; height: 54%; transform: rotateY(-34deg) translateZ(-200px); animation-delay: 0.19s; }
.corridor__side--right .corridor__panel:nth-child(3) { width: 190px; height: 70%; transform: rotateY(-34deg) translateZ(-120px); animation-delay: 0.12s; }
.corridor__side--right .corridor__panel:nth-child(4) { width: 210px; height: 86%; transform: rotateY(-34deg) translateZ(-40px); animation-delay: 0.05s; }

@media (max-width: 1100px) {
  .corridor { opacity: 0.35; }
}

.hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
}

.hero__title {
  font-size: clamp(2.7rem, 6.4vw, 5.2rem);
}

.hero__sub {
  margin: var(--s4) auto 0;
  max-width: 52ch;
  font-size: clamp(15.5px, 1.5vw, 17.5px);
  color: var(--muted-on-paper);
}

.hero__actions {
  margin-top: var(--s5);
  display: flex;
  gap: var(--s2);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   SECTION HEADINGS — centered, serif, big
   ============================================================ */
.head { text-align: center; max-width: 780px; margin: 0 auto var(--s6); }

.head__title { font-size: clamp(2rem, 4.6vw, 3.6rem); }

.head__sub {
  margin-top: var(--s3);
  color: var(--muted-on-paper);
  font-size: 16.5px;
}

.stage--ink .head__sub { color: var(--muted-on-ink); }

/* ============================================================
   WORK CANVAS — tab pill bar + dark node panel
   ============================================================ */
.tabbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  background: var(--ink);
  border-radius: 11px;
  padding: 5px;
  width: fit-content;
  margin: 0 auto var(--s5);
}

.tabbar__btn {
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 14.5px;
  color: var(--muted-on-ink);
  transition: background 0.2s ease, color 0.2s ease;
}

.tabbar__btn:hover { color: var(--text-on-ink); }
.tabbar__btn.is-active { background: var(--coral); color: #fff; }

.canvas {
  background: var(--ink);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 20px 20px;
  border-radius: var(--radius);
  padding: var(--s5) var(--s4);
}

.canvas__brief {
  display: flex;
  align-items: center;
  gap: var(--s3);
  background: var(--ink-2);
  border: 1px solid var(--line-on-ink);
  border-radius: 10px;
  padding: 12px 16px;
  max-width: 520px;
  margin: 0 auto var(--s5);
  color: var(--muted-on-ink);
  font-size: 14px;
}

.canvas__brief-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--coral); flex-shrink: 0;
}

.canvas__brief-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nodes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s4);
  max-width: 880px;
  margin: 0 auto;
}

.node {
  opacity: 0;
  transform: translateY(12px);
  animation: node-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.node:nth-child(1) { animation-delay: 0.05s; }
.node:nth-child(2) { animation-delay: 0.14s; }
.node:nth-child(3) { animation-delay: 0.23s; }
.node:nth-child(4) { animation-delay: 0.32s; }

@keyframes node-in { to { opacity: 1; transform: translateY(0); } }

.node__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2);
  margin-bottom: var(--s2);
  font-size: 13.5px;
}

.node__label { color: var(--text-on-ink); }
.node__tool { color: var(--muted-on-ink); }

.node__frame {
  border: 1px solid var(--line-on-ink);
  border-radius: 10px;
  padding: var(--s2);
}

.node__badge {
  display: inline-block;
  background: var(--coral);
  color: #fff;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: var(--s2);
}

.node__media {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.node__media img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   SCATTER — floating cards with butter labels around a centre card
   ============================================================ */
.scatter { position: relative; }

.scatter__stage {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scatter__center {
  position: relative;
  z-index: 2;
  width: min(420px, 88vw);
  background: var(--paper-2);
  border-radius: var(--radius);
  padding: var(--s3) var(--s3) var(--s4);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.14);
}

.scatter__center-media {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--ink-2);
  margin-bottom: var(--s4);
}

.scatter__center-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }

.scatter__center-desc {
  margin-top: var(--s2);
  color: var(--muted-on-paper);
  font-size: 15.5px;
}

.scatter__float {
  position: absolute;
  z-index: 1;
  width: 168px;
  background: var(--paper-2);
  border-radius: 10px;
  padding: 7px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.13);
  display: none;
}

.scatter__float-media {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ink-2);
}

.scatter__float-label {
  position: absolute;
  top: 16px; right: -8px;
  background: var(--butter);
  color: var(--ink);
  font-size: 12.5px;
  padding: 4px 11px;
  border-radius: 6px;
  white-space: nowrap;
}

@media (min-width: 1000px) {
  .scatter__float { display: block; }
  .scatter__float:nth-of-type(1) { top: 6%;  left: 2%; }
  .scatter__float:nth-of-type(2) { bottom: 8%; left: 8%; }
  .scatter__float:nth-of-type(3) { top: 14%; right: 2%; }
  .scatter__float:nth-of-type(4) { bottom: 6%; right: 8%; }
}

/* ============================================================
   REEL — 3D perspective row of cards (tools / clients)
   ============================================================ */
.reel {
  position: relative;
  perspective: 1400px;
  overflow: hidden;
  padding: var(--s5) 0;
}

.reel__track {
  display: flex;
  gap: var(--s4);
  width: max-content;
  transform-style: preserve-3d;
  animation: reel-scroll 46s linear infinite;
}

.reel:hover .reel__track { animation-play-state: paused; }

@keyframes reel-scroll { to { transform: translateX(-50%); } }

.reel__card {
  width: 220px;
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
  background: var(--ink-2);
  border: 1px solid var(--line-on-ink);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 21px;
  color: var(--text-on-ink);
  transform: rotateY(-14deg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* ============================================================
   PLAN CARDS — white cards on ink (services presented like tiers)
   ============================================================ */
.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
  max-width: 1060px;
  margin: 0 auto;
}

@media (min-width: 780px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .plans { grid-template-columns: repeat(3, 1fr); } }

.plan {
  background: var(--paper-2);
  color: var(--ink);
  border-radius: var(--radius);
  padding: var(--s5) var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.plan--featured { box-shadow: 0 0 0 2px var(--coral), 0 30px 60px rgba(240, 80, 46, 0.16); }

.plan__title { font-size: 1.85rem; }

.plan__desc { color: var(--muted-on-paper); font-size: 15px; }

.plan__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  margin-top: var(--s2);
  font-size: 14.5px;
}

.plan__list li { display: flex; gap: var(--s2); }
.plan__list li::before { content: "✓"; color: var(--coral); }

/* ============================================================
   WORK GRID (Work page + featured strip)
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
}

@media (min-width: 720px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--paper-2);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover { transform: translateY(-3px); box-shadow: 0 22px 45px rgba(0, 0, 0, 0.13); }

.card__media {
  aspect-ratio: 4 / 3;
  position: relative;
  background: var(--ink-2);
  display: flex;
  align-items: flex-start;
  padding: var(--s3);
}

.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.card__tag {
  position: relative;
  background: var(--butter);
  color: var(--ink);
  font-size: 12.5px;
  padding: 4px 11px;
  border-radius: 6px;
}

.card__body { padding: var(--s4); display: flex; flex-direction: column; gap: var(--s2); flex: 1; }
.card__title { font-family: var(--serif); font-size: 1.4rem; }
.card__desc { color: var(--muted-on-paper); font-size: 14.5px; flex: 1; }
.card__link { font-size: 14px; color: var(--coral); width: fit-content; border-bottom: 1px solid currentColor; }

.filters { display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; background: var(--ink); border-radius: 11px; padding: 5px; width: fit-content; margin: 0 auto var(--s5); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 900px; margin: 0 auto; border-top: 1px solid var(--line-on-ink); }
.faq__item { border-bottom: 1px solid var(--line-on-ink); }

.faq__q {
  width: 100%;
  text-align: left;
  padding: var(--s4) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 23px);
  color: var(--text-on-ink);
  transition: color 0.2s ease;
}

.faq__q:hover { color: var(--coral); }

.faq__icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.faq__icon::before { top: 8px; left: 0; width: 18px; height: 1.5px; }
.faq__icon::after { left: 8px; top: 0; width: 1.5px; height: 18px; }

.faq__item.is-open .faq__icon::after { transform: rotate(90deg); opacity: 0; }
.faq__item.is-open .faq__q { color: var(--coral); }

.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq__a-inner { padding-bottom: var(--s4); color: var(--muted-on-ink); font-size: 16px; max-width: 66ch; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: var(--s4); max-width: 1060px; margin: 0 auto; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: var(--s5); } }

.panel-card { background: var(--paper-2); color: var(--ink); border-radius: var(--radius); padding: var(--s5) var(--s4); }

.contact-row {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--line-on-paper);
  transition: transform 0.2s ease;
}
.contact-row:last-child { border-bottom: none; }
a.contact-row:hover { transform: translateX(4px); }

.contact-row__icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--ink); color: var(--butter);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-row__icon svg { width: 17px; height: 17px; }
.contact-row__label { font-size: 12.5px; color: var(--muted-on-paper); }
.contact-row__value { font-size: 15.5px; }

.form { display: flex; flex-direction: column; gap: var(--s3); }
.field { display: flex; flex-direction: column; gap: var(--s2); }
.field label { font-size: 13.5px; color: var(--muted-on-paper); }

.field input, .field textarea {
  background: var(--white);
  border: 1px solid var(--line-on-paper);
  border-radius: 9px;
  padding: 13px 15px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.2s ease;
}

.field input:focus, .field textarea:focus { border-color: var(--coral); outline: none; }
.field textarea { resize: vertical; min-height: 130px; }

.form-status { font-size: 14px; min-height: 20px; }
.form-status.is-success { color: #1a7f4b; }
.form-status.is-error { color: #c23b1e; }
.form-note { font-size: 12.5px; color: var(--muted-on-paper); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-head { padding: 170px 0 var(--s5); text-align: center; }
.page-head__title { font-size: clamp(2.2rem, 5.4vw, 3.8rem); }
.page-head__sub { margin: var(--s3) auto 0; max-width: 54ch; color: var(--muted-on-paper); font-size: 16.5px; }

/* ============================================================
   FOOTER — giant ghosted wordmark
   ============================================================ */
.footer {
  position: relative;
  background: var(--ink);
  color: var(--text-on-ink);
  padding: var(--s6) 0 var(--s4);
  overflow: hidden;
}

.footer__ghost {
  position: absolute;
  left: 50%;
  bottom: -0.18em;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: clamp(5rem, 21vw, 17rem);
  line-height: 0.8;
  color: rgba(255, 255, 255, 0.045);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.footer__inner { position: relative; z-index: 1; }

.footer__top {
  display: flex;
  flex-direction: column;
  gap: var(--s5);
  padding-bottom: var(--s6);
}

@media (min-width: 860px) {
  .footer__top { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

.footer__cta-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.footer__cta-sub { margin-top: var(--s2); color: var(--muted-on-ink); font-size: 15.5px; }

.footer__social { display: flex; gap: var(--s2); margin-top: var(--s4); }

.social-icon {
  width: 42px; height: 42px;
  border-radius: 9px;
  border: 1px solid var(--line-on-ink);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.social-icon svg { width: 16px; height: 16px; }
.social-icon:hover { background: var(--butter); color: var(--ink); transform: translateY(-2px); }

.footer__cols { display: flex; flex-wrap: wrap; gap: var(--s6); }
.footer__col-title { font-size: 12.5px; color: var(--muted-on-ink); margin-bottom: var(--s3); }
.footer__col a { display: block; padding: 5px 0; color: var(--text-on-ink); font-size: 15px; transition: color 0.2s ease; }
.footer__col a:hover { color: var(--coral); }

.footer__bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line-on-ink);
  padding-top: var(--s4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  justify-content: space-between;
  color: var(--muted-on-ink);
  font-size: 13px;
}

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
