/* Self-hosted fonts (SIL Open Font Licence 1.1; licences in assets/fonts). Latin subset covers Norwegian and English. */
@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"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: Fraunces; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/fraunces-variable-latin.woff2") format("woff2"); }   /* variable: weight, optical size, SOFT and WONK axes */

/* Arcaio Playground: stylesheet source (copied to assets/styles.css by scripts/build_site.py).
   BASE: the Arcaio AI website stylesheet (arcaioai-web, assets/styles.css): same section order, class names and component rules
   (header, nav, hero, cards, benefit rows, forms, consent strip, FAQ, proof band, journey steps, legal pages, footer).
   TOKENS: Brand System v1.2 (fasit) only. Forest = structure, Terracotta = action (Charcoal label for AA), Cream = ground, 60/30/10.
   Left out on purpose: Arcaio AI's palette, Bebas Neue capitals, dark mode (no dark palette in the Playground brand book),
   drop shadows and decorative shapes (banned by the brand book), enquiry cart/drawer, newsletter box, flow card and package cards.
   Fonts are system fallbacks until Inter and Fraunces are self-hosted in assets/fonts. */

:root {
  /* Brand palette (Brand System ch. 3) */
  --forest: #1F3D2E; --terracotta: #C66B3D; --cream: #F5F1E8; --charcoal: #1A1A1A; --stone: #595959; --mist: #E8EDE8;
  /* Soft accents (extension of v1.2, pending Eirik's palette): tints of Forest, Terracotta and a sand. Flat, never on text or buttons. */
  --sage: #6E9687; --sage-tint: #DCE7E0; --sand: #D9A679; --sand-tint: #F0E3D3; --clay: var(--terracotta); --terracotta-deep: #A8532A;   /* deeper terracotta for large text (4.7:1 on Cream) */ --clay-tint: #F0D9CB;

  /* Roles (same role names as arcaioai-web) */
  --ink: var(--charcoal);            /* text */
  --muted: var(--stone);             /* secondary text */
  --line: var(--mist);               /* dividers, table headers */
  --card-line: rgba(89, 89, 89, .28);/* card outlines: Stone tint so cards read on Cream */
  --surface: var(--cream);
  --bg: var(--cream);
  --alt: var(--mist);
  --primary: var(--terracotta);      /* buttons */
  --on-primary: var(--charcoal);     /* 4.62:1 on Terracotta (Cream on Terracotta is 3.34:1 and fails AA) */
  --primary-hover: var(--forest);
  --on-primary-hover: var(--cream);
  --accent: var(--forest);           /* links, focus, small labels */
  --tint: rgba(31, 61, 46, .08);
  --ring: rgba(31, 61, 46, .28);
  --band-bg: var(--forest); --band-fg: var(--cream); --band-muted: rgba(245, 241, 232, .82); --band-line: rgba(245, 241, 232, .28);

  /* Type (Brand System ch. 4): Display = Fraunces until Recoleta is licensed; Body = Inter */
  --font-display: Fraunces, Recoleta, Georgia, "Times New Roman", serif;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --gutter: 24px; --section: 96px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/28px var(--font); color: var(--ink); background: var(--bg); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Type scale 1.250 (ch. 4.2): Hero 61/76 · H1 49/60 · H2 39/48 · H3 31/40 · H4 25/32 · Lead 20/32 · Body 17/28 · Small 14/22 · Caption 12/18 */
h1, h2, h3 { margin: 0 0 12px; overflow-wrap: break-word; hyphens: manual; }
h1, h2 { font-family: var(--font-display); font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5vw, 3.0625rem); line-height: 1.2245; letter-spacing: -.01em; color: var(--forest); }
h1.hero-title { font-size: clamp(2.4rem, 6vw, 3.8125rem); line-height: 1.246; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4375rem); line-height: 1.2308; color: var(--charcoal); }
h3 { font: 600 1.5625rem/32px var(--font); color: var(--charcoal); }
a { color: var(--accent); }
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
html:not(.js) .js-only { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--forest); color: var(--cream); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.draft-bar { background: var(--forest); color: var(--cream); font-size: .875rem; line-height: 22px; padding: 8px 16px; text-align: center; }

