/* ==========================================================================
   AUTO PROSERWIS — design system 2026
   Typografia: Inter Variable (opsz / wght 300–800) + IBM Plex Mono
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/inter-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/inter-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/plexmono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/plexmono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/plexmono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/plexmono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------------------------------------------ tokens */
:root {
  --bg0: #0b0c0e;
  --bg1: #131418;
  --paper: #f1efe9;
  --paper2: #e8e5dd;
  --ink: #141518;
  --txt-d: #f4f2ec;
  --mut-d: #969ba3;
  --mut-l: #5d6167;
  --line-d: rgba(244, 242, 236, 0.14);
  --line-l: rgba(20, 21, 24, 0.16);
  --acc: #ff4d00;
  --acc-deep: #c23a00;

  --sans: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', 'Consolas', monospace;

  --pad: clamp(1.25rem, 4.5vw, 4.5rem);
  --max: 90rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.25rem;
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv05' 1, 'ss03' 1; /* Inter: single-story g, curved shapes */
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--acc); color: #fff; }

:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 0.75rem; left: 0.75rem; z-index: 200;
  transform: translateY(-300%);
  background: var(--acc); color: #fff; padding: 0.6rem 1rem;
  font-family: var(--mono); font-size: 0.8rem; text-decoration: none;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

/* ------------------------------------------------------------------ utils */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.mono-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.kicker { display: flex; align-items: center; gap: 0.75rem; color: var(--mut-l); }
.kicker::before { content: ''; width: 2rem; height: 1px; background: var(--acc); flex: none; }
.on-dark .kicker, .kicker.on-dark { color: var(--mut-d); }

.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  opacity: 0.5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* reveal on scroll — hidden only when JS is active (progressive enhancement) */
.js .reveal { opacity: 0; transform: translateY(1.75rem); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay='1'] { transition-delay: 0.08s; }
.reveal[data-delay='2'] { transition-delay: 0.16s; }
.reveal[data-delay='3'] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ------------------------------------------------------------------ header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 130;
  height: var(--header-h);
  display: flex; align-items: stretch;
  color: var(--txt-d);
  background: rgba(11, 12, 14, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-d);
  transition: background 0.3s var(--ease);
}
.header-in {
  width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad);
  display: flex; align-items: center; gap: 2rem;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  text-decoration: none; flex: none;
}
.brand-mark { width: 2rem; height: 2rem; flex: none; }
.brand-name {
  font-weight: 800; font-stretch: 118%; font-size: 1.02rem;
  letter-spacing: 0.015em; text-transform: uppercase; line-height: 1;
}
.brand-name em { font-style: normal; color: var(--acc); }

.site-nav { display: flex; align-items: center; gap: 1.9rem; margin-left: auto; }
.site-nav > ul { display: flex; gap: 1.9rem; align-items: center; }
.site-nav a.nav-link {
  font-family: var(--mono); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.13em; text-transform: uppercase;
  text-decoration: none; color: var(--txt-d); opacity: 0.82;
  padding: 0.4rem 0; position: relative;
  transition: opacity 0.2s;
}
.site-nav a.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--acc); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.site-nav a.nav-link:hover, .site-nav a.nav-link[aria-current='page'] { opacity: 1; }
.site-nav a.nav-link:hover::after, .site-nav a.nav-link[aria-current='page']::after { transform: none; }

