/* TwentyTwo Co. */

/* Fraunces, self-hosted from the brand files (fallback for Swear Display) */
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/Fraunces-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/Fraunces-Italic-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* palette */
  --paper: #F5F2EC;
  --stone: #DCDCCF;
  --stone-soft: #E9E8DE;
  --ink: #302924;
  --sage: #8D9470;
  --olive: #50573B;
  --sage-light: #C6CCA8;
  --moss: #4A5137;

  /* light theme (default) */
  --fg: var(--ink);
  --inv: var(--paper);
  --text-dim: rgba(48, 41, 36, 0.8);
  --label: rgba(48, 41, 36, 0.76);
  --line: rgba(48, 41, 36, 0.14);
  --accent-text: var(--olive);

  --serif: "Cormorant Garamond", "Fraunces", Georgia, "Times New Roman", serif;
  --accent: "swear-display-cilati", "swear-display", Georgia, serif;
  --sans: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* dark areas: footer, featured package, Why card, gallery viewer */
.footer, .pkg--feature, .why-card, .lightbox, .industries {
  --fg: var(--paper);
  --inv: var(--ink);
  --text-dim: rgba(245, 242, 236, 0.72);
  --label: rgba(245, 242, 236, 0.62);
  --line: rgba(245, 242, 236, 0.18);
  --accent-text: var(--sage-light);
  color: var(--fg);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--fg);
  font: 500 19px/1.55 var(--sans);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
em { font-style: italic; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--sage); color: var(--ink); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }

/* ---------- type helpers ---------- */
.eyebrow {
  font: 600 13px/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--label);
  display: flex; align-items: center; gap: 12px;
}
.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 5.4vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 72;
}
/* keep large serif sizes at the sturdier Fraunces cut if it is the fallback */
.marquee__track, .project__name, .h3, .pkg__name, .steps span, .steps h4,
.industries__list li, .about__num, .footer__cta strong, .lightbox__title, .nav__links a:not(.btn) {
  font-variation-settings: "opsz" 72;
}
.display em, .hero__title em { color: var(--accent-text); font-weight: 400; font-family: var(--accent); font-style: normal; }
.h3 { font: 300 clamp(26px, 2.6vw, 34px)/1.05 var(--serif); letter-spacing: -0.02em; }