/* ---------- Header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 12px 16px; padding: 16px; flex-wrap: wrap; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
/* Wordmark: modified geometric sans (ch. 2.2), never a serif. Text placeholder until the designer delivers the logo. */
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 1.4rem var(--font); letter-spacing: -.01em; color: var(--forest); text-decoration: none; margin-right: auto; }
.site-header nav a { color: var(--muted); font-size: .95rem; font-weight: 600; text-decoration: none; padding: 10px 0; }
.site-header nav a:hover { color: var(--accent); }
.site-header nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--card-line); border-radius: 8px; background: var(--surface); color: var(--ink); font: 700 .9rem var(--font); cursor: pointer; }
.nav-toggle:hover { border-color: var(--accent); }
.nav-toggle svg { width: 18px; height: 18px; }
.lang-switch { position: relative; }
.lang-switch summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--card-line); border-radius: 8px; background: var(--surface); color: var(--ink); font: 700 .9rem var(--font); cursor: pointer; list-style: none; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 2px; }
.lang-switch summary:hover, .lang-switch[open] summary { border-color: var(--accent); }
.lang-switch ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 140px; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--card-line); border-radius: 8px; }
.lang-switch ul a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--ink); font-size: .92rem; font-weight: 600; text-decoration: none; }
.lang-switch ul a:hover { background: var(--alt); }
.lang-switch ul a.is-current { font-weight: 700; color: var(--accent); }
.lang-switch ul a.is-current::after { content: "\00a0\2713"; }
@media (max-width: 1100px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-header nav { display: none; flex-basis: 100%; order: 10; flex-direction: column; gap: 0; }
  .js .site-header nav.is-open { display: flex; }
  .js .site-header nav a { display: block; padding: 12px 4px; }
}
@media (max-width: 1100px) and (min-width: 1px) { html:not(.js) .site-header nav { order: 10; flex-basis: 100%; } }

/* ---------- Buttons: Terracotta + Charcoal label; never Terracotta directly against Forest ---------- */
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 24px; border-radius: 8px; border: 2px solid transparent; text-decoration: none; font: 600 1rem/1.25 var(--font); cursor: pointer; transition: background-color .2s ease-out, color .2s ease-out, border-color .2s ease-out; }
.btn-accent { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn-accent:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-primary-hover); }
.btn-ghost { background: transparent; border-color: var(--forest); color: var(--forest); }
.btn-ghost:hover { background: var(--forest); color: var(--cream); }
.btn-cream { background: var(--cream); color: var(--forest); border-color: var(--cream); }
.btn-cream:hover { background: transparent; color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.link-small { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 4px; font-size: .9rem; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.link-small:hover { text-decoration-thickness: 2px; }
.link-arrow { font-weight: 700; color: var(--accent); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Hero, sections ---------- */
.page-hero { padding: 48px 0 40px; }
.eyebrow, .tag, .kicker { margin: 0 0 8px; font: 500 .75rem/1.5 var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }   /* caption: the only all-caps allowed */
.hero-lead, .section-lead { color: var(--muted); font-size: 1.25rem; line-height: 32px; max-width: 70ch; margin: 0 0 8px; }
.breadcrumb { font-size: .875rem; color: var(--muted); margin: 0 0 16px; }
.breadcrumb a { color: var(--muted); }
.section { padding: var(--section) 0; }
.section.alt { background: var(--alt); }
.grid-2 { display: grid; gap: var(--gutter); grid-template-columns: repeat(2, 1fr); }
.grid-3 { display: grid; gap: var(--gutter); grid-template-columns: repeat(3, 1fr); }
.placeholder { border: 2px dashed var(--stone); border-radius: 8px; padding: 10px 14px; margin: 0 0 12px; color: var(--stone); font-size: .95rem; line-height: 24px; }
.placeholder.photo { min-height: 220px; display: flex; align-items: center; justify-content: center; text-align: center; }

/* Evidence strip (arcaioai-web "proof band"): proof sits right under the hero and next to every call to action */
.proof-band { background: var(--surface); border-block: 1px solid var(--line); }
.proof-band-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 40px; padding-block: 20px; }
.proof-band-label { font-size: .9rem; font-weight: 600; color: var(--muted); }
.proof-band-names { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 32px; font: 600 1.1rem var(--font); color: var(--ink); }

/* ---------- Cards, rows, journey steps ---------- */
.service-grid, .benefit-rows { display: grid; gap: var(--gutter); grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); margin-top: 24px; }
.service-card, .benefit-row { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--card-line); border-radius: 16px; padding: 24px; transition: border-color .2s ease-out; }
.service-card:hover { border-color: var(--accent); }
.service-card h3 a { color: var(--forest); text-decoration: none; }
.service-card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.service-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.service-actions { margin-top: auto; padding-top: 12px; }
.benefit-row .num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--forest); color: var(--cream); font-weight: 600; margin-bottom: 12px; }
.benefit-row h3, .benefit-row p { margin: 0; }
.benefit-row p { color: var(--muted); font-size: .95rem; }
.journey-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.journey-step { background: var(--surface); border: 1px solid var(--card-line); border-radius: 14px; padding: 22px; }
.journey-num { display: block; font: 600 2.5rem/1 var(--font-display); color: var(--forest); margin-bottom: 8px; }
.journey-step h3 { margin: 0 0 4px; font-size: 1.1rem; line-height: 1.5; }
.journey-step p { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--muted); }
.journey-step-last { background: var(--band-bg); border-color: var(--band-bg); color: var(--band-fg); }
.journey-step-last .journey-num, .journey-step-last h3 { color: var(--band-fg); }
.journey-step-last p { color: var(--band-muted); }
.case-study { border-radius: 24px; padding: 32px; border: 1px dashed var(--stone); }
.case-study p { margin: 0; color: var(--muted); }
table.spec { width: 100%; border-collapse: collapse; }
table.spec th, table.spec td { border: 1px solid var(--card-line); padding: 10px 12px; text-align: left; vertical-align: top; }
table.spec th { background: var(--alt); width: 30%; }

