/* ============================================================
   BBBtriple1, marketing site.
   Warm paper, deep forest, one terracotta accent.
   One family (Instrument Sans), one type scale, one grid:
   every section puts its label in columns 1 to 3 and its
   content in columns 4 to 12.
   ============================================================ */

@font-face {
  font-family: 'Instrument Sans';
  src: url('../assets/fonts/InstrumentSans-latin.woff2') format('woff2');
  font-weight: 400 700; font-stretch: 75% 100%; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../assets/fonts/InstrumentSans-latin-ext.woff2') format('woff2');
  font-weight: 400 700; font-stretch: 75% 100%; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                 U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
                 U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #f1eee8;
  --paper-2: #e7e3da;
  --ink: #1a1915;
  --ink-2: #3f3b34;
  --muted: #6b665c;
  --line: rgba(26, 25, 21, 0.13);
  --line-strong: rgba(26, 25, 21, 0.3);
  --accent: #c2461d;
  --forest: #1c2a22;
  --on-dark: #ece8df;
  --on-dark-muted: #a8b0a6;
  --line-dark: rgba(236, 232, 223, 0.15);
  --accent-on-dark: #e8936d;

  --font: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Type scale. Nothing on the site uses a size outside this list. */
  --t-display: clamp(3rem, 8.2vw, 8.75rem);
  --t-h2: clamp(2.25rem, 4.6vw, 4.5rem);
  --t-statement: clamp(1.625rem, 3.1vw, 3rem);
  --t-h3: clamp(1.375rem, 2vw, 1.875rem);
  --t-lead: clamp(1.125rem, 1.35vw, 1.3125rem);
  --t-body: 1.0625rem;
  --t-small: 0.875rem;

  --gutter: clamp(20px, 4.2vw, 64px);
  --gap: clamp(16px, 2vw, 32px);
  --max: 1440px;
  --section: clamp(96px, 11vw, 176px);
  --head-gap: clamp(48px, 6vw, 96px);
  --offset: calc((100% + var(--gap)) / 4);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; }
::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.offset { padding-left: var(--offset); }
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--ink); color: var(--paper); border-radius: 999px; font-size: var(--t-small);
  transition: top 0.3s var(--ease);
}
.skip:focus { top: 16px; }
@media (max-width: 900px) { .offset { padding-left: 0; } }

/* ---------- Type ---------- */
.display, .h2, .h3, .statement { font-weight: 500; font-stretch: 100%; }
.display { font-size: var(--t-display); line-height: 0.94; letter-spacing: -0.045em; }
.h2 { font-size: var(--t-h2); line-height: 1; letter-spacing: -0.04em; }
.statement { font-size: var(--t-statement); line-height: 1.12; letter-spacing: -0.03em; }
.h3 { font-size: var(--t-h3); line-height: 1.12; letter-spacing: -0.025em; }
.display em, .h2 em, .statement em, .h3 em { color: var(--accent); }
.on-dark .display em, .on-dark .h2 em, .on-dark .statement em, .on-dark .h3 em { color: var(--accent-on-dark); }
.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--ink-2); max-width: 40ch; letter-spacing: -0.01em; }
.label { font-size: var(--t-small); font-weight: 500; color: var(--muted); }
.muted { color: var(--muted); }
.on-dark .label, .on-dark .muted, .on-dark .lead { color: var(--on-dark-muted); }

/* ---------- Section head: label left, heading right ---------- */
.shead { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-bottom: var(--head-gap); }
.shead__label { grid-column: 1 / span 3; padding-top: 0.5em; }
.shead__main { grid-column: 4 / -1; }
.shead__main .h2 { max-width: 16ch; }
.shead__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; margin-top: clamp(24px, 2.6vw, 36px); }
@media (max-width: 900px) {
  .shead__label, .shead__main { grid-column: 1 / -1; }
  .shead__label { padding: 0 0 16px; }
}

