@import url('/assets/fonts.css');

/* ==========================================================================
   POSPIECH & PARTNERZY — ULTIMATE PREMIUM DESIGN SYSTEM
   Editorial Legal Luxury × Modern Digital Experience
   Stack: static HTML + CSS + vanilla JS. No external CDN (CSP: self only).
   Palette per brand direction: deep navy, champagne gold, ivory paper.
   ========================================================================== */

:root {
  /* Primary navy — almost black, never pure black */
  --navy-1000: #050b14;
  --navy-950: #07101f;
  --navy-900: #0b1729;
  --navy-850: #10203a;
  --navy-800: #162946;
  --navy-700: #1e3a5f;

  /* Premium gold — old gold / brass / champagne, never neon yellow */
  --gold-600: #b9922f;
  --gold-500: #c9a43b;
  --gold-400: #d8b955;
  --gold-300: #e4cd78;
  --gold-200: #f2df96;
  --gold-gradient: linear-gradient(110deg, #9f7928, #d7ba55, #f2df96, #bd9331);

  /* Light surfaces — premium paper, never pure white flat */
  --ivory: #f5f2eb;
  --paper: #faf9f6;
  --white: #ffffff;
  --border: #dedbd3;
  --border-dark: rgba(216, 185, 85, 0.22);
  --ink: #101521;
  --ink-soft: #2a3348;
  --muted: #667080;
  --muted-on-dark: #9aa3b5;
  --line-on-dark: rgba(245, 242, 235, 0.12);

  /* Type */
  --font-display: "Playfair Display", "Didot", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  /* Shape + motion */
  --radius: 14px;
  --radius-lg: 22px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-lux: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-1: 180ms;
  --dur-2: 420ms;
  --dur-3: 800ms;

  --shell: min(1320px, 100% - clamp(40px, 6vw, 96px));
  --header-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
html.lenis, html.lenis body { height: auto; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--navy-1000);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold-400); color: var(--navy-1000); }
:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--gold-400); color: var(--navy-1000);
  padding: 10px 18px; border-radius: 999px; font-weight: 700;
  text-decoration: none; transition: top var(--dur-1) var(--ease-out);
}
.skip-link:focus { top: 12px; }

.shell { width: var(--shell); margin-inline: auto; }
main { display: block; }

/* Micro labels — modern sans × classic serif motif */
.eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-600);
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; flex: none;
  background: linear-gradient(90deg, var(--gold-600), transparent);
}
.eyebrow--light { color: var(--gold-300); }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: ""; width: 28px; height: 1px;
  background: linear-gradient(-90deg, var(--gold-600), transparent);
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.display em, .gold-serif {
  font-style: italic;
  color: var(--gold-300);
}
.lead { font-size: clamp(17px, 1.4vw + 14px, 21px); line-height: 1.6; }
.muted { color: var(--muted); }
.on-dark .muted, .muted--light { color: var(--muted-on-dark); }

/* THE GOLD LINE — signature motif across the whole site */
.gold-line {
  height: 1px; border: 0;
  background: linear-gradient(90deg, transparent, rgba(201, 164, 59, 0.65), transparent);
  transform-origin: center;
}
.gold-line--draw { transform: scaleX(0); transition: transform 1.4s var(--ease-lux); }
.is-inview .gold-line--draw, .gold-line--draw.is-inview { transform: scaleX(1); }

/* Buttons — magnetic + animated fill + sliding arrow */
.btn {
  --btn-bg: transparent;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 17px 30px; border-radius: 999px;
  border: 1px solid var(--border-dark);
  font-weight: 700; font-size: 15px; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-1), box-shadow var(--dur-2);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform var(--dur-2) var(--ease-out); flex: none; }
.btn:hover svg { transform: translate(3px, -3px); }
.btn--gold {
  background: var(--gold-gradient);
  background-size: 160% 160%;
  border-color: rgba(159, 121, 40, 0.55);
  color: #1a1405;
  box-shadow: 0 10px 34px -12px rgba(201, 164, 59, 0.55);
}
.btn--gold:hover { box-shadow: 0 18px 46px -12px rgba(201, 164, 59, 0.7); }
.btn--ghost { color: var(--ivory); border-color: rgba(245, 242, 235, 0.3); background: rgba(245, 242, 235, 0.02); }
.btn--ghost:hover { border-color: var(--gold-400); background: rgba(216, 185, 85, 0.08); }
.btn--dark { background: var(--navy-950); color: var(--ivory); border-color: var(--navy-950); }
.btn--dark:hover { background: var(--navy-800); }
.btn--line { border-color: var(--border); color: var(--ink); background: transparent; }
.btn--line:hover { border-color: var(--gold-600); }
.btn--light { background: var(--ivory); color: var(--navy-950); border-color: var(--ivory); }
.link-slide {
  position: relative; text-decoration: none; font-weight: 700;
  background: linear-gradient(currentColor, currentColor) left bottom / 0% 1px no-repeat;
  transition: background-size var(--dur-2) var(--ease-out);
  padding-bottom: 2px;
}
.link-slide:hover { background-size: 100% 1px; }

/* Section scaffolding — dark/light/editorial dramaturgy.
   Każda sekcja ma miękkie statyczne „chmury” światła w kolorach strony. */