/* ---------- FAQ (arcaioai-web "faq-item") ---------- */
.faq-list { display: grid; gap: 10px; max-width: 860px; }
.faq-item { background: var(--surface); border: 1px solid var(--card-line); border-radius: 12px; }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; min-height: 44px; font-weight: 700; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; font-size: 1.4rem; line-height: 1; color: var(--accent); }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item summary:hover { color: var(--accent); }
.faq-item p { margin: 0; padding: 0 20px 18px; color: var(--muted); max-width: 70ch; }

/* ---------- Call-to-action band (Forest). Cream button, never Terracotta, on Forest ---------- */
.cta-band { background: var(--band-bg); color: var(--band-fg); padding: 64px 0; }
.cta-band h2 { color: var(--band-fg); }
.cta-band p { color: var(--band-muted); }
.band { display: flex; gap: 24px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.band p { margin: 0; }

/* ---------- Enquiry form (arcaioai-web "enquiry-form" with floating labels) ---------- */
.enquiry-form { background: var(--surface); border: 1px solid var(--card-line); border-radius: 24px; padding: 32px; }
.form-grid { display: grid; gap: 18px; margin-top: 20px; }
@media (min-width: 640px) { .form-grid.two-col { grid-template-columns: 1fr 1fr; } }
.field-float, .field-select { position: relative; }
.field-float input, .field-float textarea, .field-select select { width: 100%; padding: 18px 14px 8px; min-height: 52px; border: 1px solid var(--stone); border-radius: 8px; background: var(--bg); color: var(--ink); font: inherit; font-size: .95rem; appearance: none; transition: border-color .2s ease-out; }
.field-select select { padding: 22px 14px 8px; }
.field-float textarea { min-height: 120px; resize: vertical; }
.field-float label { position: absolute; left: 14px; top: 16px; color: var(--muted); font-size: .95rem; pointer-events: none; transform-origin: left top; transition: transform .18s ease-out, top .18s ease-out; }
.field-select label { position: absolute; left: 14px; top: 6px; font-size: .75rem; color: var(--muted); pointer-events: none; }
.field-float input:focus, .field-float textarea:focus, .field-select select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.field-float input:focus + label, .field-float input:not(:placeholder-shown) + label, .field-float textarea:focus + label, .field-float textarea:not(:placeholder-shown) + label { top: 6px; transform: scale(.78); color: var(--accent); }
.field-float.has-error input, .field-float.has-error textarea, .field-select.has-error select { border: 2px solid var(--charcoal); background: var(--mist); }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; }
.check input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--forest); }
.privacy-note, .form-note { font-size: .875rem; color: var(--muted); margin: 12px 0 0; }
.form-foot { display: flex; align-items: center; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.form-submit { min-height: 48px; padding: 12px 28px; border-radius: 8px; border: 2px solid var(--primary); cursor: pointer; background: var(--primary); color: var(--on-primary); font: 600 1rem/1.25 var(--font); transition: background-color .2s ease-out, color .2s ease-out; }
.form-submit:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-primary-hover); }
.form-error { display: none; margin: 12px 0 0; padding: 10px 14px; border-left: 4px solid var(--terracotta); background: var(--mist); font-weight: 600; }   /* not colour alone: text + bar */
.form-error.is-visible { display: block; }
.form-success { display: none; margin-top: 18px; padding: 14px 16px; background: var(--tint); border: 1px solid var(--accent); border-radius: 8px; color: var(--accent); font-weight: 600; font-size: .92rem; }
.form-success.is-visible { display: block; }
.contact-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; max-width: 560px; }
.contact-list li { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--card-line); border-radius: 12px; }
.contact-list strong { min-width: 6em; color: var(--muted); font-size: .875rem; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Legal pages (arcaioai-web privacy format: contents list, summary cards, tables) ---------- */
.legal h2 { margin: 32px 0 8px; font-size: 1.6rem; line-height: 1.3; }
.legal h2:first-child { margin-top: 0; }
.legal h2[id] { scroll-margin-top: 20px; }
.legal p, .legal ul { max-width: 68ch; }
.legal .toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; max-width: none; }
.legal .toc a { display: inline-block; padding: 4px 12px; border: 1px solid var(--card-line); border-radius: 999px; text-decoration: none; font-size: .9rem; color: var(--ink); background: var(--surface); }
.legal .toc a:hover { border-color: var(--accent); }
.legal .summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 12px; margin: 14px 0; }
.legal .summary-card { background: var(--surface); border: 1px solid var(--card-line); border-radius: 14px; padding: 14px 16px; min-width: 0; }
.legal .summary-card .tag { display: block; margin-bottom: 4px; }
.legal .summary-card h3 { margin: 0 0 4px; font-size: 1.05rem; line-height: 1.4; }
.legal .summary-card p { margin: 0; font-size: .92rem; color: var(--muted); max-width: none; }
.legal .tbl { overflow-x: auto; margin: 12px 0; border: 1px solid var(--card-line); border-radius: 12px; background: var(--surface); }
.legal table { border-collapse: collapse; width: 100%; min-width: 520px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .95rem; }
.legal th { font-size: .82rem; background: var(--alt); }
.legal tr:last-child td { border-bottom: 0; }