.section-head { display: grid; gap: 24px; margin-bottom: clamp(32px, 4.5vw, 64px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  border: 1px solid var(--fg); border-radius: 22px 22px 4px 4px; /* arch: rounded top, nearly square base */
  background: var(--fg); color: var(--inv);
  font: 600 17px/1 var(--sans); letter-spacing: 0.03em;
  text-decoration: none; cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:hover { background: var(--olive); border-color: var(--olive); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn--ghost:hover { background: var(--fg); color: var(--inv); border-color: var(--fg); }
.btn--small { min-height: 44px; padding: 0 22px; font-size: 17px; }
.btn--full { width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), backdrop-filter 0.4s;
}
.nav.is-scrolled {
  background: rgba(245, 242, 236, 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding-top: 14px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
/* the wordmark file is cream; use it as a mask so it renders in ink on light backgrounds */
.nav__logo {
  display: block; width: 200px; aspect-ratio: 928 / 164;
  background: var(--ink);
  -webkit-mask: url("assets/img/logo/wordmark-cream.png") center / contain no-repeat;
  mask: url("assets/img/logo/wordmark-cream.png") center / contain no-repeat;
}
.nav__logo img { width: 100%; height: auto; opacity: 0; }
.nav__links { display: flex; align-items: center; gap: 40px; }
.nav__links a:not(.btn) {
  text-decoration: none; font-size: 19px; font-weight: 500; letter-spacing: 0.02em; color: var(--text-dim);
  transition: color 0.2s;
}
.nav__links a:not(.btn):hover { color: var(--fg); }
.nav__toggle {
  display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  position: relative; z-index: 2;
}
.nav__toggle span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--fg);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 26px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 0;
  display: flex; align-items: flex-start;
  padding: clamp(120px, 10vw, 150px) var(--gutter) clamp(40px, 5vw, 64px);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: auto -20% -40% 30%; height: 90%;
  background: radial-gradient(closest-side, rgba(141, 148, 112, 0.48), transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; width: 100%; max-width: var(--max); margin: 0 auto; }
.hero__eyebrow { margin-bottom: clamp(18px, 2vw, 28px); }
.hero__title {
  margin: 0 0 clamp(28px, 3.5vw, 48px);
  font-family: var(--serif);
  font-size: clamp(38px, 6.2vw, 100px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 72;
}
.hero__title .line { display: block; }
.hero__title em { font-style: normal; }
/* text and buttons stack in one left-aligned column under the headline */
.hero__foot {
  display: grid; grid-template-columns: minmax(0, 700px); justify-content: start; align-items: start; gap: 24px;
  padding-top: 8px;
}
.hero__lede { color: var(--text-dim); font-size: clamp(19px, 1.4vw, 22px); display: grid; gap: 14px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- filmstrip ---------- */
/* a slow, steady glide: one full loop takes well over two minutes */
.strip { overflow: hidden; padding: 8px 0; }
.strip__track { display: flex; gap: 12px; width: max-content; animation: slide 150s linear infinite; }
.strip__track img {
  width: clamp(180px, 20vw, 300px); aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px;
}
.strip:hover .strip__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip__track { animation: none; } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); margin-top: 56px; }
.marquee__track {
  display: flex; align-items: center; gap: 40px; width: max-content; padding: 26px 0;
  animation: slide 40s linear infinite reverse;
  font: 300 clamp(24px, 3.2vw, 44px)/1 var(--serif); letter-spacing: -0.02em; white-space: nowrap;
}
.marquee__track b { color: var(--sage); font-weight: 400; font-size: 0.9em; }

/* ---------- work ---------- */
.work, .services, .process, .industries, .contact {
  padding: clamp(56px, 6.5vw, 100px) var(--gutter);
}
.work > *, .services > *, .process > *, .contact > * { max-width: var(--max); margin-inline: auto; }

.project__num { font: 400 17px/1 var(--sans); color: var(--accent-text); letter-spacing: 0.1em; }
.project__name {
  font: 300 clamp(30px, 3.6vw, 56px)/0.92 var(--serif); letter-spacing: -0.015em;
  font-variation-settings: "opsz" 72;
}
.project__type { font-size: 15px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--label); }
.project__desc { color: var(--text-dim); max-width: 44ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 15px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-dim); }


/* ---------- services ---------- */
.services { background: var(--stone); }
/* services: one widely spaced word per service, italic list, round arrow (opens details) */
.svc-list { max-width: 1040px; margin: 0 auto; }
.svc { border-bottom: 1px solid rgba(48, 41, 36, 0.28); }
.svc:last-child { border-bottom: 0; }
.svc__head {
  width: 100%; display: grid; text-decoration: none; grid-template-columns: 1fr auto; align-items: center; gap: 24px;
  padding: clamp(28px, 3.5vw, 52px) 0; background: none; border: 0; color: inherit; cursor: pointer; text-align: center;
}
.svc__text { display: grid; justify-items: center; gap: clamp(16px, 2vw, 24px); }
.svc__word {
  font: 300 clamp(28px, 3.8vw, 52px)/1 var(--serif); text-transform: uppercase;
  letter-spacing: 0.34em; margin-right: -0.34em;
}
.svc__items {
  display: grid; gap: 6px;
  font: italic 300 clamp(15px, 1.5vw, 21px)/1.3 var(--serif); text-transform: uppercase;
  letter-spacing: 0.24em; color: var(--olive);
}
.svc__arrow {
  display: grid; place-items: center;
  width: clamp(56px, 6vw, 76px); aspect-ratio: 1; border-radius: 50%;
  border: 1.5px solid var(--sage); color: var(--sage);
  transition: transform 0.5s var(--ease), background 0.3s, border-color 0.3s, color 0.3s;
}
.svc__arrow svg { width: 44%; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.svc__head:hover .svc__arrow { background: var(--sage); color: var(--paper); }

/* packages */
.packages { margin-top: clamp(48px, 6vw, 88px); }
.packages__head { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 24px; align-items: end; margin-bottom: 40px; }
.packages__head p { color: var(--text-dim); }
.packages__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pkg {
  display: flex; flex-direction: column; gap: 16px;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.4);
  background: var(--paper);
  transition: transform 0.5s var(--ease), border-color 0.3s;
}
.pkg:hover { transform: translateY(-6px); border-color: rgba(48, 41, 36, 0.3); }
.pkg--feature { background: var(--ink); border-color: var(--ink); }
.pkg--feature:hover { border-color: var(--ink); }
.pkg__label { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--label); }
.pkg--feature .pkg__label { color: var(--sage-light); }
.pkg__name { font: 300 clamp(26px, 2.2vw, 32px)/1 var(--serif); letter-spacing: -0.02em; }
.pkg__desc { color: var(--text-dim); }
.pkg ul { display: grid; gap: 10px; padding: 18px 0 8px; border-top: 1px solid var(--line); margin-bottom: auto; }
.pkg li { display: flex; gap: 10px; color: var(--text-dim); font-size: 17px; }
.pkg li::before { content: "\2022"; color: var(--sage); font-size: 20px; line-height: 1.3; }
.pkg--feature li::before { color: var(--sage-light); }
.pkg .btn { align-self: flex-start; margin-top: 16px; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.steps span { font: 300 italic 40px/1 var(--serif); color: var(--olive); }
.steps h4 { font: 300 24px/1.1 var(--serif); }
.steps p { color: var(--text-dim); font-size: 18px; }

/* ---------- industries ---------- */
.industries { background: var(--stone); text-align: center; }
.industries .eyebrow { justify-content: center; margin-bottom: 40px; }
.industries__list { display: grid; }
.industries__list li {
  font: 300 clamp(26px, 3.8vw, 56px)/1.12 var(--serif); letter-spacing: -0.015em;
  color: rgba(48, 41, 36, 0.3);
  transition: color 0.4s var(--ease), font-style 0.2s;
}
.industries__list li:hover { color: var(--ink); font-style: italic; }

/* ---------- about (homepage teaser) ---------- */
.about {
  position: relative; overflow: hidden;
  background: var(--paper);
  padding: clamp(56px, 6.5vw, 100px) var(--gutter);
}
.about__grid {
  position: relative; z-index: 1;
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: start;
}
.about__photo { margin: 0; position: sticky; top: 110px; width: 100%; max-width: 360px; justify-self: end; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; border-radius: calc(var(--radius) * 1.6); }
.about__photo figcaption, .ab-intro__photo figcaption { margin-top: 14px; font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); }
.about__copy { display: grid; gap: 28px; }
.about__text { display: grid; gap: 22px; font-size: clamp(20px, 1.5vw, 23px); line-height: 1.65; color: var(--text-dim); max-width: 58ch; }
.about__text em { color: var(--fg); font-family: var(--serif); font-size: 1.12em; }
.about__num {
  position: absolute; right: var(--join-right); bottom: calc(var(--join) * -1); z-index: 0;
  font: 700 var(--join-size)/1 "Fraunces", Georgia, serif; letter-spacing: -0.06em;
  color: rgba(141, 148, 112, 0.24);
  pointer-events: none; user-select: none;
}