.section { position: relative; padding: clamp(84px, 9vw, 150px) 0; overflow: clip; }
.section--dark {
  background:
    /* główne chmury */
    radial-gradient(50% 42% at 10% 6%, rgba(30,58,95,0.38), transparent 70%),
    radial-gradient(42% 36% at 90% 96%, rgba(216,185,85,0.08), transparent 70%),
    /* rozproszone boczne świece — złote */
    radial-gradient(18% 14% at 96% 18%, rgba(216,185,85,0.14), transparent 70%),
    radial-gradient(16% 12% at 2% 84%, rgba(216,185,85,0.11), transparent 70%),
    radial-gradient(14% 11% at 94% 48%, rgba(216,185,85,0.10), transparent 70%),
    radial-gradient(12% 9% at 4% 52%, rgba(216,185,85,0.08), transparent 70%),
    /* białe/perłowe akcenty */
    radial-gradient(10% 8% at 98% 30%, rgba(245,242,235,0.06), transparent 70%),
    radial-gradient(8% 6% at 3% 70%, rgba(245,242,235,0.04), transparent 70%),
    var(--navy-950);
  color: var(--ivory);
}
.section--deep {
  background:
    radial-gradient(48% 40% at 90% 10%, rgba(30,58,95,0.42), transparent 70%),
    radial-gradient(44% 38% at 6% 92%, rgba(216,185,85,0.09), transparent 70%),
    radial-gradient(18% 14% at 94% 22%, rgba(216,185,85,0.13), transparent 70%),
    radial-gradient(15% 11% at 4% 78%, rgba(216,185,85,0.10), transparent 70%),
    radial-gradient(12% 10% at 97% 55%, rgba(216,185,85,0.09), transparent 70%),
    radial-gradient(10% 8% at 1% 45%, rgba(216,185,85,0.07), transparent 70%),
    radial-gradient(11% 9% at 98% 35%, rgba(245,242,235,0.05), transparent 70%),
    radial-gradient(9% 7% at 2% 65%, rgba(245,242,235,0.04), transparent 70%),
    var(--navy-1000);
  color: var(--ivory);
}
.section--light {
  background:
    radial-gradient(54% 38% at 86% 0%, rgba(201,164,59,0.09), transparent 70%),
    radial-gradient(52% 42% at 4% 100%, rgba(16,32,58,0.06), transparent 70%),
    radial-gradient(20% 15% at 96% 12%, rgba(216,185,85,0.12), transparent 70%),
    radial-gradient(18% 13% at 2% 88%, rgba(216,185,85,0.09), transparent 70%),
    radial-gradient(14% 11% at 94% 50%, rgba(216,185,85,0.08), transparent 70%),
    radial-gradient(12% 9% at 4% 48%, rgba(216,185,85,0.06), transparent 70%),
    radial-gradient(16% 12% at 98% 28%, rgba(245,242,235,0.10), transparent 70%),
    radial-gradient(14% 10% at 1% 72%, rgba(245,242,235,0.08), transparent 70%),
    var(--ivory);
  color: var(--ink);
}
.section--paper {
  background:
    radial-gradient(52% 36% at 8% 0%, rgba(201,164,59,0.10), transparent 70%),
    radial-gradient(48% 40% at 96% 100%, rgba(16,32,58,0.06), transparent 70%),
    radial-gradient(18% 14% at 95% 16%, rgba(216,185,85,0.11), transparent 70%),
    radial-gradient(16% 12% at 3% 84%, rgba(216,185,85,0.08), transparent 70%),
    radial-gradient(13% 10% at 97% 52%, rgba(216,185,85,0.07), transparent 70%),
    radial-gradient(11% 8% at 2% 46%, rgba(216,185,85,0.05), transparent 70%),
    radial-gradient(14% 11% at 98% 32%, rgba(245,242,235,0.12), transparent 70%),
    radial-gradient(12% 9% at 1% 68%, rgba(245,242,235,0.09), transparent 70%),
    var(--paper);
  color: var(--ink);
}
.section-head {
  display: grid; gap: 22px;
  max-width: 900px; margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(38px, 4.6vw, 68px); line-height: 1.04; letter-spacing: -0.02em;
  text-wrap: balance;
}
.section-head h2 em {
  font-style: italic; color: var(--gold-300);
}
.section-index {
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: 0.24em; font-weight: 700; text-transform: uppercase;
  color: var(--muted);
}
.section--dark .section-index { color: var(--muted-on-dark); }
.section-index::after { content: ""; height: 1px; width: 64px; background: var(--gold-gradient); opacity: 0.7; }