/* ---------- Links & buttons ---------- */
.link { position: relative; display: inline-flex; align-items: center; gap: 0.45em; font-weight: 500; padding-bottom: 3px; white-space: nowrap; }
.link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform-origin: right; transition: transform 0.6s var(--ease);
}
.link:hover::after { transform: scaleX(0); }
.link .ic { transition: transform 0.5s var(--ease); }
.link:hover .ic { transform: translate(3px, -3px); }

.u { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.6s var(--ease); padding-bottom: 2px; }
.u:hover, .u.is-active { background-size: 100% 1px; }

.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  height: 56px; padding: 0 10px 0 26px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-weight: 500;
  overflow: hidden; isolation: isolate; white-space: nowrap;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  border-radius: inherit; transform: translateY(101%); transition: transform 0.6s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn__ic { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--paper); color: var(--ink); overflow: hidden; }
.btn__ic span { display: grid; transition: transform 0.6s var(--ease); }
.btn__ic span + span { position: absolute; transform: translateX(-200%); }
.btn:hover .btn__ic span:first-child { transform: translateX(200%); }
.btn:hover .btn__ic span + span { transform: translateX(0); }
.on-dark .btn { background: var(--on-dark); color: var(--ink); }
.on-dark .btn .btn__ic { background: var(--ink); color: var(--on-dark); }
.on-dark .btn:hover { color: var(--paper); }
.btn--sm { height: 44px; padding: 0 6px 0 18px; font-size: 0.9375rem; gap: 10px; }
.btn--sm .btn__ic { width: 32px; height: 32px; }

/* ---------- Motion primitives ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.w > span { display: inline-block; will-change: transform; }
.js-motion [data-split] .w > span { transform: translateY(110%); }
.js-motion [data-split].is-in .w > span {
  transform: none;
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 45ms + var(--d, 0ms));
}
.js-motion [data-reveal] { opacity: 0; transform: translateY(24px); }
.js-motion [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js-motion [data-mask] { clip-path: inset(100% 0 0 0); }
.js-motion [data-mask] img { transform: scale(1.12); }
.js-motion [data-mask].is-in { clip-path: inset(0 0 0 0); transition: clip-path 1.3s var(--ease-io); }
.js-motion [data-mask].is-in img { transform: scale(1); transition: transform 1.8s var(--ease); }

[data-scrub] .sw { opacity: 0.18; transition: opacity 0.25s linear; }
[data-scrub] .sw.is-on { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  [data-scrub] .sw { opacity: 1; }
}

/* ---------- Header ---------- */
.hd { position: fixed; inset: 0 0 auto; z-index: 50; transition: transform 0.7s var(--ease), background-color 0.4s ease, box-shadow 0.4s ease; }
.hd.is-scrolled { background: rgba(241, 238, 232, 0.86); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.hd.is-hidden { transform: translateY(-100%); }
.hd__in { display: flex; align-items: center; justify-content: space-between; height: 84px; transition: height 0.5s var(--ease); }
.hd.is-scrolled .hd__in { height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; font-size: 1.0625rem; }
.brand img { width: 28px; height: 28px; transition: transform 0.8s var(--ease); }
.brand:hover img { transform: rotate(-12deg); }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); font-size: 0.9688rem; font-weight: 500; }
.nav a:not(.btn) { color: var(--ink-2); transition: color 0.3s; }
.nav a:not(.btn):hover, .nav a.is-active { color: var(--ink); }
.menu-btn { display: none; align-items: center; gap: 10px; font-weight: 500; height: 44px; padding: 0 4px; }
.menu-btn__lines { position: relative; width: 22px; height: 10px; }
.menu-btn__lines::before, .menu-btn__lines::after { content: ''; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.menu-btn__lines::before { top: 0; }
.menu-btn__lines::after { top: 8.5px; }
.menu-open .menu-btn__lines::before { top: 4.25px; transform: rotate(45deg); }
.menu-open .menu-btn__lines::after { top: 4.25px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--forest); color: var(--on-dark);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 110px var(--gutter) 40px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path 0.9s var(--ease-io), visibility 0s linear 0.9s;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.9s var(--ease-io), visibility 0s; }
.menu-open .hd { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--on-dark); transform: none; }
.menu-open .hd .brand img { filter: invert(1); }
.menu__list a { display: block; font-size: clamp(2.4rem, 10vw, 3.6rem); font-weight: 500; line-height: 1.12; letter-spacing: -0.04em; overflow: hidden; }
.menu__list a span { display: inline-block; transform: translateY(105%); transition: transform 0.9s var(--ease); }
.menu-open .menu__list a span { transform: none; transition-delay: calc(0.25s + var(--i) * 0.05s); }
.menu__list a.is-active span { color: var(--accent-on-dark); }
.menu__foot { margin-top: 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--on-dark-muted); font-size: 0.9375rem; }
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(150px, 18vw, 220px); }
.hero__title { max-width: none; }
.hero__row { margin-top: clamp(48px, 6vw, 88px); align-items: start; row-gap: 32px; }
.hero__row .label { padding-top: 0.3em; }
.hero__row .label { grid-column: 1 / span 3; }
.hero__row .lead { grid-column: 4 / span 5; }
.hero__row .hero__cta { grid-column: 10 / -1; justify-self: end; align-self: end; }
.hero__stage { position: relative; margin-top: clamp(64px, 8vw, 112px); height: clamp(440px, 60vw, 840px); }
.hero__panel { position: absolute; inset: 0; background: var(--forest); overflow: hidden; border-radius: var(--radius); will-change: clip-path; }
.hero__shot {
  position: absolute; width: min(56%, 820px); border-radius: 10px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06); will-change: transform;
}
.hero__shot img { width: 100%; }
.hero__shot--a { left: 7%; top: 13%; }
.hero__shot--b { right: 6%; top: 42%; width: min(46%, 680px); }
.hero__note { position: absolute; left: 7%; bottom: 8%; color: var(--on-dark-muted); font-size: var(--t-small); max-width: 28ch; }
.hero__note strong { display: block; color: var(--on-dark); font-weight: 500; font-size: var(--t-body); }
@media (max-width: 900px) {
  .hero__row .label, .hero__row .lead, .hero__row .hero__cta { grid-column: 1 / -1; justify-self: start; }
  .hero__row .label { display: none; }
}
@media (max-width: 760px) {
  .hero__title br { display: none; }
  .hero__shot--a { left: 6%; top: 10%; width: 78%; }
  .hero__shot--b { right: 6%; top: 46%; width: 70%; }
  .hero__note { display: none; }
}

