/* ==========================================================================
   Xolotl — studio site
   Palette: limestone, night jade, jade, slate. One family: Archivo (wdth axis).
   ========================================================================== */

:root {
  --limestone: #f2f2ee;
  --paper: #ffffff;
  --ink: #0f2a25;
  --jade: #1e7a62;
  --jade-light: #9fd3c1;
  --slate: #5f6a66;
  --line: #d9dbd5;
  --tile: #e6e7e2;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;

  /* Type scale (modular, ~1.333) */
  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.35rem + 1.1vw, 2.25rem);
  --step-3: clamp(2.1rem, 1.6rem + 2.4vw, 3.6rem);
  --step-4: clamp(2.5rem, 1.6rem + 4vw, 5rem);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--limestone);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  font-variation-settings: "wdth" 100;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--jade);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--ink);
  color: var(--limestone);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Type ---------- */

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 500;
  font-variation-settings: "wdth" 116;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-wrap: balance;
}

.display { font-size: var(--step-4); }
.h2 { font-size: var(--step-3); }
.h3 { font-size: var(--step-2); line-height: 1.1; }

.lede {
  font-size: var(--step-1);
  line-height: 1.45;
  max-width: 36ch;
  color: var(--ink);
}

.muted { color: var(--slate); }

p { margin: 0 0 1em; max-width: 64ch; }

.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line > span { display: block; }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.5em;
  border-radius: 999px;
  background: var(--ink);
  color: var(--limestone);
  text-decoration: none;
  font-weight: 500;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn:hover { background: var(--jade); border-color: var(--jade); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--limestone); border-color: var(--ink); }
.btn--light { background: var(--limestone); color: var(--ink); border-color: var(--limestone); }
.btn--light:hover { background: var(--jade-light); border-color: var(--jade-light); }

.text-link {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.4s var(--ease);
}
.text-link:hover { background-size: 0% 1px; background-position: 100% 100%; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition: transform 0.45s var(--ease), background 0.3s;
}
.site-header.is-scrolled { background: rgba(242, 242, 238, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-header.is-hidden { transform: translateY(-100%); }

.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-weight: 700;
  font-variation-settings: "wdth" 125;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.wordmark svg { width: 26px; height: 26px; flex: none; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 36px); }
.nav a { text-decoration: none; position: relative; }
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav a:not(.btn):hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { padding: 0.65em 1.2em; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  margin-right: -10px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}
.menu-toggle span + span { margin-top: 7px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--ink);
  color: var(--limestone);
  padding: calc(var(--header-h) + 32px) var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.6s var(--ease), visibility 0s 0.6s;
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.6s var(--ease); }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li a {
  display: block;
  font-size: clamp(2.2rem, 10vw, 3.4rem);
  font-variation-settings: "wdth" 118;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-decoration: none;
  padding: 6px 0;
}
.mobile-menu .menu-foot { color: var(--jade-light); }
.mobile-menu .menu-foot a { color: var(--limestone); }
body.menu-open .site-header { color: var(--limestone); background: transparent; backdrop-filter: none; }

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
}

/* ---------- Sections ---------- */

main { display: block; }
.section { padding-block: clamp(72px, 11vw, 160px); }
.section--tight { padding-block: clamp(48px, 7vw, 96px); }
.section--ink { background: var(--ink); color: var(--limestone); }
.section--ink .muted { color: #a9bdb6; }
.section--paper { background: var(--paper); }

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
@media (max-width: 640px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */

.hero {
  padding-top: calc(var(--header-h) + clamp(28px, 5vw, 72px));
}
.hero__text {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3vw, 40px);
  padding-bottom: clamp(40px, 6vw, 80px);
}
.hero__title { max-width: 21ch; }
.hero__sub {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
}
.hero__sub p { margin: 0; color: var(--slate); max-width: 46ch; font-size: var(--step-1); line-height: 1.45; }

/* Flip-book: full-bleed rotating work */
.flipbook {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8;
  max-height: 86vh;
  min-height: 320px;
  overflow: hidden;
  background: var(--tile);
}
@media (max-width: 700px) { .flipbook { aspect-ratio: 4 / 5; } }

.flipbook__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  clip-path: inset(0 0 0 100%);
}
.flipbook__slide.is-active { clip-path: inset(0 0 0 0); z-index: 2; }
.flipbook__slide.is-leaving { z-index: 1; clip-path: inset(0 0 0 0); }
.flipbook__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flipbook__bar {
  position: absolute;
  z-index: 5;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--gutter);
  color: var(--paper);
  background: linear-gradient(to top, rgba(10, 28, 24, 0.7), rgba(10, 28, 24, 0));
  padding-top: 64px;
}
.flipbook__caption { min-height: 1.5em; }
.flipbook__caption strong { font-weight: 600; }
.flipbook__controls { display: flex; align-items: center; gap: 6px; flex: none; }
.flipbook__controls button {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(15, 42, 37, 0.35);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.3s;
}
.flipbook__controls button:hover { background: rgba(15, 42, 37, 0.8); }
.flipbook__controls svg { width: 16px; height: 16px; }
.flipbook__progress {
  position: absolute;
  z-index: 6;
  left: 0; bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--jade-light);
  transform-origin: left;
  transform: scaleX(0);
}

