/* Berjawi Moesli — site styles
   Palette: paper #FFFFFF · ink #0C277D (logo navy) · navy-deep #081A5C
   coral #E03E32 · electric #2F52F0 · cobalt #2845D5 · mist #F3F4F9 */

@font-face { font-family: 'Lora'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/lora-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/lora-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/lora-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/lora-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lora'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/lora-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); }

:root {
  --paper: #ffffff;
  --mist: #f3f4f9;
  --ink: #0c277d;
  --ink-soft: #3b4a8f;
  --ink-faint: #c9cfe6;
  --navy: #081a5c;
  --coral: #e03e32;
  --electric: #2845d5; /* same as cobalt: one blue */
  --cobalt: #2845d5;
  --serif: 'Lora', 'Iowan Old Style', 'Palatino', Georgia, serif;
  --sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --max: 1480px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(88px, 12vw, 160px);
  color-scheme: light only;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--electric); outline-offset: 3px; }
::selection { background: var(--cobalt); color: var(--paper); }

/* ---------- type ---------- */
.serif { font-family: var(--serif); font-weight: 400; }
.small { font-size: 13px; color: var(--ink-soft); }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
.display { font-family: var(--serif); font-size: clamp(36px, 5vw, 70px); line-height: 1.08; letter-spacing: -0.01em; font-weight: 500; }
.display em, .h2 em, .h3 em { font-style: italic; color: var(--coral); }
.h2 { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 50px); line-height: 1.12; letter-spacing: -0.008em; font-weight: 500; }
.h3 { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; font-weight: 500; }
.lead { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.4; max-width: 34ch; }
.body { max-width: 62ch; color: var(--ink); }
.muted { color: var(--ink-soft); }
p { margin: 0; }
p + p { margin-top: 1em; }


.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.sec-head .link { flex: none; }

/* ---------- layout ---------- */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--band { padding-block: clamp(40px, 5vw, 64px); }
.rule { height: 1px; background: var(--ink-faint); }
.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) {
  .grid-2, .grid-3, .split { grid-template-columns: 1fr; }
}

/* dark surfaces */
.dark { background: var(--navy); color: var(--paper); }
.dark .muted { color: rgba(255,255,255,0.7); }
.dark .rule { background: rgba(255,255,255,0.18); }
.dark .body { color: var(--paper); }
.dark ::selection { background: var(--coral); color: var(--paper); }
.mist { background: var(--mist); }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent; transition: border-color 0.3s;
}
.header.is-scrolled { border-bottom-color: var(--ink-faint); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 88px; gap: 24px; }
.logo { display: block; position: relative; flex: none; width: clamp(180px, 20vw, 300px); }
.logo img { width: 100%; height: auto; transition: opacity 0.3s; }
.logo__white { position: absolute; left: 0; top: 0; opacity: 0; }

/* landing: header floats over the full-screen video, then turns paper */
.home .header { position: fixed; left: 0; right: 0; transition: background 0.3s, border-color 0.3s, color 0.3s; }
.home .header.is-over { background: transparent; color: var(--paper); border-bottom-color: transparent; }
.home .header.is-over .logo img { opacity: 0; }
.home .header.is-over .logo .logo__white { opacity: 1; }
.home .header.is-over .nav-toggle span, .home .header.is-over .nav-toggle span::before, .home .header.is-over .nav-toggle span::after { background: var(--paper); }
.home .header.is-over .btn { background: var(--paper); color: var(--ink); }
.home .header.is-over .btn:hover { background: var(--cobalt); color: var(--paper); }
@media (max-width: 860px) { .home .header.is-over .nav { color: var(--ink); } .home .header.is-over .nav .btn { background: var(--coral); color: var(--paper); } }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); }
.nav a { font-size: 15px; font-weight: 500; position: relative; padding-block: 4px; }
.nav a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px; background: var(--coral); transition: right 0.25s ease; }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; width: 22px; height: 2px; background: var(--ink); }
.nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav { display: none; position: absolute; top: 88px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--ink-faint);
    flex-direction: column; align-items: flex-start; padding: 20px var(--gutter) 28px; gap: 18px; }
  .nav.is-open { display: flex; }
  .nav a { font-size: 20px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--coral); color: var(--paper);
  font-weight: 500; font-size: 15px; padding: 14px 22px; border-radius: 8px;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--electric); }