.nav-item { position: relative; }
.nav-drop {
  position: absolute; top: calc(100% + 0.9rem); left: 50%; transform: translate(-50%, 8px);
  min-width: 17rem; padding: 0.5rem 0;
  background: var(--bg1); border: 1px solid var(--line-d);
  opacity: 0; visibility: hidden; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.nav-item:hover .nav-drop, .nav-item:focus-within .nav-drop {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.nav-drop a {
  display: flex; align-items: baseline; gap: 0.7rem;
  padding: 0.55rem 1.2rem; text-decoration: none;
  font-size: 0.9rem; font-weight: 500; color: var(--txt-d);
  transition: background 0.15s, color 0.15s;
}
.nav-drop a .idx { font-family: var(--mono); font-size: 0.66rem; color: var(--mut-d); }
.nav-drop a:hover { background: var(--acc); color: #fff; }
.nav-drop a:hover .idx { color: rgba(255,255,255,0.7); }

.header-cta {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--mono); font-size: 0.76rem; font-weight: 500; letter-spacing: 0.08em;
  color: var(--txt-d); text-decoration: none;
  border: 1px solid var(--line-d); padding: 0.55rem 1rem;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
}
.header-cta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.header-cta:hover { background: var(--acc); border-color: var(--acc); color: #fff; }

/* burger */
.nav-toggle { display: none; margin-left: auto; z-index: 130; padding: 0.5rem; }
.nav-toggle .bars { display: block; width: 26px; height: 14px; position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ''; position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--txt-d); transition: transform 0.3s var(--ease), top 0.3s var(--ease), bottom 0.3s var(--ease);
}
.nav-toggle .bars::before { top: 0; }
.nav-toggle .bars::after { bottom: 0; }
body.nav-open .nav-toggle .bars::before { top: 6px; transform: rotate(45deg); }
body.nav-open .nav-toggle .bars::after { bottom: 6px; transform: rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 120;
  background: var(--bg0); color: var(--txt-d);
  display: flex; flex-direction: column;
  padding: calc(var(--header-h) + 1.5rem) var(--pad) 2.5rem;
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s;
  overflow-y: auto;
}
body.nav-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu nav ul li { border-bottom: 1px solid var(--line-d); }
.mobile-menu nav a {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1.05rem 0; text-decoration: none;
  font-weight: 700; font-stretch: 115%; text-transform: uppercase;
  font-size: clamp(1.5rem, 6vw, 2.2rem); line-height: 1;
  transform: translateY(1.2rem); opacity: 0;
}
body.nav-open .mobile-menu nav a { transform: none; opacity: 1; transition: transform 0.5s var(--ease), opacity 0.5s var(--ease); }
body.nav-open .mobile-menu nav li:nth-child(1) a { transition-delay: 0.05s; }
body.nav-open .mobile-menu nav li:nth-child(2) a { transition-delay: 0.1s; }
body.nav-open .mobile-menu nav li:nth-child(3) a { transition-delay: 0.15s; }
body.nav-open .mobile-menu nav li:nth-child(4) a { transition-delay: 0.2s; }
body.nav-open .mobile-menu nav li:nth-child(5) a { transition-delay: 0.25s; }
body.nav-open .mobile-menu nav li:nth-child(6) a { transition-delay: 0.3s; }
.mobile-menu nav a .idx { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; color: var(--acc); }
.mobile-sub { padding: 0 0 1.2rem; display: grid; gap: 0.15rem; }
.mobile-sub a { font-size: 0.95rem !important; font-weight: 500 !important; text-transform: none !important; font-stretch: 100% !important; padding: 0.3rem 0 !important; color: var(--mut-d); }
.mobile-menu-foot { margin-top: auto; padding-top: 2.5rem; display: grid; gap: 0.4rem; }
.mobile-menu-foot a { color: var(--txt-d); text-decoration: none; font-family: var(--mono); font-size: 0.9rem; }
.mobile-menu-foot .big { font-family: var(--sans); font-size: 1.6rem; font-weight: 800; font-stretch: 112%; color: var(--acc); }

@media (max-width: 64em) {
  .site-nav { display: none; }
  .nav-toggle { display: block; }
  .header-cta.in-header { display: none; }
}

/* ------------------------------------------------------------------ hero (home) */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--bg0); color: var(--txt-d);
  overflow: hidden; overflow: clip;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(58rem 36rem at 82% 4%, rgba(255, 77, 0, 0.13), transparent 62%),
    radial-gradient(40rem 30rem at 6% 96%, rgba(255, 77, 0, 0.05), transparent 60%),
    linear-gradient(rgba(244, 242, 236, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 242, 236, 0.045) 1px, transparent 1px);
  background-size: auto, auto, 72px 72px, 72px 72px;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 12, 14, 0.85));
}
.hero-in {
  position: relative; z-index: 4; flex: 1;
  width: 100%; max-width: var(--max); margin-inline: auto;
  padding: calc(var(--header-h) + clamp(1.5rem, 4vh, 3rem)) var(--pad) clamp(2rem, 5vh, 3.5rem);
  display: flex; flex-direction: column; justify-content: space-between; gap: clamp(2rem, 5vh, 3.5rem);
}
.hero-status {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem;
  color: var(--mut-d);
}
.hero-status .hs-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); animation: pulse 2.4s ease-in-out infinite; }
.hero-status .hs-sep { color: var(--acc); }
.hero-gauge {
  position: absolute; z-index: 1;
  top: 6%; right: max(-6rem, -8vw);
  width: clamp(16rem, 34vw, 30rem); height: auto;
  color: rgba(244, 242, 236, 0.16);
  pointer-events: none;
}
.hero-gauge path[stroke='#ff4d00'], .hero-gauge rect { opacity: 0.85; }
@media (max-width: 44em) { .hero-gauge { top: 10%; width: 15rem; opacity: 0.7; } }
.hero-top { margin-top: auto; }
.hero-top { display: flex; flex-direction: column; gap: 1.4rem; }
.hero-title {
  font-weight: 830; font-stretch: 122%;
  font-size: clamp(2.5rem, 10.6vw, 10.5rem);
  line-height: 0.88; letter-spacing: -0.02em; text-transform: uppercase;
}
.hero-title em, .section-title em, .cta-title em, .page-title em { font-style: normal; }
.hero-title .l1 { display: block; }
.hero-title .l2 { display: block; color: var(--acc); }
.hero-title .ghost {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(244, 242, 236, 0.5);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 4rem); align-items: end;
}
@media (max-width: 56em) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-meta .row { flex-wrap: wrap; gap: 0.3rem 1rem; }
  .hero-meta .k { min-width: 5.2rem; }
}
.hero-meta { display: grid; gap: 0.55rem; align-content: end; }
.hero-meta .row { display: flex; gap: 1rem; align-items: baseline; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; }
.hero-meta .k { color: var(--mut-d); min-width: 6.5rem; }
.hero-meta .v { color: var(--txt-d); }
.hero-lead { font-size: clamp(1.02rem, 1.35vw, 1.22rem); line-height: 1.65; color: #cfd2d6; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.5rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.95rem 1.6rem;
  font-weight: 650; font-size: 0.95rem; letter-spacing: 0.01em;
  text-decoration: none; border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn .arr { transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-solid { background: var(--acc); color: #fff; }
.btn-solid:hover { background: #ff6a26; }
.btn-ghost-d { border-color: var(--line-d); color: var(--txt-d); }
.btn-ghost-d:hover { border-color: var(--txt-d); }
.btn-ghost-l { border-color: var(--line-l); color: var(--ink); }
.btn-ghost-l:hover { background: var(--ink); color: var(--paper); }
.btn-solid-l { background: var(--ink); color: var(--paper); }
.btn-solid-l:hover { background: var(--acc); color: #fff; }

/* marquee */
.marquee {
  position: relative; z-index: 4;
  border-top: 1px solid var(--line-d);
  overflow: hidden; padding-block: 1.05rem;
  display: flex; user-select: none;
}
.marquee-track {
  display: flex; gap: 3rem; flex: none;
  padding-right: 3rem;
  animation: marquee 46s linear infinite;
}
.marquee span {
  font-family: var(--mono); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mut-d); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 3rem;
}
.marquee span::after { content: ''; width: 6px; height: 6px; background: var(--acc); flex: none; }
@keyframes marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ------------------------------------------------------------------ sections */
.section { padding-block: clamp(4.5rem, 11vh, 8.5rem); }
.section-light { background: var(--paper); color: var(--ink); }
.section-light-alt { background: var(--paper2); color: var(--ink); }
.section-dark { background: var(--bg0); color: var(--txt-d); }
.section-head { display: grid; gap: 1.3rem; margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }
.section-title {
  font-weight: 790; font-stretch: 116%; text-transform: uppercase;
  font-size: clamp(2.1rem, 5.2vw, 4.1rem);
  line-height: 0.95; letter-spacing: -0.01em;
  max-width: 20ch;
}
.section-title em { font-style: normal; color: var(--acc); }
.section-dark .section-title em { color: var(--acc); }

/* ledger — lista usług na stronie głównej */
.ledger { border-top: 1px solid var(--line-l); }
.ledger-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 16rem) 3rem;
  align-items: center; gap: 1.25rem;
  padding: 1.35rem 0.5rem;
  border-bottom: 1px solid var(--line-l);
  text-decoration: none; color: inherit;
  position: relative; isolation: isolate;
}
.ledger-row::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--ink); transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.35s var(--ease);
}
.ledger-row:is(:hover, :focus-visible)::before { transform: none; }
.ledger-row:is(:hover, :focus-visible) { color: var(--paper); }
.ledger-idx { font-family: var(--mono); font-size: 0.8rem; color: var(--acc-deep); transition: color 0.25s; }
.ledger-row:hover .ledger-idx { color: var(--acc); }
.ledger-name {
  font-weight: 740; font-stretch: 114%; text-transform: uppercase;
  font-size: clamp(1.25rem, 2.6vw, 2rem); line-height: 1.05; letter-spacing: 0;
}
.ledger-tag { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mut-l); transition: color 0.25s; }
.ledger-row:hover .ledger-tag { color: var(--mut-d); }
.ledger-arr { justify-self: end; transition: transform 0.3s var(--ease); }
.ledger-arr svg { width: 1.4rem; height: 1.4rem; }
.ledger-row:hover .ledger-arr { transform: translateX(5px); }
@media (max-width: 44em) {
  .ledger-row { grid-template-columns: 2.6rem minmax(0, 1fr) 2rem; }
  .ledger-tag { display: none; }
}