/* ---------- Intro / facts ---------- */

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } }

.facts { margin: 0; display: grid; gap: 0; }
.facts div {
  display: grid;
  grid-template-columns: minmax(110px, 0.6fr) 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { color: var(--slate); }
.facts dd { margin: 0; }

/* ---------- Horizontal work reel ---------- */

.reel { overflow: hidden; }
.reel__track {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  padding-inline: var(--gutter);
  width: max-content;
}
.reel__item {
  width: clamp(280px, 42vw, 640px);
  flex: none;
  text-decoration: none;
}
.reel__item:nth-child(even) { margin-top: clamp(0px, 6vw, 96px); }
.reel__media {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--tile);
  aspect-ratio: 4 / 3;
}
.reel__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.reel__item:hover .reel__media img { transform: scale(1.04); }
.reel__meta { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; }
.reel__meta h3 { font-size: var(--step-1); font-variation-settings: "wdth" 110; letter-spacing: -0.015em; }
.reel__meta span { color: var(--slate); white-space: nowrap; }

.reel__end {
  width: clamp(240px, 28vw, 420px);
  flex: none;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-right: var(--gutter);
}

/* Without pinning (mobile / reduced motion): native swipe carousel */
.reel.is-native {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.reel.is-native::-webkit-scrollbar { display: none; }
.reel.is-native .reel__item { scroll-snap-align: start; scroll-margin-left: var(--gutter); width: min(82vw, 520px); }
.reel.is-native .reel__item:nth-child(even) { margin-top: 0; }

/* ---------- Service list with cursor preview ---------- */

.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid currentColor; }
.service-list li { border-bottom: 1px solid rgba(15, 42, 37, 0.18); }
.section--ink .service-list li { border-bottom-color: rgba(242, 242, 238, 0.18); }
.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 16px 48px;
  align-items: baseline;
  padding: clamp(20px, 2.6vw, 34px) 0;
  text-decoration: none;
  transition: padding 0.5s var(--ease), color 0.3s;
}
.service-row h3 {
  font-size: var(--step-3);
  font-variation-settings: "wdth" 120;
}
.service-row p { margin: 0; color: var(--slate); max-width: 44ch; }
.section--ink .service-row p { color: #a9bdb6; }
@media (hover: hover) and (pointer: fine) {
  .service-row:hover { padding-left: 20px; color: var(--jade-light); }
  .section--paper .service-row:hover,
  .section:not(.section--ink) .service-row:hover { color: var(--jade); }
}
@media (max-width: 760px) { .service-row { grid-template-columns: 1fr; } }

.cursor-preview {
  position: fixed;
  top: 0; left: 0;
  width: 300px;
  aspect-ratio: 4 / 3;
  pointer-events: none;
  z-index: 30;
  border-radius: var(--radius);
  overflow: hidden;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
}
.cursor-preview img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s; }
.cursor-preview img.is-on { opacity: 1; }

/* ---------- Feature (trade show) ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 90vh;
  background: var(--ink);
  color: var(--limestone);
}
.feature__media { position: relative; overflow: hidden; min-height: 60vh; }
.feature__media img { position: absolute; inset: 0; width: 100%; height: 115%; object-fit: cover; }
.feature__text {
  padding: clamp(48px, 7vw, 120px) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}
.feature__text p { color: #c3d2cc; }
.feature__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.feature__list li { padding-left: 22px; position: relative; }
.feature__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 10px; height: 2px;
  background: var(--jade-light);
}
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; min-height: 0; } }

/* ---------- Clients ---------- */