/* Paper grain + digital light — felt, not seen */
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}
.section--light.grain::after, .section--paper.grain::after { opacity: 0.035; mix-blend-mode: multiply; }
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(216, 185, 85, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 185, 85, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(75% 70% at 50% 30%, black 30%, transparent 100%);
}
.light-orb {
  position: absolute; border-radius: 50%; pointer-events: none; filter: blur(10px);
  background: radial-gradient(circle, rgba(216, 185, 85, 0.16), transparent 65%);
  width: min(720px, 80vw); aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

/* ---------- Intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 300;
  background: var(--navy-1000); color: var(--ivory);
  display: grid; place-items: center;
  transition: opacity 0.7s var(--ease-lux), visibility 0.7s;
}
.intro.is-done { opacity: 0; visibility: hidden; }
.intro-inner { text-align: center; display: grid; gap: 14px; justify-items: center; padding: 24px; }
.intro-brand {
  font-family: var(--font-display); font-size: clamp(26px, 4vw, 44px); letter-spacing: 0.08em;
  overflow: hidden;
}
.intro-brand span { display: inline-block; transform: translateY(110%); animation: introUp 0.9s var(--ease-lux) 0.1s forwards; }
.intro-sub {
  font-size: 11px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--gold-300);
  opacity: 0; animation: introFade 0.8s ease 0.55s forwards;
}
.intro-rule { width: min(320px, 60vw); }
.intro-rule line, .intro-rule path { stroke-dasharray: 400; stroke-dashoffset: 400; animation: introDraw 1.1s var(--ease-lux) 0.25s forwards; }
@keyframes introUp { to { transform: none; } }
@keyframes introFade { to { opacity: 1; } }
@keyframes introDraw { to { stroke-dashoffset: 0; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 120;
  transition: background var(--dur-2), border-color var(--dur-2), backdrop-filter var(--dur-2);
  border-bottom: 1px solid transparent;
}
.site-header .header-inner {
  width: var(--shell); margin-inline: auto;
  min-height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
  padding-block: 14px;
}
.site-header.is-scrolled {
  background: rgba(7, 16, 31, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: rgba(216, 185, 85, 0.16);
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 46px; height: auto; filter: drop-shadow(0 4px 14px rgba(0,0,0,0.4)); }
.brand-copy { display: grid; line-height: 1.05; color: var(--ivory); }
.brand-copy strong {
  font-family: var(--font-display); font-weight: 600;
  font-size: 17px; letter-spacing: 0.04em;
}
.brand-copy span { font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-300); }
.desktop-nav { display: flex; gap: clamp(16px, 2.4vw, 34px); margin-left: auto; }
.desktop-nav a {
  position: relative; text-decoration: none; color: rgba(245, 242, 235, 0.82);
  font-size: 14px; font-weight: 600; letter-spacing: 0.04em; padding: 8px 2px;
  transition: color var(--dur-1);
}
.desktop-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--gold-gradient); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-2) var(--ease-out);
}
.desktop-nav a:hover, .desktop-nav a.is-active { color: var(--ivory); }
.desktop-nav a:hover::after, .desktop-nav a.is-active::after { transform: scaleX(1); }
.header-contact { display: flex; align-items: center; gap: 18px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 9px;
  color: rgba(245,242,235,0.85); text-decoration: none; font-weight: 700; font-size: 14.5px;
}
.header-phone svg { width: 17px; height: 17px; color: var(--gold-300); }
.header-phone:hover { color: var(--gold-200); }
.header-cta { padding: 13px 24px; font-size: 14px; }
.menu-toggle {
  display: none; margin-left: auto;
  background: transparent; border: 1px solid rgba(245,242,235,0.25); border-radius: 999px;
  color: var(--ivory); padding: 11px 20px; font-weight: 700; font-size: 13px; letter-spacing: 0.12em;
  cursor: pointer; text-transform: uppercase;
}
.menu-toggle:hover { border-color: var(--gold-400); }

/* Fullscreen mobile overlay */
.mobile-overlay {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(5, 11, 20, 0.97);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  display: grid; align-content: start; gap: 8px;
  padding: calc(var(--header-h) + 28px) clamp(24px, 7vw, 60px) 40px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.65s var(--ease-lux), visibility 0.65s;
  visibility: hidden;
}
.mobile-overlay.is-open { clip-path: inset(0); visibility: visible; }
.mobile-overlay nav { display: grid; border-top: 1px solid var(--line-on-dark); }
.mobile-overlay nav a {
  display: flex; align-items: baseline; gap: 18px;
  padding: 18px 4px; text-decoration: none; color: var(--ivory);
  border-bottom: 1px solid var(--line-on-dark);
  font-family: var(--font-display); font-size: clamp(26px, 7vw, 40px);
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color 0.2s;
}
.mobile-overlay.is-open nav a { opacity: 1; transform: none; }
.mobile-overlay nav a small {
  font-family: var(--font-body); font-size: 11px; letter-spacing: 0.2em; color: var(--gold-300);
}
.mobile-overlay nav a:hover { color: var(--gold-200); }
.mobile-overlay .overlay-contact {
  display: grid; gap: 6px; margin-top: 26px; color: var(--muted-on-dark);
}
.mobile-overlay .overlay-contact a { color: var(--ivory); text-decoration: none; font-weight: 700; font-size: 19px; }
/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; align-items: end;
  color: var(--ivory);
  /* Tło: Twoje zdjęcie + ciemne przyciemnienie po lewej (pod tekst) + rozproszone światła */
  background:
    linear-gradient(90deg, rgba(5,11,20,0.92) 0%, rgba(5,11,20,0.78) 28%, rgba(5,11,20,0.52) 55%, rgba(5,11,20,0.20) 78%, rgba(5,11,20,0.08) 100%),
    linear-gradient(0deg, var(--navy-1000) 0%, rgba(5,11,20,0) 22%),
    url('/images/hero-custom.jpg') 62% 35% / cover no-repeat,
    /* Rozproszone złote mgiełki */
    radial-gradient(22% 18% at 84% 78%, rgba(216,185,85,0.18), transparent 70%),
    radial-gradient(18% 14% at 12% 82%, rgba(216,185,85,0.10), transparent 70%),
    radial-gradient(15% 12% at 88% 18%, rgba(216,185,85,0.12), transparent 70%),
    radial-gradient(12% 10% at 6% 14%, rgba(216,185,85,0.07), transparent 70%),
    /* Chłodne granatowe poświaty */
    radial-gradient(28% 22% at 92% 5%, rgba(30,58,95,0.45), transparent 70%),
    radial-gradient(20% 16% at 4% 6%, rgba(30,58,95,0.35), transparent 70%),
    var(--navy-1000);
  padding: calc(var(--header-h) + clamp(30px, 5vw, 70px)) 0 clamp(40px, 5vw, 64px);
  overflow: clip;
}
.hero .grid-bg { display: none; }
.spec .grid-bg, .privilege .grid-bg { display: none; }
.hero h1, .hero-sub { text-shadow: 0 2px 34px rgba(0,0,0,0.55); }

.hero-lights {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(circle at 88% 84%, rgba(216,185,85,0.06) 0%, transparent 40%),
    radial-gradient(circle at 8% 88%, rgba(216,185,85,0.04) 0%, transparent 45%),
    radial-gradient(circle at 92% 12%, rgba(30,58,95,0.12) 0%, transparent 35%),
    radial-gradient(circle at 6% 16%, rgba(30,58,95,0.08) 0%, transparent 40%);
}
.hero-copy { position: relative; z-index: 1; }

.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 840px);
  gap: clamp(36px, 5vw, 80px); align-items: center;
}
.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 700;
  color: var(--gold-300);
  padding-bottom: 20px; margin-bottom: 24px;
  border-bottom: 1px solid rgba(216, 185, 85, 0.22);
}
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold-500); }
.hero h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(42px, 5.8vw, 88px);
  line-height: 1.02; letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero h1 .line > span { display: block; transform: translateY(110%); }
