/* ===== Calibre Inc brand system (from brand kit 04-Digital-System/brand-styles.css; font paths adjusted).
   Fonts: the kit's Space Grotesk Bold 700 and Inter Regular 400, served as Latin-subset WOFF2 for speed,
   with the original kit TTFs as fallback. Same faces, same weights. ===== */
@font-face { font-family: "Space Grotesk"; src: url("../fonts/SpaceGrotesk-Bold.woff2") format("woff2"), url("../fonts/SpaceGrotesk-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff2") format("woff2"), url("../fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
/* Permanent Calibre rule: ALL bold = Space Grotesk 700; ALL non-bold = Inter 400. Load those exact font faces. */
:root {
  --calibre-fire: #FF4A00;
  --calibre-ink: #151515;
  --calibre-white: #FFFFFF;
  --calibre-porcelain: #F5F3EE;
  --calibre-coal: #25272B;
  --calibre-slate: #62666D;
  --calibre-peach: #FFE4D8;
  --calibre-ember: #C73700;
  --calibre-mist: #E5E7EB;
  --font-bold: "Space Grotesk", sans-serif;
  --font-regular: "Inter", sans-serif;
  --font-weight-bold: 700;
  --font-weight-regular: 400;
  --font-display: var(--font-bold);
  --font-body: var(--font-regular);
  --radius-control: 8px;
  --radius-card: 12px;
  --space-unit: 4px;
}
.calibre-brand, .calibre-regular { font-family: var(--font-regular); font-weight: var(--font-weight-regular); }
.calibre-brand :is(h1, h2, h3, h4, h5, h6, strong, b), .calibre-bold { font-family: var(--font-bold); font-weight: var(--font-weight-bold); }
[data-calibre-theme="core"] {
  --color-background: #FFFFFF;
  --color-surface: #F5F3EE;
  --color-text: #151515;
  --color-muted: #62666D;
  --color-accent: #FF4A00;
  --color-onAccent: #151515;
  --color-link: #C73700;
  --color-border: #E5E7EB;
}
[data-calibre-theme="studio"] {
  --color-background: #F5F3EE;
  --color-surface: #FFFFFF;
  --color-text: #151515;
  --color-muted: #62666D;
  --color-accent: #FF4A00;
  --color-onAccent: #151515;
  --color-link: #C73700;
  --color-border: #E5E7EB;
}
[data-calibre-theme="night"] {
  --color-background: #151515;
  --color-surface: #25272B;
  --color-text: #FFFFFF;
  --color-muted: #E5E7EB;
  --color-accent: #FF4A00;
  --color-onAccent: #151515;
  --color-link: #FF4A00;
  --color-border: #55585F;
}
.calibre-primary-button {
  background: var(--color-accent);
  color: var(--color-onAccent);
  border-radius: var(--radius-control);
  font-family: var(--font-bold);
  font-weight: var(--font-weight-bold);
}
/* Focus colours: Ember on light; Fire on Night. */
[data-calibre-theme="core"] :focus-visible,
[data-calibre-theme="studio"] :focus-visible { outline: 2px solid var(--calibre-ember); outline-offset: 3px; }
[data-calibre-theme="night"] :focus-visible { outline: 2px solid var(--calibre-fire); outline-offset: 3px; }

/* ===== Site styles (v3) =====
   Typography rule: only Inter 400 and Space Grotesk 700. No other weights, no synthetic bold.
   Spacing follows the kit's 4px scale: 4, 8, 12, 16, 24, 32, 48, 64 (+ 96/128 for section rhythm). */
:root {
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --fs-h1: clamp(40px, 2.6vw + 26px, 64px);
  --fs-h2: clamp(30px, 1.2vw + 22px, 40px);
  --fs-h3: clamp(20px, .4vw + 18px, 24px);
  --fs-lead: clamp(18px, .3vw + 16px, 20px);
  --fs-body: clamp(16px, .1vw + 15.5px, 17px);
  --fs-label: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-sm: 0 1px 2px rgba(21,21,21,.04), 0 2px 8px rgba(21,21,21,.04);
  --shadow-md: 0 2px 4px rgba(21,21,21,.04), 0 12px 32px rgba(21,21,21,.08);
  --header-h: 84px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-size: var(--fs-body); line-height: 1.6; color: var(--color-text); background: var(--color-background); font-synthesis: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
[data-calibre-theme] { color: var(--color-text); background: var(--color-background); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
h3 { letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0 0 var(--s4); text-wrap: pretty; }
a { color: var(--color-link); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .2s var(--ease), text-decoration-color .2s var(--ease); }
a:hover { text-decoration-thickness: 2px; }
address { font-style: normal; }
input, select, textarea, button { font: inherit; color: inherit; }
strong, b { font-family: var(--font-bold); font-weight: 700; }
::selection { background: var(--calibre-peach); color: var(--calibre-ink); }
:focus-visible { border-radius: 4px; }

.container { width: 100%; max-width: 1232px; margin: 0 auto; padding: 0 var(--s6); }
.nowrap { white-space: nowrap; }
.skip-link { position: absolute; left: var(--s4); top: -80px; z-index: 100; background: var(--calibre-fire); color: var(--calibre-ink); padding: var(--s3) var(--s4); border-radius: var(--radius-control); font-family: var(--font-bold); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: var(--s4); }

.eyebrow { font-family: var(--font-bold); font-weight: 700; font-size: var(--fs-label); line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; color: var(--color-link); margin: 0 0 var(--s4); display: flex; align-items: center; gap: var(--s3); }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--calibre-fire); flex: none; }
[data-calibre-theme="night"] .eyebrow { color: var(--calibre-fire); }
.lead { font-size: var(--fs-lead); line-height: 1.55; max-width: 34em; }
.accent { color: var(--calibre-fire); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--s3); min-height: 52px; padding: 14px var(--s5); font-size: 16px; line-height: 1.2; text-decoration: none; border: 0; cursor: pointer; text-align: center; transition: background-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.calibre-primary-button { box-shadow: 0 1px 0 rgba(21,21,21,.08); }
.calibre-primary-button:hover { background: #FF6420; text-decoration: none; box-shadow: 0 6px 20px rgba(255,74,0,.28); transform: translateY(-1px); }
.calibre-primary-button:active { transform: translateY(0); box-shadow: none; }
.btn-arrow { display: inline-block; transition: transform .2s var(--ease); }
.button:hover .btn-arrow, .text-link:hover .btn-arrow { transform: translateX(4px); }
.button-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.button-ghost:hover { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1.5px #fff; text-decoration: none; transform: translateY(-1px); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.button-small { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.text-link { display: inline-flex; align-items: center; gap: var(--s2); font-family: var(--font-bold); font-weight: 700; font-size: 16px; color: var(--color-link); text-decoration: none; padding: var(--s3) var(--s1); }
.text-link:hover { text-decoration: none; color: #FF7A40; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid transparent; transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255,255,255,.9); backdrop-filter: saturate(1.4) blur(12px); } }
.site-header.is-scrolled { border-bottom-color: var(--calibre-mist); box-shadow: 0 4px 24px rgba(21,21,21,.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); height: var(--header-h); }
.brand { display: block; flex: none; margin-left: -12px; border-radius: var(--radius-control); }
.brand img { width: 220px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: var(--s6); }
.nav-link { position: relative; color: var(--calibre-ink); text-decoration: none; font-size: 16px; padding: var(--s2) 0; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--calibre-fire); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav-link:hover::after, .nav-link[aria-current="true"]::after { transform: scaleX(1); }
.nav-cta { margin-left: var(--s2); }
.nav-toggle { display: none; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--calibre-mist); border-radius: var(--radius-control); padding: 10px 14px; cursor: pointer; color: var(--calibre-ink); font-family: var(--font-bold); font-weight: 700; font-size: 15px; min-height: 44px; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; position: relative; transition: transform .25s var(--ease), background-color .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; min-height: min(840px, calc(100vh - var(--header-h))); display: flex; flex-direction: column; justify-content: center; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 45%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, #151515 0%, rgba(21,21,21,.94) 30%, rgba(21,21,21,.6) 52%, rgba(21,21,21,0) 72%),
  linear-gradient(0deg, rgba(21,21,21,.7) 0%, rgba(21,21,21,0) 30%); }
.hero-inner { padding-top: var(--s9); padding-bottom: var(--s8); }
.hero-copy { max-width: 640px; }
.hero h1 { font-size: var(--fs-h1); line-height: 1.04; margin-bottom: var(--s5); }
/* Three-part headline: one phrase per line, never breaking inside a phrase. */
.hero-title .h1-line { display: block; white-space: nowrap; }
@media (max-width: 599px) { .hero-title .h1-line { white-space: normal; text-wrap: balance; } }
/* Secondary heading directly under the h1. */
.hero-sub { font-family: var(--font-bold); font-weight: 700; font-size: clamp(20px, 1vw + 15px, 28px); line-height: 1.25; letter-spacing: -.01em; color: #fff; margin: calc(var(--s5) * -0.4) 0 var(--s5); max-width: 24em; }
.hero-sub::before { content: ""; display: inline-block; width: 28px; height: 3px; border-radius: 2px; background: var(--calibre-fire); vertical-align: middle; margin-right: 12px; transform: translateY(-2px); }
@media (max-width: 599px) { .hero-sub { font-size: clamp(18px, 4.6vw, 22px); } .hero-sub::before { width: 20px; margin-right: 10px; } }
.hero .lead { color: var(--calibre-mist); max-width: 30em; margin-bottom: var(--s6); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s5); }
.hero-points { list-style: none; margin: var(--s8) 0 0; padding: var(--s5) 0 0; border-top: 1px solid rgba(229,231,235,.16); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s6); max-width: 760px; font-family: var(--font-bold); font-weight: 700; font-size: 15px; color: #fff; }
.hero-points li { display: inline-flex; align-items: center; gap: 10px; }
.hero-points .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--calibre-fire); box-shadow: 0 0 0 4px rgba(255,74,0,.18); }
.media-note { position: absolute; right: 0; left: 0; bottom: var(--s4); margin: 0; font-size: 12px; text-align: right; color: var(--calibre-mist); opacity: .6; }

/* Sections */
.section { padding: var(--s10) 0; position: relative; }
.section h2 { font-size: var(--fs-h2); }
.section-head { max-width: 720px; margin-bottom: var(--s8); }
.section-head h2 { margin-bottom: var(--s4); }
.section-sub { color: var(--color-muted); font-size: 18px; max-width: 38em; margin: 0; }
[data-calibre-theme="studio"] + [data-calibre-theme="studio"], [data-calibre-theme="core"] + [data-calibre-theme="core"] { border-top: 1px solid var(--calibre-mist); }

.intro { padding: var(--s9) 0; }
.intro-grid, .about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s5); align-items: end; }
.intro-grid > :first-child, .about-grid > :first-child { grid-column: 1 / span 6; }
.intro-grid > :last-child, .about-grid > :last-child { grid-column: 8 / span 5; }
.display-2 { font-size: var(--fs-h2); }
.intro-copy { font-size: var(--fs-lead); color: var(--color-muted); margin: 0; }