/* split — nagłówek przyklejony + treść */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5.5rem); align-items: start; }
.split-sticky { position: sticky; top: calc(var(--header-h) + 2rem); display: grid; gap: 1.3rem; }
@media (max-width: 56em) { .split { grid-template-columns: 1fr; } .split-sticky { position: static; } }

.prose-block p + p { margin-top: 1.1em; }
.prose-block strong { font-weight: 700; }

/* checklist */
.checklist { display: grid; gap: 0; margin-top: 1.6rem; border-top: 1px solid var(--line-l); }
.section-dark .checklist { border-color: var(--line-d); }
.checklist li {
  display: flex; gap: 1.1rem; align-items: baseline;
  padding: 1.05rem 0; border-bottom: 1px solid var(--line-l);
}
.section-dark .checklist li { border-color: var(--line-d); }
.checklist li::before {
  content: ''; flex: none; width: 9px; height: 9px; background: var(--acc);
  transform: translateY(-1px);
}

/* feature grid (o firmie) */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-l); border: 1px solid var(--line-l); margin: 2.2rem 0; }
.feature { background: var(--paper); padding: 1.6rem 1.4rem; display: grid; gap: 0.6rem; align-content: start; }
.feature-index { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; color: var(--acc-deep); letter-spacing: 0.14em; }
.feature h3 { font-weight: 740; font-stretch: 112%; text-transform: uppercase; font-size: 1.02rem; line-height: 1.2; }
.feature p { font-size: 0.92rem; line-height: 1.6; color: var(--mut-l); }
@media (max-width: 50em) { .feature-grid { grid-template-columns: 1fr; } }