html.is-ready .hero h1 .line > span { animation: heroUp 1s var(--ease-lux) forwards; }
html.is-ready .hero h1 .line:nth-child(2) > span { animation-delay: 0.1s; }
html.is-ready .hero h1 .line:nth-child(3) > span { animation-delay: 0.2s; }
@keyframes heroUp { to { transform: none; } }
.hero h1 em {
  font-style: italic; font-weight: 400;
  color: var(--gold-300);
}
.hero-sub {
  margin-top: 22px; max-width: 580px;
  font-size: clamp(16px, 1.2vw + 13px, 19px);
  color: rgba(245, 242, 235, 0.82); line-height: 1.65;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-proof {
  display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 30px; padding-top: 24px;
  border-top: 1px solid var(--line-on-dark);
  color: var(--muted-on-dark); font-size: 14px;
}
.hero-proof strong { color: var(--ivory); font-weight: 700; }
.hero-proof li { list-style: none; display: flex; gap: 10px; align-items: center; }
.hero-proof ul { display: contents; }
.hero-proof svg { width: 16px; height: 16px; color: var(--gold-400); flex: none; }
.hero-note {
  margin-top: 24px; font-family: var(--font-display); font-style: italic;
  font-size: 18px; color: var(--gold-200);
}
.hero-scroll {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 16px; margin-top: clamp(36px, 5vw, 60px);
  color: var(--muted-on-dark); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 700;
}
.hero-scroll .track { width: 1px; height: 56px; background: rgba(245,242,235,0.18); position: relative; overflow: hidden; }
.hero-scroll .track::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%;
  background: var(--gold-400); animation: scrollDrop 2.2s var(--ease-lux) infinite;
}
@keyframes scrollDrop { to { top: 110%; } }

/* THE SEAL — digital signet, slow rotation, cursor parallax */
.seal-wrap { position: relative; display: grid; justify-items: center; gap: 22px; }
.seal {
  --seal-size: min(430px, 78vw);
  position: relative; width: var(--seal-size); aspect-ratio: 1;
  display: grid; place-items: center;
  transition: transform 0.3s ease-out;
  will-change: transform;
}
.seal-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(216, 185, 85, 0.35);
}
.seal-ring--2 { inset: 7%; border-color: rgba(216, 185, 85, 0.2); }
.seal-ring--3 { inset: 15%; border-color: rgba(245, 242, 235, 0.12); background: radial-gradient(circle at 50% 32%, rgba(30,58,95,0.5), rgba(7,16,31,0.6) 70%); }
.seal-orbit { position: absolute; inset: 0; animation: sealSpin 90s linear infinite; }
.seal-orbit--rev { animation: sealSpinRev 120s linear infinite; }
@keyframes sealSpin { to { transform: rotate(360deg); } }
@keyframes sealSpinRev { to { transform: rotate(-360deg); } }
.seal-orbit i {
  position: absolute; top: -3px; left: 50%; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-400); box-shadow: 0 0 18px rgba(216,185,85,0.9);
}
.seal-core { text-align: center; display: grid; gap: 8px; justify-items: center; padding: 20px; }
.seal-mono {
  font-family: var(--font-display); font-size: clamp(54px, 6vw, 84px); line-height: 1;
  color: var(--gold-300);
}
.seal-year { font-size: 12px; letter-spacing: 0.5em; text-indent: 0.5em; color: var(--gold-300); font-weight: 700; }
.seal-name { font-size: 10.5px; letter-spacing: 0.32em; text-indent: 0.32em; text-transform: uppercase; color: rgba(245,242,235,0.6); }
.seal-caption {
  max-width: 340px; text-align: center;
  color: var(--muted-on-dark); font-size: 13.5px; line-height: 1.7;
}
.seal-caption strong { color: var(--gold-200); }

/* ---------- Numbers / heritage strip ---------- */
.numbers {
  background:
    radial-gradient(44% 90% at 95% 50%, rgba(216,185,85,0.08), transparent 70%),
    radial-gradient(40% 100% at 0% 50%, rgba(30,58,95,0.45), transparent 70%),
    /* rozproszone boczne świece */
    radial-gradient(16% 12% at 96% 20%, rgba(216,185,85,0.13), transparent 70%),
    radial-gradient(14% 10% at 2% 82%, rgba(216,185,85,0.10), transparent 70%),
    radial-gradient(12% 9% at 97% 48%, rgba(216,185,85,0.08), transparent 70%),
    radial-gradient(10% 8% at 3% 52%, rgba(216,185,85,0.06), transparent 70%),
    radial-gradient(11% 9% at 98% 32%, rgba(245,242,235,0.06), transparent 70%),
    radial-gradient(9% 7% at 1% 68%, rgba(245,242,235,0.04), transparent 70%),
    var(--navy-950);
  color: var(--ivory);
  border-top: 1px solid rgba(216,185,85,0.18);
  position: relative;
}
.numbers-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.number-cell {
  padding: clamp(38px, 4.5vw, 64px) clamp(24px, 3vw, 48px);
  border-left: 1px solid var(--line-on-dark);
  position: relative; overflow: hidden;
  transition: background var(--dur-2);
}
.number-cell:first-child { border-left: 0; }
.number-cell:hover { background: rgba(216, 185, 85, 0.04); }
.number-cell .bignum {
  font-family: var(--font-display);
  font-size: clamp(54px, 6vw, 96px); line-height: 1; letter-spacing: -0.02em;
}
.number-cell .bignum em {
  font-style: italic; color: var(--gold-300);
}
.number-cell h3 {
  margin-top: 12px; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700;
  color: var(--gold-300);
}
.number-cell p { margin-top: 10px; color: var(--muted-on-dark); font-size: 15px; max-width: 34ch; }
.number-cell::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--gold-gradient); transform: scaleX(0); transform-origin: left;
  transition: transform 1s var(--ease-lux);
}
.number-cell.is-inview::after { transform: scaleX(1); }

