/* ============================================================
   JET LARK — blue hour flight
   ink sky / deep navy surfaces / ice-blue accent / paper cream
   ============================================================ */

:root {
  --ink: #0B0E16;
  --ink-2: #11151F;
  --ink-3: #1A2030;
  --cream: #F2EADF;
  --cream-dim: rgba(242, 234, 223, 0.55);
  --cream-faint: rgba(242, 234, 223, 0.14);
  --navy: #02164F;
  --navy-deep: #010D30;
  --accent: #5B8CFF;
  --accent-soft: #9DBBFF;
  --haze: #5C6B8A;
  --font-display: 'Tanker', 'Arial Black', sans-serif;
  --font-body: 'Cabinet Grotesk', 'Helvetica Neue', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --nav-h: 76px;
}

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

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--ink); }

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Logo as tintable mask */
.logo-mask {
  display: inline-block;
  background-color: var(--cream);
  -webkit-mask: url('../resources/logo.svg') no-repeat center / contain;
  mask: url('../resources/logo.svg') no-repeat center / contain;
}

.tick {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 0.6em;
  animation: tick-pulse 2.4s ease-in-out infinite;
}
@keyframes tick-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

/* ============ Grain ============ */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, 2%); }
  100% { transform: translate(2%, -1%); }
}

/* ============ Loader ============ */
.loader {
  position: fixed; inset: 0;
  z-index: 9999;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.loader__inner { text-align: center; }
.loader__bird {
  width: 64px; height: 64px;
  display: block;
  margin: 0 auto 1.5rem;
  background-color: var(--accent);
  animation: loader-bob 1.6s ease-in-out infinite;
}
@keyframes loader-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-4deg); }
}
.loader__count {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--cream);
  line-height: 1;
}
.loader__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--cream-dim);
  margin-top: 0.8rem;
}

/* ============ Cursor ============ */
.cursor { display: none; }
@media (pointer: fine) {
  .cursor {
    display: block;
    position: fixed; top: 0; left: 0;
    z-index: 9500;
    pointer-events: none;
  }
  .cursor__dot {
    position: absolute; top: -3px; left: -3px;
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
  }
  .cursor__ring {
    position: absolute; top: -18px; left: -18px;
    width: 36px; height: 36px;
    border: 1px solid rgba(91, 140, 255, 0.5);
    border-radius: 50%;
    transition: transform 0.25s ease, opacity 0.25s ease, border-color 0.25s ease;
  }
  .cursor.is-hover .cursor__ring {
    transform: scale(1.8);
    border-color: rgba(91, 140, 255, 0.9);
  }
  body { cursor: none; }
  a, button { cursor: none; }
}

/* ============ Nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1002; /* above the fullscreen menu so the burger stays reachable */
  height: var(--nav-h);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}
