.hero-year { margin-left: .9rem; padding-left: .9rem; border-left: 1px solid var(--line-strong); color: var(--muted); font-size: .68rem; letter-spacing: .14em; }
.hero-assurance { display: flex; align-items: center; gap: .7rem; margin-top: 2.3rem; color: var(--muted); font-size: .85rem; }
.hero-assurance span { width: 30px; height: 2px; background: var(--accent); }
.hero-panel { width: min(100%, 480px); }
.calculator-preview { position: relative; overflow: hidden; background: var(--ink-900); color: var(--bone-100); }
.calculator-preview-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(340px,.8fr); align-items: center; gap: clamp(2rem,6vw,6rem); }
.calculator-preview-copy h2 { margin: 1.2rem 0; font: 400 clamp(2.1rem,5vw,4.4rem)/1.05 var(--font-display); text-transform: uppercase; }
.calculator-preview-copy h2 em { color: var(--accent-bright); font-style: normal; }
.calculator-preview-copy > p:not(.eyebrow) { max-width: 600px; margin-bottom: 2rem; color: var(--bone-300); }
.calculator-status { display: inline-flex; align-items: center; margin-left: .65rem; padding: .3rem .5rem; border: 1px solid rgba(245,147,30,.5); color: var(--accent-bright); font-size: .58rem; letter-spacing: .12em; vertical-align: middle; }
.calculator-outline { border: 1px solid var(--line-strong); background: rgba(255,255,255,.025); }
.calculator-outline-head { display: flex; justify-content: space-between; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); color: var(--accent-bright); font-size: .65rem; letter-spacing: .16em; }
.calculator-outline ol { margin: 0; padding: .5rem 1.2rem; list-style: none; }
.calculator-outline li { display: grid; grid-template-columns: 2rem 1fr; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.calculator-outline li > span { color: var(--accent-bright); font: 400 1.1rem var(--font-display); }
.calculator-outline li strong,.calculator-outline li small { display: block; }
.calculator-outline li strong { color: var(--bone-100); font-size: .88rem; }
.calculator-outline li small { margin-top: .25rem; color: var(--muted); font-size: .72rem; }
.calculator-outline > p { margin: 0; padding: 1rem 1.2rem 1.2rem; color: var(--muted); font-size: .7rem; }
.service-grid { display: grid; grid-template-columns: repeat(6,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { position: relative; grid-column: span 2; min-height: 250px; padding: 1.7rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s ease; }
.service-card:nth-child(4) { grid-column: 2 / span 2; }
.service-card:hover { background: var(--amber-050); }
.service-card .service-no { position: absolute; top: 1.8rem; right: 1.6rem; }
.service-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 1.4rem; border: 1px solid rgba(245,147,30,.4); color: var(--accent-bright); }
.service-icon svg { width: 30px; height: 30px; }
.service-card h3 { margin-bottom: .7rem; font-size: 1.45rem; }
.service-card p { max-width: 32ch; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.card-link { position: absolute; right: 1.5rem; bottom: 1.1rem; color: var(--accent-bright); font-size: 1.2rem; opacity: 0; transition: opacity .2s; }
.service-card:hover .card-link { opacity: 1; }
.technology { background: var(--bg-raise); border-block: 1px solid var(--line); }
.technology-layout { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: clamp(2.5rem,6vw,5.5rem); align-items: center; }
.technology-copy > p:not(.eyebrow) { max-width: 56ch; margin: 1.5rem 0 2rem; color: var(--bone-300); }
.technology-figure,.about-figure { position: relative; min-width: 0; }
.technology-figure img,.about-figure img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 1px solid var(--line); border-radius: 6px; filter: saturate(.9) contrast(1.04); }
.technology-figure figcaption,.about-figure figcaption { display:flex; justify-content:space-between; gap:1rem; margin-top:.85rem; color:var(--muted); font-size:.7rem; letter-spacing:.16em; text-transform:uppercase; }
.technology-figure::before,.about-figure::before { content:""; position:absolute; z-index:-1; inset:-12px 12px 12px -12px; border:1px solid rgba(245,147,30,.25); border-radius:6px; }
.about-figure img { aspect-ratio: 1 / .94; }
.form-honeypot { position:absolute!important; width:1px!important; height:1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; }
.form-row input[type=file] { padding:.6rem; font-size:.86rem; }
.form-row small { display:block; margin-top:.35rem; color:var(--muted); font-size:.78rem; }
.privacy-check { display:flex; align-items:flex-start; gap:.65rem; margin:1rem 0 1.2rem; color:var(--muted); font-size:.82rem; line-height:1.45; }
.privacy-check input { flex:0 0 auto; margin-top:.2rem; accent-color:var(--accent); }
.form-feedback { margin:0 0 1.25rem; padding:.85rem 1rem; border:1px solid var(--line-strong); border-radius:4px; font-size:.94rem; }
.form-success { border-color:#55785d; color:#b9d6bd; background:rgba(60,110,68,.13); }
.form-error { border-color:#9b553a; color:#ffc3a6; background:rgba(143,59,37,.15); }
.consent-banner { position:fixed; z-index:100; right:1.25rem; bottom:1.25rem; width:min(700px,calc(100% - 2.5rem)); max-height:calc(100vh - 2.5rem); max-height:calc(100dvh - 2.5rem); overflow-y:auto; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:1rem 1.2rem; padding:1.2rem 1.3rem; border:1px solid var(--line-strong); border-radius:6px; background:rgba(16,18,20,.97); box-shadow:0 18px 60px rgba(0,0,0,.48); backdrop-filter:blur(16px); }
.consent-banner[hidden] { display:none; }
.consent-banner strong { font-family:var(--font-display); font-size:1.15rem; letter-spacing:.1em; text-transform:uppercase; }
.consent-banner p { margin:.35rem 0 0; color:var(--muted); font-size:.78rem; line-height:1.45; }
.cookie-details { margin-top:.7rem; color:var(--muted); font-size:.72rem; }
.cookie-details summary { width:fit-content; color:var(--bone-300); cursor:pointer; text-decoration:underline; text-decoration-color:rgba(244,241,234,.35); text-underline-offset:.2em; }
.cookie-details summary:focus-visible { outline:2px solid var(--accent-bright); outline-offset:3px; }
.cookie-table-wrap { max-width:100%; margin-top:.65rem; overflow-x:auto; }
.cookie-details table { width:100%; border-collapse:collapse; text-align:left; }
.cookie-details th,.cookie-details td { padding:.4rem .45rem; border:1px solid var(--line-strong); vertical-align:top; }
.cookie-details th { color:var(--bone-300); font-size:.67rem; }
.cookie-details code { color:var(--accent-bright); font-size:.68rem; overflow-wrap:anywhere; }
.cookie-details > p { margin-top:.55rem; font-size:.7rem; }
.consent-actions { display:flex; gap:.5rem; }
.consent-actions button { min-height:40px; padding:.5rem .8rem; border:1px solid var(--line-strong); border-radius:3px; font-size:.75rem; font-weight:600; }
.consent-actions .consent-accept { background:var(--accent); border-color:var(--accent); color:var(--accent-ink); }
.admin-notice { margin:1rem 0; padding:.9rem 1rem; border:1px solid #886a3d; background:rgba(145,99,28,.13); color:#efd8ad; font-size:.9rem; }
@media(max-width:900px){.technology-layout{grid-template-columns:1fr}.technology-figure{order:-1}.service-card:nth-child(4){grid-column:auto}.calculator-preview-grid{grid-template-columns:1fr}}
@media(max-width:640px){.service-grid{grid-template-columns:1fr 1fr}.service-card,.service-card:nth-child(4){grid-column:auto;min-height:230px;padding:1.25rem}.service-card:last-child{grid-column:1/-1}.hero-year{margin-left:2rem}.consent-banner{grid-template-columns:1fr;right:.7rem;bottom:.7rem;width:calc(100% - 1.4rem);max-height:calc(100vh - 1.4rem);max-height:calc(100dvh - 1.4rem);padding:1rem}.consent-actions{justify-content:flex-end;flex-wrap:wrap}.about-figure{order:1}}
@media(max-width:430px){.service-grid{grid-template-columns:1fr}.service-card,.service-card:nth-child(4),.service-card:last-child{grid-column:auto;min-height:195px}.contact-bottom{grid-template-columns:1fr}.hero-year{display:none}}
@media(prefers-reduced-motion:reduce){.service-card,.card-link{transition:none}}
.privacy-settings-link { justify-self:start; border:0; padding:0; background:none; color:var(--muted); cursor:pointer; font-size:.8rem; text-align:left; }
.privacy-settings-link:hover { color:var(--accent-bright); }
.consent-error { display:block; margin-top:.55rem; color:#ffbba5; font-size:.72rem; }
.consent-error[hidden] { display:none; }
.theme-toggle { display:inline-flex; align-items:center; justify-content:flex-start; gap:.55rem; min-height:34px; width:fit-content; padding:.35rem .55rem; border:1px solid var(--line-strong); border-radius:3px; background:transparent; color:var(--bone-300); cursor:pointer; font:inherit; font-size:.76rem; text-align:left; }
.theme-toggle:hover { border-color:var(--accent); color:var(--accent-bright); }
.theme-toggle [data-theme-icon] { color:var(--accent-bright); font-size:1rem; line-height:1; }
.footer-nav .theme-toggle { margin-top:.3rem; }
.primary-nav .theme-toggle-icon { display:inline-flex; width:40px; height:40px; min-height:40px; flex:0 0 40px; align-items:center; justify-content:center; padding:0; border-radius:50%; background:rgba(255,255,255,.035); color:var(--accent-bright); }
.primary-nav .theme-toggle-icon [data-theme-icon] { font-size:1.15rem; }
.primary-nav .theme-toggle-icon:hover { background:var(--amber-050); color:var(--accent-bright); }
.primary-nav .theme-toggle-icon[aria-pressed="true"] { border-color:var(--accent); background:var(--amber-050); }
html[data-theme-scope="site"][data-theme="light"] .site-header:not(.scrolled) .primary-nav .theme-toggle-icon { border-color:rgba(255,195,106,.55); background:rgba(255,255,255,.04); color:#ffc36a; }
html[data-theme-scope="site"][data-theme="light"] .site-header.scrolled .primary-nav .theme-toggle-icon { border-color:var(--line-strong); background:var(--amber-050); color:var(--accent-bright); }
@media(max-width:1060px), (pointer:coarse) {
  .primary-nav .theme-toggle-icon { margin:.55rem 0; }
  html[data-theme-scope="site"][data-theme="light"] .site-header:not(.scrolled) .primary-nav.open .theme-toggle-icon { border-color:var(--line-strong); background:var(--amber-050); color:var(--accent-bright); }
}

html[data-theme-scope="site"][data-theme="light"] .hero { color:#f4f1ea; }
html[data-theme-scope="site"][data-theme="light"] .hero-scrim { background:linear-gradient(90deg,rgba(11,12,13,.94) 0%,rgba(11,12,13,.72) 38%,rgba(11,12,13,.25) 68%,rgba(11,12,13,.45) 100%),linear-gradient(0deg,rgba(11,12,13,.94) 0%,rgba(11,12,13,0) 22%,rgba(11,12,13,0) 78%,rgba(11,12,13,.55) 100%); }
html[data-theme-scope="site"][data-theme="light"] .hero-lead,
html[data-theme-scope="site"][data-theme="light"] .hero-year,
html[data-theme-scope="site"][data-theme="light"] .hero-assurance,
html[data-theme-scope="site"][data-theme="light"] .hero-panel-top,
html[data-theme-scope="site"][data-theme="light"] .hero-panel-note,
html[data-theme-scope="site"][data-theme="light"] .hero-facts dt { color:rgba(244,241,234,.72); }
html[data-theme-scope="site"][data-theme="light"] .hero-facts dd { color:#fff; }
html[data-theme-scope="site"][data-theme="light"] .hero .eyebrow,
html[data-theme-scope="site"][data-theme="light"] .hero .live-dot,
html[data-theme-scope="site"][data-theme="light"] .hero-facts dd small { color:#ffc36a; }
html[data-theme-scope="site"][data-theme="light"] .hero .live-dot::before { background:#ffc36a; box-shadow:0 0 10px #ffc36a; }
html[data-theme-scope="site"][data-theme="light"] .hero .btn-amber,
html[data-theme-scope="site"][data-theme="light"] .cta-band .btn-amber { border-color:#e49a35; background:#e49a35; color:#231303; }
html[data-theme-scope="site"][data-theme="light"] .hero .btn-amber:hover,
html[data-theme-scope="site"][data-theme="light"] .cta-band .btn-amber:hover { border-color:#ffc36a; background:#ffc36a; color:#231303; }
html[data-theme-scope="site"][data-theme="light"] .site-header:not(.scrolled) .brand-text,
html[data-theme-scope="site"][data-theme="light"] .site-header:not(.scrolled) .primary-nav > a:not(.nav-call) { color:#f4f1ea; }
html[data-theme-scope="site"][data-theme="light"] .site-header:not(.scrolled) .primary-nav .nav-call { color:#ffc36a; border-color:rgba(255,195,106,.55); }
html[data-theme-scope="site"][data-theme="light"] .site-header.scrolled { background:rgba(255,255,255,.96); border-bottom-color:var(--line-strong); }
html[data-theme-scope="site"][data-theme="light"] .site-header.scrolled .brand-text,
html[data-theme-scope="site"][data-theme="light"] .site-header.scrolled .primary-nav > a:not(.nav-call) { color:var(--bone-100); }
html[data-theme-scope="site"][data-theme="light"] body.article-page .site-header:not(.scrolled) { background:rgba(255,255,255,.96); border-bottom-color:var(--line-strong); }
html[data-theme-scope="site"][data-theme="light"] body.article-page .site-header:not(.scrolled) .brand-text,
html[data-theme-scope="site"][data-theme="light"] body.article-page .site-header:not(.scrolled) .primary-nav > a:not(.nav-call) { color:var(--bone-100); }
html[data-theme-scope="site"][data-theme="light"] body.article-page .site-header:not(.scrolled) .primary-nav .nav-call { color:var(--accent-bright); border-color:rgba(168,91,11,.4); }
html[data-theme-scope="site"][data-theme="light"] body.article-page .site-header:not(.scrolled) .menu-toggle span { background:var(--bone-100); }
html[data-theme-scope="site"][data-theme="light"] .primary-nav .nav-call { color:var(--accent-bright); }
html[data-theme-scope="site"][data-theme="light"] .site-header:not(.scrolled) .menu-toggle span { background:#f4f1ea; }
html[data-theme-scope="site"][data-theme="light"] .site-header.scrolled .menu-toggle span { background:var(--bone-100); }
@media (max-width:1060px), (pointer:coarse) {
  html[data-theme-scope="site"][data-theme="light"] .primary-nav { background:rgba(255,255,255,.99); }
  html[data-theme-scope="site"][data-theme="light"] .site-header:not(.scrolled) .primary-nav.open > a:not(.nav-call) { color:var(--bone-100); }
  html[data-theme-scope="site"][data-theme="light"] body.nav-open .menu-toggle span { background:var(--bone-100); }
}
html[data-theme-scope="site"][data-theme="light"] .blog-hero { color:#f4f1ea; }
html[data-theme-scope="site"][data-theme="light"] .blog-hero .blog-eyebrow,
html[data-theme-scope="site"][data-theme="light"] .blog-hero h1 em,
html[data-theme-scope="site"][data-theme="light"] .blog-hero .blog-language-tabs a > span:first-child { color:#ffc36a; }
html[data-theme-scope="site"][data-theme="light"] .blog-proof,
html[data-theme-scope="site"][data-theme="light"] .blog-language-tabs small { color:rgba(244,241,234,.72); }
html[data-theme-scope="site"][data-theme="light"] .blog-hero > .container > p:not(.blog-eyebrow),
html[data-theme-scope="site"][data-theme="light"] .blog-language-tabs a { color:#dedbd3; }
html[data-theme-scope="site"][data-theme="light"] .article-content { color:#404947; }
html[data-theme-scope="site"][data-theme="light"] .article-content h2 { color:#202626; }
html[data-theme-scope="site"][data-theme="light"] .cta-band { color:#f4f1ea; }
html[data-theme-scope="site"][data-theme="light"] .cta-band .cta-side p { color:rgba(244,241,234,.82); }
html[data-theme-scope="site"][data-theme="light"] .contact-form-panel { background:linear-gradient(145deg,rgba(255,255,255,.8),transparent 60%),rgba(255,255,255,.82); }
html[data-theme-scope="site"][data-theme="light"] .consent-banner { border-color:rgba(32,38,38,.2); background:rgba(255,255,255,.98); }
html[data-theme-scope="site"][data-theme="light"] .consent-banner strong { color:var(--bone-100); }
html[data-theme-scope="site"][data-theme="light"] .cookie-details summary { color:var(--bone-300); }
html[data-theme-scope="site"][data-theme="light"] .form-success { color:#285c32; background:rgba(60,130,68,.08); }
html[data-theme-scope="site"][data-theme="light"] .form-error { color:#8e351e; background:rgba(160,65,40,.07); }
html[data-theme-scope="site"][data-theme="light"] .consent-error { color:#8e351e; }
html[data-theme-scope="site"][data-theme="light"] .admin-notice { color:#704809; background:rgba(194,132,31,.09); }

/* ---------- hero facts alignment & wider mobile tile ---------- */
:root {
  --scroll-glow-x: 26%;
  --scroll-glow-x-alt: 74%;
  --scroll-glow-angle: 135deg;
  --border-glow-peak: rgba(255, 179, 64, 0.78);
  --border-glow-soft: rgba(245, 147, 30, 0.26);
}
html[data-theme-scope="site"][data-theme="light"] {
  --border-glow-peak: rgba(189, 109, 19, 0.72);
  --border-glow-soft: rgba(189, 109, 19, 0.22);
}

.hero-facts {
  align-items: stretch;
}
.hero-facts > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

@media (max-width: 640px) {
  .hero .container.hero-layout {
    width: min(1240px, 100% - 1.5rem);
  }
  .hero-panel {
    width: 100%;
    max-width: none;
    padding: 1.2rem 1.05rem 1.05rem;
  }
  .hero-facts {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.68fr) minmax(0, 1.27fr);
    gap: 0.5rem;
  }
  .hero-facts dt {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }
}
@media (max-width: 350px) {
  .hero-facts dt {
    white-space: normal;
  }
}

/* ---------- scroll-driven travelling gradient on thin borders ---------- */
.hero-panel-top,
.stats,
.services,
.technology,
.contact,
.calculator-outline-head,
.calculator-outline li,
.contact-card-top,
.contact-form-heading,
.site-footer,
.footer-bottom,
.site-header.scrolled {
  border-image: linear-gradient(
    90deg,
    var(--line) 0%,
    var(--line) calc(var(--scroll-glow-x, 26%) - 18%),
    var(--border-glow-soft) calc(var(--scroll-glow-x, 26%) - 6%),
    var(--border-glow-peak) var(--scroll-glow-x, 26%),
    var(--border-glow-soft) calc(var(--scroll-glow-x, 26%) + 6%),
    var(--line) calc(var(--scroll-glow-x, 26%) + 18%),
    var(--line) 100%
  ) 1;
}

.hero-panel-note {
  border-image: linear-gradient(
    90deg,
    var(--line) 0%,
    var(--line) calc(var(--scroll-glow-x-alt, 74%) - 20%),
    rgba(245, 147, 30, 0.32) calc(var(--scroll-glow-x-alt, 74%) - 7%),
    rgba(255, 179, 64, 0.85) var(--scroll-glow-x-alt, 74%),
    rgba(245, 147, 30, 0.32) calc(var(--scroll-glow-x-alt, 74%) + 7%),
    var(--line) calc(var(--scroll-glow-x-alt, 74%) + 20%),
    var(--line) 100%
  ) 1;
}

.stat,
.service-grid,
.service-card {
  border-image: conic-gradient(
    from var(--scroll-glow-angle, 135deg) at 50% 50%,
    var(--line) 0deg,
    var(--border-glow-soft) 42deg,
    var(--border-glow-peak) 78deg,
    var(--border-glow-soft) 114deg,
    var(--line) 156deg,
    var(--line) 222deg,
    var(--border-glow-soft) 254deg,
    var(--border-glow-peak) 286deg,
    var(--border-glow-soft) 318deg,
    var(--line) 360deg
  ) 1;
}

.hero-panel,
.calculator-outline,
.contact-card,
.contact-form-panel {
  position: relative;
}

.hero-panel::after,
.calculator-outline::after,
.contact-card::after,
.contact-form-panel::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--scroll-glow-angle, 135deg) at 50% 50%,
    transparent 0deg,
    var(--border-glow-soft) 45deg,
    var(--border-glow-peak) 85deg,
    var(--border-glow-soft) 125deg,
    transparent 170deg,
    transparent 225deg,
    var(--border-glow-soft) 260deg,
    var(--border-glow-peak) 295deg,
    transparent 340deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

html[data-theme-scope="site"][data-theme="light"] .hero-panel-top,
html[data-theme-scope="site"][data-theme="light"] .hero-panel-note {
  --border-glow-peak: rgba(255, 195, 106, 0.85);
  --border-glow-soft: rgba(245, 147, 30, 0.32);
}
html[data-theme-scope="site"][data-theme="light"] .hero-panel::after {
  --border-glow-peak: rgba(255, 195, 106, 0.82);
  --border-glow-soft: rgba(245, 147, 30, 0.28);
}