/* ---------- Footer (Mist so the seal can be Stone, Inter Medium 12 px, exactly as the brand book says) ---------- */
.site-footer { background: var(--alt); color: var(--ink); border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: .9rem; line-height: 22px; }
.site-footer .container { display: grid; gap: 8px; justify-items: start; }
.site-footer p { margin: 0; }
.site-footer a, .link-btn { color: var(--forest); }
.footer-brand { font: 600 1.4rem var(--font); letter-spacing: -.01em; color: var(--forest); }
.site-footer .seal { font: 500 12px/18px var(--font); color: var(--stone); }
.footer-cols { display: grid; gap: var(--gutter); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 16px 0; width: 100%; }
.footer-cols h2 { font: 600 .9rem var(--font); color: var(--forest); margin: 0 0 8px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols a { display: inline-block; padding: 4px 0; }
.footer-links { margin-top: 4px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--ink); }

/* ---------- Consent: narrow strip along the bottom (arcaioai-web style, 16.10) ---------- */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px max(16px, calc((100vw - 1280px) / 2)); background: var(--cream); color: var(--ink); border-top: 2px solid var(--forest); }
.consent-text { margin: 0; flex: 1 1 320px; font-size: .875rem; line-height: 1.4; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.consent-btn { min-height: 44px; padding: 8px 14px; border-radius: 8px; font: 600 .9rem var(--font); cursor: pointer; border: 2px solid var(--forest); background: transparent; color: var(--forest); transition: background-color .2s ease-out, color .2s ease-out; }
.consent-btn:hover { background: var(--forest); color: var(--cream); }

/* ---------- Narrow phones (320 px): nothing wider than the screen; long words break only at soft hyphens ---------- */
.service-card h3, .journey-step h3, .benefit-row h3 { hyphens: manual; overflow-wrap: break-word; }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .section { padding: 48px 0; } .cta-band { padding: 40px 0; } }

