/* Instrument Sans (SIL Open Font License), self-hosted so no visitor data goes to font services */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-latin-italic.woff2") format("woff2");
}

/* =========================================================
   HKG Studio — design tokens
   Change brand colours/type here; everything else inherits.
   ========================================================= */
:root {
  /* Colour */
  --white: #ffffff;
  --stone: #f2f2f0;
  --ink: #000000;
  --graphite: #3a3a3c;
  --muted: #6b6b70;          /* 5.3:1 on white */
  --line: #dcdcd8;
  --on-dark-muted: #a1a1a6;  /* 7.9:1 on black */
  --rec: #e5372b;            /* only used for the "recording" dot */

  /* Semantic */
  --bg: var(--white);
  --surface: var(--stone);
  --text: var(--ink);
  --text-2: var(--graphite);
  --text-3: var(--muted);
  --focus: #0a64d8;
  --error: #c4231a;

  /* Type */
  --font: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --fs-12: .75rem;
  --fs-14: .875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-21: 1.3125rem;
  --fs-24: 1.5rem;
  --fs-display: clamp(3rem, 1.4rem + 7.2vw, 8rem);
  --fs-h2: clamp(2.25rem, 1.4rem + 3.6vw, 4.5rem);
  --fs-h3: clamp(1.375rem, 1.2rem + .6vw, 1.75rem);

  /* Space (8pt rhythm) */
  --s-1: .5rem;  --s-2: 1rem;  --s-3: 1.5rem; --s-4: 2rem;
  --s-5: 3rem;   --s-6: 4rem;  --s-7: 6rem;   --s-8: 8rem;
  --section: clamp(5rem, 3rem + 8vw, 10rem);
  --gutter: clamp(1rem, .5rem + 2.5vw, 2.5rem);
  --max: 1240px;

  /* Radius — larger containers get larger radii */
  --r-tile: 28px;
  --r-device: 18px;
  --r-inner: 10px;
  --r-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-fast: 180ms;
  --t-med: 320ms;
  --t-slow: 900ms;

  /* Layers */
  --z-nav: 100;
  --z-skip: 1000;
}

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-16);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; } /* long Dutch compounds never spill out of a card */
p { text-wrap: pretty; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

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

.skip-link {
  position: fixed; left: var(--s-2); top: var(--s-2); z-index: var(--z-skip);
  padding: .75rem 1rem; background: var(--ink); color: var(--white);
  border-radius: var(--r-pill); text-decoration: none; font-weight: 600;
  transform: translateY(-200%); transition: transform var(--t-fast) var(--ease-out);
}
.skip-link:focus { transform: none; }

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

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.5rem;
  border-radius: var(--r-pill); border: 1px solid transparent;
  font-size: var(--fs-16); font-weight: 600; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease,
              border-color var(--t-fast) ease, transform var(--t-fast) var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--graphite); }
.btn--ghost { color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--small { min-height: 36px; padding: 0 1rem; font-size: var(--fs-14); }
.btn--block { width: 100%; }

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med) ease;
}
.nav.is-scrolled { border-bottom-color: rgba(0,0,0,.08); }
.nav__inner {
  max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
  height: 60px; display: flex; align-items: center; gap: var(--s-4);
}
.wordmark {
  display: inline-flex; align-items: center; gap: .42em;
  font-weight: 700; font-size: var(--fs-18); letter-spacing: -.03em; line-height: 1;
  padding-block: .55rem; /* keeps the link an easy tap target */
  text-decoration: none; white-space: nowrap;
}
/* The 回 mark: follows the text colour, so it works on light and dark */
.wordmark__mark { flex: none; width: 1.02em; height: 1.02em; }
.nav__links { display: flex; gap: var(--s-4); margin-left: auto; }
.nav__links a {
  position: relative;
  font-size: var(--fs-14); color: var(--text-2); text-decoration: none;
  padding: .5rem 0; transition: color var(--t-fast) ease;
}
.nav__links a:hover, .nav__links a[aria-current] { color: var(--ink); }
/* Current page: a short ink underline, also shown for a service inside Services */
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px;
  background: var(--ink); border-radius: 1px; transform: scaleX(0);
  transition: transform var(--t-med) var(--ease-out);
}
.nav__links a[aria-current]::after { transform: scaleX(1); }
.nav__links a, .nav__cta, .wordmark { white-space: nowrap; }
.nav__toggle { display: none; }

/* Tablet: the Contact link already covers "Book a call", so keep the bar on one line */
@media (min-width: 768px) and (max-width: 1023px) {
  .nav__inner, .nav__links { gap: var(--s-3); }
  .nav__cta { display: none; }
}