/* Service cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
.card { position: relative; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: var(--s6); display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--calibre-fire); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #D9DBE0; }
.card:hover::before { transform: scaleX(1); }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s7); }
.card-icon { width: 48px; height: 48px; border-radius: var(--radius-control); background: var(--calibre-peach); color: var(--calibre-ember); display: inline-flex; align-items: center; justify-content: center; transition: background-color .3s var(--ease), color .3s var(--ease); }
.card:hover .card-icon { background: var(--calibre-fire); color: var(--calibre-ink); }
.card-num { font-family: var(--font-bold); font-weight: 700; color: var(--calibre-slate); font-size: var(--fs-label); letter-spacing: .04em; }
.card h3 { font-size: var(--fs-h3); margin-bottom: var(--s3); }
.card p { color: var(--color-muted); margin: 0; }
.card .card-lead { color: var(--color-text); margin-bottom: var(--s3); font-size: 16px; line-height: 1.45; }

/* Feature */
.feature { overflow: hidden; }
.feature-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s5); align-items: center; }
.feature-media { grid-column: 1 / span 6; margin: 0; }
.feature-copy { grid-column: 8 / span 5; }
.feature-media img { border-radius: var(--radius-card); width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 74% center; box-shadow: 0 0 0 1px rgba(229,231,235,.08), 0 32px 64px rgba(0,0,0,.4); }
.feature-media figcaption { font-size: 13px; color: var(--calibre-mist); opacity: .65; margin-top: var(--s3); }
.feature h2 { font-size: clamp(36px, 2vw + 20px, 52px); text-transform: uppercase; line-height: 1; letter-spacing: -0.01em; margin-bottom: var(--s5); }
.feature .lead { color: #fff; margin-bottom: var(--s4); }
.feature-copy > p { color: var(--calibre-mist); }
.highlights { list-style: none; padding: 0; margin: var(--s6) 0 var(--s7); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.highlights li { background: var(--color-surface); border: 1px solid rgba(229,231,235,.08); border-radius: var(--radius-control); padding: var(--s4); display: flex; gap: var(--s3); align-items: baseline; font-size: 17px; color: #fff; }
.highlights li span { color: var(--calibre-fire); font-size: 13px; font-family: var(--font-bold); font-weight: 700; }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; top: 24px; left: 24px; right: calc(33.333% - 24px); height: 2px; background: linear-gradient(90deg, var(--calibre-fire), var(--calibre-mist)); }
.step { position: relative; padding-right: var(--s6); }
.step-num { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--calibre-ink); color: #fff; font-family: var(--font-bold); font-weight: 700; font-size: 15px; margin-bottom: var(--s5); box-shadow: 0 0 0 8px var(--color-background); transition: background-color .3s var(--ease), color .3s var(--ease); }
.step:first-child .step-num, .step:hover .step-num { background: var(--calibre-fire); color: var(--calibre-ink); }
.step h3 { font-size: 28px; margin-bottom: var(--s3); }
.step p { color: var(--color-muted); max-width: 22em; margin: 0; }
.proposal { margin-top: var(--s8); display: flex; gap: var(--s5); align-items: flex-start; padding: var(--s6); background: var(--calibre-porcelain); border: 1px solid var(--calibre-mist); border-left: 4px solid var(--calibre-fire); border-radius: var(--radius-card); }
.proposal-icon { flex: none; width: 44px; height: 44px; border-radius: var(--radius-control); background: #fff; border: 1px solid var(--calibre-mist); color: var(--calibre-ember); display: inline-flex; align-items: center; justify-content: center; }
.proposal p { margin: 0; color: var(--color-muted); max-width: 62em; }
.proposal .proposal-title { color: var(--color-text); margin-bottom: var(--s1); font-size: 18px; }

.tag { display: inline-block; font-family: var(--font-bold); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; background: var(--calibre-peach); color: var(--calibre-ember); padding: 4px 10px; border-radius: 999px; margin: 0 0 var(--s3); }

/* About */
.about-grid { align-items: start; }
.about-grid > :first-child { position: sticky; top: calc(var(--header-h) + var(--s6)); }
.about-copy { font-size: 18px; }
.about-copy > p { color: var(--color-muted); }
.facts { margin: var(--s6) 0; border-top: 1px solid var(--calibre-mist); }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: var(--s4); padding: 14px 0; border-bottom: 1px solid var(--calibre-mist); font-size: 16px; }
.facts dt { font-family: var(--font-bold); font-weight: 700; }
.facts dd { margin: 0; color: var(--color-text); }
.about-line { margin: 0; }
.about-line strong { color: var(--color-text); font-size: 20px; }

/* Contact (night) */
.contact { overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 640px; height: 640px; right: -240px; top: -240px; background: radial-gradient(circle, rgba(255,74,0,.16), rgba(255,74,0,0) 65%); pointer-events: none; }
.contact-grid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s5); align-items: start; }
.contact-info { grid-column: 1 / span 5; }
.contact-form { grid-column: 7 / span 6; }
.contact h2 { font-size: var(--fs-h2); margin-bottom: var(--s4); }
.contact-info .lead { color: var(--calibre-mist); margin-bottom: var(--s7); }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: var(--s4) 0; border-top: 1px solid var(--color-border); display: grid; grid-template-columns: 150px 1fr; gap: var(--s4); }
.contact-list li:last-child { border-bottom: 1px solid var(--color-border); }
.contact-list .label { font-family: var(--font-bold); font-weight: 700; font-size: 15px; color: #fff; }
.contact-list a, .contact-list address, .contact-list .pending { font-size: 17px; color: var(--calibre-mist); }
.contact-list a { color: var(--calibre-fire); }
.contact-list .pending { opacity: .75; }
.contact-form { background: #fff; color: var(--calibre-ink); border-radius: var(--radius-card); padding: var(--s7) var(--s6) var(--s6); box-shadow: 0 32px 64px rgba(0,0,0,.35); }
.form-title { font-size: clamp(20px, 0.6vw + 15px, 25px); line-height: 1.25; letter-spacing: -0.01em; margin-bottom: var(--s5); max-width: 26em; text-wrap: balance; }
.field { margin-bottom: var(--s5); display: flex; flex-direction: column; gap: var(--s2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s4); }
.field label { font-family: var(--font-bold); font-weight: 700; font-size: 15px; }
.optional { font-family: var(--font-regular); font-weight: 400; color: var(--calibre-slate); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; min-height: 48px; border: 1px solid #CDD0D5; border-radius: var(--radius-control); background: #fff; color: var(--calibre-ink); font-size: 16px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--calibre-slate); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--calibre-ember); box-shadow: 0 0 0 3px rgba(199,55,0,.18); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--calibre-ember); outline-offset: 2px; }
.field textarea { resize: vertical; min-height: 128px; }
.field [aria-invalid="true"] { border-color: #B42318; }
.contact-form .button { width: 100%; margin-top: var(--s2); }
.form-status { margin: var(--s4) 0 0; font-family: var(--font-bold); font-weight: 700; }
.form-status:empty { display: none; }
.form-note { margin: var(--s3) 0 0; font-size: 14px; color: var(--calibre-slate); text-align: center; }

/* Footer (core) */
.site-footer { background: #fff; color: var(--calibre-ink); padding: var(--s8) 0 var(--s5); border-top: 1px solid var(--calibre-mist); }
.footer-inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s5); padding-bottom: var(--s7); }
.footer-brand { grid-column: 1 / span 5; }
.footer-brand img { width: 300px; margin-left: -18px; }
.footer-line { margin: var(--s3) 0 var(--s1); font-size: 18px; }
.footer-desc { color: var(--calibre-slate); margin: 0; }
.footer-nav { grid-column: 7 / span 2; }
.footer-contact { grid-column: 9 / span 4; }
.footer-label { font-family: var(--font-bold); font-weight: 700; font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--calibre-slate); margin: var(--s4) 0 var(--s4); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 16px; }
.site-footer ul a { color: var(--calibre-ink); text-decoration: none; }
.site-footer ul a:hover { color: var(--calibre-ember); text-decoration: underline; }
.footer-contact li { color: var(--calibre-slate); }
.footer-base { position: relative; display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding-top: var(--s5); font-size: 14px; color: var(--calibre-slate); }
.footer-base::before { content: ""; position: absolute; top: 0; left: var(--s6); right: var(--s6); height: 1px; background: var(--calibre-mist); }
.footer-base p { margin: 0; }
.to-top { color: var(--calibre-slate); text-decoration: none; }
.to-top:hover { color: var(--calibre-ember); }

/* Motion (progressive: only when JS is running and the user has not asked for reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .hero-anim { opacity: 0; transform: translateY(16px); animation: rise .8s var(--ease) forwards; animation-delay: var(--d, 0ms); }
  .js .hero-media img { animation: settle 1.6s var(--ease) both; }
  @keyframes rise { to { opacity: 1; transform: none; } }
  @keyframes settle { from { transform: scale(1.04); opacity: .6; } to { transform: none; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .card:hover, .calibre-primary-button:hover { transform: none; }
}

/* Responsive: 1024 */
@media (max-width: 1100px) {
  .container { padding-left: var(--s6); padding-right: var(--s6); }
  .site-nav ul { gap: var(--s5); }
  .brand img { width: 200px; }
  .cards { gap: var(--s4); }
  .card { padding: var(--s5); }
  .intro-grid > :first-child, .about-grid > :first-child { grid-column: 1 / span 6; }
  .intro-grid > :last-child, .about-grid > :last-child { grid-column: 7 / span 6; padding-left: var(--s5); }
  .feature-media { grid-column: 1 / span 6; }
  .feature-copy { grid-column: 7 / span 6; padding-left: var(--s5); }
  .contact-info { grid-column: 1 / span 5; }
  .contact-form { grid-column: 6 / span 7; }
  .hero::before { background: linear-gradient(90deg, #151515 0%, rgba(21,21,21,.94) 38%, rgba(21,21,21,.55) 62%, rgba(21,21,21,.1) 85%), linear-gradient(0deg, rgba(21,21,21,.7) 0%, rgba(21,21,21,0) 30%); }
}
/* Tablet: 768 */
@media (max-width: 900px) {
  :root { --header-h: 76px; }
  .section { padding: var(--s9) 0; }
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--calibre-mist); box-shadow: 0 16px 32px rgba(21,21,21,.08); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s; }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: var(--s2) var(--s6) var(--s5); }
  .nav-link { display: block; padding: 14px 0; border-bottom: 1px solid var(--calibre-mist); }
  .nav-link::after { display: none; }
  .nav-cta { margin: var(--s4) 0 0; }
  .site-nav .button { width: 100%; }
  .hero { min-height: 0; display: block; }
  .hero-media { position: relative; inset: auto; }
  .hero-media img { aspect-ratio: 16 / 10; object-position: 72% 50%; }
  .hero::before { display: none; }
  .hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #151515 0%, rgba(21,21,21,0) 45%); }
  .hero-inner { padding-top: 0; margin-top: calc(-1 * var(--s7)); position: relative; padding-bottom: var(--s8); }
  .hero-points { margin-top: var(--s7); }
  .media-note { position: static; text-align: left; padding-bottom: var(--s5); }
  .intro-grid > *, .about-grid > *, .feature-grid > *, .contact-grid > *, .intro-grid > :last-child, .about-grid > :last-child, .feature-copy, .contact-form { grid-column: 1 / -1 !important; }
  .intro-grid > :last-child, .about-grid > :last-child, .feature-copy { padding-left: 0; }
  .intro-grid, .about-grid, .feature-grid, .contact-grid { row-gap: var(--s6); }
  .about-grid > :first-child { position: static; }
  .cards { grid-template-columns: 1fr 1fr; }
  .intro-copy, .feature-copy > p, .about-copy { max-width: 36em; }
  .feature-copy .highlights { max-width: 600px; }
  .cards > :last-child { grid-column: 1 / -1; }
  .feature-media img { aspect-ratio: 16 / 11; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { top: 24px; bottom: 24px; left: 23px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--calibre-fire), var(--calibre-mist)); }
  .step { display: grid; grid-template-columns: 48px 1fr; column-gap: var(--s5); padding: 0 0 var(--s6); }
  .step:last-child { padding-bottom: 0; }
  .step-num { grid-row: span 2; margin: 0; }
  .step h3 { font-size: 24px; margin: 10px 0 var(--s2); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-nav { grid-column: 1 / span 5; }
  .footer-contact { grid-column: 6 / span 7; }
}
/* Mobile: 390 */
@media (max-width: 640px) {
  .container { padding-left: var(--s5); padding-right: var(--s5); }
  .brand { margin-left: -8px; }
  .brand img { width: 184px; }
  .site-nav ul { padding: var(--s2) var(--s5) var(--s5); }
  .section { padding: var(--s8) 0; }
  .intro { padding: var(--s8) 0; }
  .section-head { margin-bottom: var(--s6); }
  .hero-media img { aspect-ratio: 4 / 3; }
  .hero-inner { margin-top: calc(-1 * var(--s6)); padding-bottom: var(--s7); }
  .hero-points { gap: var(--s2) 14px; font-size: 14px; }
  .hero-points li { gap: 8px; }
  .actions .button { width: 100%; }
  .cards { grid-template-columns: 1fr; }
  .card-top { margin-bottom: var(--s6); }
  .highlights { grid-template-columns: 1fr; gap: var(--s2); }
  .highlights li { font-size: 15px; padding: var(--s3); gap: var(--s2); }
  .feature .button { width: 100%; }
  .proposal { flex-direction: column; gap: var(--s4); padding: var(--s5); }
  .facts div { grid-template-columns: 96px 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: var(--s1); }
  .contact-form { padding: var(--s6) var(--s5) var(--s5); }
  .field-row { grid-template-columns: 1fr; }
  .footer-brand img { width: 260px; margin-left: -14px; }
  .footer-nav, .footer-contact { grid-column: 1 / -1; }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .footer-base::before { left: var(--s5); right: var(--s5); }
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ===== v4 additions ===== */
/* Stagger delays as classes (keeps inline styles out, so the Content-Security-Policy can stay strict) */
.d0 { --d: 0ms; } .d80 { --d: 80ms; } .d90 { --d: 90ms; } .d100 { --d: 100ms; } .d120 { --d: 120ms; } .d160 { --d: 160ms; }
.d180 { --d: 180ms; } .d240 { --d: 240ms; } .d320 { --d: 320ms; }
.brand picture, .footer-brand picture { display: block; }

/* Contact form extras */
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form { position: relative; }
.cf-turnstile { margin: 0 0 var(--s4); min-height: 65px; }
.form-note a, .form-status a { color: var(--calibre-ember); }
.form-status { font-family: var(--font-regular); font-weight: 400; padding: var(--s3) var(--s4); border-radius: var(--radius-control); background: var(--calibre-porcelain); border-left: 3px solid var(--calibre-slate); }
.form-status.is-success { background: var(--calibre-porcelain); border-left-color: var(--calibre-fire); }
.form-status.is-error { background: var(--calibre-peach); border-left-color: var(--calibre-ember); }
.form-status strong { font-family: var(--font-bold); font-weight: 700; }
.form-status:focus { outline: none; }
.contact-form .button[aria-busy="true"] { opacity: .7; cursor: progress; }
.wa-fallback { display: inline-block; margin-top: var(--s2); font-family: var(--font-bold); font-weight: 700; }

/* Footer legal row */
.footer-legal { display: flex !important; gap: var(--s5) !important; font-size: 14px !important; }
.footer-legal a { color: var(--calibre-slate) !important; }
.footer-legal a:hover { color: var(--calibre-ember) !important; }
.contact-list .pending, .contact-list a[href^="mailto:"] { overflow-wrap: anywhere; }

/* Simple pages: privacy notice and 404 */
.page-hero { padding: var(--s9) 0 var(--s7); background: var(--calibre-porcelain); }
.page-hero h1 { font-size: var(--fs-h2); margin: 0 0 var(--s3); }
.page-hero p { margin: 0; color: var(--calibre-slate); }
.legal { padding: var(--s8) 0 var(--s10); }
.legal-body { max-width: 760px; }
.legal-body h2 { font-size: 24px; margin: var(--s7) 0 var(--s3); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { font-size: 17px; line-height: 1.65; }
.legal-body ul { padding-left: 1.2em; margin: 0 0 var(--s4); }
.legal-body li { margin-bottom: var(--s2); }
.legal-body a { color: var(--calibre-ember); }
.legal-body .placeholder { background: var(--calibre-peach); padding: 0 6px; border-radius: 4px; }
.legal-body address { font-style: normal; }
.not-found { min-height: calc(100vh - var(--header-h) - 260px); display: flex; align-items: center; padding: var(--s10) 0; }
.not-found .code { font-family: var(--font-bold); font-weight: 700; font-size: 14px; letter-spacing: .08em; color: var(--color-link); margin: 0 0 var(--s3); }
.not-found h1 { font-size: var(--fs-h1); margin: 0 0 var(--s4); max-width: 14ch; }
.not-found p { font-size: 18px; max-width: 52ch; color: var(--calibre-mist); }
.not-found .actions { margin-top: var(--s6); }
@media (max-width: 640px) {
  .page-hero { padding: var(--s8) 0 var(--s6); }
  .legal { padding: var(--s7) 0 var(--s9); }
  .footer-legal { flex-direction: column; gap: var(--s2) !important; }
}