/* ---------- contact ---------- */
.contact { background: var(--stone); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 112px); align-items: start; }
.contact__intro { display: grid; gap: 28px; }
.contact .display { font-size: clamp(36px, 4.4vw, 64px); }
.contact__lede { color: var(--text-dim); max-width: 44ch; }
.contact__list { display: grid; border-top: 1px solid var(--line); }
.contact__list li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact__list span { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--label); padding-top: 4px; }
.contact__list a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease); }
.contact__list a:hover { background-size: 100% 1px; }

.form {
  display: grid; gap: 20px;
  padding: clamp(24px, 3.4vw, 48px);
  background: var(--paper); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.6);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field > span, .chips legend { font-size: 15px; font-weight: 700; letter-spacing: 0.04em; color: var(--text-dim); }
.field i { font-style: normal; opacity: 0.7; }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  font: inherit; font-size: 18px; color: var(--fg);
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px;
  transition: border-color 0.2s, background 0.2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--olive); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #A8452F; }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { margin-bottom: 10px; padding: 0; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 16px; color: var(--text-dim);
  transition: all 0.25s var(--ease);
}
.chips input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--olive); outline-offset: 2px; }
.form__note { font-size: 16px; color: var(--olive); min-height: 1.4em; }

/* ---------- footer ---------- */
.footer { background: var(--ink); padding: 0 var(--gutter) 32px; }
.footer__cta {
  display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(36px, 5vw, 72px) 0;
  text-decoration: none; border-bottom: 1px solid var(--line);
}
.footer__cta span { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--label); }
.footer__cta strong {
  font: 300 clamp(34px, 4.6vw, 68px)/0.95 var(--serif); letter-spacing: -0.025em;
  transition: color 0.4s var(--ease);
}
.footer__cta em { display: inline-block; font-style: normal; transition: transform 0.5s var(--ease); }
.footer__cta:hover strong { color: var(--sage-light); }
.footer__cta:hover em { transform: translateX(0.2em); }
.footer__bar {
  max-width: var(--max); margin: 0 auto; padding-top: 32px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  font-size: 16px; color: var(--text-dim);
}
.footer__logo { width: 150px; height: auto; }
.footer__bar nav { display: flex; gap: 24px; }
.footer__bar a { text-decoration: none; }
.footer__bar a:hover { color: var(--fg); }
.footer__contact { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: grid; grid-template-columns: 72px 1fr 72px; grid-template-rows: auto 1fr; align-items: center;
  background: rgba(48, 41, 36, 0.96);
  padding: 0 12px 24px;
}
.lightbox[hidden] { display: none; }
.lightbox__top { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding: 16px 8px; }
.lightbox__title { font: 300 24px/1 var(--serif); }
.lightbox__count { color: var(--text-dim); font-size: 16px; margin-right: auto; }
.lightbox__close, .lightbox__nav {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--fg); font-size: 22px; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--fg); color: var(--inv); }
.lightbox__nav { justify-self: center; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 110px); margin: 0 auto; object-fit: contain; border-radius: 8px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.hero__title .line.reveal { transition-duration: 1.2s; }
.hero__title .line:nth-child(2) { transition-delay: 0.1s; }
.hero__title .line:nth-child(3) { transition-delay: 0.2s; }
.hero__foot.reveal { transition-delay: 0.35s; }
.no-js .reveal { opacity: 1; transform: none; }

/* headings: words rise from behind a mask, one after another */
.display.split.reveal { opacity: 1; transform: none; }
.display.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.06em 0.04em 0.14em; margin: -0.06em -0.04em -0.14em; }
.display.split .wi {
  display: inline-block; transform: translateY(110%);
  transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 70ms + 80ms);
}
.display.split.is-in .wi { transform: none; }

/* script accent word: underline draws in after the words land */
.accent-word { position: relative; display: inline-block; }
.scribble { position: absolute; left: 2%; bottom: -0.16em; width: 96%; height: 0.14em; overflow: visible; pointer-events: none; }
.scribble path {
  fill: none; stroke: var(--sage); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 320; stroke-dashoffset: 320; transition: stroke-dashoffset 1.2s var(--ease) 0.75s;
}
.display.split.is-in .scribble path { stroke-dashoffset: 0; }