.btn:active { transform: translateY(1px); }
.btn--ink { background: var(--ink); }
.btn--ink:hover { background: var(--electric); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: var(--cobalt); color: var(--paper); }
.btn--sm { padding: 10px 16px; font-size: 14px; }
.link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px;
  border-bottom: 1.5px solid var(--coral); padding-bottom: 2px; transition: color 0.2s, border-color 0.2s;
}
.link:hover { color: var(--electric); border-color: var(--electric); }
.link--paper { color: var(--paper); }
.link--paper:hover { color: var(--coral); border-color: var(--coral); }
.link svg, .btn svg { width: 14px; height: 14px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }

/* ---------- hero (landing): full-screen reel that docks to the right on scroll ---------- */
.hero { position: relative; height: 260vh; }
.hero__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--paper); }
.hero__final { height: 100%; padding-top: 88px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__title { font-size: clamp(30px, 3.5vw, 56px); max-width: 19ch; text-wrap: balance; margin: 0; }
.hero__title em { color: var(--coral); font-style: normal; }
.hero__ghost { visibility: hidden; }
.hero__cta { margin-top: clamp(24px, 3vw, 40px); opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s ease; pointer-events: none; }
.hero.is-docked .hero__cta { opacity: 1; transform: none; pointer-events: auto; }
.hero__cta .btn { font-family: var(--serif); font-size: clamp(17px, 1.4vw, 21px); padding: 14px 24px; }
.hero__slot { aspect-ratio: 16 / 10; max-height: calc(100svh - 88px - 2 * clamp(24px, 4vw, 56px)); width: 100%; }
.hero__stage { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--navy); overflow: hidden; will-change: left, top, width, height; }
.hero__stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__stage::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(8,26,92,0.45) 0%, rgba(8,26,92,0) 22%), linear-gradient(to top, rgba(8,26,92,0.92) 0%, rgba(8,26,92,0.55) 42%, rgba(8,26,92,0.08) 75%, rgba(8,26,92,0) 100%); opacity: var(--veil, 1); pointer-events: none; }
.hero__fly { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; z-index: 1; }
.hero__fly--ink { color: var(--ink); }
.hero__fly--paper { color: var(--paper); z-index: 2; }
.hero__scroll { position: absolute; left: 50%; bottom: clamp(18px, 3vh, 32px); transform: translateX(-50%); z-index: 3; display: grid; justify-items: center; gap: 10px; color: var(--paper); font-size: 14px; font-weight: 500; letter-spacing: 0.02em; padding: 8px 14px; transition: opacity 0.3s; }
.hero__scroll i { display: block; width: 1.5px; height: 40px; background: rgba(255,255,255,0.35); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 50%; background: var(--paper); animation: scrollcue 1.8s ease-in-out infinite; }
@keyframes scrollcue { from { transform: translateY(-100%); } to { transform: translateY(200%); } }
.hero.is-moving .hero__scroll { opacity: 0; pointer-events: none; }
@media (max-width: 860px) {
  .hero__final { grid-template-columns: 1fr; align-content: center; gap: 28px; }
  .hero__title { font-size: clamp(28px, 7.4vw, 40px); }
  .hero__slot { aspect-ratio: 4 / 5; max-height: 52svh; order: -1; }
  .hero__final { align-content: start; padding-top: 104px; gap: 24px; }
}
/* no scroll choreography: show the docked layout */
.hero.is-static { height: auto; }
.hero.is-static .hero__pin { position: relative; }
.hero.is-static .hero__scroll { display: none; }
@media (prefers-reduced-motion: reduce) { .hero__scroll i::after { animation: none; } }