/* dark band CTA (dla firm) */
.band { position: relative; overflow: hidden; overflow: clip; }
.band-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 56em) { .band-in { grid-template-columns: 1fr; } }
.band-num {
  position: absolute; right: -0.05em; bottom: -0.22em; z-index: 0;
  font-weight: 850; font-stretch: 125%; line-height: 1;
  font-size: clamp(9rem, 26vw, 22rem);
  color: transparent; -webkit-text-stroke: 1px rgba(244, 242, 236, 0.12);
  pointer-events: none; user-select: none;
}
.band .wrap { position: relative; z-index: 1; }

/* blog cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-l); border: 1px solid var(--line-l); }
@media (max-width: 56em) { .card-grid { grid-template-columns: 1fr; } }
.post-card {
  background: var(--paper); padding: 1.8rem 1.6rem 1.6rem;
  display: flex; flex-direction: column; gap: 1rem;
  text-decoration: none; color: inherit;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  min-height: 16rem;
}
.post-card:hover { background: var(--ink); color: var(--paper); }
.post-card .mono-label { color: var(--acc-deep); }
.post-card:hover .mono-label { color: var(--acc); }
.post-card h3 {
  font-weight: 740; font-stretch: 112%; text-transform: uppercase;
  font-size: 1.22rem; line-height: 1.14;
}
.post-card p { font-size: 0.92rem; line-height: 1.6; color: var(--mut-l); transition: color 0.3s; }
.post-card:hover p { color: var(--mut-d); }
.post-card .read { margin-top: auto; display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* ------------------------------------------------------------------ page hero (podstrony) */
.page-hero {
  background: var(--bg0); color: var(--txt-d);
  padding: calc(var(--header-h) + clamp(3rem, 8vh, 5.5rem)) 0 clamp(2.5rem, 6vh, 4rem);
  position: relative; overflow: hidden; overflow: clip;
}
.page-hero .hero-bg { opacity: 0.75; }
.page-hero-in { position: relative; z-index: 2; display: grid; gap: 1.4rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mut-d); }
.breadcrumbs a { color: var(--mut-d); text-decoration: none; transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--txt-d); }
.breadcrumbs .sep { color: var(--acc); }
.page-title {
  font-weight: 800; font-stretch: 118%; text-transform: uppercase;
  font-size: clamp(2.3rem, 6.5vw, 5.4rem);
  line-height: 0.94; letter-spacing: -0.012em;
  max-width: 18ch;
}
.page-lead { font-size: clamp(1.05rem, 1.4vw, 1.28rem); line-height: 1.6; color: #c7cacf; max-width: 44rem; }

/* ------------------------------------------------------------------ content layout (podstrony) */
.content-layout {
  display: grid; grid-template-columns: minmax(0, 8fr) minmax(16rem, 4fr);
  gap: clamp(2.5rem, 6vw, 6rem); align-items: start;
}
@media (max-width: 56em) { .content-layout { grid-template-columns: 1fr; } }

.prose { max-width: 44rem; counter-reset: h2; }
.prose > p:first-child { font-size: 1.15rem; line-height: 1.65; }
.prose p + p { margin-top: 1.15em; }
.prose h2 {
  counter-increment: h2;
  font-weight: 770; font-stretch: 114%; text-transform: uppercase;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem); line-height: 1.1;
  margin: 2.4em 0 0.85em;
  display: flex; gap: 0.9rem; align-items: baseline;
}
.prose h2::before {
  content: counter(h2, decimal-leading-zero);
  font-family: var(--mono); font-size: 0.78rem; font-weight: 500;
  color: var(--acc-deep); flex: none;
  transform: translateY(-0.15em);
}
.prose ul, .prose ol { margin: 1.15em 0; display: grid; gap: 0.55em; }
.prose ul li { padding-left: 1.6rem; position: relative; }
.prose ul li::before {
  content: ''; position: absolute; left: 0; top: 0.62em;
  width: 9px; height: 9px; background: var(--acc);
}
.prose ol { counter-reset: oli; }
.prose ol li { padding-left: 2.4rem; position: relative; counter-increment: oli; }
.prose ol li::before {
  content: counter(oli, decimal-leading-zero);
  position: absolute; left: 0; top: 0.25em;
  font-family: var(--mono); font-size: 0.76rem; font-weight: 500; color: var(--acc-deep);
}
.prose a { color: var(--acc-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.2s; }
.prose a:hover { color: var(--ink); }
.prose .lead-note { font-family: var(--mono); font-size: 0.8rem; color: var(--mut-l); }

/* aside */
.aside { position: sticky; top: calc(var(--header-h) + 2rem); display: grid; gap: 1.5rem; }
@media (max-width: 56em) { .aside { position: static; } }
.aside-card { border: 1px solid var(--line-l); padding: 1.6rem 1.5rem; display: grid; gap: 1.1rem; background: var(--paper); }
.aside-card.dark { background: var(--bg0); color: var(--txt-d); border-color: var(--bg0); }
.aside-card h3 { font-weight: 760; font-stretch: 114%; text-transform: uppercase; font-size: 1.05rem; line-height: 1.15; }
.aside-rows { display: grid; gap: 0.55rem; }
.aside-rows .row { display: flex; gap: 0.8rem; align-items: baseline; font-size: 0.9rem; }
.aside-rows .k { font-family: var(--mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mut-d); min-width: 4.6rem; flex: none; }
.aside-card.dark .aside-rows a { color: var(--txt-d); text-decoration: none; }
.aside-card.dark .aside-rows a:hover { color: var(--acc); }
.aside-phone {
  font-weight: 800; font-stretch: 116%; font-size: 1.45rem; line-height: 1.1;
  color: var(--acc); text-decoration: none; letter-spacing: 0.01em;
}
.aside-phone:hover { color: #ff6a26; }
.related-list { display: grid; }
.related-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.8rem 0.15rem; border-bottom: 1px solid var(--line-l);
  text-decoration: none; font-size: 0.92rem; font-weight: 600;
  transition: color 0.2s, padding-left 0.25s var(--ease);
}
.related-list a:first-child { border-top: 1px solid var(--line-l); }
.related-list a:hover { color: var(--acc-deep); padding-left: 0.55rem; }
.related-list a::after { content: '→'; color: var(--acc-deep); }

/* hub cards (zakres usług) */
.hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-l); border: 1px solid var(--line-l); }
@media (max-width: 50em) { .hub-grid { grid-template-columns: 1fr; } }
.hub-card {
  background: var(--paper); padding: 2rem 1.8rem;
  display: flex; flex-direction: column; gap: 0.9rem; min-height: 15rem;
  position: relative; text-decoration: none; color: inherit;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.hub-card:hover { background: var(--ink); color: var(--paper); }
.hub-idx { font-family: var(--mono); font-size: 0.74rem; font-weight: 500; color: var(--acc-deep); letter-spacing: 0.12em; }
.hub-card:hover .hub-idx { color: var(--acc); }
.hub-card h2, .hub-card h3 {
  font-weight: 760; font-stretch: 114%; text-transform: uppercase;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.08;
}
.hub-card p { font-size: 0.94rem; line-height: 1.62; color: var(--mut-l); transition: color 0.3s; }
.hub-card:hover p { color: var(--mut-d); }
.hub-subs { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: auto; }
.hub-subs a {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none;
  padding: 0.35rem 0.7rem; border: 1px solid var(--line-l); color: inherit;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  position: relative; z-index: 2;
}
.hub-card:hover .hub-subs a { border-color: var(--line-d); }
.hub-subs a:hover { background: var(--acc); border-color: var(--acc) !important; color: #fff; }
.hub-card .read { margin-top: auto; display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.hub-card .stretch { position: absolute; inset: 0; z-index: 1; }

/* blog listing rows */
.post-list { border-top: 1px solid var(--line-l); }
.post-row {
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) 3rem;
  gap: 1.5rem; align-items: start;
  padding: 2rem 0.5rem; border-bottom: 1px solid var(--line-l);
  text-decoration: none; color: inherit;
  position: relative; isolation: isolate;
}
.post-row::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--ink); transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.35s var(--ease);
}
.post-row:hover::before { transform: none; }
.post-row:hover { color: var(--paper); }
.post-row .idx { font-family: var(--mono); font-size: 0.8rem; color: var(--acc-deep); padding-top: 0.35rem; }
.post-row:hover .idx { color: var(--acc); }
.post-row h2 { font-weight: 750; font-stretch: 114%; text-transform: uppercase; font-size: clamp(1.2rem, 2.6vw, 1.8rem); line-height: 1.1; margin-bottom: 0.55rem; }
.post-row p { font-size: 0.95rem; color: var(--mut-l); max-width: 56ch; transition: color 0.3s; }
.post-row:hover p { color: var(--mut-d); }
.post-row .arr { justify-self: end; padding-top: 0.4rem; transition: transform 0.3s var(--ease); }
.post-row:hover .arr { transform: translateX(5px); }
@media (max-width: 44em) { .post-row { grid-template-columns: 2.6rem 1fr; } .post-row .arr { display: none; } }