/* hero accent: underline draws in, then a soft light sweeps across the words */
.hero__title .line.is-in .scribble path { stroke-dashoffset: 0; transition-delay: 1.1s; }
.hero-accent .scribble { bottom: -0.1em; }
.hero-accent .shine {
  display: inline-block; padding: 0 0.12em 0.08em; margin: 0 -0.12em -0.08em;
  background: linear-gradient(100deg, var(--accent-text) 36%, #C3C9A2 50%, var(--accent-text) 64%) 120% 0 / 300% 100% repeat-x;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 8s ease-in-out 2.2s infinite;
}
@keyframes shine { 0% { background-position: 120% 0; } 55%, 100% { background-position: -20% 0; } }

/* small labels: fade in while the letter spacing settles */
.eyebrow.reveal { transform: none; letter-spacing: 0.5em; transition: opacity 1s var(--ease), letter-spacing 1.4s var(--ease); }
.eyebrow.reveal.is-in { letter-spacing: 0.18em; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .packages__grid { grid-template-columns: 1fr; }
  .packages__head { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 28px;
    background: var(--paper);
    opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
  }
  .nav__links a:not(.btn) { font: 300 36px/1 var(--serif); color: var(--fg); }
  .nav__links .btn { min-height: 52px; padding: 0 32px; font-size: 18px; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; }
  /* backdrop-filter would make the nav the containing block for the fixed menu */
  .nav.is-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; border-color: transparent; }
  .nav__logo { position: relative; z-index: 2; }
  .nav__logo { width: 160px; }

  .hero { padding-top: 130px; }
  .hero__foot { grid-template-columns: 1fr; }


  .svc__head { gap: 12px; }
  .svc__word { font-size: clamp(24px, 7vw, 34px); letter-spacing: 0.22em; margin-right: -0.22em; }
  .svc__items { letter-spacing: 0.16em; }
  .svc__arrow { width: 48px; }

  .about__grid { grid-template-columns: 1fr; }
  .about__photo { position: relative; top: auto; max-width: 280px; justify-self: start; }

  .contact__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .contact__list li { grid-template-columns: 1fr; gap: 4px; }

  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto; padding: 0 8px 16px; }
  .lightbox__img { grid-column: 1 / -1; grid-row: 2; max-height: calc(100vh - 170px); }
  .lightbox__nav--prev { grid-row: 3; grid-column: 1; }
  .lightbox__nav--next { grid-row: 3; grid-column: 2; }
}

@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .footer__bar { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .display.split .wi { transform: none; }
  .scribble path { stroke-dashoffset: 0; }
  .eyebrow.reveal { letter-spacing: 0.18em; }
  .hero-accent .shine { animation: none; background: none; color: var(--accent-text); }
}

/* ---------- about page ---------- */
.about__link { justify-self: start; margin-top: 8px; }
.nav__links a[aria-current="page"]:not(.btn) { color: var(--fg); }

.ab-intro { padding: clamp(130px, 15vw, 190px) var(--gutter) clamp(48px, 5vw, 80px); position: relative; overflow: hidden; }
.ab-intro::before {
  content: ""; position: absolute; inset: -30% -10% auto 40%; height: 90%;
  background: radial-gradient(closest-side, rgba(141, 148, 112, 0.48), transparent 70%);
  pointer-events: none;
}
.ab-intro__grid {
  position: relative; max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 6vw, 96px); align-items: end;
}
.ab-intro__copy { display: grid; gap: 24px; }
.ab-intro .display { font-size: clamp(40px, 5.8vw, 88px); }
.ab-intro__lede { font-size: clamp(19px, 1.8vw, 24px); color: var(--text-dim); max-width: 30ch; }
.ab-intro__photo { margin: 0; width: 100%; max-width: 380px; justify-self: end; }
.ab-intro__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; border-radius: calc(var(--radius) * 1.6); }

.ab-story { background: var(--stone); padding: clamp(56px, 6.5vw, 100px) var(--gutter); }
.ab-story__inner { max-width: 820px; margin: 0 auto; display: grid; gap: 40px; }
.ab-story__lead {
  font: 300 clamp(26px, 2.8vw, 36px)/1.12 var(--serif); letter-spacing: -0.02em;
  font-variation-settings: "opsz" 72;
}
.ab-story__text { display: grid; gap: 22px; font-size: clamp(20px, 1.5vw, 22px); line-height: 1.7; color: var(--text-dim); }
.ab-story__text em { font-family: var(--serif); font-size: 1.1em; color: var(--olive); }

.ab-why { background: var(--paper); padding: clamp(56px, 6.5vw, 100px) var(--gutter); }
.why-card {
  --card: var(--moss);
  max-width: 980px; margin: 0 auto;
  background: var(--card);
  border-radius: calc(var(--radius) * 2);
  padding: clamp(48px, 8vw, 104px) clamp(24px, 7vw, 96px);
  display: grid; justify-items: center; text-align: center; gap: clamp(28px, 4vw, 44px);
}
.why-card__title {
  font: 300 clamp(30px, 3.6vw, 48px)/1.08 var(--serif); letter-spacing: -0.015em;
  font-variation-settings: "opsz" 72; max-width: 14ch;
}
.why-card__mark { position: relative; display: inline-block; white-space: nowrap; font-family: var(--accent); font-style: normal; color: var(--paper); }
.why-card__mark svg { position: absolute; left: 2%; right: 2%; bottom: -0.12em; width: 96%; height: 0.24em; overflow: visible; }
.why-card__mark path {
  fill: none; stroke: var(--sage-light); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 320; stroke-dashoffset: 320; transition: stroke-dashoffset 1.4s var(--ease) 0.4s;
}
.why-card.is-in .why-card__mark path { stroke-dashoffset: 0; }
.why-card__text { display: grid; gap: 18px; max-width: 58ch; font-size: clamp(19px, 1.4vw, 21px); line-height: 1.7; color: var(--text-dim); }
.why-card__text strong { color: var(--paper); font-weight: 700; }

.wheel { width: min(100%, 440px); height: auto; margin-top: 12px; overflow: visible; }
.wheel__band { fill: var(--paper); }
.wheel__outer { fill: var(--moss); font: 700 13px var(--sans); letter-spacing: 0.08em; }
.wheel__spin { transform-origin: 200px 200px; animation: wheel 60s linear infinite; }
@keyframes wheel { to { transform: rotate(360deg); } }
.wheel__line, .wheel__line line, .wheel__ticks line { fill: none; stroke: rgba(245, 242, 236, 0.55); stroke-width: 1.2; }
.wheel circle.wheel__line { fill: var(--card); }
.wheel__word { fill: var(--paper); font: italic 400 17px var(--serif); letter-spacing: 0.01em; }
.wheel__core { fill: var(--sage-light); }
.wheel__num { fill: var(--ink); font: 700 92px "Fraunces", Georgia, serif; letter-spacing: -0.03em; font-variation-settings: "opsz" 144; }