/* ---------- full-screen sections ---------- */
.section--screen { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.section--screen > .wrap { width: 100%; }
.section--screen .step { min-height: clamp(200px, 26vh, 300px); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.step { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 200px; padding: 24px; border: 1px solid var(--ink-faint); border-radius: 8px; text-align: left; width: 100%; color: var(--ink); background: var(--paper); transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s; cursor: pointer; }
.step__n { font-family: var(--serif); font-weight: 700; font-size: 20px; line-height: 1; color: var(--coral); display: block; }
.step__name { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 2.6vw, 38px); line-height: 1; margin-top: 12px; }
.step__detail { margin-top: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.35s ease; font-size: 15px; line-height: 1.4; }
.step__detail p { margin: 0; }
.step__get { display: block; margin-top: 24px; }
.step__get b { font-weight: 600; font-size: 14px; display: block; width: fit-content; margin-top: 0; background: var(--mist); color: var(--ink); padding: 6px 12px; border-radius: 8px; transition: background 0.25s, color 0.25s; }
.step:hover, .step:focus-visible, .step.is-open { background: var(--coral); border-color: var(--coral); color: var(--paper); transform: scale(1.025); box-shadow: 0 18px 40px -18px rgba(224,62,50,0.55); z-index: 1; }
.step:hover .step__n, .step:focus-visible .step__n, .step.is-open .step__n, .step:hover .step__name, .step:focus-visible .step__name, .step.is-open .step__name { color: var(--paper); }
.step:hover .step__detail, .step:focus-visible .step__detail, .step.is-open .step__detail { max-height: 240px; opacity: 1; margin-top: 14px; font-weight: 500; }
.step:hover .step__get, .step:focus-visible .step__get, .step.is-open .step__get { margin-top: 14px; }
.step:hover .step__get b, .step:focus-visible .step__get b, .step.is-open .step__get b { background: rgba(255,255,255,0.72); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .step, .step__detail { transition: none; } }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .step { min-height: 0; } }