/* About page: the five values as a simple list of chips */
.values { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; padding: 0; list-style: none; }
.values li { padding: 6px 14px; border: 1px solid var(--card-line); border-radius: 999px; background: var(--surface); font-size: .95rem; }

/* Phones: long Norwegian compounds (Underholdningssentre) must not break mid-word. Smaller minimum size, hyphenate at syllables. */
@media (max-width: 480px) {
  h1 { font-size: clamp(1.55rem, 7.4vw, 2.2rem); hyphens: auto; }
  h1.hero-title { font-size: clamp(1.75rem, 8vw, 2.4rem); }
  h2 { hyphens: auto; }
}

/* Smallest phones (320 px): card titles with long compounds must fit inside the card */
@media (max-width: 360px) {
  .service-card, .benefit-row { padding: 18px; }
  .service-card h3, .journey-step h3, .benefit-row h3 { font-size: 1.1rem; hyphens: auto; }
}

/* Home hero: soft bokeh (balls only, no people) in brand green and cream. Darkest pixel keeps Stone text at 4.9:1 */
.page-hero--bokeh { background: var(--cream) url("img/hero-bokeh.webp") center / cover no-repeat; }
/* Wide photo under a page hero */
.photo-wide { margin: 0; }
.photo-wide img { display: block; width: 100%; height: auto; border-radius: 16px; }

/* About page: the butterfly journey (Fortellingsbibel ch. 5) */
.butterfly { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; counter-reset: phase; }
.butterfly li { position: relative; padding-top: 28px; border-top: 2px solid var(--forest); counter-increment: phase; }
.butterfly li::before { content: counter(phase); position: absolute; top: -17px; left: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--forest); color: var(--cream); font: 600 .9375rem/32px var(--font); text-align: center; }
.butterfly li:nth-child(4)::before { background: var(--terracotta); color: var(--charcoal); }
.butterfly-phase { display: block; font: 600 1.25rem/1.3 var(--font-display); color: var(--forest); margin-bottom: 8px; }
.butterfly p { margin: 0; font-size: .9375rem; line-height: 1.5; }
@media (max-width: 900px) {
  .butterfly { grid-template-columns: 1fr; gap: 0; }
  .butterfly li { border-top: 0; border-left: 2px solid var(--forest); padding: 0 0 28px 28px; margin-left: 16px; }
  .butterfly li:last-child { padding-bottom: 0; }
  .butterfly li::before { top: 0; left: -17px; }
}

.draft-bar a { color: var(--cream); font-weight: 600; text-decoration: underline; text-underline-offset: 3px;  }
.draft-bar a:hover { text-decoration-thickness: 2px; }

/* Projects page */
.project-card img { display: block; width: calc(100% + 48px); max-width: none; height: auto; aspect-ratio: 16 / 10; object-fit: cover; margin: -24px -24px 16px; border-radius: 16px 16px 0 0; }
.project-card h3 { margin: 0 0 4px; font-size: 1.25rem; }
.small { margin-top: 24px; font-size: .875rem; color: var(--muted); }

.brand-logo { display: block; height: 52px; width: auto; }
.footer-logo { display: block; height: 55px; width: auto; }
/* Accents: a flat bar under page photos and a soft tag chip on cards, one accent per page */

/* Home: About us banner, one block with the bokeh image behind it (same image and contrast as the hero) */
.about-banner { background: var(--cream) url("img/hero-bokeh.webp") center / cover no-repeat; }
.about-banner .section-lead { color: var(--charcoal); font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 3vw, 1.95rem); line-height: 1.3; max-width: 32ch; }