.clients {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  font-size: var(--step-2);
  font-variation-settings: "wdth" 112;
  letter-spacing: -0.02em;
  line-height: 1.3;
  max-width: 1100px;
}
.clients span { white-space: nowrap; }
.clients span:not(:last-child)::after { content: "/"; color: var(--jade); margin: 0 0.45em; font-weight: 300; }

/* ---------- CTA ---------- */

.cta {
  display: grid;
  gap: 32px;
  justify-items: start;
}
.cta h2 { max-width: 18ch; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--limestone);
  padding-block: clamp(56px, 8vw, 96px) 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}
.footer-grid h2 { font-size: var(--step-2); max-width: 14ch; }
.footer-grid h3 { font-size: var(--step--1); font-variation-settings: "wdth" 100; font-weight: 600; color: var(--jade-light); letter-spacing: 0; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--jade-light); }
.footer-grid address { font-style: normal; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(56px, 8vw, 96px);
  padding-top: 24px;
  border-top: 1px solid rgba(242, 242, 238, 0.18);
  color: #a9bdb6;
  font-size: var(--step--1);
}
.footer-word {
  font-weight: 700;
  font-variation-settings: "wdth" 125;
  font-size: clamp(4rem, 19vw, 17rem);
  letter-spacing: -0.05em;
  line-height: 0.8;
  margin-top: clamp(48px, 7vw, 88px);
  color: var(--jade);
  overflow: hidden;
  white-space: nowrap;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Page header (inner pages) ---------- */

.page-head {
  padding-top: calc(var(--header-h) + clamp(48px, 9vw, 140px));
  padding-bottom: clamp(40px, 6vw, 80px);
}
.page-head h1 { max-width: 21ch; }
.page-head .lede { margin-top: clamp(20px, 3vw, 36px); color: var(--slate); max-width: 48ch; }

/* ---------- Work grid ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.filters button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 0.6em 1.15em;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--limestone); border-color: var(--ink); }
.filters button sup { font-size: 0.7em; margin-left: 2px; color: var(--slate); }
.filters button[aria-pressed="true"] sup { color: var(--jade-light); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px);
}
.work-card { grid-column: span 6; }
.work-card.is-wide { grid-column: span 12; }
.work-card.is-third { grid-column: span 4; }
.work-card[hidden] { display: none; }
@media (max-width: 900px) {
  .work-card, .work-card.is-third { grid-column: span 6; }
}
@media (max-width: 600px) {
  .work-card, .work-card.is-third, .work-card.is-wide { grid-column: span 12; }
}

.work-card button {
  all: unset;
  display: block;
  width: 100%;
  cursor: pointer;
}
.work-card button:focus-visible { outline: 2px solid var(--jade); outline-offset: 4px; }
.work-card__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--tile);
  aspect-ratio: 4 / 3;
}
.work-card.is-wide .work-card__media { aspect-ratio: 2 / 1; }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.work-card:hover .work-card__media img { transform: scale(1.035); }
.work-card__count {
  position: absolute;
  right: 12px; bottom: 12px;
  background: rgba(15, 42, 37, 0.8);
  color: #fff;
  font-size: var(--step--1);
  padding: 4px 10px;
  border-radius: 999px;
}
.work-card__meta { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; align-items: baseline; }
.work-card__meta h2 { font-size: var(--step-1); font-variation-settings: "wdth" 110; letter-spacing: -0.015em; line-height: 1.2; }
.work-card__meta span { color: var(--slate); text-align: right; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(10, 26, 23, 0.96);
  color: var(--limestone);
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox__top, .lightbox__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px var(--gutter);
}
.lightbox__top h2 { font-size: var(--step-1); font-variation-settings: "wdth" 110; }
.lightbox__top p { margin: 4px 0 0; color: #a9bdb6; font-size: var(--step--1); }
.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0 var(--gutter);
  min-height: 0;
}
.lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox button.icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(242, 242, 238, 0.35);
  background: transparent;
  color: var(--limestone);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.3s;
  flex: none;
}
.lightbox button.icon:hover { background: rgba(242, 242, 238, 0.12); }
.lightbox button.icon svg { width: 18px; height: 18px; }
.lightbox__nav { display: flex; gap: 8px; }
.lightbox__counter { color: #a9bdb6; font-variant-numeric: tabular-nums; }

/* ---------- Services page ---------- */

.service-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 120px);
  border-top: 1px solid var(--line);
}
.service-block:nth-of-type(even) .service-block__media { order: -1; }
.service-block__media { border-radius: var(--radius); overflow: hidden; background: var(--tile); aspect-ratio: 4 / 3; }
.service-block__media img { width: 100%; height: 100%; object-fit: cover; }
.service-block__media--empty {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--jade-light);
  text-align: center;
  padding: 32px;
}
.service-block__text h2 { margin-bottom: 20px; }
.service-block__text ul { margin: 24px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.service-block__text li { padding-top: 10px; border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  .service-block { grid-template-columns: 1fr; }
  .service-block:nth-of-type(even) .service-block__media { order: 0; }
}
@media (max-width: 480px) { .service-block__text ul { grid-template-columns: 1fr; } }

.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  counter-reset: step;
}
.process li { counter-increment: step; border-top: 1px solid rgba(242, 242, 238, 0.3); padding-top: 20px; }
.process li::before {
  content: counter(step);
  display: block;
  font-size: var(--step-3);
  font-variation-settings: "wdth" 125;
  font-weight: 300;
  color: var(--jade-light);
  line-height: 1;
  margin-bottom: 24px;
}
.process h3 { font-size: var(--step-1); font-variation-settings: "wdth" 110; margin-bottom: 10px; }
.process p { color: #a9bdb6; }
@media (max-width: 900px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* ---------- About page ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.wide-photo { width: 100%; aspect-ratio: 21 / 9; overflow: hidden; background: var(--tile); }
.wide-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .wide-photo { aspect-ratio: 4 / 3; } }

.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.principles li { border-top: 1px solid var(--ink); padding-top: 20px; }
.principles h3 { font-size: var(--step-1); font-variation-settings: "wdth" 110; margin-bottom: 12px; }
.principles p { color: var(--slate); }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } }

.name-note {
  font-size: var(--step-2);
  font-variation-settings: "wdth" 108;
  letter-spacing: -0.015em;
  line-height: 1.3;
  max-width: 30ch;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 28px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-weight: 500; padding: 0; }
.field input, .field textarea, .field select {
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--slate);
  border-radius: 0;
  padding: 10px 0;
  width: 100%;
  transition: border-color 0.3s;
}
.field select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%230f2a25' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") right 4px center no-repeat; padding-right: 28px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom: 2px solid var(--jade); padding-bottom: 9px; }
.field .hint { color: var(--slate); font-size: var(--step--1); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55em 1.05em;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  background: var(--paper);
}
.chip span:hover { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--limestone); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--jade); outline-offset: 2px; }

.contact-aside { display: grid; gap: 32px; }
.contact-aside h2 { font-size: var(--step--1); font-variation-settings: "wdth" 100; font-weight: 600; color: var(--jade); letter-spacing: 0; margin-bottom: 8px; }
.contact-aside p, .contact-aside address { font-style: normal; font-size: var(--step-1); line-height: 1.4; margin: 0; }
.contact-aside a { text-decoration: none; }
.contact-aside a:hover { color: var(--jade); }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .flipbook__progress { display: none; }
}

/* Hide elements GSAP will reveal, only when JS + motion are available */
.js-motion [data-hero-line] > span { transform: translateY(105%); }
.js-motion .hero__sub, .js-motion .page-head .lede, .js-motion .page-head .btn { opacity: 0; }
.js-motion .flipbook { clip-path: inset(12% 6% 0 6%); }

.work-card, .service-block, [id] { scroll-margin-top: calc(var(--header-h) + 24px); }

.section-head > a { justify-self: start; }

/* Small screens: let headline lines flow naturally; intro becomes a fade */
@media (max-width: 700px) {
  .line, .line > span { display: inline; }
  .js-motion [data-hero-line] > span { transform: none; opacity: 0; }
}
