/* ==========================================================================
   Proton Technosoft — site design system (v2)
   Editorial, consulting-grade layout: serif display type, generous white
   space, bold brand colour blocks, mega-menu navigation.
   ========================================================================== */

:root {
  --brand: #d04a02;          /* Proton orange */
  --brand-deep: #a83b06;
  --brand-soft: #fce9dc;
  --ink: #232323;
  --ink-2: #3d3d3d;
  --muted: #666;
  --line: #e2dfdc;
  --paper: #ffffff;
  --sand: #f5f1ec;           /* warm tint for alternating bands */
  --night: #1f1f1f;          /* footer / dark bands */
  --night-2: #2b2b2b;
  --amber: #e7a33e;          /* small secondary accent */

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 2px;
  --section: clamp(64px, 9vw, 120px);
  --header-h: 76px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--ink); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--tight { padding: calc(var(--section) * .6) 0; }
.section--sand { background: var(--sand); }
.section--night { background: var(--night); color: #eee; }
.section--night h2, .section--night h3 { color: #fff; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section--night .eyebrow { color: #f5a97a; }

.display {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(40px, 6.2vw, 80px); line-height: 1.04; letter-spacing: -.02em;
}
.h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.08; letter-spacing: -.015em; }
.h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.12; letter-spacing: -.01em; }
.h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 2vw, 27px); line-height: 1.25; }
.h4 { font-size: 18px; font-weight: 700; line-height: 1.35; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--ink-2); }
.muted { color: var(--muted); }
.accent { color: var(--brand); }
.measure { max-width: 760px; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.1fr .9fr; gap: 60px; } }
.section-head p { margin: 0; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 26px; font-weight: 600; font-size: 16px; line-height: 1;
  border: 2px solid var(--brand); background: var(--brand); color: #fff;
  border-radius: var(--radius); transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--light { background: #fff; color: var(--brand); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--outline-light:hover { background: #fff; color: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; color: var(--ink);
  border-bottom: 2px solid var(--brand); padding-bottom: 4px;
  transition: gap .25s var(--ease), color .2s;
}
.arrow-link svg { width: 18px; height: 18px; color: var(--brand); }
.arrow-link:hover { gap: 16px; color: var(--brand); }
.section--night .arrow-link { color: #fff; }

/* ---------- Header ---------- */
.utility {
  background: var(--night); color: #cfcfcf; font-size: 13.5px;
}
.utility .wrap { display: flex; justify-content: flex-end; gap: 26px; height: 38px; align-items: center; }
.utility a:hover { color: #fff; }
.utility .sep { width: 1px; height: 14px; background: #555; }
@media (max-width: 720px) { .utility { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.site-header .bar { display: flex; align-items: center; height: var(--header-h); gap: 32px; }

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 46px; height: auto; }
.brand-name { display: grid; line-height: 1.05; }
.brand-name b { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.brand-name span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav { display: flex; align-items: stretch; height: 100%; margin-left: auto; }
.nav > ul { display: flex; list-style: none; height: 100%; }
.nav > ul > li { display: flex; }
.nav-link {
  display: flex; align-items: center; gap: 6px; padding: 0 16px; height: 100%;
  font-weight: 500; font-size: 15.5px; position: relative; white-space: nowrap;
}
.nav-link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 3px;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-link:hover::after, .nav-link[aria-expanded="true"]::after, .nav-link.is-current::after { transform: scaleX(1); }
.nav-link .chev { width: 12px; height: 12px; transition: transform .2s; }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.header-cta { margin-left: 8px; padding: 12px 20px; font-size: 15px; align-self: center; }

.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; align-items: center; justify-content: center; }
.menu-toggle svg { width: 26px; height: 26px; }

/* Mega menu */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 24px 40px rgba(0,0,0,.08);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s var(--ease); }
.mega-inner { display: grid; grid-template-columns: 1fr 1.2fr 1.3fr; gap: 48px; padding: 44px var(--gutter) 52px; max-width: var(--wrap); margin: 0 auto; }
.mega-intro h2 { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.15; margin-bottom: 14px; }
.mega-intro p { color: var(--muted); font-size: 15.5px; }
.mega-links { list-style: none; display: grid; grid-template-columns: 1fr; gap: 0; align-content: start; }
.mega-links a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 500; font-size: 15.5px;
}
.mega-links a svg { width: 16px; height: 16px; color: var(--brand); opacity: 0; transform: translateX(-6px); transition: .2s; }
.mega-links a:hover { color: var(--brand); }
.mega-links a:hover svg { opacity: 1; transform: none; }
.mega-links small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.mega-feature h3 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.mega-feature a { display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: center; padding: 10px 0; }
.mega-feature a + a { border-top: 1px solid var(--line); }
.mega-feature img { width: 88px; height: 60px; object-fit: cover; }
.mega-feature span { font-family: var(--serif); font-size: 17px; line-height: 1.3; font-weight: 600; }
.mega-feature a:hover span { color: var(--brand); }

.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.25); opacity: 0; visibility: hidden; transition: .2s; z-index: 90; }
.scrim.is-on { opacity: 1; visibility: visible; }

@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; height: auto; background: #fff;
    flex-direction: column; overflow-y: auto; padding: 8px var(--gutter) 40px;
    opacity: 0; transform: translateY(-10px); visibility: hidden;
    transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
  }
  .nav.is-open { opacity: 1; transition: opacity .25s, transform .3s var(--ease); }
  .nav.is-open { transform: none; visibility: visible; }
  .nav > ul { flex-direction: column; height: auto; }
  .nav > ul > li { flex-direction: column; border-bottom: 1px solid var(--line); }
  .nav-link { height: auto; padding: 18px 0; justify-content: space-between; font-size: 19px; font-family: var(--serif); }
  .nav-link::after { display: none; }
  .mega { position: static; box-shadow: none; border: 0; opacity: 1; visibility: visible; transform: none; display: none; }
  .mega.is-open { display: block; }
  .mega-inner { grid-template-columns: 1fr; padding: 0 0 18px; gap: 20px; }
  .mega-intro, .mega-feature { display: none; }
  .mega-links { grid-template-columns: 1fr; }
  .mega-links a svg { opacity: 1; transform: none; }
  .header-cta { margin: 24px 0 0; justify-content: center; align-self: stretch; }
  .nav-mobile-extra { display: grid !important; }
}
.nav-mobile-extra { display: none; gap: 10px; margin-top: 26px; color: var(--muted); font-size: 15px; }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr; min-height: min(78vh, 760px); }
.hero-copy { padding: clamp(56px, 8vw, 110px) 0 clamp(48px, 6vw, 80px); display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
.hero-copy .display { max-width: 11ch; }
.hero-copy .display em { font-style: italic; color: var(--brand); }
.hero-copy .lead { max-width: 560px; margin: 28px 0 36px; }
.hero-media { position: relative; min-height: 340px; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.hero-block {
  position: absolute; left: 0; bottom: 0; width: 42%; height: 38%;
  background: var(--brand); mix-blend-mode: multiply;
}
.hero-tag {
  position: absolute; left: 24px; bottom: 24px; right: 24px; color: #fff; z-index: 2;
  font-family: var(--serif); font-size: 20px; line-height: 1.3; max-width: 300px;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.02fr 1fr; }
  .hero-copy { padding-right: 56px; }
  .hero-media { margin-right: calc((100vw - min(100vw, var(--wrap))) / -2 - var(--gutter)); }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { border-bottom: 1px solid var(--line); }
.page-hero-grid { display: grid; grid-template-columns: 1fr; }
.page-hero-copy { padding: clamp(40px, 6vw, 84px) 0 clamp(40px, 5vw, 72px); }
.page-hero-copy .lead { margin-top: 24px; max-width: 620px; }
.page-hero-media { position: relative; min-height: 260px; background: var(--sand); }
.page-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-media::after { content: ""; position: absolute; left: 0; top: 0; width: 14px; height: 46%; background: var(--brand); }
@media (min-width: 960px) {
  .page-hero-grid { grid-template-columns: 1.15fr .85fr; }
  .page-hero-copy { padding-right: 64px; }
  .page-hero-media { margin-right: calc((100vw - min(100vw, var(--wrap))) / -2 - var(--gutter)); }
}
.page-hero--plain .page-hero-grid { grid-template-columns: 1fr; }

.crumbs { padding: 0; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #bbb; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }

/* ---------- Stats band ---------- */
.stats { background: var(--brand); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { padding: clamp(28px, 4vw, 48px) clamp(16px, 2.4vw, 32px); border-left: 1px solid rgba(255,255,255,.25); }
.stat:nth-child(odd) { border-left: 0; }
.stat-num { font-family: var(--serif); font-size: clamp(40px, 5.2vw, 68px); line-height: 1; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-label { margin-top: 12px; font-size: 15px; color: rgba(255,255,255,.88); max-width: 22ch; }
@media (min-width: 860px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat:nth-child(odd) { border-left: 1px solid rgba(255,255,255,.25); }
  .stat:first-child { border-left: 0; padding-left: 0; }
}
@media (max-width: 859px) { .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.25); } }

/* ---------- Split / feature ---------- */
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-text { grid-template-columns: 1.15fr .85fr; }
  .split--reverse > :first-child { order: 2; }
}
.framed { position: relative; }
.framed img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.framed::before { content: ""; position: absolute; right: -12px; bottom: -12px; width: 55%; height: 55%; background: var(--brand-soft); z-index: -1; }
.quote-mark { font-family: var(--serif); font-size: 26px; line-height: 1.4; border-left: 4px solid var(--brand); padding-left: 22px; margin: 28px 0; color: var(--ink); }

/* ---------- Tabs (commitment framework) ---------- */
.tabs { display: grid; gap: 0; }
.tabs > * { min-width: 0; }
.tab-list { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tab-list::-webkit-scrollbar { display: none; }
.tab {
  flex: 1 0 auto; text-align: left; padding: 18px 22px 16px; font-weight: 600; font-size: 16px; color: var(--muted);
  border-bottom: 3px solid transparent; margin-bottom: -1px; display: flex; gap: 12px; align-items: baseline; white-space: nowrap;
}
.tab span { font-family: var(--serif); font-size: 15px; color: #aaa; }
.tab[aria-selected="true"] { color: var(--ink); border-color: var(--brand); }
.tab[aria-selected="true"] span { color: var(--brand); }
.tab:hover { color: var(--ink); }
.tab-panel { display: grid; gap: 32px; padding-top: 44px; }
.tab-panel[hidden] { display: none; }
.tab-panel .big { font-family: var(--serif); font-size: clamp(90px, 12vw, 160px); line-height: .85; color: var(--brand); font-weight: 400; }
@media (min-width: 900px) { .tab-panel { grid-template-columns: .5fr 1.5fr; align-items: start; } }
.tab-panel .h2 { margin-bottom: 18px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.svc-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 30px 28px 28px; background: #fff; border: 1px solid var(--line); min-height: 100%;
  transition: border-color .2s, transform .25s var(--ease), box-shadow .25s;
}
.svc-card::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 4px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.svc-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0,0,0,.07); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-card .num { font-family: var(--serif); color: var(--brand); font-size: 15px; }
.svc-card p { color: var(--muted); font-size: 15.5px; margin: 0; flex: 1; }
.svc-card .more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--ink); margin-top: 8px; }
.svc-card .more svg { width: 16px; height: 16px; color: var(--brand); transition: transform .2s; }
.svc-card:hover .more svg { transform: translateX(4px); }
.svc-card--feature { background: var(--night); color: #ddd; border-color: var(--night); justify-content: space-between; }
.svc-card--feature h3 { color: #fff; }
.svc-card--feature p { color: #bdbdbd; }
.svc-card--feature .more { color: #fff; }

.cap { padding: 30px 0 0; border-top: 2px solid var(--ink); }
.cap h3 { margin-bottom: 12px; }
.cap p { color: var(--ink-2); margin: 0; }
.cap .idx { display: block; font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--brand); margin-bottom: 14px; }

/* Industry tiles */
.ind-grid { display: grid; grid-template-columns: 1fr; gap: 2px; background: #fff; }
@media (min-width: 640px) { .ind-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .ind-grid { grid-template-columns: repeat(3, 1fr); } }
.ind {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; color: #fff; display: flex; align-items: flex-end;
  background: var(--night);
}
.ind img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ind::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.78)); }
.ind:hover img { transform: scale(1.05); }
.ind-body { position: relative; z-index: 2; padding: 26px; }
.ind-body h3 { color: #fff; font-family: var(--serif); font-size: 26px; font-weight: 500; }
.ind-body p { margin: 6px 0 0; font-size: 15px; color: rgba(255,255,255,.85); }
.ind-body::before { content: ""; display: block; width: 36px; height: 3px; background: var(--brand); margin-bottom: 14px; }

/* Insight cards */
.insights { display: grid; gap: clamp(20px, 2.4vw, 32px); grid-template-columns: 1fr; }
@media (min-width: 960px) {
  .insights--home { grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto auto; }
  .insights--home .insight--lead { grid-row: 1 / span 3; }
  .insights--home .insight:not(.insight--lead) { grid-template-columns: 180px 1fr; }
  .insights--home .insight:not(.insight--lead) .insight-img { aspect-ratio: 4 / 3; }
  .insights--home .insight:not(.insight--lead) p { display: none; }
}
@media (min-width: 700px) { .insights--grid { grid-template-columns: repeat(2, 1fr); } }
.insight { display: grid; gap: 18px; align-content: start; }
.insight-img { overflow: hidden; aspect-ratio: 16 / 10; background: var(--sand); }
.insight-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.insight:hover .insight-img img { transform: scale(1.04); }
.insight .tag { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--brand); }
.insight h3 { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.28; margin: 8px 0 10px; }
.insight--lead h3 { font-size: clamp(26px, 2.6vw, 34px); }
.insight h3 a:hover { color: var(--brand); }
.insight p { color: var(--muted); font-size: 15.5px; }
.insight-actions { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.dl { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.dl svg { width: 18px; height: 18px; color: var(--brand); }
.dl:hover { color: var(--brand); }
.dl small { color: var(--muted); font-weight: 400; }

/* ---------- Service-page components ---------- */
.prose p { color: var(--ink-2); }
.prose p:first-child::first-letter { }
.two-col-text { columns: 1; column-gap: 56px; }
@media (min-width: 900px) { .two-col-text { columns: 2; } }
.two-col-text p { break-inside: avoid; }

.onpage { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; font-size: 15px; }
.onpage b { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.onpage a { padding: 6px 0 6px 14px; border-left: 2px solid var(--line); color: var(--ink-2); }
.onpage a:hover { border-color: var(--brand); color: var(--brand); }
.with-aside { display: grid; gap: 48px; }
@media (min-width: 1020px) { .with-aside { grid-template-columns: 220px 1fr; gap: 72px; } }
@media (max-width: 1019px) { .onpage { display: none; } }

.steps { list-style: none; display: grid; gap: 0; counter-reset: step; }
.step { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step-mark { font-family: var(--serif); font-size: 56px; line-height: .9; color: var(--brand); font-weight: 500; }
.step h3 { font-size: 20px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink-2); }
@media (min-width: 900px) { .step { grid-template-columns: 110px 260px 1fr; align-items: baseline; gap: 32px; } .step h3 { margin: 0; } }

.acrostic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 900px) { .acrostic { grid-template-columns: repeat(6, 1fr); } }
.acrostic > div { background: #fff; padding: 22px 18px; }
.acrostic b { display: block; font-family: var(--serif); font-size: 48px; line-height: 1; color: var(--brand); font-weight: 500; }
.acrostic span { font-weight: 600; font-size: 15px; }

.flow { display: grid; gap: 2px; grid-template-columns: 1fr; counter-reset: flow; }
@media (min-width: 700px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .flow--5 { grid-template-columns: repeat(5, 1fr); } .flow--4 { grid-template-columns: repeat(4, 1fr); } }
.flow > div { background: var(--night-2); color: #d6d6d6; padding: 30px 26px 34px; position: relative; }
.flow > div:nth-child(even) { background: var(--brand); color: #fdede2; }
.flow > div::before { counter-increment: flow; content: "0" counter(flow); display: block; font-family: var(--serif); font-size: 15px; color: rgba(255,255,255,.6); margin-bottom: 26px; }
.flow h3 { color: #fff; font-family: var(--serif); font-weight: 500; font-size: 23px; margin-bottom: 12px; line-height: 1.2; }
.flow p { margin: 0; font-size: 15.5px; }

.checklist { list-style: none; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 30px; color: var(--ink-2); }
.checklist li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 2px; background: var(--brand); }
.checklist li b { color: var(--ink); }
.checklist--2 { grid-template-columns: 1fr; column-gap: 48px; }
@media (min-width: 900px) { .checklist--2 { grid-template-columns: 1fr 1fr; } }

.benefit { padding: 28px; background: #fff; border-left: 4px solid var(--brand); }
.benefit h3 { font-size: 19px; margin-bottom: 8px; }
.benefit p { margin: 0; color: var(--ink-2); font-size: 16px; }

.figure { background: #fff; border: 1px solid var(--line); padding: clamp(16px, 3vw, 36px); }
.figure img { margin: 0 auto; }
.figure figcaption { font-size: 14px; color: var(--muted); margin-top: 14px; text-align: center; }
figure { margin: 0; }

.pillars { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 2px solid var(--ink); }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { padding: 32px 28px 32px 0; }
@media (min-width: 900px) { .pillar + .pillar { padding-left: 28px; border-left: 1px solid var(--line); } }
.pillar h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; margin-bottom: 16px; }

.acc { border-top: 1px solid var(--line); }
.acc:last-child { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-family: var(--serif); font-size: clamp(20px, 2vw, 24px); font-weight: 600; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .plus { width: 34px; height: 34px; flex: none; border: 1.5px solid var(--ink); border-radius: 50%; position: relative; transition: .2s; }
.acc summary .plus::before, .acc summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .2s; }
.acc summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc[open] summary .plus { background: var(--brand); border-color: var(--brand); color: #fff; }
.acc[open] summary .plus::after { transform: translate(-50%, -50%) rotate(0); }
.acc summary:hover { color: var(--brand); }
.acc-body { padding: 0 0 28px; max-width: 820px; }
.acc-body p { color: var(--ink-2); }
.acc-num { color: var(--brand); font-size: 15px; margin-right: 16px; font-weight: 500; }

.values { display: grid; grid-template-columns: 1fr; gap: 2px; background: var(--line); }
@media (min-width: 760px) { .values { grid-template-columns: repeat(2, 1fr); } }
.value { background: #fff; padding: clamp(28px, 3.4vw, 44px); }
.value .v-letter { font-family: var(--serif); font-size: 64px; line-height: .9; color: var(--brand); display: block; margin-bottom: 18px; }
.value h3 { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; }
.value p { margin: 0; color: var(--ink-2); }

.related { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid rgba(255,255,255,.15); }
@media (min-width: 760px) { .related { grid-template-columns: repeat(3, 1fr); } }
.related a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.15); font-family: var(--serif); font-size: 21px; color: #fff; }
@media (min-width: 760px) { .related a { padding: 26px 28px 26px 0; } .related a:nth-child(3n+2), .related a:nth-child(3n) { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.15); } }
.related a svg { width: 20px; height: 20px; color: #f5a97a; flex: none; transition: transform .2s; }
.related a:hover svg { transform: translateX(5px); }
.related a:hover { color: #f9c9a8; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--brand); color: #fff; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; right: -8%; top: -40%; width: 46%; aspect-ratio: 1;
  border: 70px solid rgba(255,255,255,.07); border-radius: 50%;
}
.cta-grid { position: relative; z-index: 2; display: grid; gap: 36px; padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
@media (min-width: 900px) { .cta-grid { grid-template-columns: 1.3fr 1fr; align-items: end; } }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); }
.cta-contacts { display: grid; gap: 10px; font-size: 16px; }
.cta-contacts a, .cta-contacts span { display: flex; gap: 12px; align-items: flex-start; }
.cta-contacts svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.cta-contacts a:hover { text-decoration: underline; }

/* ---------- Contact page ---------- */
.contact-ways { display: grid; grid-template-columns: 1fr; gap: 2px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 860px) { .contact-ways { grid-template-columns: repeat(3, 1fr); } }
.way { background: #fff; padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; gap: 12px; }
.way-ico { width: 52px; height: 52px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 10px; }
.way-ico svg { width: 24px; height: 24px; }
.way p { color: var(--muted); margin: 0; flex: 1; }
.way .val { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--ink); }
.way a.val:hover { color: var(--brand); }

.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 700px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 14.5px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; padding: 14px 16px; border: 1px solid #cfcac5; border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(208,74,2,.18); }
.form-note { font-size: 14px; color: var(--muted); margin: 0; }
.map { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(.35); }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #bdbdbd; font-size: 15.5px; }
.footer-top { display: grid; gap: 44px; padding-top: clamp(56px, 7vw, 88px); padding-bottom: 48px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-top { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.footer-brand img { width: 54px; margin-bottom: 18px; }
.footer-brand p { max-width: 340px; }
.footer-brand .tagline { font-family: var(--serif); color: #fff; font-size: 24px; line-height: 1.25; margin-bottom: 14px; }
.site-footer h2 { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 18px; font-weight: 600; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: #f29560; }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #444; border-radius: 50%; }
.social a:hover { background: var(--brand); border-color: var(--brand); text-decoration: none; }
.social svg { width: 18px; height: 18px; color: #fff; }
.footer-bottom { border-top: 1px solid #333; padding-top: 22px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: 14px; color: #8f8f8f; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; animation-duration: 0s !important; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* utilities */
.mt-0 { margin-top: 0; } .mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 56px; }
.mb-0 { margin-bottom: 0; } .mb-s { margin-bottom: 16px; } .mb-m { margin-bottom: 32px; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

main { overflow-x: clip; }
@media (min-width: 900px) { .framed::before { right: -18px; bottom: -18px; } }

@media (max-width: 959px) {
  .hero-media { margin: 0 calc(-1 * var(--gutter)); min-height: 300px; }
  .hero-block { width: 100%; height: 34%; }
  .hero-tag { left: var(--gutter); }
  .page-hero-media { margin: 0 calc(-1 * var(--gutter)); }
}
.svc-sec:last-child { margin-bottom: 0 !important; }