/* ---------- Motion (Brand System ch. 9: subtle fade/slide, 200-400 ms, ease-out; never autoplay with sound) ---------- */
/* Hover: small lift (translate is separate from the scroll reveal's transform) */
.btn { transition: background-color .2s ease-out, color .2s ease-out, border-color .2s ease-out, translate .2s ease-out; }
.btn:hover { translate: 0 -2px; } .btn:active { translate: 0 0; }
.service-card, .benefit-row { transition: border-color .2s ease-out, background-color .2s ease-out, translate .2s ease-out; }
.service-card:hover { translate: 0 -3px; background-color: var(--mist); }
/* Fade-up on scroll (only when JavaScript has added .motion) */
.motion .reveal { opacity: 0; transform: translateY(16px); transition: opacity .3s ease-out, transform .3s ease-out, border-color .2s ease-out, background-color .2s ease-out, translate .2s ease-out; }
.motion .reveal.in { opacity: 1; transform: none; }
/* Butterfly journey draws itself, step by step */
.motion .butterfly li { border-top-color: var(--line); border-left-color: var(--line); }
.motion .butterfly li::after { content: ""; position: absolute; top: -2px; left: 0; width: 100%; height: 2px; background: var(--forest); transform: scaleX(0); transform-origin: left; transition: transform .45s ease-out; }
.motion .butterfly li::before { opacity: 0; scale: .4; transition: opacity .3s ease-out, scale .3s ease-out; }
.motion .butterfly.in li::after { transform: scaleX(1); }
.motion .butterfly.in li::before { opacity: 1; scale: 1; }
.motion .butterfly li:nth-child(2)::after, .motion .butterfly li:nth-child(2)::before { transition-delay: .35s; }
.motion .butterfly li:nth-child(3)::after, .motion .butterfly li:nth-child(3)::before { transition-delay: .7s; }
.motion .butterfly li:nth-child(4)::after, .motion .butterfly li:nth-child(4)::before { transition-delay: 1.05s; }
.motion .butterfly li:nth-child(5)::after, .motion .butterfly li:nth-child(5)::before { transition-delay: 1.4s; }
@media (max-width: 900px) {
  .motion .butterfly li::after { top: 0; left: -2px; width: 2px; height: 100%; transform: scaleY(0); transform-origin: top; }
  .motion .butterfly.in li::after { transform: scaleY(1); }
}
/* Slow drift on the bokeh background (hero and About banner): a few pixels over 40 s */
.page-hero--bokeh, .about-banner { position: relative; overflow: hidden; isolation: isolate; background: var(--cream); }
.page-hero--bokeh::before, .about-banner::before { content: ""; position: absolute; inset: -4%; z-index: -1; background: url("img/hero-bokeh.webp") center / cover no-repeat; animation: drift 40s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(-2.5%, 0, 0) scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .page-hero--bokeh::before, .about-banner::before { animation: none; } }
/* Photo reveal: the photo fades in, then the accent bar slides in underneath */
.photo-wide { position: relative; }
.photo-wide.accent-sage { --accent-bar: var(--sage); } .photo-wide.accent-sand { --accent-bar: var(--sand); } .photo-wide.accent-clay { --accent-bar: var(--clay); }
.photo-wide[class*="accent-"] img { border-radius: 16px 16px 0 0; }
.photo-wide[class*="accent-"]::after { content: ""; display: block; height: 6px; background: var(--accent-bar); }
.motion .photo-wide img { opacity: 0; transition: opacity .4s ease-out; }
.motion .photo-wide.in img { opacity: 1; }
.motion .photo-wide[class*="accent-"]::after { transform: scaleX(0); transform-origin: left; transition: transform .4s ease-out .25s; }
.motion .photo-wide.in::after { transform: scaleX(1); }

/* Sector pages with a photo: text and photo side by side in the hero (stacked on phones), so the page reads as one piece */
.page-hero--split { padding: 48px 0 64px; }
.hero-split { display: grid; gap: 32px; align-items: center; }
.hero-media .photo-wide img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
@media (min-width: 901px) { .hero-split { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; } }

/* FAQ: links inside answers, "more" link, and the next-steps row */
.faq-item p a { color: var(--forest); text-underline-offset: 3px; }
.faq-more { margin: 20px 0 0; }
.link-row { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }

/* Home hero: large soft circles in the brand tints float slowly over the bokeh (idea from the Arcaio AI hero). Lighter than the background, so text contrast is unchanged. */
.page-hero--bokeh::after { content: ""; position: absolute; z-index: -1; right: -120px; top: -90px; width: 560px; height: 560px; border-radius: 50%; background: var(--clay-tint); opacity: .75;
  box-shadow: -520px 330px 0 -170px var(--sage-tint); animation: float 26s ease-in-out infinite alternate; pointer-events: none; }