/* ---------- Story ---------- */
.story-grid {
  display: grid; grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(36px, 5vw, 90px); align-items: start;
}
.story-sticky { position: sticky; top: calc(var(--header-h) + 32px); }
.story-sticky h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(36px, 4.2vw, 62px); line-height: 1.05; letter-spacing: -0.02em;
  margin-top: 18px; text-wrap: balance;
}
.story-copy { display: grid; gap: 20px; font-size: 18px; color: var(--ink-soft); }
.story-copy p:first-child::first-letter {
  font-family: var(--font-display); font-size: 3.4em; line-height: 0.85;
  float: left; margin: 6px 12px 0 0; color: var(--navy-900);
}
.story-copy strong { color: var(--ink); }
.values-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; margin-top: clamp(40px, 5vw, 64px);
}
.value-cell { background: var(--paper); padding: clamp(26px, 3vw, 40px); transition: background var(--dur-2); }
.value-cell:hover { background: var(--white); }
.value-cell .vnum { font-size: 11px; letter-spacing: 0.24em; font-weight: 700; color: var(--gold-600); }
.value-cell h3 { font-family: var(--font-display); font-size: 24px; margin: 12px 0 10px; font-weight: 600; }
.value-cell p { color: var(--muted); font-size: 15.5px; }
.timeline {
  margin-top: clamp(48px, 6vw, 84px);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--navy-950); color: var(--ivory);
  padding: clamp(30px, 4vw, 54px);
  position: relative; overflow: hidden;
}
.timeline-track { position: relative; margin-top: 30px; padding-left: 30px; display: grid; gap: 30px; }
.timeline-track::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 1px;
  background: rgba(245,242,235,0.15);
}
.timeline-progress {
  position: absolute; left: 8px; top: 6px; width: 1px; height: 0;
  background: var(--gold-gradient); box-shadow: 0 0 12px rgba(216,185,85,0.7);
}
.timeline-item { position: relative; }
.timeline-item::before {
  content: ""; position: absolute; left: -27px; top: 7px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--navy-950); border: 2px solid var(--gold-400);
}
.timeline-item .tyear { font-size: 11px; letter-spacing: 0.26em; font-weight: 700; color: var(--gold-300); }
.timeline-item h3 { font-family: var(--font-display); font-size: 24px; margin: 6px 0; }
.timeline-item p { color: var(--muted-on-dark); font-size: 15.5px; max-width: 62ch; }

/* ---------- Specializations explorer ---------- */
.spec { background: var(--navy-1000); color: var(--ivory); }
.spec-layout {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 72px); align-items: start;
  margin-top: clamp(30px, 4vw, 50px);
}
.spec-list { border-top: 1px solid var(--line-on-dark); }
.spec-item { border-bottom: 1px solid var(--line-on-dark); }
.spec-btn {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: grid; grid-template-columns: 64px 1fr 40px; align-items: center; gap: 18px;
  padding: 24px 6px; color: var(--ivory);
}
.spec-num {
  font-family: var(--font-display); font-size: 22px; font-style: italic;
  color: var(--muted-on-dark); transition: color var(--dur-1), transform var(--dur-2) var(--ease-out);
}
.spec-btn:hover .spec-num, .spec-item.is-open .spec-num { color: var(--gold-300); transform: translateX(6px); }
.spec-name { font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 28px); line-height: 1.2; transition: transform var(--dur-2) var(--ease-out); }
.spec-btn:hover .spec-name { transform: translateX(8px); }
.spec-plus {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(245,242,235,0.25);
  display: grid; place-items: center; font-size: 20px; font-weight: 300; line-height: 1;
  transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-1), background var(--dur-1);
}
.spec-item.is-open .spec-plus { transform: rotate(45deg); border-color: var(--gold-400); background: rgba(216,185,85,0.1); }
.spec-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease-lux); }
.spec-item.is-open .spec-panel { grid-template-rows: 1fr; }
.spec-panel-inner { overflow: hidden; }
.spec-panel-body { padding: 0 6px 30px 82px; display: grid; gap: 16px; }
.spec-panel-body p { color: var(--muted-on-dark); font-size: 16px; max-width: 56ch; }
.spec-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.spec-tags li {
  list-style: none; font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em;
  border: 1px solid rgba(216,185,85,0.3); border-radius: 999px; padding: 7px 14px;
  color: var(--gold-200); background: rgba(216,185,85,0.06);
}
.spec-panel-body ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; }
.spec-detail {
  position: sticky; top: calc(var(--header-h) + 32px);
  border: 1px solid rgba(216,185,85,0.25); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(22,41,70,0.7), rgba(7,16,31,0.9));
  padding: clamp(28px, 3.4vw, 44px);
  min-height: 420px; display: grid; align-content: start; gap: 18px;
  overflow: hidden;
}
.spec-detail::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 45% at 80% 0%, rgba(216,185,85,0.14), transparent 70%);
}
.spec-detail .dnum { font-family: var(--font-display); font-style: italic; font-size: 20px; color: var(--gold-300); }
.spec-detail h3 { font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px); line-height: 1.08; }
.spec-detail p { color: var(--muted-on-dark); }
.spec-note {
  margin-top: clamp(26px, 3vw, 40px); padding: 18px 22px;
  border-left: 2px solid var(--gold-500); background: rgba(216,185,85,0.06); border-radius: 0 12px 12px 0;
  color: var(--muted-on-dark); font-size: 14.5px;
}
.spec-note strong { color: var(--gold-200); }
.spec-collab {
  font-size: 14px; color: rgba(245,242,235,0.68);
  border-left: 2px solid rgba(216,185,85,0.5); padding-left: 14px;
}
.spec-collab strong { color: var(--gold-200); }