/* full step layout on offer page */
.step-full { transition: background 0.2s, color 0.2s; display: grid; grid-template-columns: 120px minmax(0, 4fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 64px); padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--ink-faint); }
.step-full__n { font-family: var(--serif); font-weight: 700; font-size: clamp(40px, 5vw, 72px); line-height: 0.9; color: var(--coral); }
.step-full__name { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.02; margin-bottom: 8px; }
.step-full__tag { color: var(--ink-soft); font-size: 15px; }
.step-full__cols { display: grid; gap: 24px; }
.step-full__col h4 { font-size: 14px; font-weight: 500; color: var(--ink-soft); margin-bottom: 8px; }
.step-full__col p { max-width: 52ch; }
.step-full:hover { background: var(--coral); color: var(--ink); }
.step-full:hover .step-full__n, .step-full:hover .step-full__name, .step-full:hover .step-full__tag, .step-full:hover .step-full__col h4 { color: var(--paper); }
.step-full:hover .deliverable { background: var(--paper); color: var(--coral); }
.step-full { padding-inline: 24px; margin-inline: -24px; border-radius: 8px; }
@media (max-width: 860px) { .step-full { margin-inline: 0; padding-inline: 16px; } }
.deliverable { display: inline-block; background: var(--cobalt); color: var(--paper); padding: 6px 12px; border-radius: 8px; font-weight: 600; margin-top: 8px; }
@media (max-width: 860px) { .step-full { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- problem form ---------- */
.form-shell { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .form-shell { grid-template-columns: 1fr; } }
.qcard { background: var(--paper); color: var(--ink); border: 1px solid var(--ink-faint); border-radius: 8px; padding: clamp(24px, 3.5vw, 44px); min-height: 420px; display: flex; flex-direction: column; position: relative; }
.dark .qcard { border-color: transparent; }
.qcard__dots { display: flex; gap: 8px; margin-bottom: 28px; }
.qcard__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); transition: background 0.2s; }
.qcard__dots i.is-done { background: var(--electric); }
.qcard__dots i.is-on { background: var(--coral); }
.qcard__sit { display: flex; flex-wrap: wrap; gap: 6px; margin: -14px 0 24px; }
.qcard__sit span { font-size: 12px; font-weight: 500; color: var(--ink-soft); border: 1px solid var(--ink-faint); border-radius: 8px; padding: 4px 10px; transition: color 0.3s, border-color 0.3s, background 0.3s; }
.qcard__sit span.is-on { color: var(--paper); background: var(--coral); border-color: var(--coral); }
.result__echo { font-size: 14px; color: var(--ink-soft); margin-bottom: 10px; }
.details textarea { min-height: 64px; }
.qcard__q { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; margin-bottom: 8px; }
.qcard__hint { color: var(--ink-soft); font-size: 14px; margin-bottom: 24px; }
.opts { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.opt { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: center; text-align: left; width: 100%; padding: 14px 16px; border: 1px solid var(--ink-faint); border-radius: 8px; transition: border-color 0.15s, background 0.15s; }
.opt:hover, .opt:focus-visible { border-color: var(--electric); background: var(--mist); }
.opt.is-picked { border-color: var(--coral); background: #fff4f0; }
.opt__k { font-size: 12px; font-weight: 500; color: var(--ink-soft); border: 1px solid var(--ink-faint); border-radius: 4px; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.opt__t { font-weight: 500; font-size: 17px; line-height: 1.3; }
.opt__s { display: block; font-weight: 400; color: var(--ink-soft); font-size: 14px; margin-top: 2px; }
.opt--free { display: grid; grid-template-columns: 26px 1fr auto; gap: 14px; align-items: center; padding: 8px 8px 8px 16px; border: 1px solid var(--ink-faint); border-radius: 8px; }
.opt--free:focus-within { border-color: var(--electric); }
.opt--free input { font: inherit; font-size: 16px; color: var(--ink); border: 0; background: transparent; padding: 8px 0; min-width: 0; width: 100%; }
.opt--free input:focus { outline: none; }
.qcard__foot { margin-top: auto; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; color: var(--ink-soft); }
.qcard__back { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.qcard__back:hover { color: var(--coral); }
.qcard__pane { animation: fadeUp 0.35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .qcard__pane { animation: none; } }

.result__title { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.1; margin-bottom: 14px; }
.result__text { color: var(--ink); max-width: 52ch; }
.result__steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 28px; }
.result__steps span { font-size: 12px; font-weight: 500; border: 1px solid var(--ink-faint); padding: 5px 10px; border-radius: 8px; }
.result__steps span.is-on { border-color: var(--coral); color: var(--coral); }
.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.details label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.details input, .details select { font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--ink-faint); border-radius: 4px; padding: 12px 14px; width: 100%; min-width: 0; }
.details select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230c277d' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 40px; }
.details select:invalid { color: var(--ink-soft); }
.details input:focus, .details select:focus { outline: 2px solid var(--electric); outline-offset: 1px; border-color: var(--electric); }
.details .is-wide { grid-column: 1 / -1; }
.details .actions { grid-column: 1 / -1; margin-top: 6px; }
.details textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--ink-faint); border-radius: 4px; padding: 12px 14px; width: 100%; min-height: 96px; resize: vertical; }
.details textarea:focus { outline: 2px solid var(--electric); outline-offset: 1px; border-color: var(--electric); }
.optin { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 14px; color: var(--ink-soft); font-weight: 400; cursor: pointer; grid-column: 1 / -1; margin-top: 4px; }
.optin input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--coral); }
@media (max-width: 600px) { .details { grid-template-columns: 1fr; } }
.field { display: flex; gap: 8px; flex-wrap: wrap; }
.field input { flex: 1 1 220px; font: inherit; padding: 12px 14px; border: 1px solid var(--ink-faint); border-radius: 4px; color: var(--ink); background: var(--paper); min-width: 0; }
.field input:focus { outline: 2px solid var(--electric); outline-offset: 1px; border-color: var(--electric); }
.field__note { font-size: 13px; color: var(--ink-soft); margin-top: 10px; }
.field__err { color: var(--coral); font-size: 13px; margin-top: 8px; display: none; }
.field__err.is-on { display: block; }