@keyframes float { to { transform: translate3d(-28px, 22px, 0); } }
@media (max-width: 700px) { .page-hero--bokeh::after { width: 300px; height: 300px; right: -150px; top: -110px; box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .page-hero--bokeh::after { animation: none; } }

/* ---------- Friendlier and more playful, within the brand: more colour on text, rounder shapes ---------- */
.accent-text { color: var(--terracotta-deep); }
.eyebrow, .tag, .kicker { color: var(--forest); font-weight: 600; }
h3 { color: var(--forest); }
.journey-num, .count { color: var(--terracotta-deep); }
.section-lead strong { color: var(--forest); }
.btn, .form-submit { border-radius: 999px; }
.service-card, .benefit-row, .case-study { border-radius: 24px; }
.faq-item { border-radius: 18px; }
.photo-wide img { border-radius: 24px; }
.photo-wide[class*="accent-"] img { border-radius: 24px 24px 0 0; }
.section.alt { border-radius: 40px; margin: 0 16px; }
.benefit-row:nth-child(1) .num { background: var(--forest); color: var(--cream); }
.benefit-row:nth-child(2) .num { background: var(--terracotta); color: var(--charcoal); }
.benefit-row:nth-child(3) .num { background: var(--sage); color: var(--charcoal); }
.faq-item summary::after { color: var(--terracotta-deep); }
.faq-item[open] { border-color: var(--sage); }
@media (max-width: 600px) { .section.alt { border-radius: 28px; margin: 0 8px; } }

/* Fraunces Soft: the SOFT axis rounds the terminals, so headings feel warmer and friendlier */
h1, h2, .hero-title, .journey-num, .butterfly-phase, .brand, .footer-brand, .about-banner .section-lead { font-variation-settings: "SOFT" 100, "WONK" 0; }

/* Sticky booking button (small screens only; hidden while the cookie banner is open) */
.sticky-cta { display: none; }
@media (max-width: 700px) {
  .js .sticky-cta { display: inline-flex; position: fixed; left: 16px; right: 16px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 80; justify-content: center; transform: translateY(160%); transition: transform .3s ease-out, background-color .2s ease-out, color .2s ease-out; }
  .js .sticky-cta.show { transform: none; }
  body:has(.consent) .sticky-cta { display: none; }
  .site-footer { padding-bottom: 88px; }
}

/* 404: a big 404, the zero in the accent colour */
.big404 { margin: 0 0 8px; font: 700 clamp(5rem, 18vw, 9.5rem)/1 var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 0; color: var(--forest); }
.big404 .zero { color: var(--terracotta-deep); }


/* Home: "what the free review includes" — ticked list at the plan/CTA block */
.review-h { margin: 28px 0 10px; font: 600 1.15rem/1.4 var(--font); color: var(--charcoal); }
.review-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; max-width: 640px; }
.review-list li { position: relative; padding-left: 32px; }
.review-list li::before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: rgba(31,61,46,.10); }
.review-list li::after { content: ""; position: absolute; left: 8px; top: 5px; width: 5px; height: 10px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Layout stability: the counting number keeps its width; the proof band reserves its height */
.count { display: inline-block; min-width: 2ch; font-variant-numeric: tabular-nums; }
.proof-band-inner { min-height: 64px; }

.pg-footer { background: var(--forest); color: rgba(245, 241, 232, .8); padding: 60px 0 36px; font-size: .95rem; }
.pg-footer a { color: rgba(245, 241, 232, .8); text-decoration: none; }
.pg-footer a:hover { color: #F5F1E8; text-decoration: underline; }
.pg-footer-inner { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 36px; margin-bottom: 36px; }
.pg-footer-logo { display: block; height: 55px; width: auto; margin-bottom: 14px; }
.pg-footer-tag { margin: 0 0 14px; max-width: 280px; line-height: 1.55; }
.pg-footer-seal { display: inline-block; color: rgba(245, 241, 232, .7); font-size: .75rem; font-weight: 500; }
.pg-footer-col h3 { margin: 0 0 14px; color: #F5F1E8; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.pg-footer-col a { display: block; padding: 6px 0; }
.pg-footer-line { margin: 6px 0; }
.pg-footer-line a, .pg-footer-bottom a { text-decoration: underline; }
.pg-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(245, 241, 232, .15); font-size: .85rem; }
.pg-footer .link-btn { padding: 0; border: 0; background: none; color: rgba(245, 241, 232, .8); font: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 1000px) { .pg-footer-inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pg-footer-inner { grid-template-columns: 1fr; } }
