/* ==========================================================================
   Wagner Consult – Stylesheet
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0d1b26;
  --ink-2: #13283a;
  --ink-3: #1c3850;
  --paper: #f6f4ef;
  --paper-2: #ece8df;
  --white: #ffffff;
  --text: #0d1b26;
  --muted: #56636e;
  --line: #dcd7cc;
  --line-dark: rgba(255, 255, 255, 0.12);
  --accent: #14a37a;
  --accent-ink: #0b7a5a;
  --accent-soft: #d8f1e7;
  --signal: #b9f26b;
  --blue: #1f5fa8;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

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

/* ---------- Typography ---------- */

h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-variation-settings: "opsz" 144;
}
h1 { font-size: clamp(44px, 7.2vw, 104px); }
h2 { font-size: clamp(34px, 4.6vw, 64px); }
h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; color: var(--accent-ink); }
.on-dark h2 em, .on-dark h1 em { color: var(--signal); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.on-dark .eyebrow { color: var(--signal); }

.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--muted); max-width: 640px; }
.on-dark .lead { color: rgba(255, 255, 255, 0.7); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap;
  transition: transform 0.35s var(--ease), background 0.25s, color 0.25s, box-shadow 0.35s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(11, 122, 90, 0.6); }
.btn-signal { background: var(--signal); color: var(--ink); }
.btn-signal:hover { background: #fff; transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.on-dark .btn-ghost { border-color: var(--line-dark); color: #fff; }
.on-dark .btn-ghost:hover { border-color: #fff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.site-header.scrolled {
  background: rgba(246, 244, 239, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: 0.08em; }
.brand-name span { font-weight: 300; color: var(--accent-ink); }
.brand-sub { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a:not(.btn) { font-size: 15px; font-weight: 500; position: relative; padding: 6px 0; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }
.nav .btn { min-height: 44px; padding: 0 20px; }

.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.2s; }
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 25px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
.hero h1 { margin: 26px 0 30px; }
.hero h1 .line { display: block; }
.hero-checks { display: grid; gap: 12px; margin: 0 0 40px; }
.hero-checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.hero-checks svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--accent); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual {
  position: relative; background: var(--ink); color: #fff; border-radius: 26px; padding: 28px;
  box-shadow: 0 40px 80px -40px rgba(13, 27, 38, 0.55);
  overflow: hidden; isolation: isolate;
}
.hero-visual::before {
  content: ""; position: absolute; inset: -40% -30% auto auto; width: 380px; height: 380px; z-index: -1;
  background: radial-gradient(circle, rgba(20, 163, 122, 0.45), transparent 65%);
}
.hv-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.hv-live { display: inline-flex; align-items: center; gap: 8px; color: var(--signal); }
.hv-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.hv-title { font-family: var(--serif); font-size: 28px; line-height: 1.15; margin: 18px 0 22px; letter-spacing: -0.01em; }
.hv-score { display: flex; align-items: baseline; gap: 10px; margin-bottom: 22px; }
.hv-score strong { font-family: var(--serif); font-size: 64px; font-weight: 400; line-height: 1; }
.hv-score span { color: rgba(255, 255, 255, 0.55); font-size: 14px; }
.hv-bars { display: grid; gap: 14px; }
.hv-bar { display: grid; grid-template-columns: 110px 1fr 36px; align-items: center; gap: 12px; font-size: 13px; color: rgba(255, 255, 255, 0.75); }
.hv-track { height: 6px; background: rgba(255, 255, 255, 0.1); border-radius: 6px; overflow: hidden; }
.hv-fill { height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--signal)); transition: width 1.6s var(--ease); }
.hv-bar b { text-align: right; font-weight: 600; color: #fff; }
.hv-foot { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line-dark); display: flex; gap: 10px; flex-wrap: wrap; }
.chip { font-size: 12px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-dark); color: rgba(255, 255, 255, 0.8); }
.chip.is-on { background: rgba(185, 242, 107, 0.14); border-color: rgba(185, 242, 107, 0.4); color: var(--signal); }