.nav.is-scrolled {
  background: rgba(11, 14, 22, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--cream-faint);
}
.nav__brand { display: flex; align-items: center; gap: 0.7rem; }
.nav__logo { width: 34px; height: 34px; }
.nav__wordmark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}
.nav__links { display: flex; gap: 2.2rem; }
.nav__links a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-dim);
  position: relative;
  transition: color 0.3s ease;
}
.nav__links a::after {
  content: '';
  position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav__links a:hover { color: var(--cream); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__right { display: flex; align-items: center; gap: 1.4rem; }
.nav__lang {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--cream-dim);
  border: 1px solid var(--cream-faint);
  border-radius: 100px;
  padding: 0.55em 1em;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.nav__lang:hover { color: var(--cream); border-color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.95em 1.9em;
  border-radius: 100px;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  transition: color 0.35s ease, border-color 0.35s ease;
}
.btn span { position: relative; z-index: 1; }
.btn--solid { background: var(--accent); color: var(--ink); }
.btn--solid::before,
.btn--ghost::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--cream);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn--solid:hover::before { transform: translateY(0); }
.btn--ghost { border-color: rgba(242, 234, 223, 0.35); color: var(--cream); }
.btn--ghost::before { background: var(--accent); }
.btn--ghost:hover { color: var(--ink); border-color: var(--accent); }
.btn--ghost:hover::before { transform: translateY(0); }

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  background: none; border: none;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 7px;
  z-index: 1002;
}
.nav__burger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--cream);
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* ============ Mobile menu ============ */
.menu {
  position: fixed; inset: 0;
  z-index: 1001;
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
  display: flex; align-items: center;
  padding: 0 var(--gutter);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
}
.menu__inner { width: 100%; }
.menu__link {
  display: flex; align-items: baseline; gap: 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 10vw, 4rem);
  line-height: 1.18;
  padding: 0.35rem 0;
  color: var(--cream);
}
.menu__link em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.7rem;
  color: var(--accent);
}
.menu__meta {
  margin-top: 3rem;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--cream-dim);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 0 var(--gutter) 0;
}
.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.hero__glow {
  position: absolute;
  left: 50%; bottom: -42vh;
  width: 130vw; height: 80vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center,
    rgba(91, 140, 255, 0.22) 0%,
    rgba(91, 140, 255, 0.07) 38%,
    transparent 68%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--nav-h) + 4vh);
  /* fill the hero so the eyebrow stays pinned under the nav on tall screens */
  flex: 1;
  display: flex;
  flex-direction: column;
}
.hero__title { margin-top: auto; }
.hero__eyebrow {
  color: var(--cream-dim);
  margin-bottom: clamp(1rem, 3vh, 2.4rem);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(4.6rem, 16.5vw, 15.5rem);
  line-height: 0.86;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.hero__line { display: block; overflow: hidden; padding-top: 0.06em; }
.hero__line--indent { padding-left: clamp(2rem, 12vw, 14rem); }
.hero__word { display: inline-block; will-change: transform; }
.hero__word--accent {
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
  position: relative;
}
.hero__reg {
  font-size: 0.14em;
  vertical-align: super;
  -webkit-text-stroke: 1px var(--accent);
  letter-spacing: 0;
}
.hero__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-top: clamp(1.6rem, 4vh, 3.2rem);
  padding-bottom: clamp(4.5rem, 10vh, 7rem);
}
.hero__tagline {
  max-width: 44ch;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: var(--cream-dim);
}
.hero__tagline em {
  font-style: normal;
  color: var(--accent-soft);
}
.hero__actions { display: flex; gap: 1rem; flex-shrink: 0; }
.hero__footer {
  position: absolute;
  left: var(--gutter); right: var(--gutter); bottom: 1.6rem;
  z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--cream-dim);
}
.hero__scrollline {
  display: inline-block;
  width: 56px; height: 1px;
  background: var(--cream-dim);
  margin-left: 0.9em;
  vertical-align: middle;
  position: relative;
  overflow: hidden;
}
.hero__scrollline::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--accent);
  animation: scroll-sweep 1.8s ease-in-out infinite;
}
@keyframes scroll-sweep {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(100%); }
}

/* ============ Marquee — quiet flight-data strip ============ */
.marquee {
  border-top: 1px solid var(--cream-faint);
  border-bottom: 1px solid var(--cream-faint);
  padding: 1.1rem 0;
  overflow: hidden;
  background: var(--navy);
}
.marquee__track { display: flex; width: max-content; }
.marquee__group {
  display: flex; align-items: center;
  gap: 4.5rem;
  padding-right: 4.5rem;
}
.marquee__group span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--cream-dim);
  white-space: nowrap;
}
.marquee__group i {
  width: 4px; height: 4px;
  border-radius: 50%;
  background-color: rgba(91, 140, 255, 0.55);
  flex-shrink: 0;
}

/* ============ Sections shared ============ */
.section { padding: clamp(5rem, 12vh, 9rem) var(--gutter); }
.section__head {
  display: flex; align-items: center; gap: 1.2rem;
  margin-bottom: clamp(2.6rem, 6vh, 4.5rem);
  color: var(--cream-dim);
}
.section__head::after {
  content: '';
  flex: 1; height: 1px;
  background: var(--cream-faint);
}
.section__index { color: var(--accent); }
.section__name { font-weight: 500; } /* h2 for SEO, styled like the old label */

.work__intro {
  color: var(--cream-dim);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  max-width: 58ch;
  margin: -1.2rem 0 clamp(2.6rem, 6vh, 4.5rem);
}

/* word-split animation targets */
.w { display: inline-block; overflow: hidden; vertical-align: top; }
.wi { display: inline-block; will-change: transform; }