.ab-cta { background: var(--stone); padding: clamp(64px, 7vw, 112px) var(--gutter); text-align: center; display: grid; justify-items: center; gap: 24px; }
.ab-cta .display { font-size: clamp(40px, 5.8vw, 88px); max-width: 12ch; }
.ab-cta__lede { color: var(--text-dim); font-size: clamp(18px, 1.6vw, 22px); }
.ab-cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

@media (max-width: 820px) {
  .ab-intro__grid { grid-template-columns: 1fr; align-items: start; }
  .ab-intro__photo { justify-self: start; max-width: 280px; }
  .why-card__mark { white-space: normal; }
}

/* ---------- shared: section header with a button on the right ---------- */
.section-head--split { grid-template-columns: 1fr auto; align-items: end; gap: 24px 40px; }
.section-head--split > div { display: grid; gap: 24px; }

/* ---------- inner page header ---------- */
.page-head { padding: clamp(140px, 15vw, 200px) var(--gutter) clamp(40px, 5vw, 72px); position: relative; overflow: hidden; }
.page-head::before {
  content: ""; position: absolute; inset: -30% -10% auto 45%; height: 90%;
  background: radial-gradient(closest-side, rgba(141, 148, 112, 0.48), transparent 70%);
  pointer-events: none;
}
.page-head__inner { position: relative; max-width: var(--max); margin: 0 auto; display: grid; gap: 24px; }
.page-head .display { font-size: clamp(40px, 5.8vw, 88px); }
.page-head__lede { font-size: clamp(18px, 1.6vw, 22px); color: var(--text-dim); max-width: 46ch; }

/* ---------- home: project tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) clamp(12px, 1.6vw, 24px); }
.tile { display: grid; gap: 16px; text-decoration: none; }
.tile__img { display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; background: var(--stone); }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover .tile__img img { transform: scale(1.05); }
.tile__meta { display: grid; gap: 6px; }
.tile__name { font: 300 clamp(26px, 2.4vw, 36px)/1.05 var(--serif); }
.tile__type { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--label); }
/* stagger the middle column */
.tile:nth-child(3n+2) { margin-top: clamp(0px, 5vw, 80px); margin-bottom: calc(-1 * clamp(0px, 5vw, 80px)); }

/* ---------- home: service rows link to the Services page ---------- */
a.svc { color: inherit; }
a.svc:hover .svc__word { color: var(--olive); }
.svc__word { transition: color 0.4s var(--ease); }

/* ---------- work page ---------- */
.case { padding: clamp(48px, 6vw, 88px) var(--gutter); scroll-margin-top: calc(-1 * clamp(48px, 6vw, 88px)); }
.case--alt { background: var(--stone); }
.case__inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.case__head { position: sticky; top: 110px; display: grid; gap: 18px; justify-items: start; }
.gallery { columns: 2; column-gap: clamp(10px, 1.4vw, 18px); }
.gallery img {
  width: 100%; height: auto; margin-bottom: clamp(10px, 1.4vw, 18px); break-inside: avoid; border-radius: var(--radius);
  cursor: zoom-in; transition: opacity 0.3s;
}
.gallery img:hover { opacity: 0.88; }

/* ---------- services page ---------- */
.services--page { padding-top: 0; background: var(--paper); }
.svc-page { max-width: var(--max); margin: 0 auto; display: grid; }
.svc-full {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center;
  padding: clamp(40px, 5vw, 72px) 0; border-top: 1px solid var(--line); scroll-margin-top: 60px;
}
.svc-full:nth-child(even) .svc-full__photo { order: 2; }
.svc-full__photo { margin: 0; }
.svc-full__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: calc(var(--radius) * 1.6); }
.svc-full__copy { display: grid; gap: 22px; justify-items: start; }
.svc-full__copy .svc__word { margin-right: 0; }
.svc-full__copy .svc__items { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.svc-full__p { color: var(--text-dim); font-size: 20px; max-width: 54ch; }
.svc-full__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.svc-full__list li { font-size: 16px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-dim); }
/* a la carte: single services, grouped like a simple menu */
.alacarte .packages__head { grid-template-columns: 1fr; gap: 10px; margin-bottom: 32px; }
.alacarte .packages__head p { margin: 0; }
.alacarte { margin-top: clamp(32px, 4vw, 56px); padding: clamp(40px, 5vw, 64px) clamp(20px, 3vw, 48px); border: 1px solid var(--line); border-radius: calc(var(--radius) * 2); }
.alc__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); }
.alc__cat { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--label); margin: 0 0 14px; }
.alc__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.alc__col li { font: 400 21px/1.3 var(--serif); }
.alc__cta { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; margin-top: clamp(32px, 4vw, 48px); padding-top: 24px; border-top: 1px solid var(--line); }
.alc__cta p { margin: 0; color: var(--text-dim); }
@media (max-width: 1000px) { .alc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .alc__grid { gap: 28px 16px; } .alc__col li { font-size: 18px; } }
.services--page .packages { margin-top: clamp(48px, 6vw, 80px); padding: clamp(48px, 6vw, 80px) clamp(20px, 3vw, 48px); background: var(--stone); border-radius: calc(var(--radius) * 2); }