.hero-bg-net { position: absolute; right: -120px; top: 40px; width: 700px; opacity: 0.5; z-index: -1; pointer-events: none; }

/* ---------- Industry strip ---------- */

.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; overflow: hidden; }
.strip-inner { display: flex; align-items: center; gap: 40px; }
.strip-label { flex: none; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.marquee { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { font-family: var(--serif); font-size: 24px; white-space: nowrap; color: var(--ink-3); display: inline-flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: "✦"; font-size: 12px; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head h2 { margin-top: 18px; }
.section-head.single { grid-template-columns: 1fr; max-width: 860px; }

.on-dark { background: var(--ink); color: #fff; }
.on-dark .muted { color: rgba(255, 255, 255, 0.6); }

/* ---------- Situations ---------- */

.situations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.situation {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px 30px;
  display: flex; flex-direction: column; gap: 18px; min-height: 340px;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
}
.situation:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -36px rgba(13, 27, 38, 0.35); border-color: transparent; }
.situation-num { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--accent-ink); }
.situation h3 { font-size: 26px; }
.situation p { color: var(--muted); font-size: 16px; }
.situation .answer { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.situation .answer strong { font-weight: 600; }
.situation .answer svg { width: 20px; height: 20px; flex: none; color: var(--accent-ink); transition: transform 0.35s var(--ease); }
.situation:hover .answer svg { transform: translateX(4px); }

/* ---------- Services (tabs) ---------- */

.tabs { display: grid; grid-template-columns: 320px 1fr; gap: clamp(32px, 5vw, 80px); }
.tab-list { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 110px; align-self: start; }
.tab-btn {
  text-align: left; padding: 22px 0; border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 44px 1fr; align-items: baseline; gap: 4px;
  color: var(--muted); transition: color 0.25s;
}
.tab-btn .n { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; }
.tab-btn .t { font-family: var(--serif); font-size: 26px; line-height: 1.15; letter-spacing: -0.01em; }
.tab-btn[aria-selected="true"], .tab-btn:hover { color: var(--ink); }
.tab-btn[aria-selected="true"] .n { color: var(--accent-ink); }
.tab-btn[aria-selected="true"] { border-bottom-color: var(--ink); }

.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeUp 0.6s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.panel-intro { font-size: 20px; line-height: 1.55; max-width: 720px; margin-bottom: 36px; }
.offer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.offer { background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.offer-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 20px; }
.offer-icon svg { width: 22px; height: 22px; }
.offer h3 { font-size: 22px; margin-bottom: 10px; }
.offer p { color: var(--muted); font-size: 15.5px; }
.offer ul { margin-top: 16px; display: grid; gap: 8px; }
.offer li { font-size: 14.5px; display: flex; gap: 10px; }
.offer li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 9px; }

/* ---------- AI Strategy (dark) ---------- */

.dimensions { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); margin-bottom: 70px; }
.dimension { padding: 36px 32px 36px 0; }
.dimension + .dimension { padding-left: 32px; border-left: 1px solid var(--line-dark); }
.dimension .k { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--signal); }
.dimension h3 { font-size: 34px; margin: 12px 0 12px; }
.dimension p { color: rgba(255, 255, 255, 0.65); font-size: 16px; }

.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.module { background: var(--ink); padding: 34px 30px; transition: background 0.35s; position: relative; }
.module:hover { background: var(--ink-2); }
.module-n { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--signal); }
.module h3 { font-size: 23px; margin: 14px 0 12px; }
.module p { font-size: 15px; color: rgba(255, 255, 255, 0.62); }

.ai-cta { margin-top: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding: 32px 36px; border-radius: var(--radius); background: linear-gradient(120deg, rgba(20, 163, 122, 0.22), rgba(31, 95, 168, 0.18)); border: 1px solid var(--line-dark); }
.ai-cta p { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.25; max-width: 640px; }