/* ---------- work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.work-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .work-grid, .work-grid--2 { grid-template-columns: 1fr; } }
.tile { display: block; position: relative; overflow: hidden; }
.tile__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy); max-width: 100%; border-radius: 8px; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.tile:hover .tile__media img { transform: scale(1.03); }
.tile__media--type { display: flex; align-items: flex-end; padding: 24px; color: var(--paper); font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.02; }
.tile__body { padding: 18px 0 8px; display: flex; flex-direction: column; }
.tile__title { order: 1; } .tile__line { order: 2; } .tile__stats { order: 4; }
.tile__kicker { font-size: 14px; color: var(--ink-soft); display: block; margin-top: 6px; order: 3; }
.tile__title { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.1; }
.tile__line { color: var(--ink-soft); font-size: 14px; margin-top: 6px; max-width: 40ch; }
.tile__stats { display: flex; gap: 20px; margin-top: 12px; flex-wrap: wrap; }
.tile__stats b { display: block; font-family: var(--serif); font-size: 26px; font-weight: 700; line-height: 1; color: var(--coral); font-variant-numeric: tabular-nums; }
.tile__stats span { font-size: 13px; color: var(--ink-soft); }
.tile--wide { grid-column: 1 / -1; }
.tile--wide .tile__media { aspect-ratio: 21 / 9; }
@media (max-width: 860px) { .tile--wide .tile__media { aspect-ratio: 16 / 10; } }

/* ---------- reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; border-top: 1px solid var(--ink-faint); }
.reviews--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .reviews, .reviews--4 { grid-template-columns: 1fr; } }
.review { padding: 36px 0 40px; border-bottom: 1px solid var(--ink-faint); display: flex; flex-direction: column; gap: 22px; }
.review__q { font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); line-height: 1.2; }
.review__q::before { content: '“'; color: var(--coral); }
.review__q::after { content: '”'; color: var(--coral); }
.review__by { font-size: 13px; color: var(--ink-soft); margin-top: auto; }
.review__by b { display: block; font-weight: 400; color: var(--ink); }
.placeholder { outline: 1.5px dashed var(--electric); outline-offset: 6px; }

/* ---------- quotes ---------- */
.quotes__stage { position: relative; min-height: 5.2em; font-size: clamp(24px, 3vw, 44px); }
.quotes__q { position: absolute; inset: 0; margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.25; max-width: 26ch; opacity: 0; transform: translateY(10px); transition: opacity 0.25s ease, transform 0.25s ease; pointer-events: none; }
.quotes__q::before { content: '“'; color: var(--coral); }
.quotes__q::after { content: '”'; color: var(--coral); }
.quotes__q.is-on { opacity: 1; transform: none; pointer-events: auto; transition: opacity 0.5s ease 0.25s, transform 0.5s ease 0.25s; }
.quotes__who { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin-top: 48px; border-top: 1px solid var(--ink-faint); }
.quotes__tab { position: relative; text-align: left; padding: 18px 0 8px; color: var(--ink-soft); display: grid; gap: 2px; transition: color 0.2s; }
.quotes__tab b { font-weight: 500; color: var(--ink); }
.quotes__tab span { font-size: 13px; }
.quotes__tab i { position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--coral); }
.quotes__tab.is-on i { width: 100%; transition: width 6s linear; }
.quotes__tab:hover b { color: var(--coral); }
.quotes[data-paused] .quotes__tab.is-on i { transition: none; }
@media (max-width: 860px) { .quotes__who { grid-template-columns: repeat(2, minmax(0, 1fr)); } .quotes__stage { min-height: 7em; } }
@media (prefers-reduced-motion: reduce) { .quotes__q { transition: none; } .quotes__tab.is-on i { transition: none; } }