/* ---------- Sections ---------- */
.sec { padding: var(--section) 0; position: relative; }
.sec--flush-top { padding-top: 0; }
.on-dark { background: var(--forest); color: var(--on-dark); }

/* ---------- Intro ---------- */
.intro__more { margin-top: clamp(32px, 4vw, 48px); }

/* ---------- Work ---------- */
.work { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(80px, 10vw, 150px); }
.work__item { grid-column: 1 / span 8; display: block; }
.work__item:nth-child(2n) { grid-column: 6 / span 7; }
.work__media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--tint, var(--paper-2)); aspect-ratio: 16 / 11; }
.work__media .par { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 9%; }
.work__media .par img {
  width: 100%; border-radius: 8px;
  box-shadow: 0 30px 60px -28px rgba(26, 25, 21, 0.45), 0 0 0 1px rgba(26, 25, 21, 0.06);
  transition: transform 1.2s var(--ease);
}
.work__item:hover .work__media .par img { transform: scale(1.03); }
.work__meta { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; margin-top: 24px; }
.work__title { font-size: var(--t-h3); line-height: 1.1; letter-spacing: -0.025em; }
.work__title span { display: inline-block; transition: transform 0.6s var(--ease); }
.work__item:hover .work__title span { transform: translateX(6px); }
.work__sub { color: var(--muted); font-size: var(--t-small); align-self: center; }
.work__res { grid-column: 1 / -1; color: var(--ink-2); }
.cursor-tag {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%;
  background: var(--accent); color: var(--paper); display: grid; place-items: center;
  font-size: var(--t-small); font-weight: 500;
  transform: translate3d(var(--x, -200px), var(--y, -200px), 0) scale(0);
  transition: transform 0.5s var(--ease);
}
.cursor-tag.is-on { transform: translate3d(var(--x), var(--y), 0) scale(1); }
@media (max-width: 900px) { .work__item, .work__item:nth-child(2n) { grid-column: 1 / -1; } }
@media (hover: none) { .cursor-tag { display: none; } }