/* ------------------------------------------------------------------ kontakt */
.contact-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
@media (max-width: 56em) { .contact-layout { grid-template-columns: 1fr; } }
.contact-list { display: grid; }
.contact-item { display: grid; gap: 0.3rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line-l); }
.contact-item:first-child { border-top: 1px solid var(--line-l); }
.contact-item .k { font-family: var(--mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mut-l); }
.contact-item .v { font-weight: 720; font-stretch: 112%; font-size: clamp(1.15rem, 2.2vw, 1.6rem); line-height: 1.2; }
.contact-item .v a { text-decoration: none; transition: color 0.2s; }
.contact-item .v a:hover { color: var(--acc-deep); }
.contact-item .v.accent a { color: var(--acc-deep); }
.contact-item .v.accent a:hover { color: var(--ink); }
.contact-item .note { font-size: 0.88rem; color: var(--mut-l); }
.maps-link { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.3rem; font-family: var(--mono); font-size: 0.76rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--acc); padding-bottom: 0.25rem; transition: color 0.2s; }
.maps-link:hover { color: var(--acc-deep); }

.form-card { border: 1px solid var(--line-l); padding: clamp(1.5rem, 3.5vw, 2.5rem); background: #fff; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 40em) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.45rem; }
.field label { font-family: var(--mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mut-l); }
.field label .req { color: var(--acc-deep); }
.field input, .field textarea {
  font: inherit; font-size: 0.98rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line-l); background: var(--paper);
  color: var(--ink); border-radius: 0;
  transition: border-color 0.2s;
  width: 100%;
}
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-color: var(--acc); }
.field input:focus, .field textarea:focus { border-color: var(--acc); }
.consent input:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.field textarea { min-height: 9rem; resize: vertical; }
.consent {
  display: flex; gap: 0.8rem; align-items: flex-start;
  font-family: var(--sans) !important; font-size: 0.82rem !important;
  letter-spacing: 0 !important; text-transform: none !important;
  line-height: 1.55; color: var(--mut-l); font-weight: 400;
}
.consent input { margin-top: 0.3rem; accent-color: var(--acc); width: 1.05rem; height: 1.05rem; flex: none; }
.consent a { color: var(--ink); }
.form-status { font-family: var(--mono); font-size: 0.8rem; padding: 0.9rem 1rem; border: 1px solid var(--line-l); display: none; }
.form-status.ok { display: block; border-color: #1c7c3c; color: #1c7c3c; }
.form-status.err { display: block; border-color: var(--acc-deep); color: var(--acc-deep); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ------------------------------------------------------------------ CTA + footer */
.cta-final { background: var(--bg0); color: var(--txt-d); position: relative; overflow: hidden; overflow: clip; }
.cta-final .hero-bg { opacity: 0.6; }
.cta-in { position: relative; z-index: 2; display: grid; gap: 2rem; padding-block: clamp(4.5rem, 12vh, 8rem); }
.cta-title {
  font-weight: 820; font-stretch: 120%; text-transform: uppercase;
  font-size: clamp(2.6rem, 8.5vw, 7.5rem); line-height: 0.9; letter-spacing: -0.015em;
}
.cta-title .ghost { color: transparent; -webkit-text-stroke: 1.5px rgba(244, 242, 236, 0.45); }
.cta-phone {
  font-weight: 800; font-stretch: 116%;
  font-size: clamp(1.8rem, 5vw, 3.6rem); line-height: 1;
  color: var(--acc); text-decoration: none; letter-spacing: 0.01em;
  display: inline-block; width: fit-content;
  transition: color 0.2s;
}
.cta-phone:hover { color: #ff6a26; }
.cta-meta { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--mut-d); }

.site-footer { background: var(--bg0); color: var(--txt-d); border-top: 1px solid var(--line-d); }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.5fr));
  gap: 2.5rem; padding-block: clamp(3rem, 7vh, 4.5rem);
}
@media (max-width: 56em) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 36em) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: grid; gap: 1rem; align-content: start; }
.footer-brand .brand-name { font-size: 1.3rem; }
.footer-brand p { font-size: 0.88rem; color: var(--mut-d); max-width: 26rem; line-height: 1.6; }
.footer-col h3 { font-family: var(--mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mut-d); margin-bottom: 1.1rem; }
.footer-col ul { display: grid; gap: 0.55rem; }
.footer-col a { font-size: 0.92rem; color: var(--txt-d); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--acc); }
.footer-col .addr { font-style: normal; font-size: 0.92rem; line-height: 1.7; color: var(--txt-d); }
.footer-col .addr a { display: inline; }
.footer-bottom {
  border-top: 1px solid var(--line-d);
  padding-block: 1.3rem;
  display: flex; flex-wrap: wrap; gap: 0.8rem 2.2rem; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--mut-d);
}
.footer-bottom a { color: var(--mut-d); text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--txt-d); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.6rem; }