/* Language switcher */
.lang { display: flex; align-items: center; font-size: var(--fs-14); }
.lang__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; min-height: 36px; padding: 0 .35rem;
  font-weight: 500; letter-spacing: .02em; color: var(--text-3); text-decoration: none;
  touch-action: manipulation; transition: color var(--t-fast) ease;
}
.lang__btn:hover, .lang__btn[aria-current] { color: var(--ink); }
.lang__btn[aria-current] { font-weight: 600; }
.lang__sep { color: var(--line); }

.mobile-menu { border-top: 1px solid rgba(0,0,0,.06); }
.mobile-menu nav { display: flex; flex-direction: column; padding: var(--s-2) var(--gutter) var(--s-4); }
.mobile-menu a {
  font-size: var(--fs-24); font-weight: 600; letter-spacing: -.02em; color: var(--text-3);
  text-decoration: none; padding: .75rem 0; border-bottom: 1px solid var(--line);
}
.mobile-menu a[aria-current] {
  color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px;
}
/* The header has no room for a button on phones, so the menu ends with one */
.mobile-menu__cta { padding: 0 var(--gutter) var(--s-4); }
.mobile-menu .mobile-menu__cta a { min-height: 52px; font-size: var(--fs-16); font-weight: 600; letter-spacing: 0; color: var(--white); border: 0; padding: 0 1.5rem; }