/* ---------- Process ---------- */

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; list-style: none; }
.process::before { content: ""; position: absolute; top: 27px; left: 0; right: 0; height: 1px; background: var(--line); }
.step { padding-right: 28px; position: relative; }
.step-dot { width: 56px; height: 56px; border-radius: 50%; background: var(--paper); border: 1px solid var(--ink); display: grid; place-items: center; font-family: var(--serif); font-size: 20px; position: relative; z-index: 1; transition: background 0.3s, color 0.3s; }
.step:hover .step-dot { background: var(--ink); color: #fff; }
.step h3 { margin: 28px 0 12px; font-size: 26px; }
.step p { color: var(--muted); font-size: 15.5px; }
.step .meta { margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--accent-ink); letter-spacing: 0.02em; }

/* ---------- Entry formats ---------- */

.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.format { border-radius: var(--radius); padding: 34px 30px; display: flex; flex-direction: column; gap: 14px; background: var(--white); border: 1px solid var(--line); }
.format.featured { background: var(--accent-ink); color: #fff; border-color: transparent; }
.format-tag { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; padding: 6px 12px; border-radius: 999px; background: var(--paper-2); }
.format.featured .format-tag { background: var(--signal); color: var(--ink); }
.format h3 { font-size: 28px; }
.format p { color: var(--muted); font-size: 15.5px; }
.format.featured p { color: rgba(255, 255, 255, 0.78); }
.format dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; margin: 8px 0 6px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.format.featured dl { border-color: rgba(255, 255, 255, 0.2); }
.format dt { color: var(--muted); }
.format.featured dt { color: rgba(255, 255, 255, 0.6); }
.format dd { font-weight: 600; }
.format .btn { margin-top: auto; align-self: flex-start; }
.format.featured .btn-primary { background: #fff; color: var(--ink); }
.format.featured .btn-primary:hover { background: var(--signal); }

/* ---------- Principles ---------- */

.principles-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.principles-grid .sticky { position: sticky; top: 120px; }
.principles { display: grid; }
.principle { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: 30px 0; border-top: 1px solid var(--line); }
.principle:last-child { border-bottom: 1px solid var(--line); }
.principle .n { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--accent-ink); }
.principle h3 { font-size: 24px; margin-bottom: 8px; }
.principle p { color: var(--muted); font-size: 16px; }

/* ---------- About ---------- */

.about { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.portrait {
  aspect-ratio: 4 / 5; border-radius: 26px; background: var(--ink); position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.portrait:has(img)::after { inset: auto 0 0 0; height: 45%; background: linear-gradient(to top, rgba(13, 27, 38, 0.75), transparent); }
.portrait-mono { font-family: var(--serif); font-size: clamp(110px, 14vw, 190px); color: rgba(255, 255, 255, 0.92); letter-spacing: -0.04em; font-style: italic; }
.portrait::after { content: ""; position: absolute; inset: auto -20% -30% -20%; height: 70%; background: radial-gradient(ellipse at center, rgba(20, 163, 122, 0.55), transparent 65%); }
.portrait-badge { position: absolute; left: 20px; bottom: 20px; right: 20px; z-index: 1; background: rgba(255, 255, 255, 0.95); border-radius: 14px; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.portrait-badge strong { display: block; font-size: 16px; }
.portrait-badge span { font-size: 13px; color: var(--muted); }
.portrait-badge a { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.portrait-badge a svg { width: 18px; height: 18px; }

.about blockquote { font-family: var(--serif); font-size: clamp(26px, 2.8vw, 38px); line-height: 1.22; letter-spacing: -0.01em; margin: 24px 0 28px; }
.about blockquote::before { content: "„"; color: var(--accent); }
.about blockquote::after { content: "“"; color: var(--accent); }
.about p { color: var(--muted); margin-bottom: 16px; max-width: 620px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.fact strong { display: block; font-family: var(--serif); font-size: 44px; font-weight: 400; line-height: 1; margin-bottom: 8px; }
.fact span { font-size: 14px; color: var(--muted); }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(40px, 6vw, 90px); }
.next-steps { display: grid; gap: 0; margin: 40px 0; }
.next-step { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line-dark); }
.next-step:last-child { border-bottom: 1px solid var(--line-dark); }
.next-step .n { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--signal); color: var(--signal); display: grid; place-items: center; font-size: 14px; font-weight: 600; }
.next-step h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; letter-spacing: 0; margin-bottom: 4px; }
.next-step p { color: rgba(255, 255, 255, 0.62); font-size: 15px; }
.direct { display: grid; gap: 14px; }
.direct a, .direct div { display: flex; align-items: center; gap: 14px; font-size: 16px; }
.direct svg { width: 20px; height: 20px; color: var(--signal); flex: none; }
.direct a:hover { color: var(--signal); }

.form-card { background: var(--paper); color: var(--ink); border-radius: 24px; padding: clamp(26px, 4vw, 44px); }
.form-card h3 { font-size: 30px; margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: 15px; margin-bottom: 26px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(20, 163, 122, 0.15); }
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; border: 0; }
.topics legend { font-size: 13px; font-weight: 600; margin-bottom: 8px; width: 100%; }
.topic input { position: absolute; opacity: 0; pointer-events: none; }
.topic span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: 14px; cursor: pointer; transition: all 0.2s; }
.topic input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.topic input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin: 6px 0 20px; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent-ink); flex: none; }
.consent a { text-decoration: underline; color: var(--ink); }
.form-card .btn { width: 100%; }
.hidden { display: none !important; }