/* ============ Pain — "sounds familiar?" ============ */
.pain__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.6rem, 3vw, 3rem);
}
.pain__item {
  border-top: 1px solid var(--cream-faint);
  padding-top: 1.4rem;
}
.pain__x {
  display: block;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.pain__item p {
  color: var(--cream-dim);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.45;
}
.pain__note {
  margin-top: clamp(2.5rem, 6vh, 4rem);
  color: var(--accent-soft);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  max-width: 52ch;
}

/* ============ Studio ============ */
.pain__statement,
.studio__statement {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(1.7rem, 4.2vw, 3.6rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
  max-width: 22ch;
  margin-bottom: clamp(3rem, 8vh, 5.5rem);
}
.studio__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.studio__copy {
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  color: var(--cream-dim);
  max-width: 46ch;
}
.studio__sign {
  grid-column: 1;
  margin-top: 1.6rem;
  color: var(--accent-soft);
  letter-spacing: 0.18em;
}
.studio__stats {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-left: 1px solid var(--cream-faint);
  border-top: 1px solid var(--cream-faint);
}
.stat {
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border-right: 1px solid var(--cream-faint);
  border-bottom: 1px solid var(--cream-faint);
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1;
  color: var(--accent-soft);
}
.stat__label {
  display: block;
  margin-top: 0.7rem;
  color: var(--cream-dim);
}

/* ============ Services ============ */
.services__list { border-top: 1px solid var(--cream-faint); }
.service {
  display: grid;
  grid-template-columns: 6rem minmax(0, 4fr) minmax(0, 5fr) 3rem;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.6rem, 3.4vw, 2.6rem) 0;
  border-bottom: 1px solid var(--cream-faint);
  position: relative;
  transition: padding-left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.service::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(91, 140, 255, 0.09), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.service:hover { padding-left: 1.4rem; }
.service:hover::before { opacity: 1; }
.service__no { color: var(--accent); }
.service__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
}
.service__desc {
  color: var(--cream-dim);
  font-size: clamp(0.92rem, 1.1vw, 1.05rem);
  max-width: 44ch;
}
.service__arrow {
  font-size: 1.5rem;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.service:hover .service__arrow { opacity: 1; transform: translateX(0); }

/* ============ Work ============ */
.work__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.4rem, 3vw, 3rem);
}
.work-card { grid-column: span 5; }
.work-card--wide { grid-column: span 7; }
.work-card:nth-child(2) { margin-top: clamp(2rem, 8vh, 6rem); }
.work-card:nth-child(3) { margin-top: clamp(-3rem, -4vh, -1rem); }
.work-card__media {
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--cream-faint);
  aspect-ratio: 4 / 3;
  position: relative;
}
.work-card--wide .work-card__media { aspect-ratio: 16 / 10; }
.work-card__art {
  width: 100%; height: 116%;
  display: block;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-card:hover .work-card__art { transform: scale(1.045); }
.work-card__info { padding: 1.3rem 0.2rem 0; }
.work-card__info h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.work-card__info p {
  color: var(--cream-dim);
  font-size: 0.98rem;
  max-width: 52ch;
  margin: 0.45rem 0 0.8rem;
}
.work-card__tags { color: var(--accent); letter-spacing: 0.18em; }

/* ============ Process ============ */
.process { padding-bottom: 0; }
.process__viewport { overflow: hidden; }
.process__track {
  display: flex;
  gap: clamp(1.4rem, 3vw, 3rem);
  padding-bottom: clamp(5rem, 12vh, 9rem);
  width: max-content;
}
.phase {
  width: clamp(300px, 34vw, 480px);
  flex-shrink: 0;
  border: 1px solid var(--cream-faint);
  border-radius: 6px;
  padding: clamp(1.8rem, 3vw, 2.8rem);
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
@media (min-width: 901px) {
  .phase { min-height: calc(100vh - var(--nav-h) - 14rem); }
  .phase__desc { flex: 1; }
}
.phase::after {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 140, 255, 0.16), transparent 70%);
}
.phase__no {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 7vw, 5.6rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--haze);
  display: block;
}
.phase__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  text-transform: uppercase;
  margin: 1.4rem 0 0.9rem;
  color: var(--accent-soft);
}
.phase__desc {
  color: var(--cream-dim);
  font-size: 0.98rem;
  min-height: 4.4em;
}
.phase__meta {
  display: block;
  margin-top: 1.6rem;
  color: var(--haze);
}