/* ---------- contact page ---------- */
.contact--page { padding-top: clamp(140px, 15vw, 200px); }

@media (max-width: 1024px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile:nth-child(3n+2) { margin-top: 0; margin-bottom: 0; }
  .tile:nth-child(even) { margin-top: 48px; margin-bottom: -48px; }
  .case__inner { grid-template-columns: 1fr; }
  .case__head { position: static; }
  .svc-full { grid-template-columns: 1fr; }
  .svc-full:nth-child(even) .svc-full__photo { order: 0; }
  .svc-full__photo { max-width: 420px; }
}

@media (max-width: 820px) {
  .section-head--split { grid-template-columns: 1fr; }
  .section-head--split .btn { justify-self: start; }
  .svc-full__copy .svc__word { font-size: clamp(28px, 8vw, 38px); }
}

@media (max-width: 520px) {
  .tiles { gap: 12px; }
  .tile:nth-child(even) { margin-top: 32px; margin-bottom: -32px; }
  .tile__name { font-size: 22px; }
  .tile__type { font-size: 12px; letter-spacing: 0.14em; }
}

/* ---------- 22 touches ---------- */
/* spinning badge in the homepage hero */
.badge22 {
  position: absolute; z-index: 2; top: clamp(110px, 14vw, 150px); right: var(--gutter);
  width: clamp(96px, 10vw, 140px); aspect-ratio: 1; display: block; color: var(--ink);
  transition: transform 0.5s var(--ease);
}
.badge22:hover { transform: scale(1.06); }
.badge22 svg { width: 100%; height: 100%; overflow: visible; }
.badge22__ring { transform-origin: 100px 100px; animation: wheel 24s linear infinite; }
.badge22:hover .badge22__ring { animation-duration: 8s; }
.badge22 text { fill: currentColor; font: 700 16px var(--sans); letter-spacing: 0.1em; }
.badge22__core { fill: var(--sage-light); transition: fill 0.4s; }
.badge22:hover .badge22__core { fill: var(--sage); }
.badge22 .badge22__num { font: 700 54px "Fraunces", Georgia, serif; letter-spacing: -0.03em; font-variation-settings: "opsz" 144; }

/* oversized 22 watermarks */
.services:not(.services--page), .page-head, .contact--page, .footer { position: relative; isolation: isolate; overflow: hidden; }
.mark22 {
  position: absolute; z-index: -1; right: -0.08em; top: 50%; margin-top: -0.5em;
  font: 700 clamp(240px, 38vw, 620px)/1 "Fraunces", Georgia, serif; letter-spacing: -0.06em;
  color: rgba(141, 148, 112, 0.12);
  pointer-events: none; user-select: none; will-change: translate;
}
.page-head .mark22 { top: auto; bottom: -0.32em; margin-top: 0; font-size: clamp(220px, 32vw, 520px); }
.mark22--outline {
  top: 0; margin-top: -0.12em; left: 50%; right: auto; transform: translateX(-50%);
  font-size: clamp(260px, 38vw, 640px); color: transparent;
  -webkit-text-stroke: 1px rgba(245, 242, 236, 0.14);
}
.about__num { will-change: translate; }
/* homepage: the filled 22 in the About teaser carries on into the footer as an outline.
   Both glyphs share size and position; the footer's copy starts where the About section cuts the first one off. */
:root { --join-size: clamp(260px, 42vw, 680px); --join: 0.5em; --join-right: 0.02em; }
.footer--join .mark22--outline {
  top: calc((1em - var(--join)) * -1); margin-top: 0;
  left: auto; right: var(--join-right); transform: none;
  font-size: var(--join-size); font-variation-settings: normal;
  -webkit-text-stroke: 1.5px rgba(198, 204, 168, 0.45);
}

/* keep the footer's outline 22 quiet behind the smaller "Let's talk" and the footer links */
.footer .mark22--outline { opacity: 0.55; }

/* back-to-top button */
.top22 {
  position: fixed; z-index: 90; right: clamp(14px, 2.4vw, 32px); bottom: clamp(14px, 2.4vw, 32px);
  width: 58px; height: 58px; border: 0; border-radius: 50%; padding: 0; cursor: pointer;
  display: grid; place-items: center;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 8px 28px rgba(48, 41, 36, 0.16);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(0.9);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s, background 0.3s, color 0.3s;
}
.top22.is-visible { opacity: 1; visibility: visible; transform: none; }
.top22:hover { background: var(--ink); color: var(--paper); }
.top22 svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.top22 circle { fill: none; stroke-width: 2; }
.top22__track { stroke: rgba(48, 41, 36, 0.1); }
.top22__fill { stroke: var(--sage); stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; }
.top22 span { position: relative; font: 700 21px/1 "Fraunces", Georgia, serif; letter-spacing: -0.03em; }
.lightbox:not([hidden]) ~ .top22, body:has(.nav.is-open) .top22 { opacity: 0; visibility: hidden; }

@media (max-width: 820px) {
  /* on phones, sit beside the short last headline line instead of over the first */
  .badge22 { top: calc(130px + 1.8 * clamp(38px, 6.2vw, 100px) - 22px + 13px + clamp(18px, 2vw, 28px)); width: 80px; }
  .badge22 text { font-size: 17px; }
}
@media (max-width: 600px) {
  /* phones: the headline sits comfortably inside the width */
  .hero { --hero-fs: min(calc((100vw - 32px) / 7.4), 56px); }
  .hero__title { font-size: var(--hero-fs); }
  .badge22 { top: calc(130px + 2 * var(--hero-fs) + 52px); width: 72px; }
  /* the label stacks on two lines instead of wrapping mid-phrase */
  .hero__eyebrow { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 18px; }
  .hero__dot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .badge22__ring { animation: none; }
}