/* ---------- FAQ ---------- */

.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--serif); font-size: clamp(20px, 1.8vw, 24px); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: transform 0.35s var(--ease), background 0.25s; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 11px; right: 11px; top: 17px; height: 1.5px; background: var(--ink); }
.faq summary .pm::after { transform: rotate(90deg); transition: transform 0.35s var(--ease); }
.faq details[open] summary .pm { background: var(--ink); }
.faq details[open] summary .pm::before, .faq details[open] summary .pm::after { background: #fff; }
.faq details[open] summary .pm::after { transform: rotate(0); }
.faq .answer { padding: 0 60px 28px 0; color: var(--muted); }
.faq .answer p + p { margin-top: 10px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.7); padding: 90px 0 34px; }
.footer-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 30px; padding-bottom: 70px; border-bottom: 1px solid var(--line-dark); }
.footer-cta h2 { color: #fff; max-width: 820px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 60px 0; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name span { color: var(--signal); }
.site-footer .brand-sub { color: rgba(255, 255, 255, 0.5); }
.footer-grid p { font-size: 15px; margin-top: 20px; max-width: 320px; }
.footer-grid h4 { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); margin-bottom: 18px; font-weight: 600; }
.footer-grid li + li { margin-top: 10px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; border-top: 1px solid var(--line-dark); font-size: 14px; }
.footer-bottom nav { display: flex; gap: 24px; }

/* ---------- Legal pages ---------- */