@media (max-width: 767px) {
  .nav__links, .nav__cta { display: none; }
  .lang { margin-left: auto; }
  .lang__btn { min-height: 44px; min-width: 40px; }
  .nav__inner { gap: var(--s-1); }
  .nav__toggle {
    display: grid; place-content: center; gap: 6px;
    width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0;
  }
  .nav__toggle span {
    display: block; width: 20px; height: 1.5px; background: var(--ink);
    transition: transform var(--t-med) var(--ease-out);
  }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav.menu-open { background: var(--white); }
  /* The open menu covers the whole screen below the bar, so no half-hidden page shows through */
  .nav.menu-open .mobile-menu { height: calc(100vh - 60px); height: calc(100dvh - 60px); overflow-y: auto; overscroll-behavior: contain; }
  html.menu-locked { overflow: hidden; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero { padding-top: clamp(3.5rem, 2rem + 6vw, 7.5rem); overflow: hidden; }
.hero__copy { text-align: center; }
.hero__title {
  font-size: var(--fs-display);
  font-weight: 650;
  font-variation-settings: "wdth" 88;
  line-height: .94;
  letter-spacing: -.045em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.hero__lede {
  max-width: 34rem; margin: var(--s-4) auto 0;
  font-size: clamp(var(--fs-18), 1rem + .5vw, var(--fs-21));
  line-height: 1.5; color: var(--text-2);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: var(--s-4); }

/* Load sequence — the single orchestrated moment on the page */
.js .hero__title .line > span { transform: translateY(105%); }
.js .hero .hero__lede, .js .hero .hero__actions { opacity: 0; transform: translateY(12px); }
.js .stage__inner > * { opacity: 0; }
.js .is-loaded .hero__title .line > span {
  transform: none; transition: transform var(--t-slow) var(--ease-out);
}
.js .is-loaded .hero__title .line:nth-child(2) > span { transition-delay: 80ms; }
.js .is-loaded .hero__title .line:nth-child(3) > span { transition-delay: 160ms; }
.js .is-loaded .hero .hero__lede,
.js .is-loaded .hero .hero__actions {
  opacity: 1; transform: none;
  transition: opacity 700ms ease 420ms, transform 700ms var(--ease-out) 420ms;
}
.js .is-loaded .hero .hero__actions { transition-delay: 500ms; }
.js .is-loaded .stage__inner > * { opacity: 1; transition: opacity 1s ease, transform 1.2s var(--ease-out); }
.js .is-loaded .browser { transition-delay: 550ms; }
.js .is-loaded .phone { transition-delay: 700ms; }
.js .is-loaded .brandcard { transition-delay: 850ms; }

/* Stage */
.stage { margin-top: clamp(3rem, 2rem + 4vw, 6rem); padding-inline: var(--gutter); }
.stage__inner {
  position: relative; max-width: 1100px; margin-inline: auto;
  aspect-ratio: 1100 / 600;
}
.device { position: absolute; }

.browser {
  left: 4%; top: 6%; width: 72%;
  background: var(--white); border-radius: var(--r-device);
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 30px 80px -20px rgba(0,0,0,.22), 0 12px 24px -12px rgba(0,0,0,.12);
  overflow: hidden;
}
.js .browser { transform: translateY(40px); }
.js .is-loaded .browser { transform: none; }

.browser__bar {
  display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
  background: #f6f6f4; border-bottom: 1px solid #ececea;
}
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #dcdcd8; }
.browser__url {
  margin: 0 auto; transform: translateX(-24px);
  font-size: 11px; color: var(--muted); background: #fff; border-radius: 6px; padding: 2px 40px;
}
.browser__page { aspect-ratio: 16 / 9.4; }

/* Mock café site */
.site-ember { background: #f6f1ea; color: #3f2a1b; padding: 3% 5%; display: flex; flex-direction: column; }
.se-nav { display: flex; gap: 1.4em; align-items: center; font-size: clamp(7px, 1vw, 12px); }
.se-nav b { margin-right: auto; font-weight: 700; letter-spacing: -.02em; font-size: 1.2em; }
.se-hero { flex: 1; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 4%; }
.se-hero__text strong {
  display: block; font-size: clamp(16px, 3.6vw, 46px); line-height: .98; letter-spacing: -.04em; font-weight: 650;
}
.se-hero__text em { display: block; font-style: normal; margin-top: .9em; font-size: clamp(7px, 1vw, 13px); opacity: .7; }
.se-btn {
  display: inline-block; margin-top: 1.2em; padding: .7em 1.3em; border-radius: 99px;
  background: #3f2a1b; color: #f6f1ea; font-size: clamp(7px, .95vw, 12px); font-weight: 600;
}
.se-hero__img { aspect-ratio: 1; border-radius: 14px; background: #d9cbb5; display: grid; place-items: center; }
.se-hero__img svg { width: 78%; }
.se-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3%; height: 12%; }
.se-row span { border-radius: 8px; background: rgba(63,42,27,.08); }

.phone {
  right: 9%; top: 0; width: 25%; aspect-ratio: 9 / 19;
  background: #1c1c1e; border-radius: 40px; padding: 2.2%;
  box-shadow: 0 0 0 1px rgba(0,0,0,.2), 0 40px 90px -20px rgba(0,0,0,.4), inset 0 0 0 2px #3a3a3c;
}
.js .phone { transform: translateY(60px); }
.js .is-loaded .phone { transform: none; }
.phone__screen { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; position: relative; background: #000; }

.brandcard {
  left: 0; bottom: 0; width: 26%; padding: 4% 2.6% 2.6%;
  background: var(--white); border-radius: var(--r-device);
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 24px 60px -18px rgba(0,0,0,.25);
}
.js .brandcard { transform: translateY(30px); }
.js .is-loaded .brandcard { transform: none; }
.brandcard__mark { font-size: clamp(18px, 3vw, 40px); font-weight: 700; letter-spacing: -.05em; color: #3f2a1b; line-height: 1; }
.brandcard__swatches { display: flex; gap: 6%; margin-top: 12%; }
.brandcard__swatches i { flex: 1; aspect-ratio: 1; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.brandcard__type { display: flex; align-items: center; gap: 8%; margin-top: 10%; padding-top: 8%; border-top: 1px solid var(--line); }
.brandcard__type b { font-size: clamp(14px, 2vw, 26px); letter-spacing: -.03em; }
.brandcard__type span { font-size: clamp(6px, .8vw, 10px); color: var(--muted); line-height: 1.3; }

/* Reel inside phone */
.reel { position: absolute; inset: 0; color: #fff; font-size: clamp(7px, 1vw, 13px); }
.reel__bars { position: absolute; top: 4%; left: 6%; right: 6%; display: flex; gap: 4px; z-index: 3; }
.reel__bars i { flex: 1; height: 2px; background: rgba(255,255,255,.35); border-radius: 2px; overflow: hidden; }
.reel__bars b { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.reel__bars i.is-done b { transform: scaleX(1); }
.reel__bars i.is-playing b { animation: reelbar var(--reel-dur, 3.2s) linear forwards; }
.reel.is-paused .reel__bars i.is-playing b { animation-play-state: paused; }
@keyframes reelbar { to { transform: scaleX(1); } }

.reel__scene { position: absolute; inset: 0; opacity: 0; transition: opacity 600ms ease; }
.reel__scene.is-active { opacity: 1; }
.scene { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10%; padding: 12% 22% 30% 12%; text-align: center; }
.scene svg { width: 62%; }
.scene p { font-weight: 650; font-size: 1.5em; line-height: 1.1; letter-spacing: -.02em; }
.scene--latte { background: #8a6440; }
.scene--gym { background: #1f2a44; }
.scene--smile { background: #4f7a6d; }
.reel__scene.is-active .scene svg { animation: kenburns 3.4s ease-out both; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }

.reel__side { position: absolute; right: 5%; bottom: 20%; display: flex; flex-direction: column; gap: 1.1em; z-index: 3; }
.reel__side span { display: flex; flex-direction: column; align-items: center; gap: .2em; }
.reel__side svg { width: 2.1em; fill: #fff; }
.reel__side small { font-size: .8em; }
.reel__caption { position: absolute; left: 7%; bottom: 6%; right: 26%; display: flex; flex-direction: column; gap: .2em; z-index: 3; line-height: 1.25; }
.reel__caption b { font-weight: 650; }
.reel__caption > span { opacity: .85; font-size: .9em; }

.hero__reelctl { display: flex; justify-content: flex-end; max-width: 1100px; margin-top: var(--s-2); }
.reel-toggle {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white);
  display: grid; place-items: center; cursor: pointer; transition: border-color var(--t-fast) ease;
}
.reel-toggle:hover { border-color: var(--ink); }
.reel-toggle svg { width: 16px; fill: var(--ink); }
.reel-toggle .i-play { display: none; }
.reel-toggle[aria-pressed="true"] .i-play { display: block; }
.reel-toggle[aria-pressed="true"] .i-pause { display: none; }

@media (max-width: 767px) {
  .stage__inner { aspect-ratio: 4 / 5; }
  .browser { left: 0; top: 4%; width: 92%; }
  .phone { right: 0; top: auto; bottom: 0; width: 46%; border-radius: 30px; }
  .phone__screen { border-radius: 24px; }
  .brandcard { display: none; }
  .reel { font-size: 10px; }
  .hero__reelctl { justify-content: center; }
}

/* =========================================================
   Value strip
   ========================================================= */
.strip { padding-block: var(--section); }
.strip__text {
  max-width: 22ch; margin-inline: auto; text-align: center;
  font-size: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  font-weight: 600; line-height: 1.12; letter-spacing: -.035em; color: var(--ink);
}
.strip__text span { color: var(--muted); transition: color 700ms ease; }
.strip__text span.is-lit { color: var(--ink); }

/* =========================================================
   Sections
   ========================================================= */
.section { padding-block: var(--section); }
.section-head { max-width: 54rem; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.section-head h1, .section-head h2, .promises h2, .faq h2, .contact h1 {
  font-size: var(--fs-h2); font-weight: 650; line-height: 1.02; letter-spacing: -.04em;
}
.section-head p { margin-top: var(--s-3); font-size: var(--fs-18); color: var(--text-2); max-width: 38rem; }

/* =========================================================
   Services grid
   ========================================================= */
.services { background: var(--surface); }
/* Two equal columns; every row is as tall as the tallest card, so all four cards match */
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: var(--s-2); }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  gap: var(--s-4); padding: clamp(1.75rem, 1rem + 2vw, 2.75rem);
  background: var(--white); border-radius: var(--r-tile); overflow: hidden; min-height: 420px;
}
.tile--dark { background: var(--ink); color: var(--white); }
.tile.tile--dark p { color: var(--on-dark-muted); }
.tile h2 { font-size: var(--fs-h3); font-weight: 650; line-height: 1.12; letter-spacing: -.025em; max-width: 18ch; }
.tile p { margin-top: .75rem; color: var(--text-2); max-width: 36ch; }
.tile__link {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: var(--s-1);
  font-weight: 600; font-size: var(--fs-16); text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-position: 0 calc(100% - 10px); background-repeat: no-repeat;
  transition: background-size var(--t-med) var(--ease-out);
}
.tile__link:hover, .tile:hover .tile__link { background-size: 100% 1px; }
/* The whole card opens the service page */
.service-grid .tile__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.service-grid .tile:has(.tile__link:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.tile__visual { position: relative; transition: transform 700ms var(--ease-out); }
.tile:hover .tile__visual { transform: scale(1.025); }

/* Same structure in every card: text on top, the link pinned under it, then a visual of fixed height */
.service-grid > .tile { justify-content: flex-start; min-height: 0; }
.service-grid .tile__copy { flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.service-grid .tile__link { margin-top: auto; padding-top: var(--s-2); }
.service-grid .tile__visual { flex: none; height: 220px; display: flex; align-items: center; justify-content: center; }
.service-grid :is(.marks, .chat) { width: 100%; max-width: 360px; }

/* web visual */
.tile--web .tile__visual { height: 220px; }
.mini-browser {
  position: absolute; left: 0; right: 18%; bottom: -60px; top: 0;
  border-radius: 14px; background: var(--white); overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 20px 50px -20px rgba(0,0,0,.25);
}
.mini-browser__bar { display: flex; gap: 5px; padding: 10px 12px; background: #f6f6f4; border-bottom: 1px solid #ececea; }
.mini-browser__bar i { width: 8px; height: 8px; border-radius: 50%; background: #dcdcd8; }
.mini-browser__body { padding: 22px; display: flex; flex-direction: column; gap: 9px; }
.mb-h { display: block; height: 16px; width: 55%; border-radius: 4px; background: var(--ink); }
.mb-p { display: block; height: 7px; width: 80%; border-radius: 4px; background: var(--line); }
.mb-p--short { width: 50%; }
.mb-btn { display: block; height: 22px; width: 84px; border-radius: 99px; background: var(--ink); margin-top: 6px; }
.mb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.mb-grid span { height: 60px; border-radius: 8px; background: var(--stone); }
.mini-phone {
  position: absolute; right: 2%; top: 26px; width: 26%; aspect-ratio: 9/18;
  background: var(--white); border-radius: 20px; padding: 18px 12px; display: flex; flex-direction: column; gap: 7px;
  box-shadow: 0 0 0 6px var(--ink), 0 24px 50px -16px rgba(0,0,0,.4);
}
.mini-phone .mb-h { width: 80%; height: 12px; }
.mini-phone .mb-p { width: 90%; height: 6px; }
.mb-img { display: block; flex: 1; border-radius: 8px; background: var(--stone); }
.mini-phone .mb-btn { width: 100%; height: 18px; }

/* social visual */
.feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 280px; margin-left: auto; }
.feed span { aspect-ratio: 4/5; border-radius: 6px; background: var(--c); }
.service-grid .feed { width: 100%; max-width: 168px; margin-inline: auto; }

/* brand visual */
.marks { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 8px; }
.mark { display: grid; place-items: center; height: 84px; border-radius: 14px; font-weight: 700; letter-spacing: -.04em; }
.mark--a { background: #3f2a1b; color: #f6f1ea; font-size: 26px; }
.mark--b { background: var(--stone); color: var(--ink); font-size: 44px; font-style: italic; line-height: 1; }
.mark--c { grid-column: span 2; background: #e7f0ec; color: #2f5a4e; font-size: 30px; }
.tile--dark .mark--a { box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }

/* chatbot visual */
.chat { display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-14); line-height: 1.4; }
.tile .chat__msg { margin: 0; max-width: 82%; padding: 10px 14px; border-radius: 18px; }
.tile .chat__msg--visitor { align-self: flex-end; background: var(--ink); color: var(--white); border-bottom-right-radius: 6px; }
.tile .chat__msg--bot { align-self: flex-start; background: var(--stone); color: var(--ink); border-bottom-left-radius: 6px; }
.chat__cta { align-self: flex-start; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--ink); font-size: var(--fs-12); font-weight: 600; }

@media (max-width: 767px) {
  .service-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
}

/* =========================================================
   Work
   ========================================================= */
.work__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-3); }
.project { position: relative; display: flex; flex-direction: column; gap: var(--s-3); }
.project--wide { grid-column: span 2; }
.project__visual {
  position: relative; border-radius: var(--r-tile); overflow: hidden; aspect-ratio: 4 / 3;
  display: grid; place-items: center; grid-template: 100% / 100%;
}
.project--wide .project__visual { aspect-ratio: 16 / 8; }
.project__visual > * { transition: transform 900ms var(--ease-out); }
.project:hover .project__visual > * { transform: translateY(-6px); }
.project__meta { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-3); flex-wrap: wrap; }
.project h2 { font-size: var(--fs-h3); font-weight: 650; letter-spacing: -.025em; line-height: 1.15; }
.project__meta p { margin-top: .35rem; color: var(--text-2); max-width: 42ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: var(--fs-14); padding: .3rem .8rem; border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--text-2); }
.concept {
  position: absolute; top: 16px; left: 16px; font-size: var(--fs-12); font-weight: 600;
  padding: .35rem .75rem; border-radius: var(--r-pill); background: rgba(255,255,255,.85);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

/* Ember */
.pv-ember { background: #d9cbb5; }
.pv-ember__browser {
  position: absolute; left: 8%; top: 12%; width: 62%; border-radius: 14px; overflow: hidden; background: #f6f1ea;
  box-shadow: 0 30px 70px -20px rgba(63,42,27,.45);
}
.pv-ember__page { padding: 4% 6% 6%; color: #3f2a1b; }
.pv-ember__page strong { display: block; margin-top: 8%; font-size: clamp(18px, 3.4vw, 48px); font-weight: 650; line-height: .98; letter-spacing: -.04em; }
.pv-ember__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; margin-top: 8%; }
.pv-ember__tiles span { aspect-ratio: 1; border-radius: 10px; background: #e7dbc8; }
.pv-ember__tiles span:nth-child(2) { background: #8a6440; }
.pv-ember__phone {
  position: absolute; right: 9%; top: 10%; height: 80%; aspect-ratio: 9/19; border-radius: 28px;
  background: #6b4a2f; box-shadow: 0 0 0 6px #1c1c1e, 0 30px 70px -20px rgba(0,0,0,.5);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 10px; color: #fff;
}
.pv-ember__phone span { position: absolute; inset: 22% 18% auto; aspect-ratio: 1; border-radius: 50%; background: #efe6d6; box-shadow: inset 0 0 0 14px #fff; }
.pv-ember__phone p { font-size: clamp(9px, .9vw, 12px); font-weight: 600; line-height: 1.2; }

/* Forge */
.pv-forge { background: #1f2a44; }
.pv-forge__phone {
  width: 34%; aspect-ratio: 9/18; border-radius: 30px; background: #2f3d63;
  box-shadow: 0 0 0 6px #0c0c0e, 0 30px 70px -20px rgba(0,0,0,.6);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 18px 14px; color: #fff;
}
.pv-forge__tag { align-self: flex-start; font-size: clamp(9px, .9vw, 12px); padding: .3em .8em; border-radius: 99px; background: rgba(255,255,255,.18); }
.pv-forge__phone strong { font-size: clamp(15px, 1.8vw, 24px); font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.pv-forge__btn { text-align: center; padding: .8em; border-radius: 99px; background: #fff; color: #1f2a44; font-weight: 600; font-size: clamp(8px, .8vw, 11px); white-space: nowrap; }

/* Bright */
.pv-bright { background: #e7f0ec; }
.pv-bright__card {
  width: 58%; padding: 8%; border-radius: 18px; background: #fff; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 30px 70px -24px rgba(47,90,78,.4);
}
.pv-bright__logo { font-size: clamp(20px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.04em; color: #2f5a4e; margin-bottom: 6%; }
.pv-bright__line { height: 8px; border-radius: 4px; background: #e2e8e5; }
.pv-bright__line--short { width: 60%; }
.pv-bright__pill { align-self: flex-start; margin-top: 6%; padding: .55em 1.1em; border-radius: 99px; background: #2f5a4e; color: #fff; font-size: clamp(9px, .9vw, 12px); font-weight: 600; }
/* The practice's website chatbot greeting a visitor */
.pv-bright__chat {
  position: absolute; right: 8%; bottom: 10%; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; border-radius: 99px; background: #fff; font-size: clamp(10px, 1vw, 13px);
  box-shadow: 0 16px 40px -16px rgba(0,0,0,.3);
}
.pv-bright__chat b { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); }
.pv-bright__chat svg { width: 14px; height: 14px; fill: #fff; }

@media (max-width: 767px) {
  .work__grid { grid-template-columns: 1fr; }
  .project--wide { grid-column: auto; }
  .project--wide .project__visual { aspect-ratio: 4 / 3; }
  .pv-ember__browser { width: 72%; left: 6%; }
  .pv-ember__phone { height: 70%; top: 15%; right: 6%; border-radius: 20px; box-shadow: 0 0 0 4px #1c1c1e, 0 20px 40px -16px rgba(0,0,0,.5); }
}

/* =========================================================
   Process
   ========================================================= */
.process { background: var(--ink); color: var(--white); }
.process .section-head p { color: var(--on-dark-muted); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); counter-reset: none; }
.step { position: relative; padding-top: var(--s-5); }
.step::before { content: ""; position: absolute; top: 20px; left: 52px; right: calc(-1 * var(--s-4) + 12px); height: 1px; background: #3a3a3c; }
.step:last-child::before { display: none; }
.step__n {
  position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid #48484a; font-weight: 600; font-variant-numeric: tabular-nums;
}
.step :is(h2, h3) { margin-top: var(--s-3); font-size: var(--fs-h3); font-weight: 650; letter-spacing: -.025em; }
.step p { margin-top: .5rem; color: var(--on-dark-muted); max-width: 32ch; }

@media (max-width: 1023px) { .steps { grid-template-columns: 1fr 1fr; row-gap: var(--s-5); } .step:nth-child(2)::before { display: none; } }
@media (max-width: 767px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 0 0 var(--s-5) 64px; }
  .step::before, .step:nth-child(2)::before { display: block; top: 48px; left: 20px; right: auto; bottom: 8px; width: 1px; height: auto; }
  .step:last-child::before { display: none; }
  .step :is(h2, h3) { margin-top: .35rem; }
}

/* =========================================================
   Promises
   ========================================================= */
.promises__inner { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s-6); align-items: start; }
.promise-list { display: grid; gap: 0; }
.promise-list li { display: flex; gap: var(--s-3); padding: var(--s-4) 0; border-top: 1px solid var(--line); }
.promise-list li:last-child { border-bottom: 1px solid var(--line); }
.promise-list svg { flex: none; width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.promise-list h3 { font-size: var(--fs-21); font-weight: 650; letter-spacing: -.02em; line-height: 1.25; }
.promise-list p { margin-top: .35rem; color: var(--text-2); }
@media (max-width: 1023px) { .promises__inner { grid-template-columns: 1fr; gap: var(--s-4); } }

/* =========================================================
   FAQ
   ========================================================= */
.faq { background: var(--surface); }
.faq__inner { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s-6); align-items: start; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa h3 { font-size: inherit; }
.qa button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--s-3);
  min-height: 72px; padding: var(--s-3) 0; border: 0; background: none; cursor: pointer; text-align: left;
  font-size: var(--fs-21); font-weight: 600; letter-spacing: -.02em; line-height: 1.3;
}
.qa__icon { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); transition: border-color var(--t-fast) ease, transform var(--t-med) var(--ease-out); }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.qa__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform var(--t-med) var(--ease-out); }
.qa button:hover .qa__icon { border-color: var(--ink); }
.qa button[aria-expanded="true"] .qa__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-med) var(--ease-out); }
.qa__panel > div { overflow: hidden; }
.qa__panel p { padding-bottom: var(--s-3); color: var(--text-2); max-width: 58ch; font-size: var(--fs-18); }
.qa.is-open .qa__panel { grid-template-rows: 1fr; }
@media (max-width: 1023px) { .faq__inner { grid-template-columns: 1fr; gap: var(--s-4); } }

/* =========================================================
   Contact
   ========================================================= */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: start; }
.contact__intro p { margin-top: var(--s-3); font-size: var(--fs-18); color: var(--text-2); max-width: 30rem; }
.contact__direct a { color: var(--ink); font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.form { display: flex; flex-direction: column; gap: var(--s-3); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--r-tile); background: var(--surface); }
.field { display: flex; flex-direction: column; gap: .5rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-size: var(--fs-14); font-weight: 600; padding: 0; }
.field legend { margin-bottom: .5rem; }
.req { color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: .75rem 1rem; font: inherit; font-size: var(--fs-16);
  color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field textarea:hover { border-color: #b8b8b4; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(10,100,216,.25); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field__err { font-size: var(--fs-14); color: var(--error); min-height: 0; }
.field__err:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem;
  border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--white);
  font-size: var(--fs-14); font-weight: 500;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease;
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.btn:disabled { opacity: .5; cursor: progress; }
.form__status { font-size: var(--fs-16); font-weight: 500; text-align: center; }
.form__status.is-error { color: var(--error); }
.form__status:empty { display: none; }
.form.is-sent .field, .form.is-sent .btn { display: none; }
.form.is-sent .form__status { padding: var(--s-6) 0; font-size: var(--fs-21); }

@media (max-width: 1023px) { .contact__inner { grid-template-columns: 1fr; gap: var(--s-5); } }

/* =========================================================
   Footer
   ========================================================= */
.footer { border-top: 1px solid var(--line); padding-block: var(--s-5); font-size: var(--fs-14); color: var(--text-3); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.wordmark--footer { color: var(--ink); }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); }
.footer__links a { text-decoration: none; padding: .25rem 0; transition: color var(--t-fast) ease; }
.footer__links a:hover { color: var(--ink); }
.footer__legal { margin-left: auto; }
@media (max-width: 767px) { .footer__legal { margin-left: 0; width: 100%; } }

/* =========================================================
   Service detail pages
   ========================================================= */
.crumbs { margin-bottom: var(--s-4); font-size: var(--fs-14); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .5rem; }
.crumbs li { color: var(--text-3); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--line); }
.crumbs a { color: var(--text-2); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.crumbs a:hover { color: var(--ink); }

.detail-hero { padding-bottom: var(--s-6); }
.detail-hero__grid { display: grid; grid-template-columns: 6fr 5fr; gap: var(--s-6); align-items: center; }
.detail-hero__head { margin-bottom: 0; }
.detail-hero .detail-hero__visual { grid-column: auto; min-height: 360px; justify-content: center; }
.detail-hero .tile:hover .tile__visual { transform: none; }

.detail { padding-top: 0; }
.detail-row { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s-4) var(--s-6); padding-block: var(--s-5); border-top: 1px solid var(--line); }
.detail-row h2 { font-size: var(--fs-h3); font-weight: 650; letter-spacing: -.025em; line-height: 1.15; }
.detail-lede { font-size: var(--fs-21); line-height: 1.5; color: var(--text-2); max-width: 38rem; }
.line-list li { padding: var(--s-2) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-18); color: var(--text-2); }
.line-list li:first-child { padding-top: 0; }
.line-list li:last-child { border-bottom: 0; }

/* Numbered steps on a light background */
.steps--light { grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-4); }
.steps--light .step { padding: 0 0 0 56px; }
.steps--light .step::before { display: none; }
.steps--light .step__n { border-color: var(--line); color: var(--ink); }
.steps--light .step h3 { font-size: var(--fs-21); font-weight: 650; letter-spacing: -.02em; line-height: 1.25; padding-top: .45rem; }
.steps--light .step p { margin-top: .5rem; color: var(--text-2); }

.detail-cta { background: var(--surface); text-align: center; }
.detail-cta__inner { max-width: 46rem; }
.detail-cta h2 { font-size: var(--fs-h2); font-weight: 650; line-height: 1.02; letter-spacing: -.04em; }
.detail-cta p { margin: var(--s-3) auto 0; max-width: 34rem; font-size: var(--fs-18); color: var(--text-2); }
.detail-cta .hero__actions { margin-top: var(--s-4); }
.detail-cta .btn--ghost { background: var(--white); }
/* After a grey section the closing block turns white, so the two don't run together */
:is(.services, .faq, .home-services) + .closing-cta { background: var(--white); }

.detail-more h2 { font-size: var(--fs-h3); font-weight: 650; letter-spacing: -.025em; margin-bottom: var(--s-4); }
.more-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s-2); }
.more-list a {
  display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: var(--s-3);
  border: 1px solid var(--line); border-radius: 20px; text-decoration: none;
  transition: border-color var(--t-fast) ease;
}
.more-list a:hover { border-color: var(--ink); }
.more-list a > span:first-child { font-weight: 650; font-size: var(--fs-18); letter-spacing: -.015em; }
.more-list__text { font-size: var(--fs-14); color: var(--text-2); }

.hero__actions--start { justify-content: flex-start; }

/* Homepage services overview: the four services as white cards on grey, two per row */
.home-services { background: var(--surface); }
.home-services .more-list { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: var(--s-3); }
.home-services .more-list a { background: var(--white); border-color: transparent; }
.home-services .more-list a:hover { border-color: var(--ink); }
.home-services .more-list__text { font-size: var(--fs-16); }
@media (max-width: 767px) { .home-services .more-list { grid-template-columns: 1fr; } }

@media (max-width: 1023px) {
  .detail-hero__grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .detail-row { grid-template-columns: 1fr; gap: var(--s-3); }
}
@media (max-width: 767px) {
  .detail-hero .detail-hero__visual { min-height: 0; }
  .steps--light { grid-template-columns: 1fr; row-gap: var(--s-4); }
}

/* =========================================================
   Privacy statement and other text pages
   ========================================================= */
.prose { max-width: 42rem; }
.prose h2 { margin-top: var(--s-5); font-size: var(--fs-24); font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-top: var(--s-2); color: var(--text-2); font-size: var(--fs-18); line-height: 1.6; }
.prose ul { padding-left: 1.25rem; list-style: disc; }
.prose li + li { margin-top: .35rem; }
.prose a { color: var(--ink); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.prose code { font-size: .9em; padding: .1em .35em; border-radius: 6px; background: var(--surface); }
.legal__party { color: var(--ink); }

/* Contact form notes */
.form__hint { font-size: var(--fs-14); color: var(--text-3); }
.form__privacy { font-size: var(--fs-14); line-height: 1.5; color: var(--text-2); }
.form__privacy a { color: var(--ink); text-underline-offset: 3px; }
.form__status:focus { outline: none; }
.form__status:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

.footer__links a[href^="mailto:"] { color: var(--text-2); }
.footer__legal-details { display: block; margin-top: .25rem; }

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .hero__title .line > span, .js .hero__lede, .js .hero__actions, .js .stage__inner > * { transform: none !important; opacity: 1 !important; }
  .strip__text span { color: var(--ink); }
}