/* ---------- the meaning of 22, in small places ---------- */
.footer__note {
  flex-basis: 100%; order: 3;
  font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--label);
}
.footer__note b { font: 700 18px "Fraunces", Georgia, serif; font-style: normal; color: var(--sage-light); margin-right: 2px; }
.footer__note { transition: opacity 0.35s var(--ease); padding-right: 0.15em; } /* room for the italic overhang */
.footer__note.is-swapping { opacity: 0; }

/* easter eggs: the little note, and the burst of 22s */
.note22 {
  position: fixed; z-index: 95; left: clamp(14px, 2.4vw, 32px); bottom: clamp(14px, 2.4vw, 32px);
  max-width: calc(100vw - 120px); margin: 0; padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font: italic 18px/1.2 var(--serif);
  box-shadow: 0 10px 30px rgba(48, 41, 36, 0.22);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}
.note22.is-on { opacity: 1; visibility: visible; transform: none; }
.burst22 {
  position: fixed; z-index: 96; bottom: -60px; pointer-events: none;
  font: 700 var(--size, 28px)/1 "Fraunces", Georgia, serif; letter-spacing: -0.04em; color: var(--sage);
  animation: burst22 2.6s var(--ease) forwards;
}
.burst22--light { color: var(--sage-light); }
@keyframes burst22 {
  0%   { opacity: 0; transform: translate(0, 0) rotate(0deg) scale(0.6); }
  15%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--drift, 0), -70vh) rotate(var(--spin, 0deg)) scale(1); }
}

.top22__tip {
  position: absolute; right: calc(100% + 10px); top: 50%; transform: translate(8px, -50%);
  white-space: nowrap; padding: 6px 12px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font: italic 500 15px/1 var(--serif); letter-spacing: 0.02em;
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.top22:hover .top22__tip, .top22:focus-visible .top22__tip { opacity: 1; transform: translate(0, -50%); }
.badge22.is-222 .badge22__core { fill: var(--sage); }

/* 404 */
.notfound .page-head { min-height: 100svh; display: flex; align-items: center; }
.notfound .page-head__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* 22 cursor (mouse and trackpad only; the click point is the center of the circle) */
@media (hover: hover) and (pointer: fine) {
  html, body { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='14' fill='%23302924' stroke='%23F5F2EC' stroke-width='1.5'/%3E%3Ctext x='16' y='20.5' text-anchor='middle' font-family='Didot, Bodoni 72, Times New Roman, serif' font-weight='700' font-size='13' letter-spacing='-0.5' fill='%23F5F2EC'%3E22%3C/text%3E%3C/svg%3E") 16 16, auto; }
  a, button, label, summary, [role="button"], .gallery img, .chips label, .chips input, .tile, .svc,
  .btn, .nav__toggle, .lightbox__close, .lightbox__nav, .top22, .badge22, .acc__head { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='14' fill='%238D9470' stroke='%23F5F2EC' stroke-width='1.5'/%3E%3Ctext x='16' y='20.5' text-anchor='middle' font-family='Didot, Bodoni 72, Times New Roman, serif' font-weight='700' font-size='13' letter-spacing='-0.5' fill='%23F5F2EC'%3E22%3C/text%3E%3C/svg%3E") 16 16, pointer; }
  input, textarea, select { cursor: text; }
}

/* ---------- soft gradient blobs ---------- */
/* overflow: clip (not hidden) keeps the sticky project headers on the Work page working */
.hero, .work, .industries, .about, .contact, .case, .ab-story, .ab-why, .ab-cta, .services, .process, .page-head, .footer {
  position: relative; isolation: isolate; overflow: clip;
}
.hero::after, .page-head::after,
.work::before, .work::after, .services::before, .industries::before, .about::before, .contact::before,
.footer::before, .case::before, .ab-story::before, .ab-why::before, .ab-cta::before, .process::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: var(--size, 52vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, var(--tint, rgba(141, 148, 112, 0.46)), transparent 72%);
  animation: blob 22s ease-in-out infinite alternate;
}
@keyframes blob {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(3vw, -2vw) scale(1.08); }
  100% { transform: translate(-2vw, 3vw) scale(0.94); }
}
/* warm, lighter variant for variety */
.hero::after, .work::after, .about::before, .ab-why::before, .page-head::after, .case:nth-of-type(even)::before {
  --tint: rgba(176, 184, 140, 0.55);
}

.hero::after       { --size: 46vw; top: -12%; left: -14%; animation-delay: -6s; }
.page-head::after  { --size: 38vw; bottom: -30%; left: -12%; animation-delay: -11s; }
.work::before      { --size: 44vw; top: 18%; right: -18%; }
.work::after       { --size: 40vw; bottom: -10%; left: -16%; animation-delay: -9s; }
.services::before  { --size: 50vw; top: -8%; left: -20%; animation-delay: -4s; }
.industries::before{ --size: 60vw; top: 50%; left: 50%; margin: -30vw 0 0 -30vw; animation-delay: -14s; }
.about::before     { --size: 42vw; top: -6%; left: -12%; animation-delay: -7s; }
.contact::before   { --size: 46vw; top: -10%; right: -16%; animation-delay: -3s; }
.process::before   { --size: 40vw; top: 10%; right: -14%; animation-delay: -12s; }
.case::before      { --size: 44vw; top: 4%; right: -18%; }
.case:nth-of-type(even)::before { right: auto; left: -18%; animation-delay: -10s; }
.ab-story::before  { --size: 44vw; top: -12%; right: -16%; animation-delay: -5s; }
.ab-why::before    { --size: 48vw; top: 30%; left: -20%; animation-delay: -8s; }
.ab-cta::before    { --size: 50vw; top: 50%; left: 50%; margin: -25vw 0 0 -25vw; animation-delay: -15s; }
.footer::before    { --size: 56vw; top: -28vw; left: 50%; margin-left: -28vw; --tint: rgba(198, 204, 168, 0.22); animation-delay: -2s; }

@media (max-width: 820px) {
  .hero::after, .page-head::after, .work::before, .work::after, .services::before, .about::before,
  .contact::before, .process::before, .case::before, .ab-story::before, .ab-why::before { --size: 90vw; }
  .industries::before, .ab-cta::before { --size: 110vw; margin: -55vw 0 0 -55vw; }
}

/* homepage: Services and "Who we work with" share a background, so keep the gap between them tight */
.services:not(.services--page) { padding-bottom: clamp(40px, 5vw, 72px); }

/* "Who we work with": deep moss band so it reads as its own block after Services */
.industries { background: var(--moss); padding-block: clamp(56px, 6.5vw, 100px); }
.industries .eyebrow { color: var(--sage-light); }
.industries__list li { color: rgba(245, 242, 236, 0.6); }
.industries__list li:hover { color: var(--paper); }
.industries::before { --tint: rgba(198, 204, 168, 0.32); }

/* phones: leave room at the very bottom so the 22 back-to-top button doesn't cover the footer text */
@media (max-width: 820px) {
  .footer { padding-bottom: 96px; }
}

/* ---------- wow touches ---------- */
/* photos unveil from the bottom up */
.unveil { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease); }
.unveil.is-in { clip-path: inset(0 0 0 0); }
.gallery img.unveil.is-in, .tile__img.unveil.is-in { transition-delay: 0.05s; }
.no-js .unveil { clip-path: none; }