/* ---------- Business ---------- */
.biz-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 5vw, 80px); align-items: start;
}
.biz-copy { display: grid; gap: 18px; align-content: start; }
.biz-copy h2 { font-family: var(--font-display); font-size: clamp(36px, 4.4vw, 64px); line-height: 1.04; margin-top: 18px; }
.biz-benefits { display: grid; gap: 0; margin-top: 12px; border-top: 1px solid var(--border); }
.biz-benefits li { list-style: none; display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--border); align-items: start; }
.biz-benefits svg { width: 20px; height: 20px; color: var(--gold-600); margin-top: 3px; }
.biz-benefits strong { display: block; font-size: 16.5px; }
.biz-benefits span { color: var(--muted); font-size: 15px; }
.matrix {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  counter-reset: matrix;
}
.matrix-card {
  position: relative; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--paper); padding: 26px 24px 24px;
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2), border-color var(--dur-1);
  overflow: hidden;
}
.matrix-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--gold-gradient); transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s var(--ease-lux);
}
.matrix-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(11,23,41,0.35); border-color: rgba(185,146,47,0.5); }
.matrix-card:hover::before { transform: scaleX(1); }
.matrix-card .mnum { font-size: 11px; letter-spacing: 0.22em; font-weight: 700; color: var(--gold-600); }
.matrix-card h3 { font-family: var(--font-display); font-size: 21px; margin: 10px 0 8px; }
.matrix-card p { font-size: 14.5px; color: var(--muted); }

/* ---------- Team ---------- */
.team-list { display: grid; gap: clamp(22px, 3vw, 36px); margin-top: clamp(30px, 4vw, 54px); }
.profile {
  position: relative; display: grid; grid-template-columns: 150px 1fr 1fr;
  gap: clamp(24px, 4vw, 60px);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--paper); padding: clamp(28px, 4vw, 52px);
  overflow: hidden;
  transition: box-shadow var(--dur-2), transform var(--dur-2) var(--ease-out);
}
.profile:hover { box-shadow: 0 30px 70px -34px rgba(11,23,41,0.35); }
.profile .ghost-num {
  position: absolute; right: 8px; bottom: -38px;
  font-family: var(--font-display); font-size: clamp(140px, 18vw, 240px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(16,32,58,0.12);
  pointer-events: none; user-select: none;
}
.profile-mono {
  width: 132px; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 40px;
  color: var(--gold-200); background: radial-gradient(circle at 35% 30%, var(--navy-700), var(--navy-950) 75%);
  border: 1px solid rgba(185,146,47,0.5);
  box-shadow: inset 0 0 0 8px rgba(216,185,85,0.08);
}
.profile-role { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 700; color: var(--gold-600); }
.profile h3 { font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; margin: 10px 0 6px; }
.profile .since { color: var(--muted); font-size: 14.5px; }
.profile-desc { color: var(--ink-soft); font-size: 16.5px; display: grid; gap: 14px; align-content: start; }
.profile-tags { display: grid; gap: 10px; align-content: start; border-left: 1px solid var(--border); padding-left: clamp(20px, 3vw, 40px); }
.profile-tags h4 { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.profile-tags ul { display: grid; gap: 8px; padding: 0; }
.profile-tags li { list-style: none; font-size: 15px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.profile-tags li::before { content: ""; width: 14px; height: 1px; background: var(--gold-600); flex: none; }
.generations {
  margin-top: clamp(30px, 4vw, 50px);
  background: var(--navy-950); color: var(--ivory);
  border-radius: var(--radius-lg); padding: clamp(30px, 4vw, 54px);
  display: grid; grid-template-columns: 1fr 80px 1fr; gap: 24px; align-items: center; text-align: center;
  position: relative; overflow: hidden;
}
.generations h3 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 38px); }
.generations .gyear { color: var(--gold-300); font-size: 12px; letter-spacing: 0.3em; font-weight: 700; }
.generations .gen-line { width: 1px; height: 120px; margin-inline: auto; background: rgba(245,242,235,0.15); position: relative; }
.generations .gen-line::after {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 0;
  background: var(--gold-gradient);
}
.generations.is-inview .gen-line::after { animation: genFill 1.8s var(--ease-lux) 0.3s forwards; }
@keyframes genFill { to { height: 100%; } }

/* ---------- First visit ---------- */
.visit-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 5vw, 90px); align-items: start; }
.visit-sticky { position: sticky; top: calc(var(--header-h) + 32px); }
.visit-sticky h2 { font-family: var(--font-display); font-size: clamp(36px, 4.4vw, 64px); line-height: 1.04; margin: 18px 0; }
.visit-steps { display: grid; gap: 16px; counter-reset: step; }
.visit-step {
  position: relative; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--paper); padding: clamp(26px, 3vw, 38px) clamp(24px, 3vw, 38px) clamp(26px, 3vw, 38px) clamp(96px, 10vw, 130px);
  overflow: hidden; transition: border-color var(--dur-1), box-shadow var(--dur-2);
}
.visit-step:hover { border-color: rgba(185,146,47,0.55); box-shadow: 0 24px 60px -30px rgba(11,23,41,0.3); }
.visit-step .step-bg {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-size: clamp(64px, 7vw, 96px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(185,146,47,0.45);
}
.visit-step h3 { font-family: var(--font-display); font-size: 24px; margin-bottom: 8px; }
.visit-step p { color: var(--muted); font-size: 16px; max-width: 52ch; }
.visit-progress { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 12px; letter-spacing: 0.2em; font-weight: 700; color: var(--muted); }
.visit-progress .bar { flex: 1; height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.visit-progress .bar i { display: block; height: 100%; width: 0; background: var(--gold-gradient); transition: width 0.4s var(--ease-out); }

/* ---------- Privilege ---------- */
.privilege { text-align: center; }
.privilege-frame {
  position: relative; max-width: 1000px; margin-inline: auto;
  border: 1px solid rgba(216,185,85,0.3); border-radius: var(--radius-lg);
  padding: clamp(48px, 7vw, 96px) clamp(28px, 6vw, 90px);
  background: linear-gradient(170deg, rgba(22,41,70,0.55), rgba(5,11,20,0.4));
  overflow: hidden;
}
.privilege-frame svg.shield { width: 44px; height: 44px; color: var(--gold-300); margin: 0 auto 26px; }
.privilege h2 { font-family: var(--font-display); font-size: clamp(36px, 5.4vw, 76px); line-height: 1.06; text-wrap: balance; }
.privilege p { margin: 24px auto 0; max-width: 62ch; color: var(--muted-on-dark); font-size: 17px; }
.privilege-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 32px; color: var(--gold-200); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; }
.privilege-badges span { display: inline-flex; align-items: center; gap: 10px; }
.privilege-badges i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); }