/* ------------------------------------------------------------------ cookie bar */
.cookie-bar {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 115;
  width: calc(100% - 2rem); max-width: 23rem;
  background: var(--bg1); color: var(--txt-d);
  border: 1px solid var(--line-d);
  padding: 1.2rem 1.3rem;
  display: none; gap: 0.9rem; grid-template-columns: 1fr;
  font-size: 0.84rem; line-height: 1.55;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}
.cookie-bar.show { display: grid; }
body.nav-open .cookie-bar { display: none; }
.cookie-bar a { color: var(--acc); }
.cookie-bar .actions { display: flex; gap: 0.6rem; }
.cookie-bar button {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.55rem 1rem;
}
.cookie-bar .accept { background: var(--acc); color: #fff; }
.cookie-bar .accept:hover { background: #ff6a26; }

/* ------------------------------------------------------------------ misc */
.legal-prose { max-width: 46rem; }
.legal-prose h2 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
.legal-prose h3 { font-weight: 740; font-stretch: 112%; text-transform: uppercase; font-size: 1.02rem; margin: 1.8em 0 0.6em; }

.error-hero { min-height: 100vh; min-height: 100svh; display: grid; place-content: center; text-align: center; gap: 1.5rem; background: var(--bg0); color: var(--txt-d); padding: var(--pad); position: relative; overflow: hidden; overflow: clip; }
.error-code { font-weight: 850; font-stretch: 125%; font-size: clamp(6rem, 24vw, 16rem); line-height: 0.9; color: transparent; -webkit-text-stroke: 2px rgba(244,242,236,0.4); }
.error-hero .btn { justify-self: center; }

/* ==================================================================
   HOMEPAGE — nordic / scandinavian / apple-grade refinement
   ================================================================== */
body.home { background: #0c0d0f; }

/* buttons (nordic) */
.btn { border-radius: 2px; font-weight: 560; letter-spacing: -0.005em; }
.btn-primary { background: #fbfbf9; color: #14151a; }
.btn-primary:hover { background: var(--acc); color: #fff; }
.btn-line { border-color: rgba(255, 255, 255, 0.38); color: #fff; }
.btn-line:hover { background: #fbfbf9; border-color: #fbfbf9; color: #14151a; }

/* ---- hero ---- */
.lux-hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  background: #0c0d0f; color: #fff;
  overflow: hidden; overflow: clip;
}
.lux-hero-media { position: absolute; inset: 0; z-index: 0; }
.lux-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.lux-hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,9,11,0.92) 0%, rgba(8,9,11,0.6) 32%, rgba(8,9,11,0.12) 66%, rgba(8,9,11,0.34) 100%),
    linear-gradient(0deg, rgba(8,9,11,0.9) 0%, rgba(8,9,11,0.15) 42%, transparent 68%);
}
.lux-hero-in {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--max); margin-inline: auto;
  padding: calc(var(--header-h) + clamp(2rem, 6vh, 4rem)) var(--pad) clamp(1.75rem, 4.5vh, 3rem);
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: clamp(2.5rem, 8vh, 5.5rem);
}
.lux-hero-content { max-width: 42rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.overline {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.66);
  display: flex; align-items: center; gap: 0.85rem;
}
.overline::before { content: ''; width: 1.75rem; height: 1px; background: var(--acc); flex: none; }
.lux-hero-title {
  font-size: clamp(2.7rem, 6.6vw, 5.9rem);
  line-height: 1.0; letter-spacing: -0.035em; font-weight: 600; color: #fff;
  text-wrap: balance;
}
.lux-hero-lead {
  font-size: clamp(1.05rem, 1.45vw, 1.3rem); line-height: 1.6;
  color: rgba(255, 255, 255, 0.8); max-width: 36rem; font-weight: 350;
}
.lux-hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 0.6rem; }
.lux-hero-foot {
  display: flex; flex-wrap: wrap; gap: 0.9rem 3rem; align-items: center;
  padding-top: clamp(1.5rem, 4vh, 2.25rem);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.92rem; color: rgba(255, 255, 255, 0.82);
}
.lux-hero-foot a { color: #fff; text-decoration: none; transition: color 0.2s; }
.lux-hero-foot a:hover { color: var(--acc); }
.lh-k { font-family: var(--mono); font-size: 0.64rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); margin-right: 0.65rem; }
@media (max-width: 40em) {
  .lux-hero-foot { gap: 0.55rem 1.5rem; font-size: 0.85rem; }
  .lh-k { display: block; margin: 0 0 0.15rem; }
  .lux-hero-title { font-size: clamp(2.4rem, 11vw, 3.2rem); }
}

/* ---- homepage sections (light, airy) ---- */
body.home .section { padding-block: clamp(5rem, 13vh, 10rem); }
body.home .section-light { background: #f6f5f2; color: #16171b; }
body.home .section-light-alt { background: #ecebe6; color: #16171b; }
body.home .section-dark { background: #0c0d0f; color: var(--txt-d); }
body.home .section-dark.grain::after { opacity: 0.35; }

body.home .section-head { gap: 0; margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }
body.home .section-head.between { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
body.home .section-head .kicker { margin-bottom: 1.1rem; }
body.home .section-title {
  text-transform: none; font-stretch: normal; font-weight: 600;
  letter-spacing: -0.03em; line-height: 1.03;
  font-size: clamp(2rem, 4.6vw, 3.5rem); max-width: none;
}
body.home .section-title em { font-style: normal; color: #9aa0a8; }
body.home .kicker { color: #9a9aa0; }
body.home .kicker::before { background: var(--acc); }
body.home .muted { color: #6d7178; }
body.home .sub-h { font-weight: 600; font-stretch: normal; text-transform: none; letter-spacing: -0.02em; font-size: 1.4rem; line-height: 1.15; margin: 2.2em 0 0.7em; }
body.home .section-cta { margin-top: 2.5rem; }
.show-md { display: none; }
@media (min-width: 48em) { .show-md { display: inline-flex; } .hide-md { display: none; } }

/* prose in about */
body.home .prose-block { font-size: 1.075rem; line-height: 1.7; color: #33363c; max-width: 42rem; }
body.home .prose-block strong { color: #16171b; font-weight: 600; }

/* ---- services list (nordic) ---- */
body.home .ledger { border-top: 1px solid rgba(20, 21, 26, 0.12); }
body.home .ledger-row {
  grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 15rem) 2.5rem;
  padding: 1.7rem 0.75rem; gap: 1.5rem;
  border-bottom: 1px solid rgba(20, 21, 26, 0.12);
  transition: background 0.4s var(--ease), padding-left 0.35s var(--ease), color 0.3s var(--ease);
}
body.home .ledger-row::before { content: none; }
body.home .ledger-row:is(:hover, :focus-visible) { color: #16171b; background: rgba(20, 21, 26, 0.035); padding-left: 1.4rem; }
body.home .ledger-idx { color: #b6bbc2; font-size: 0.78rem; }
body.home .ledger-row:is(:hover, :focus-visible) .ledger-idx { color: var(--acc); }
body.home .ledger-name {
  text-transform: none; font-stretch: normal; font-weight: 540;
  letter-spacing: -0.025em; font-size: clamp(1.3rem, 2.5vw, 2rem); line-height: 1.1;
}
body.home .ledger-tag { color: #9297a0; }
body.home .ledger-row:is(:hover, :focus-visible) .ledger-tag { color: #6d7178; }
body.home .ledger-arr { color: #b6bbc2; }
body.home .ledger-row:is(:hover, :focus-visible) .ledger-arr { color: #16171b; }

/* ---- B2B band (dark) ---- */
body.home .band { overflow: hidden; overflow: clip; }
body.home .band-in { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: clamp(2rem, 5vw, 4rem); }
body.home .band-num {
  right: -0.03em; bottom: -0.28em;
  font-stretch: normal; font-weight: 700; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(244, 242, 236, 0.09);
}
@media (max-width: 52em) { body.home .band-in { grid-template-columns: 1fr; align-items: start; } }

/* ---- blog cards (nordic) ---- */
body.home .card-grid { background: transparent; border: 0; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 56em) { body.home .card-grid { grid-template-columns: 1fr; } }
body.home .post-card {
  background: #fbfbf9; border: 1px solid rgba(20, 21, 26, 0.1); border-radius: 4px;
  padding: 1.9rem 1.7rem 1.6rem; min-height: 15rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
body.home .post-card:hover { background: #fbfbf9; color: inherit; transform: translateY(-4px); box-shadow: 0 22px 50px -28px rgba(20, 21, 26, 0.4); border-color: rgba(20, 21, 26, 0.18); }
body.home .post-card .mono-label { color: #9a9aa0; }
body.home .post-card:hover .mono-label { color: var(--acc); }
body.home .post-card h3 { text-transform: none; font-stretch: normal; font-weight: 600; letter-spacing: -0.02em; font-size: 1.25rem; line-height: 1.2; }
body.home .post-card p { color: #6d7178; }
body.home .post-card:hover p { color: #6d7178; }
body.home .post-card .read { color: #16171b; }

/* checklist tint */
body.home .checklist { border-color: rgba(20, 21, 26, 0.12); }
body.home .checklist li { border-color: rgba(20, 21, 26, 0.12); }

/* ------------------------------------------------------------------ print */
@media print {
  .site-header, .nav-toggle, .mobile-menu, .cookie-bar, .marquee,
  .hero-bg, .hero-gauge, .band-num, .cta-final, .skip-link { display: none !important; }
  html, body { background: #fff !important; color: #000 !important; }
  .section, .page-hero, .hero, .site-footer,
  .section-dark, .section-light, .section-light-alt {
    background: #fff !important; color: #000 !important;
    padding-block: 1rem !important; min-height: auto !important;
  }
  .hero { min-height: auto !important; }
  .hero-title, .page-title, .section-title, .ledger-name,
  .prose, .prose h2, .aside, .footer-col a, .footer-col .addr,
  .hero-lead, .page-lead, .hero-meta .v, .hero-meta .k { color: #000 !important; -webkit-text-stroke: 0 !important; }
  .ledger-idx, .prose a, a { color: #000 !important; }
  a[href^="http"]::after, a[href^="tel:"]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
  .aside { position: static !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