/* ---------- logos ---------- */
.logos__note { font-size: 14px; color: rgba(255,255,255,0.7); margin-top: 28px; }
@media (min-width: 861px) { .logos__note { white-space: nowrap; } }
.logos { display: flex; overflow: hidden; margin-top: 32px; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.logos__track { display: flex; align-items: center; gap: clamp(48px, 6vw, 96px); width: max-content; padding-right: clamp(48px, 6vw, 96px); animation: marquee 48s linear infinite; }
.logos__track img { height: 40px; width: auto; max-width: 170px; object-fit: contain; opacity: 0.92; }
.logos:hover .logos__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
@media (max-width: 860px) {
  /* phones: a calm, centred grid instead of the moving strip */
  .logos { display: block; margin-top: 8px; padding-inline: var(--gutter); -webkit-mask-image: none; mask-image: none; }
  .logos__track { animation: none; width: auto; padding: 0; flex-wrap: wrap; justify-content: center; gap: 30px 8%; }
  .logos__track[aria-hidden] { display: none; }
  .logos__track img { width: 28%; height: 30px; max-width: 120px; object-fit: contain; object-position: center; }
  .logos__note { text-align: center; margin-top: 36px; }
}
@media (prefers-reduced-motion: reduce) { .logos__track { animation: none; flex-wrap: wrap; width: auto; gap: 32px 48px; } .logos__track[aria-hidden] { display: none; } .logos { mask-image: none; -webkit-mask-image: none; } }

/* ---------- people ---------- */
.person { display: grid; gap: 14px; }
.person__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--mist); margin-bottom: 8px; max-width: 100%; }
.person__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person__photo--empty { display: flex; align-items: flex-end; padding: 20px; font-size: 13px; color: var(--ink-soft); border: 1px dashed var(--ink-faint); }
.dark .person__photo--empty { border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.7); background: transparent; }
.person__name { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3vw, 40px); line-height: 1; }
.person__role { color: var(--ink-soft); }
.person__facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.person__facts span { font-size: 13px; font-weight: 500; border: 1px solid var(--ink-faint); padding: 5px 10px; border-radius: 8px; }
.dark .person__facts span { border-color: rgba(255,255,255,0.3); }

/* ---------- philosophy list ---------- */
.tenets { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink-faint); }
.tenets li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; padding-block: 28px; border-bottom: 1px solid var(--ink-faint); }
.tenets h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.05; }
.tenets p { max-width: 52ch; color: var(--ink); }
@media (max-width: 700px) { .tenets li { grid-template-columns: 1fr; gap: 8px; } }

.ai-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ai-table th, .ai-table td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--ink-faint); vertical-align: top; }
.ai-table th { font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.table-scroll { overflow-x: auto; }

/* services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; } }
.service h3 { font-family: var(--serif); font-weight: 600; font-size: 26px; margin-bottom: 8px; }
.service p { color: var(--ink-soft); font-size: 15px; }

/* ---------- contact ---------- */
.contact-form { display: grid; gap: 18px; max-width: 560px; }
.contact-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.contact-form input, .contact-form textarea, .contact-form select { font: inherit; font-family: var(--sans); font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--ink-faint); border-radius: 4px; padding: 12px 14px; width: 100%; }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230c277d' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 40px; }
.contact-form select:invalid { color: var(--ink-soft); }
.contact-form .btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.contact-form .btn[disabled]:hover { background: var(--coral); }
.form-note { font-size: 13px; color: var(--ink-soft); }
.form-note.is-stop { color: var(--coral); }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: 2px solid var(--electric); outline-offset: 1px; }
.cities { display: flex; flex-wrap: wrap; gap: 12px 28px; font-family: var(--serif); font-size: clamp(24px, 2.6vw, 36px); }
.cities span + span::before { content: '·'; color: var(--coral); margin-right: 28px; }
.big-mail { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 4.5vw, 60px); line-height: 1; border-bottom: 2px solid var(--coral); display: inline-block; word-break: break-all; }
.big-mail:hover { color: var(--electric); border-color: var(--electric); }

/* who reads the form */
.who { display: grid; grid-template-columns: 64px 64px 1fr; gap: 12px 16px; align-items: center; margin-top: 32px; }
.who img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.who p { grid-column: 1 / -1; font-size: 15px; color: var(--ink-soft); max-width: 36ch; }