.legal { padding: 150px 0 100px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(42px, 6vw, 72px); margin: 18px 0 40px; }
.legal h2 { font-size: 26px; margin: 44px 0 12px; letter-spacing: -0.01em; }
.legal p, .legal li { color: #2f3d48; margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal a { text-decoration: underline; }
.legal .todo { background: #fff3c4; padding: 1px 6px; border-radius: 4px; }

/* ---------- Reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

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

/* ---------- Responsive ---------- */

.hero-grid > *, .tabs > *, .about > *, .contact-grid > *, .principles-grid > *, .faq-grid > *, .section-head > * { min-width: 0; }


@media (max-width: 1080px) {
  .hero-grid, .about, .contact-grid, .principles-grid, .faq-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .tabs { grid-template-columns: 1fr; }
  .tab-list { position: static; flex-direction: row; overflow-x: auto; gap: 24px; scrollbar-width: none; }
  .tab-list::-webkit-scrollbar { display: none; }
  .tab-btn { flex: none; grid-template-columns: auto; padding: 14px 0; }
  .tab-btn .t { font-size: 21px; white-space: nowrap; }
  .modules { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
  .process::before { display: none; }
  .principles-grid .sticky { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .portrait { max-width: 460px; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 80px 0 0 0; background: var(--paper); flex-direction: column; align-items: flex-start;
    padding: 30px var(--gutter); gap: 6px; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.3s, transform 0.4s var(--ease), visibility 0.3s;
  }
  .nav a:not(.btn) { font-family: var(--serif); font-size: 32px; padding: 10px 0; }
  .nav .btn { margin-top: 20px; min-height: 52px; }
  .menu-open .nav { opacity: 1; transform: none; visibility: visible; }
  .menu-open .site-header { background: var(--paper); }
  .menu-toggle { display: block; }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .situations, .formats, .dimensions { grid-template-columns: 1fr; }
  .dimension, .dimension + .dimension { padding: 28px 0; border-left: 0; }
  .dimension + .dimension { border-top: 1px solid var(--line-dark); }
  .offer-grid { grid-template-columns: 1fr; }
  .situation { min-height: 0; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 120px 0 60px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .btn { white-space: normal; text-align: center; padding: 12px 22px; }
  .eyebrow { letter-spacing: 0.12em; }
  .eyebrow::before { width: 18px; }
  .hv-bar { grid-template-columns: 92px 1fr 32px; }
  .modules, .process { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .strip-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .marquee { width: 100%; }
  .faq .answer { padding-right: 0; }
  .ai-cta { padding: 26px 22px; }
  .brand-sub { display: none; }
}

/* ---------- Form status ---------- */

.form-status { margin-top: 14px; font-size: 14.5px; min-height: 1em; }
.form-status.is-ok { color: var(--accent-ink); font-weight: 600; }
.form-status.is-error { color: #b42318; }
.form-status a { text-decoration: underline; }
.field.has-error input, .field.has-error textarea { border-color: #b42318; }

/* ---------- Chat ---------- */

.chat { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat-fab { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 22px 0 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; box-shadow: 0 18px 40px -16px rgba(13, 27, 38, 0.6); transition: transform 0.35s var(--ease), background 0.25s; }
.chat-fab:hover { transform: translateY(-2px); background: var(--accent-ink); }
.chat-fab svg { width: 22px; height: 22px; color: var(--signal); }
.chat-panel { width: min(380px, calc(100vw - 32px)); height: min(540px, calc(100vh - 120px)); background: var(--white); border-radius: 22px; box-shadow: 0 40px 80px -30px rgba(13, 27, 38, 0.5); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; animation: fadeUp 0.4s var(--ease); }
.chat-panel[hidden] { display: none; }
.chat-head { background: var(--ink); color: #fff; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; }
.chat-head strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 20px; }
.chat-head span { font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.chat-close { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.chat-close:hover { background: rgba(255, 255, 255, 0.1); }
.chat-close svg { width: 18px; height: 18px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.chat-msg { max-width: 85%; padding: 11px 14px; border-radius: 16px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; }
.chat-msg--bot { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-msg--user { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg--typing span { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.chat-msg--typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-msg--typing span:nth-child(3) { animation-delay: 0.4s; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); }
.chat-form input:focus { outline: none; border-color: var(--accent); }
.chat-form button { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.chat-form button svg { width: 18px; height: 18px; }
.chat-note { font-size: 11.5px; color: var(--muted); padding: 0 14px 12px; line-height: 1.4; }
.chat-note a { text-decoration: underline; }

@media (max-width: 600px) {
  .chat { right: 12px; bottom: 12px; }
  .chat-fab span { display: none; }
  .chat-fab { width: 54px; padding: 0; justify-content: center; }
}