/* "View project" tag on homepage tiles */
.tile__img { position: relative; }
.tile__img::after {
  content: "View project \2192"; position: absolute; left: 50%; bottom: 18px;
  padding: 10px 18px; border-radius: 999px; white-space: nowrap;
  background: rgba(245, 242, 236, 0.92); color: var(--ink);
  font: italic 500 17px/1 var(--serif); letter-spacing: 0.02em;
  opacity: 0; transform: translate(-50%, 10px); transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
  pointer-events: none;
}
.tile:hover .tile__img::after, .tile:focus-visible .tile__img::after { opacity: 1; transform: translate(-50%, 0); }

/* one-time 22 intro */
.intro22 {
  position: fixed; inset: 0; z-index: 500;
  display: grid; place-content: center; justify-items: center; gap: 14px;
  background: var(--ink); color: var(--paper);
  transition: transform 1s cubic-bezier(0.76, 0, 0.24, 1);
}
.intro22.is-done { transform: translateY(-100%); }
.intro22__num { font: 700 clamp(96px, 16vw, 200px)/1 "Fraunces", Georgia, serif; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.intro22__line {
  font: 600 13px/1 var(--sans); letter-spacing: 0.32em; text-transform: uppercase; color: var(--sage-light);
  opacity: 0; animation: introLine 0.6s var(--ease) 0.35s forwards;
}
@keyframes introLine { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .unveil { clip-path: none; }
  .intro22 { display: none; }
}

/* spacing pass: where padded cards sit next to section padding, trim the outer side */
.ab-why { padding-top: clamp(40px, 4.5vw, 64px); }
.why-card { padding-block: clamp(40px, 6vw, 84px); }
.ab-cta { padding-top: clamp(48px, 5vw, 80px); }
.services--page { padding-bottom: clamp(24px, 3vw, 48px); }
/* gallery photos fade and rise into place */
.gallery img.rise { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.gallery img.rise.is-in { opacity: 1; transform: none; }
.gallery img.rise.is-in:hover { opacity: 0.88; }
.no-js .gallery img.rise { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .gallery img.rise { opacity: 1; transform: none; } }

/* glows float: wider wandering paths, two routes so neighbours don't move in sync */
@keyframes blob {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(9vw, -6vw) scale(1.12); }
  50%  { transform: translate(3vw, 7vw) scale(0.94); }
  75%  { transform: translate(-8vw, 2vw) scale(1.08); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes blob-alt {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(-7vw, 5vw) scale(0.92); }
  50%  { transform: translate(-2vw, -8vw) scale(1.14); }
  75%  { transform: translate(8vw, -3vw) scale(0.98); }
  100% { transform: translate(0, 0) scale(1); }
}
.hero::after, .page-head::after,
.work::before, .work::after, .services::before, .industries::before, .about::before, .contact::before,
.footer::before, .case::before, .ab-story::before, .ab-why::before, .ab-cta::before, .process::before {
  /* longhands, so each glow keeps its own animation-delay from above */
  animation-name: blob; animation-duration: 16s; animation-timing-function: ease-in-out;
  animation-iteration-count: infinite; animation-direction: normal;
}
.hero::after, .work::after, .about::before, .ab-why::before, .case:nth-of-type(even)::before, .contact::before {
  animation-name: blob-alt;
}
/* the original top-of-page glows float too */
.hero::before, .page-head::before, .ab-intro::before { animation: blob 16s ease-in-out -11s infinite; }

/* contact form spam trap: hidden from people, visible to bots */
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
button[disabled] { opacity: 0.6; cursor: progress; }