/* ---------- cta strip ---------- */
.cta { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: center; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { position: relative; color: var(--paper); background-color: #c9523a;
  background-image: radial-gradient(ellipse 60% 95% at 0% 0%, #0a0a66 0%, rgba(10,10,102,0.85) 22%, rgba(10,10,102,0) 70%), radial-gradient(ellipse 55% 75% at 45% 105%, #e05a33 0%, rgba(224,90,51,0) 70%), linear-gradient(90deg, #7a3f5c 0%, #bf4636 45%, #d4794a 70%, #d89b57 100%);
  min-height: min(78vh, 720px); display: flex; padding-block: clamp(56px, 8vw, 110px) 32px; }
.footer__inner { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr auto; gap: 48px clamp(32px, 6vw, 96px); align-items: center; }
.footer__cta .h2 { max-width: 16ch; font-size: clamp(34px, 4.4vw, 68px); }
.footer__cta .actions { margin-top: clamp(28px, 3vw, 44px); }
.footer__mark { height: clamp(180px, 34vh, 360px); width: auto; fill: #edeae0; justify-self: end; margin-right: clamp(0px, 6vw, 120px); }
.footer__base { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px 40px; font-size: 14px; color: rgba(255,255,255,0.86); padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.28); }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__links a:hover { color: var(--ink); }
@media (max-width: 700px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__mark { height: 140px; justify-self: start; margin: 0; grid-row: 1; }
  .footer__base { grid-column: 1; }
}

/* ---------- terms ---------- */
.terms { max-width: 68ch; }
.terms h2 { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.15; margin-top: 44px; margin-bottom: 12px; }
.terms h2:first-child { margin-top: 0; }
.terms p, .terms li { font-size: 16px; line-height: 1.55; }
.terms ul { margin: 12px 0; padding-left: 22px; }
.terms li + li { margin-top: 6px; }

/* ---------- reveal ---------- */
.reveal { opacity: 1; transform: none; }
.js .reveal { transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal:not(.is-in) { opacity: 0.001; transform: translateY(14px); }
@media (prefers-reduced-motion: reduce) { .js .reveal:not(.is-in) { opacity: 1; transform: none; } }

.page-head { padding-block: clamp(48px, 7vw, 100px) clamp(32px, 4vw, 56px); }
.page-head .display { max-width: 16ch; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- about ---------- */
.about-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 96px); }
.about-cols .h3 { margin-bottom: 16px; }
@media (max-width: 860px) { .about-cols { grid-template-columns: 1fr; } }

/* ---------- projects page: one large case per row ---------- */
.cases { display: grid; gap: clamp(56px, 8vw, 120px); }
.case { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center; scroll-margin-top: 120px; }
.case:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.case:nth-child(even) .tile__media { order: 2; }
.case .tile__media { aspect-ratio: 3 / 2; border-radius: 12px; }
.case:hover .tile__media img { transform: scale(1.03); }
.case .tile__body { padding: 0; }
.case .tile__title { font-size: clamp(32px, 3.4vw, 52px); line-height: 1.05; }
.case .tile__line { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.45; color: var(--ink); margin-top: 16px; max-width: 38ch; }
.case .tile__kicker { margin-top: 14px; font-size: 15px; }
.case .tile__stats { gap: 36px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--ink-faint); }
.case .tile__stats b { font-size: clamp(36px, 3.6vw, 54px); }
.case .tile__stats span { font-size: 14px; display: block; margin-top: 6px; }
.tile__media img[src*="swisshand"] { object-position: 50% 22%; }
@media (max-width: 860px) {
  .case { grid-template-columns: 1fr; gap: 20px; }
  .case:nth-child(even) .tile__media { order: 0; }
  .case .tile__stats { gap: 24px; }
}
/* numbers: count up / fade in when they scroll into view */
.js .tile__stats b { opacity: 0; transform: translateY(8px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .tile__stats b.is-counted { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .tile__stats b { opacity: 1; transform: none; transition: none; } }

/* ---------- six steps: spacing, and compact rows on phones ---------- */
.section--steps .steps { margin-top: 56px; }
@media (max-width: 860px) {
  .section--screen { min-height: 0; display: block; }
  .section--steps { padding-top: 28px; }
  .section--steps .steps { margin-top: 28px; gap: 8px; }
  .section--screen .step, .step { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; padding: 14px 16px; }
  .step > div:first-child { display: flex; align-items: baseline; gap: 10px; }
  .step__n { font-size: 16px; }
  .step__name { font-size: 22px; margin-top: 0; }
  .step__get, .step:hover .step__get, .step.is-open .step__get { margin-top: 0; }
  .step__get b { font-size: 12px; padding: 5px 10px; }
  .step__detail { order: 3; flex-basis: 100%; }
  .step:hover, .step.is-open { transform: none; }
}