/* ---------- Reviews ---------- */
.reviews-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; }
.stars { color: var(--gold-500); letter-spacing: 4px; font-size: 18px; }
.review-viewport { overflow: hidden; margin-top: 34px; cursor: grab; border-radius: var(--radius-lg); }
.review-viewport:active { cursor: grabbing; }
.review-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(560px, 86vw); gap: 18px; transition: transform 0.6s var(--ease-lux); }
.review-card {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 38px); display: grid; gap: 16px; align-content: start;
  user-select: none;
}
.review-card blockquote { font-family: var(--font-display); font-size: clamp(19px, 2vw, 24px); line-height: 1.45; }
.review-card figcaption { color: var(--muted); font-size: 14.5px; }
.review-card .g-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.review-empty {
  border: 1px dashed rgba(185,146,47,0.55); border-radius: var(--radius-lg);
  background: rgba(185,146,47,0.05); padding: clamp(30px, 4vw, 48px);
  display: grid; gap: 14px; margin-top: 34px; max-width: 860px;
}
.review-empty p { color: var(--muted); font-size: 16px; }
.review-nav { display: flex; gap: 10px; }
.review-nav button {
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--border); background: var(--paper);
  display: grid; place-items: center; transition: border-color var(--dur-1), transform var(--dur-1);
}
.review-nav button:hover { border-color: var(--gold-600); transform: translateY(-2px); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-card {
  background: var(--navy-950); color: var(--ivory); border-radius: var(--radius-lg);
  padding: clamp(30px, 3.6vw, 46px); display: grid; gap: 24px;
  position: sticky; top: calc(var(--header-h) + 32px);
  overflow: hidden;
}
.contact-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 40% at 100% 0%, rgba(216,185,85,0.16), transparent 70%);
}
.contact-row { display: grid; gap: 6px; padding-top: 20px; border-top: 1px solid var(--line-on-dark); }
.contact-row:first-of-type { border-top: 0; padding-top: 0; }
.contact-row .k { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 700; color: var(--gold-300); }
.contact-row a { color: var(--ivory); text-decoration: none; font-weight: 700; font-size: 19px; }
.contact-row a:hover { color: var(--gold-200); }
.contact-row address { font-style: normal; font-size: 16px; color: rgba(245,242,235,0.85); }
.contact-row small { color: var(--muted-on-dark); font-size: 13.5px; }
.form-panel {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(30px, 4vw, 52px); position: relative; overflow: hidden;
  box-shadow: 0 40px 90px -50px rgba(11,23,41,0.35);
}
.form-panel::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--gold-gradient);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 700; letter-spacing: 0.02em; }
.field label small { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; width: 100%;
  transition: border-color var(--dur-1), box-shadow var(--dur-1);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-600);
  box-shadow: 0 0 0 4px rgba(201,164,59,0.14);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b0442f; }