/* ============ Contact ============ */
.contact {
  padding: clamp(6rem, 16vh, 11rem) var(--gutter) clamp(4rem, 10vh, 7rem);
  border-top: 1px solid var(--cream-faint);
  background:
    radial-gradient(ellipse 90% 55% at 50% 115%, rgba(91, 140, 255, 0.13), transparent 70%),
    var(--ink);
}
.contact__eyebrow { color: var(--cream-dim); margin-bottom: 2.2rem; }
.contact__big { display: block; }
.contact__line {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 12.5vw, 11.5rem);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  transition: color 0.4s ease;
}
.contact__line--accent {
  color: transparent;
  -webkit-text-stroke: 2px var(--cream);
  transition: -webkit-text-stroke 0.4s ease, color 0.4s ease;
}
.contact__big:hover .contact__line { color: var(--accent-soft); }
.contact__big:hover .contact__line--accent {
  color: var(--accent);
  -webkit-text-stroke: 2px var(--accent);
}
.contact__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-top: clamp(2.5rem, 7vh, 5rem);
}
.contact__channels {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}
.contact__email {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.3em;
  transition: color 0.3s ease;
}
.contact__email:hover { color: var(--accent-soft); }
.contact__note {
  text-align: right;
  color: var(--cream-dim);
  font-size: 0.95rem;
}

/* ============ Contact page (form) ============ */
.cpage {
  min-height: 100vh;
  padding: calc(var(--nav-h) + clamp(2.5rem, 7vh, 5rem)) var(--gutter) clamp(4rem, 9vh, 6rem);
  background:
    radial-gradient(ellipse 80% 55% at 72% -12%, rgba(91, 140, 255, 0.14), transparent 65%),
    radial-gradient(ellipse 90% 55% at 15% 115%, rgba(91, 140, 255, 0.09), transparent 70%),
    var(--ink);
}
.cpage__eyebrow {
  color: var(--cream-dim);
  margin-bottom: 1.8rem;
}
.cpage__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
}
.cpage__title em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}
.cpage__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