/* ---------- Three columns ---------- */
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.cols3 > div { border-top: 1px solid var(--line); padding-top: 24px; }
.on-dark .cols3 > div { border-color: var(--line-dark); }
.cols3 h3 { margin-bottom: 12px; }
.cols3 p { color: var(--ink-2); max-width: 34ch; }
.on-dark .cols3 p { color: var(--on-dark-muted); }
.cols3 ul li { color: var(--ink-2); padding: 4px 0; }
@media (max-width: 860px) { .cols3 { grid-template-columns: 1fr; row-gap: 40px; } }

/* ---------- Services ---------- */
.svc { border-top: 1px solid var(--line); }
.svc__row {
  position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) 44px;
  gap: var(--gap); align-items: center; padding: clamp(24px, 2.6vw, 34px) 0; border-bottom: 1px solid var(--line); isolation: isolate;
}
.svc__row::before {
  content: ''; position: absolute; inset: 0 -20px; z-index: -1; background: var(--paper-2);
  border-radius: 10px; transform: scaleY(0); transform-origin: bottom; transition: transform 0.6s var(--ease);
}
.svc__row:hover::before { transform: scaleY(1); }
.svc__name { font-size: var(--t-h3); font-weight: 500; line-height: 1.1; letter-spacing: -0.025em; transition: transform 0.6s var(--ease); }
.svc__row:hover .svc__name { transform: translateX(8px); }
.svc__desc { color: var(--ink-2); }
.svc__go { justify-self: end; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background 0.4s, color 0.4s, border-color 0.4s, transform 0.6s var(--ease); }
.svc__row:hover .svc__go { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: rotate(-45deg); }
@media (max-width: 760px) {
  .svc__row { grid-template-columns: 1fr 44px; row-gap: 10px; }
  .svc__desc { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- Process: steps with a filling rail ---------- */
.steps { position: relative; padding-left: clamp(28px, 3vw, 48px); }
.steps::before, .steps__fill { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line-strong); }
.steps__fill { background: var(--accent); width: 2px; left: -0.5px; transform-origin: top; transform: scaleY(var(--p, 0)); }
.steps li {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); gap: 12px var(--gap);
  padding: clamp(32px, 4vw, 56px) 0; border-bottom: 1px solid var(--line);
  opacity: 0.35; transition: opacity 0.6s var(--ease);
}
.steps li:first-child { padding-top: 0; }
.steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.steps li.is-active { opacity: 1; }
.steps__when { display: block; color: var(--accent); font-size: var(--t-small); font-weight: 500; margin-bottom: 8px; }
.steps p { color: var(--ink-2); max-width: 44ch; padding-top: 1.8em; }
.no-motion .steps li { opacity: 1; }
@media (max-width: 760px) {
  .steps li { grid-template-columns: 1fr; opacity: 1; }
  .steps p { padding-top: 0; }
}

/* ---------- Quotes ---------- */
.quotes > * + * { margin-top: clamp(56px, 7vw, 104px); padding-top: clamp(56px, 7vw, 104px); border-top: 1px solid var(--line); }
.on-dark .quotes > * + * { border-color: var(--line-dark); }
.quote { margin: 0; }
.quote blockquote { margin: 0; text-indent: -0.4em; max-width: 26ch; }
.quote figcaption { margin-top: 28px; display: flex; align-items: center; gap: 14px; }
.quote__av { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--paper-2); flex: none; }
.quote__av img { width: 100%; height: 100%; object-fit: cover; }
.quote figcaption strong { display: block; font-weight: 600; line-height: 1.3; }
.quote figcaption span span { color: var(--muted); font-size: var(--t-small); }
.on-dark .quote figcaption span span { color: var(--on-dark-muted); }