.field-error { font-size: 13.5px; color: #8f3524; min-height: 1.2em; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14px; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold-600); }
.consent a { color: var(--navy-800); font-weight: 700; }
.form-status { font-size: 15px; font-weight: 600; border-radius: 10px; padding: 0; }
.form-status.success { color: #2c5c34; }
.form-status.error { color: #8f3524; }

/* ---------- Footer ---------- */
.site-footer {
  background:
    radial-gradient(46% 30% at 8% 0%, rgba(216,185,85,0.07), transparent 70%),
    radial-gradient(50% 36% at 95% 100%, rgba(30,58,95,0.4), transparent 70%),
    /* rozproszone boczne świece */
    radial-gradient(16% 12% at 96% 18%, rgba(216,185,85,0.11), transparent 70%),
    radial-gradient(14% 10% at 2% 84%, rgba(216,185,85,0.08), transparent 70%),
    radial-gradient(12% 9% at 97% 46%, rgba(216,185,85,0.06), transparent 70%),
    radial-gradient(10% 8% at 3% 54%, rgba(216,185,85,0.05), transparent 70%),
    radial-gradient(11% 9% at 98% 30%, rgba(245,242,235,0.06), transparent 70%),
    radial-gradient(9% 7% at 1% 70%, rgba(245,242,235,0.04), transparent 70%),
    var(--navy-1000);
  color: var(--ivory); padding: clamp(64px, 7vw, 110px) 0 0; position: relative; overflow: hidden;
}
.footer-word {
  font-family: var(--font-display);
  font-size: clamp(44px, 8.4vw, 128px); line-height: 0.95; letter-spacing: -0.02em;
  text-wrap: balance;
}
.footer-word em {
  font-style: italic; color: var(--gold-300);
}
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 0.9fr;
  gap: clamp(28px, 4vw, 60px);
  margin-top: clamp(40px, 5vw, 70px); padding-top: clamp(30px, 4vw, 48px);
  border-top: 1px solid var(--line-on-dark);
}
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-brand img { width: 64px; }
.footer-brand p { color: var(--muted-on-dark); font-size: 15px; max-width: 30ch; }
.footer-col h3, .footer-label {
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 700; color: var(--gold-300);
  margin-bottom: 16px;
}
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col a { color: rgba(245,242,235,0.8); text-decoration: none; font-size: 15.5px; }
.footer-col a:hover { color: var(--gold-200); }
.footer-col address { font-style: normal; color: rgba(245,242,235,0.8); font-size: 15.5px; }
.footer-col small { color: var(--muted-on-dark); font-size: 13px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px;
  margin-top: clamp(36px, 4vw, 56px); padding: 24px 0 30px;
  border-top: 1px solid var(--line-on-dark);
  color: var(--muted-on-dark); font-size: 13.5px;
}
.footer-bottom .spacer { flex: 1; }
.footer-bottom a { color: var(--muted-on-dark); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.footer-bottom a:hover { color: var(--gold-200); }
.mobile-contact-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 100;
  display: none; gap: 10px;
}
.mobile-contact-bar a {
  flex: 1; display: inline-flex; justify-content: center; align-items: center; gap: 10px;
  background: rgba(7,16,31,0.9); color: var(--ivory); text-decoration: none; font-weight: 700;
  border: 1px solid rgba(216,185,85,0.4); border-radius: 999px; padding: 15px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.mobile-contact-bar a:first-child { background: var(--gold-gradient); color: #1a1405; border-color: transparent; }
.mobile-contact-bar svg { width: 18px; height: 18px; }

/* ---------- Reveal system ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-lux), transform 0.9s var(--ease-lux); }
[data-reveal].is-inview { opacity: 1; transform: none; }
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="left"].is-inview, [data-reveal="right"].is-inview { transform: none; }
.mask-line { display: block; overflow: hidden; }
.mask-line > span { display: block; transform: translateY(112%); transition: transform 1s var(--ease-lux); }
.is-inview .mask-line > span { transform: none; }

/* Custom cursor removed per client feedback — native cursor retained. */

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-phone { display: none; }
  .hero-grid, .story-grid, .spec-layout, .biz-grid, .visit-grid, .contact-grid { grid-template-columns: 1fr; }
  .story-sticky, .spec-detail, .visit-sticky, .contact-card { position: static; }
  .profile { grid-template-columns: 1fr; }
  .profile-tags { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .generations { grid-template-columns: 1fr; }
  .generations .gen-line { width: 120px; height: 1px; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .header-cta { display: none; }
  .numbers-grid { grid-template-columns: 1fr; }
  .number-cell { border-left: 0; border-top: 1px solid var(--line-on-dark); }
  .number-cell:first-child { border-top: 0; }
  .values-grid, .matrix { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .spec-btn { grid-template-columns: 44px 1fr 36px; gap: 12px; }
  .spec-panel-body { padding-left: 56px; }
  .mobile-contact-bar { display: flex; }
  .hero { padding-bottom: 96px; }
  /* Mobile: mocniejsze przyciemnienie dla czytelności tekstu */
  .hero {
    background:
      linear-gradient(90deg, rgba(5,11,20,0.95) 0%, rgba(5,11,20,0.84) 40%, rgba(5,11,20,0.60) 70%, rgba(5,11,20,0.35) 100%),
      linear-gradient(0deg, var(--navy-1000) 0%, rgba(5,11,20,0) 28%),
      url('/images/hero-custom.jpg') 68% 32% / cover no-repeat,
      radial-gradient(20% 16% at 86% 80%, rgba(216,185,85,0.16), transparent 70%),
      radial-gradient(16% 12% at 10% 85%, rgba(216,185,85,0.09), transparent 70%),
      radial-gradient(14% 11% at 90% 16%, rgba(216,185,85,0.11), transparent 70%),
      radial-gradient(24% 18% at 94% 6%, rgba(30,58,95,0.42), transparent 70%),
      radial-gradient(18% 14% at 4% 8%, rgba(30,58,95,0.32), transparent 70%),
      var(--navy-1000);
  }
  .site-footer { padding-bottom: 76px; }
  .seal-wrap { order: -1; }
  .seal { --seal-size: min(300px, 74vw); }
  .hero h1 { font-size: clamp(40px, 12vw, 68px); }
}

/* ---------- Reduced motion / performance ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
  .intro { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ==========================================================================
   LEGACY COMPAT — existing subpages keep rendering coherently
   (old class names mapped onto the new navy/gold/paper system)
   ========================================================================== */
body { background: var(--ivory); }
body:has(.hero) { background: var(--navy-1000); }
.page-hero, .legal-hero, .counsel-statement, .content-section, .local-copy,
.legal-intro, .legal-help, .process-section, .counsel-help, .counsel-locations,
.counsel-entities, .counsel-contact, .cta-band, .legal-final-cta, .profiles-section {
  padding: clamp(60px, 7vw, 110px) 0;
}
.page-hero, .legal-hero {
  background: var(--navy-950); color: var(--ivory);
  padding-top: calc(var(--header-h) + 60px);
  border-bottom: 1px solid rgba(216,185,85,0.18);
}
.page-hero h1, .legal-hero h1 {
  font-family: var(--font-display); font-size: clamp(38px, 5vw, 68px); line-height: 1.05;
}
.page-hero p, .legal-hero p, .page-lead { color: var(--muted-on-dark); max-width: 68ch; }
.content-section, .local-copy, .legal-intro, .legal-help { background: var(--paper); }
.counsel-statement { background: var(--ivory); }
.counsel-entities, .counsel-locations, .process-section, .cta-band, .legal-final-cta { background: var(--navy-950); color: var(--ivory); }
.counsel-help, .legal-practice-featured { background: var(--navy-900); color: var(--ivory); }
.prose-large p, .section-heading p, .counsel-statement-copy p { color: var(--ink-soft); }
.counsel-entity-list article, .profile-card, .legal-practice-card, .modes-grid article, .numbered-grid article {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--paper); padding: 28px;
}
.mobile-menu { display: none; }
.mono-label, .chapter-label, .counsel-eyebrow, .eyebrow-dark {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; color: var(--gold-600);
}
.contact-form { display: grid; gap: 18px; }
.form-field { display: grid; gap: 8px; }
.form-field label { font-weight: 700; font-size: 14px; }
.form-field input, .form-field textarea, .form-field select {
  font: inherit; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; background: var(--white);
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--gold-600); box-shadow: 0 0 0 4px rgba(201,164,59,0.14); }
.round-cta, .counsel-button {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700;
  border-radius: 999px; padding: 14px 26px; border: 1px solid rgba(216,185,85,0.4);
}
.round-cta, .counsel-button-light { background: var(--gold-gradient); color: #1a1405; }
.counsel-button-ghost, .counsel-button-line { color: var(--ivory); border-color: rgba(245,242,235,0.3); }
.counsel-button-dark { background: var(--navy-950); color: var(--ivory); }
.site-footer a { color: inherit; }
.footer-grid nav { display: grid; gap: 10px; align-content: start; }
.footer-masthead { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.footer-masthead img { width: 64px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