/* page-load reveal */
@keyframes cpage-rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
.cpage__eyebrow { animation: cpage-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.cpage__title { animation: cpage-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both; }
.cpage__grid > div { animation: cpage-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both; }
.cpage__grid > aside { animation: cpage-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.26s both; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.7rem 1.5rem; }
.form__field { display: flex; flex-direction: column; gap: 0.6rem; }
.form__field--full { grid-column: 1 / -1; }
.form__field label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.form__field input,
.form__field textarea {
  background: var(--ink-3);
  border: 1px solid rgba(242, 234, 223, 0.18);
  border-radius: 8px;
  padding: 1.05em 1.2em;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.form__field input::placeholder,
.form__field textarea::placeholder { color: rgba(242, 234, 223, 0.32); }
.form__field input:hover,
.form__field textarea:hover { border-color: rgba(242, 234, 223, 0.32); }
.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--ink-2);
  box-shadow: 0 0 0 4px rgba(91, 140, 255, 0.14);
}
.form__field textarea { min-height: 9.5em; resize: vertical; }
.form__consent {
  grid-column: 1 / -1;
  display: flex; gap: 1rem; align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--cream-dim);
  margin: 0.4rem 0;
  padding: 0.5rem 0; /* generous hit area so the checkbox is easy to click */
}
.form__consent input {
  margin-top: 0.15em;
  width: 1.2em; height: 1.2em;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.form__consent a { text-decoration: underline; text-underline-offset: 3px; }
.form__consent a:hover { color: var(--accent-soft); }
.form__turnstile { grid-column: 1 / -1; min-height: 65px; }
.form__submit {
  grid-column: 1 / -1;
  justify-self: start;
  border: none;
  font-size: 0.78rem;
  padding: 1.15em 3em;
  margin-top: 0.3rem;
}
.form__submit:disabled { opacity: 0.5; pointer-events: none; }
.form__status { grid-column: 1 / -1; font-size: 0.95rem; }
.form__status--error { color: #FF8A8A; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

.form-done {
  border: 1px solid var(--cream-faint);
  border-radius: 8px;
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
  padding: clamp(2rem, 4vw, 3rem);
}
.form-done h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 0.8rem;
}
.form-done p { color: var(--cream-dim); }

.cpage__aside {
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 1.5rem;
  border: 1px solid var(--cream-faint);
  border-radius: 8px;
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
  padding: clamp(1.8rem, 3vw, 2.4rem);
}
.cpage__aside::after {
  content: '';
  position: absolute;
  right: -28px; bottom: -34px;
  width: 190px; height: 190px;
  background-color: var(--accent);
  opacity: 0.12;
  -webkit-mask: url('../resources/logo.svg') no-repeat center / contain;
  mask: url('../resources/logo.svg') no-repeat center / contain;
  pointer-events: none;
}
.cpage__aside > * { position: relative; }
.cpage__aside .mono { color: var(--cream-dim); }
.cpage__aside a.contact__email { align-self: flex-start; }
.cpage__note { color: var(--cream-dim); font-size: 0.95rem; line-height: 1.6; }

@media (max-width: 900px) {
  .cpage__grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
}

/* ============ Prose (privacy policy) ============ */
.prose { max-width: 72ch; }
.prose h2 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin: 2.2rem 0 0.7rem;
}
.prose p, .prose li { color: var(--cream-dim); line-height: 1.65; }
.prose ul { padding-left: 1.2rem; margin: 0.5rem 0; list-style: disc; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-soft); }

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--cream-faint);
  padding: 2.4rem var(--gutter) 2.8rem;
}
.footer__cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer__brand { display: flex; align-items: center; gap: 0.9rem; color: var(--cream-dim); }
.footer__logo { width: 30px; height: 30px; background-color: var(--cream-dim); }
.footer__col { display: flex; flex-direction: column; gap: 0.8rem; color: var(--cream-dim); }
.footer__col a { transition: color 0.3s ease; }
.footer__col a:hover { color: var(--accent-soft); }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .service { grid-template-columns: 4rem minmax(0, 1fr) 3rem; }
  .service__desc { grid-column: 2; max-width: none; }
  .service__arrow { grid-column: 3; grid-row: 1; }
}

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .studio__grid { grid-template-columns: 1fr; }
  .studio__stats { grid-column: 1; grid-row: auto; }
  .pain__grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .work__grid { grid-template-columns: 1fr; }
  .work-card, .work-card--wide { grid-column: 1 / -1; margin-top: 0 !important; }
  .process__track {
    flex-direction: column;
    width: 100%;
  }
  .phase { width: 100%; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.6rem;
  }
  .hero__line--indent { padding-left: 8vw; }
  .hero__coords { display: none; }
  .contact__row { flex-direction: column; align-items: flex-start; }
  .contact__note { text-align: left; }
  .service { gap: 0.8rem 1rem; padding-right: 0.5rem; }
  .service:hover { padding-left: 0; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .grain { animation: none; }
}

/* ============ Landing subpages (no GSAP) ============ */

/* clickable service card overlay (whole row links out) */
.service { position: relative; }
.service__cover { position: absolute; inset: 0; z-index: 1; }

/* CSS-driven mobile menu (subpages without main.js) */
.menu--css {
  visibility: hidden;
  transition: clip-path 0.55s cubic-bezier(0.77, 0, 0.18, 1), visibility 0s linear 0.55s;
}
.menu--css.is-open {
  clip-path: inset(0 0 0% 0);
  visibility: visible;
  transition: clip-path 0.55s cubic-bezier(0.77, 0, 0.18, 1);
}

/* landing hero: shorter title scale, no canvas */
.lp-hero .hero__title { font-size: clamp(3rem, 9.5vw, 8.8rem); }
.lp-hero .hero__tagline { max-width: 38rem; }

/* landing phases: static grid instead of pinned horizontal scroll */
.lp-phases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(1.4rem, 3vw, 3rem);
}
.lp-phases .phase { width: auto; min-height: 0; }

/* landing mid-page CTA */
.lp-cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem;
  margin-top: clamp(2.6rem, 6vh, 4.5rem);
}
.lp-cta__note { color: var(--cream-dim); max-width: 26rem; }

/* landing FAQ */
.lp-faq details { border-top: 1px solid var(--cream-faint); }
.lp-faq details:last-child { border-bottom: 1px solid var(--cream-faint); }
.lp-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
  padding: 1.5rem 0;
  font-weight: 700;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--cream);
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after {
  content: '+';
  font-family: var(--font-mono);
  color: var(--accent);
  flex-shrink: 0;
}
.lp-faq details[open] summary::after { content: '\2212'; }
.lp-faq details p { color: var(--cream-dim); max-width: 70ch; padding: 0 0 1.6rem; line-height: 1.6; }