/* ---------- Pricing ---------- */
.price { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.price__col { border-top: 1px solid var(--ink); padding-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.on-dark .price__col { border-color: var(--on-dark); }
.price__name { font-weight: 500; }
.price__amt { font-size: var(--t-h2); font-weight: 500; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.price__amt small { font-size: var(--t-small); font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 8px; }
.on-dark .price__amt small { color: var(--on-dark-muted); }
.price__col p { color: var(--ink-2); max-width: 30ch; }
.on-dark .price__col p { color: var(--on-dark-muted); }
.price__foot { margin-top: clamp(40px, 5vw, 64px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
@media (max-width: 860px) { .price { grid-template-columns: 1fr; row-gap: 40px; } }

/* ---------- FAQ ---------- */
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; text-align: left; font-size: var(--t-lead); font-weight: 500; letter-spacing: -0.015em; }
.faq__q > span:first-child { transition: transform 0.6s var(--ease); }
.faq__q:hover > span:first-child { transform: translateX(6px); }
.faq__pm { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); transition: background 0.4s, border-color 0.4s, transform 0.6s var(--ease); }
.faq__pm::before, .faq__pm::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px; background: currentColor; transition: transform 0.6s var(--ease); }
.faq__pm::after { transform: rotate(90deg); }
.faq__item.is-open .faq__pm { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: rotate(180deg); }
.faq__item.is-open .faq__pm::after { transform: rotate(0deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 64px 30px 0; color: var(--ink-2); max-width: 62ch; }

/* ---------- CTA ---------- */
.cta { padding: var(--section) 0; }
.cta__mail {
  display: inline-block; font-size: var(--t-h2); font-weight: 500; letter-spacing: -0.04em; line-height: 1.05;
  position: relative; word-break: break-word;
}
.cta__mail::after { content: ''; position: absolute; left: 0; right: 0; bottom: -0.06em; height: 2px; background: var(--accent); transform: scaleX(0.16); transform-origin: left; transition: transform 0.9s var(--ease); }
.cta__mail:hover::after { transform: scaleX(1); }
.cta__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-top: clamp(40px, 5vw, 64px); }
.cta__row p { max-width: 40ch; color: var(--ink-2); }

/* ---------- Footer ---------- */
.ft { background: var(--forest); color: var(--on-dark); padding: clamp(80px, 9vw, 128px) 0 28px; overflow: hidden; }
.ft__grid { row-gap: 40px; }
.ft__grid > .label { grid-column: 1 / span 3; color: var(--on-dark-muted); }
.ft__cols { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.ft__col .label { display: block; margin-bottom: 16px; color: var(--on-dark-muted); }
.ft__col li + li { margin-top: 8px; }
.ft__mark { margin: clamp(80px, 11vw, 160px) 0 0; font-size: clamp(3.6rem, 21.2vw, 19.25rem); font-weight: 600; line-height: 0.8; letter-spacing: -0.065em; white-space: nowrap; }
.ft__mark span { display: inline-block; will-change: transform; }
.ft__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line-dark); color: var(--on-dark-muted); font-size: var(--t-small); }
.ft__base a:hover { color: var(--on-dark); }
.ft__base nav { display: flex; gap: 20px; }
@media (max-width: 900px) {
  .ft__grid > .label { display: none; }
  .ft__cols { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; row-gap: 36px; }
}

/* ---------- Page hero ---------- */
.phero { padding: clamp(150px, 18vw, 230px) 0 var(--section); }
.phero .shead { margin-bottom: 0; }
.phero .display { max-width: 13ch; }

/* ---------- Label + body block ---------- */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.split > :first-child { grid-column: 1 / span 3; padding-top: 0.5em; }
.split > :last-child { grid-column: 4 / -1; }
.split + .split { margin-top: clamp(80px, 9vw, 140px); }
.split__body > * + * { margin-top: 1.1em; }
.split__body > .h2 + *, .split__body > .h3 + * { margin-top: 1.4em; }
.split__body p { color: var(--ink-2); max-width: 62ch; }
.split__body .statement { color: var(--ink); max-width: 28ch; }
@media (max-width: 900px) {
  .split > :first-child, .split > :last-child { grid-column: 1 / -1; }
  .split > :first-child { padding: 0 0 16px; }
}

/* ---------- Compare (maintenance) ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.compare__card { border-radius: var(--radius); padding: clamp(28px, 3.6vw, 48px); background: var(--paper-2); }
.compare__card.is-on { background: var(--forest); color: var(--on-dark); }
.compare__card h3 { margin-bottom: 20px; }
.compare__card li { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); }
.compare__card.is-on li { border-color: var(--line-dark); }
.compare__card li::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); transform: translateY(-2px); }
.compare__card.is-on li::before { background: var(--accent-on-dark); }
.compare__card:not(.is-on) li { color: var(--muted); }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* ---------- Rules list ---------- */
.rules li { padding: 18px 0; border-top: 1px solid var(--line); color: var(--ink-2); max-width: 70ch; }
.rules li:last-child { border-bottom: 1px solid var(--line); }

/* ---------- Case study ---------- */
.cs-hero { border-radius: var(--radius); overflow: hidden; background: var(--tint, var(--paper-2)); padding: clamp(28px, 7vw, 110px) clamp(16px, 8vw, 140px); }
.cs-hero img { width: 100%; max-width: 1024px; margin: 0 auto; border-radius: 8px; box-shadow: 0 40px 80px -36px rgba(26, 25, 21, 0.5), 0 0 0 1px rgba(26, 25, 21, 0.06); }
.cs-meta { margin: 28px 0 0; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.cs-meta > div { grid-column: span 3; }
.cs-meta > div:first-child { grid-column: 1 / span 3; }
.cs-meta > div:nth-child(2) { grid-column: 4 / span 3; }
.cs-meta dt { color: var(--muted); font-size: var(--t-small); }
.cs-meta dd { margin: 4px 0 0; font-weight: 500; }
.cs-results { display: flex; gap: clamp(32px, 6vw, 96px); flex-wrap: wrap; }
.cs-results strong { display: block; font-size: var(--t-display); font-weight: 500; line-height: 0.95; letter-spacing: -0.05em; color: var(--accent); }
.cs-results span { display: block; margin-top: 10px; color: var(--ink-2); max-width: 20ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: var(--t-small); font-weight: 500; }
.next { display: block; padding: var(--section) 0; border-top: 1px solid var(--line); }

.next__title { display: inline-flex; align-items: center; gap: 0.3em; }
.next__title .ic { width: 0.7em; height: 0.7em; transition: transform 0.7s var(--ease); }
.next:hover .next__title .ic { transform: translateX(14px); }
@media (max-width: 640px) {
  .cs-meta { row-gap: 14px; }
  .cs-meta > div, .cs-meta > div:first-child, .cs-meta > div:nth-child(2) { grid-column: 1 / -1; }
}

/* ---------- Contact ---------- */
.contact__mail { font-size: var(--t-h2); font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; position: relative; display: inline-block; word-break: break-word; }
.contact__mail::after { content: ''; position: absolute; left: 0; right: 0; bottom: -0.06em; height: 2px; background: var(--accent); transform: scaleX(0.16); transform-origin: left; transition: transform 0.9s var(--ease); }
.contact__mail:hover::after { transform: scaleX(1); }

/* ---------- Prose (legal) ---------- */
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1em; }
.prose p, .prose li { color: var(--ink-2); }
.prose h2 { font-size: var(--t-h3); line-height: 1.15; letter-spacing: -0.025em; margin-top: 2.2em; color: var(--ink); }
.prose h2 small { display: block; font-size: var(--t-small); font-weight: 500; color: var(--muted); margin-bottom: 6px; letter-spacing: 0; }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose ul { list-style: disc; padding-left: 1.3em; margin-top: 0.5em; }
.prose li + li { margin-top: 0.55em; }
.prose a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; }
.prose .updated { color: var(--muted); font-size: 0.9375rem; }
.table-scroll { overflow-x: auto; }
