/* style.css — Horizon Personal */

/* <picture> wrappers (WebP + JPEG fallback) render exactly like a bare <img> */
picture { display: contents; }

/* ---------- Layout primitives ---------- */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container--default {
  max-width: var(--content-default);
}
.container--narrow {
  max-width: var(--content-narrow);
}

section {
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
}

.section-head {
  margin-bottom: clamp(var(--space-8), 5vw, var(--space-12));
  max-width: 62ch;
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--color-accent);
  display: inline-block;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
.section-title { font-size: var(--text-xl); color: var(--color-text); }
.section-lead { color: var(--color-text-muted); font-size: var(--text-base); margin-top: var(--space-3); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-2) var(--space-4);
  z-index: 200;
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  min-height: 44px;
  white-space: nowrap;
  transition: transform 0.2s var(--ease-signature), box-shadow 0.2s var(--ease-signature), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-primary:active { background: var(--color-primary-active); transform: translateY(0) scale(0.98); }

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid oklch(from var(--color-text) l c h / 0.25);
}
.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
}
.btn-outline:active { transform: translateY(0) scale(0.98); }

.btn-accent {
  background: var(--color-accent);
  color: #2a1620;
}
.btn-accent:hover { background: var(--color-accent-hover); transform: translateY(-1px); }
.btn-accent:active { transform: translateY(0) scale(0.98); }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn-primary, .btn-outline, .btn-accent { transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
  .btn:hover, .btn:active { transform: none; }
}

.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); min-height: 36px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: oklch(from var(--color-bg) l c h / 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
  transition: transform 0.3s var(--ease-signature), box-shadow 0.3s var(--ease-signature);
}
.site-header--hidden { transform: translateY(-100%); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text);
  text-decoration: none;
  flex-shrink: 0;
}
.brand-icon { width: 32px; height: 32px; display: block; }
.brand-icon--dark { display: none; }
[data-theme='dark'] .brand-icon--light { display: none; }
[data-theme='dark'] .brand-icon--dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .brand-icon--light { display: none; }
  :root:not([data-theme='light']) .brand-icon--dark { display: block; }
}
.brand-word {
  font-family: var(--font-wordmark);
  font-size: var(--text-lg);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.1;
}
.brand-word small {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
}

.main-nav { display: none; }
.main-nav ul { display: flex; align-items: center; gap: var(--space-6); }
.main-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--color-primary); }

.header-actions { display: flex; align-items: center; gap: var(--space-2); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text);
}
.icon-btn:hover { background: var(--color-surface-2); }
.icon-btn svg { width: 20px; height: 20px; }

.nav-toggle { display: inline-flex; }

.header-cta { display: none; }
.mobile-nav-cta { margin-top: var(--space-4); }

@media (min-width: 560px) {
  .header-cta { display: inline-flex; }
}

@media (min-width: 900px) {
  .main-nav { display: block; }
  .nav-toggle { display: none; }
  .mobile-nav-cta { display: none; }
}

@media (max-width: 400px) {
  .brand-word small { display: none; }
}

/* ---------- Mobile nav drawer ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  top: 0;
  background: var(--color-bg);
  z-index: 90;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-signature);
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav-inner { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); }
.mobile-nav-top { display: flex; justify-content: flex-end; margin-bottom: var(--space-4); }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
}

/* ---------- Slide-out request panel ---------- */
.panel-overlay {
  position: fixed;
  inset: 0;
  background: oklch(0.1 0.03 350 / 0.55);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-signature);
}
.panel-overlay.is-open { opacity: 1; pointer-events: auto; }

.request-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(460px, 100%);
  background: var(--color-surface);
  z-index: 101;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-signature);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.request-panel.is-open { transform: translateX(0); }
.panel-inner { padding: var(--space-6); }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-6); }
.panel-head h2 { font-size: var(--text-lg); }

.tabs { display: flex; gap: var(--space-2); background: var(--color-surface-2); padding: var(--space-1); border-radius: var(--radius-full); margin-bottom: var(--space-6); }
.tab-btn {
  flex: 1;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
}
.tab-btn[aria-selected="true"] {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.tab-panel[hidden] { display: none; }

/* ---------- Forms ---------- */
.field { margin-bottom: var(--space-5); }
.field label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  color: var(--color-text);
  font-size: var(--text-base);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--color-text-faint); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
}
.field-hint { font-size: var(--text-xs); color: var(--color-text-faint); margin-top: var(--space-2); }

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.consent-row input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }
.consent-row label { font-size: var(--text-xs); color: var(--color-text-muted); text-transform: none; font-weight: 400; }
.consent-row a { color: var(--color-primary); }

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-8) var(--space-4);
}
.form-success.is-visible { display: block; }
.form-success svg { width: 48px; height: 48px; color: var(--color-primary); margin: 0 auto var(--space-4); }
.form-success h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.form-success p { color: var(--color-text-muted); margin-inline: auto; }
.form-body.is-hidden { display: none; }

.form-error {
  display: none;
  text-align: center;
  padding: var(--space-6) var(--space-4);
  background: color-mix(in srgb, var(--color-accent) 8%, transparent);
  border-radius: var(--radius-md);
}
.form-error.is-visible { display: block; }
.form-error p { color: var(--color-text); font-size: var(--text-sm); margin: 0; }
.form-error a { color: var(--color-primary); font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  color: #f3e9da;
  overflow: hidden;
  padding-block: var(--space-24) var(--space-16);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-overlay);
}
.hero-content { position: relative; z-index: 2; max-width: 800px; opacity: 0; animation: hero-content-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
@keyframes hero-content-in {
  from { opacity: 0; clip-path: inset(18% 0 0 0); }
  to { opacity: 1; clip-path: inset(0 0 0 0); }
}

/* ---------- Animated gradient mesh + grain (dark hero backgrounds) ---------- */
.hero-mesh {
  position: absolute;
  inset: -12%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(38% 42% at 20% 24%, oklch(0.52 0.19 320 / 0.55) 0%, oklch(0.52 0.19 320 / 0) 70%),
    radial-gradient(42% 46% at 82% 76%, oklch(0.54 0.2 350 / 0.5) 0%, oklch(0.54 0.2 350 / 0) 70%),
    radial-gradient(30% 34% at 68% 10%, oklch(0.42 0.15 350 / 0.42) 0%, oklch(0.42 0.15 350 / 0) 70%);
  mix-blend-mode: screen;
  animation: mesh-drift 28s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes mesh-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-2%, 2%, 0) scale(1.04); }
  100% { transform: translate3d(2%, -1.5%, 0) scale(1); }
}
.grain-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-repeat: repeat;
  background-size: 180px 180px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
@media (prefers-reduced-motion: reduce) {
  .hero-mesh { animation: none; }
  .hero-content, .role-hero-content { animation: none; opacity: 1; clip-path: none; }
}
.hero h1 {
  font-size: var(--text-hero);
  line-height: 1.02;
  margin-bottom: var(--space-6);
  color: #fffdf8;
  font-weight: 700;
}
.hero h1 em {
  font-style: italic;
  color: var(--color-accent);
}
.hero-sub {
  font-size: var(--text-lg);
  color: oklch(0.95 0.02 90 / 0.86);
  max-width: 56ch;
  margin-bottom: var(--space-8);
  font-family: var(--font-body);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-bottom: var(--space-12); }
.hero-stats { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.hero-stat strong { font-family: var(--font-display); font-size: var(--text-xl); display: block; color: #fffdf8; }
.hero-stat span { font-size: var(--text-xs); color: oklch(0.95 0.02 90 / 0.7); text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: var(--space-16); }
}
.about-copy p { color: var(--color-text-muted); margin-top: var(--space-4); }
.about-copy p:first-of-type { margin-top: var(--space-5); }
.stat-strip {
  margin-top: var(--space-8);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-6);
}
.stat-strip div strong { display: block; font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-primary); }
.stat-strip div span { font-size: var(--text-xs); color: var(--color-text-muted); }

.about-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}
.about-visual img { width: 100%; height: 100%; object-fit: cover; }
.about-visual-badge {
  position: absolute;
  bottom: var(--space-5);
  left: var(--space-5);
  right: var(--space-5);
  background: oklch(0.15 0.05 350 / 0.72);
  backdrop-filter: blur(8px);
  color: #f3e9da;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
}

/* ---------- Divider ---------- */
.signature-divider {
  height: 3px;
  background: var(--gradient-signature);
  border: none;
}

/* ---------- Services / roles grid ---------- */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: var(--space-5);
}
.role-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.role-card { transition: transform 0.3s var(--ease-signature), box-shadow 0.3s var(--ease-signature), border-color 0.3s ease; }
.role-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: oklch(from var(--color-primary) l c h / 0.35); }
.role-card-media { aspect-ratio: 16/10; overflow: hidden; }
.role-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-signature); }
.role-card:hover .role-card-media img { transform: scale(1.05); }
.role-card-body { padding: var(--space-5); flex: 1; display: flex; flex-direction: column; gap: var(--space-2); }
.role-card-body h3 { font-size: var(--text-base); font-family: var(--font-body); font-weight: 700; }
.role-card-body p { font-size: var(--text-sm); color: var(--color-text-muted); flex: 1; }
.role-card-link { font-size: var(--text-xs); font-weight: 600; color: var(--color-primary); display: inline-flex; align-items: center; gap: var(--space-1); text-transform: uppercase; letter-spacing: 0.04em; }
.role-card-link svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease-signature); }
.role-card:hover .role-card-link svg { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  .role-card, .role-card-media img, .role-card-link svg { transition: none !important; }
  .role-card:hover { transform: none; }
  .role-card:hover .role-card-media img { transform: none; }
  .role-card:hover .role-card-link svg { transform: none; }
}

/* ---------- Cases carousel ---------- */
.cases-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-8); }
.stat-hero { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--color-primary); line-height: 1.05; }
.cases-controls { display: flex; gap: var(--space-2); }
.cases-track-wrap { overflow: hidden; }
.cases-track {
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-2);
  scrollbar-width: thin;
}
.case-card {
  flex: 0 0 min(360px, 80vw);
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-signature), box-shadow 0.3s var(--ease-signature);
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.case-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 0.5s var(--ease-signature); }
.case-card:hover img { transform: scale(1.04); }
.case-card-body { padding: var(--space-4) var(--space-5); }
.case-card-body p { font-size: var(--text-sm); color: var(--color-text-muted); }

@media (prefers-reduced-motion: reduce) {
  .case-card, .case-card img { transition: none !important; }
  .case-card:hover { transform: none; }
  .case-card:hover img { transform: none; }
}

/* ---------- Coverage cities ---------- */
.city-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  list-style: none;
  padding: 0;
  margin: 0;
}
.city-chips li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.city-chips li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent); flex-shrink: 0; }
.city-chips li.is-linked { padding: 0; background: transparent; border: none; box-shadow: none; }
.city-chips li.is-linked a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  color: var(--color-text);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.city-chips li.is-linked a:hover { border-color: var(--color-accent); color: var(--color-primary); }

/* ---------- FAQ accordion ---------- */
.faq-list { margin-top: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md, 12px);
  background: var(--color-surface);
  padding: var(--space-1) var(--space-5);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: var(--space-4) 0;
  font-weight: 600;
  font-size: var(--text-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: var(--text-lg);
  color: var(--color-accent);
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--color-text-muted); font-size: var(--text-sm); padding-bottom: var(--space-4); margin: 0; }

/* ---------- Trust / partners ---------- */
.logo-marquee {
  position: relative;
  overflow: hidden;
  margin: var(--space-8) 0 var(--space-6);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  width: max-content;
  animation: logo-scroll 36s linear infinite;
}
.logo-marquee:hover .logo-marquee-track { animation-play-state: paused; }
.logo-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 168px;
  height: 88px;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--color-border);
}
.logo-chip img {
  max-width: 100%;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(0.72);
  transition: filter 0.2s ease;
}
.logo-chip:hover img { filter: none; }
@keyframes logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track { animation: none; }
  .logo-marquee { overflow-x: auto; }
}


.testimonials {
  margin-top: var(--space-12);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 800px) {
  .testimonials { grid-template-columns: repeat(3, 1fr); }
}
.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.testimonial-quote { font-size: var(--text-sm); color: var(--color-text-muted); font-style: italic; flex: 1; }
.testimonial-meta { display: flex; align-items: center; gap: var(--space-3); }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gradient-signature);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display); font-size: var(--text-sm); flex-shrink: 0;
}
.testimonial-meta strong { font-size: var(--text-sm); display: block; }
.testimonial-meta span { font-size: var(--text-xs); color: var(--color-text-faint); }
.testimonial-todo-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  font-weight: 700;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--gradient-signature);
  color: #fdf9ee;
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 6vw, var(--space-16));
  text-align: center;
}
.cta-band h2 { font-size: var(--text-xl); margin-bottom: var(--space-4); color: #fffdf8; }
.cta-band p { color: oklch(0.95 0.02 90 / 0.82); margin-inline: auto; margin-bottom: var(--space-6); }
.cta-band .btn-primary { background: #fdf9ee; color: #2a1620; }
.cta-band .btn-primary:hover { background: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-16) var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-3);
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-faint);
  transition: color 0.15s ease;
  line-height: 0;
}
.footer-social a svg { width: 12px; height: 12px; display: block; }
.footer-social a:hover { color: var(--color-primary); }
.footer-legal-note {
  color: var(--color-text-faint);
  font-size: 11px;
  line-height: 1.5;
  margin-top: var(--space-3);
  max-width: 28ch;
}
.footer-brand p { color: var(--color-text-muted); font-size: var(--text-sm); margin-top: var(--space-4); max-width: 32ch; }
.footer-col h4 { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-faint); margin-bottom: var(--space-4); }
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a { font-size: var(--text-sm); color: var(--color-text-muted); text-decoration: none; }
.footer-col a:hover { color: var(--color-primary); }
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-full);
  padding: 2px var(--space-2);
  margin-left: var(--space-2);
}
.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.footer-bottom a { color: var(--color-text-faint); }
.footer-todo { color: var(--color-accent); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-4);
  max-width: 620px;
  margin-inline: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-5);
  z-index: 80;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  transform: translateY(120%);
  transition: transform 0.4s var(--ease-signature);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner p { font-size: var(--text-xs); color: var(--color-text-muted); flex: 1; min-width: 220px; }
.cookie-banner a { color: var(--color-primary); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding-block: clamp(var(--space-16), 10vw, var(--space-24)) var(--space-10);
  border-bottom: 1px solid var(--color-divider);
}
.page-hero h1 { font-size: var(--text-2xl); }
.page-hero p { color: var(--color-text-muted); margin-top: var(--space-4); max-width: 60ch; }
.breadcrumb { font-size: var(--text-xs); color: var(--color-text-faint); margin-bottom: var(--space-4); }
.breadcrumb a { color: var(--color-text-faint); }
.breadcrumb a:hover { color: var(--color-primary); }

/* ---------- Role page ---------- */
.role-hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.role-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.role-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, oklch(0.15 0.05 350 / 0.15) 0%, oklch(0.1 0.04 350 / 0.88) 100%);
  z-index: 0;
}
.role-hero-content { position: relative; z-index: 2; padding-block: var(--space-16) var(--space-10); color: #f3e9da; opacity: 0; animation: hero-content-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.role-hero h1 { font-size: var(--text-2xl); color: #fffdf8; }
.role-kicker { color: var(--color-accent); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; margin-bottom: var(--space-3); display: block; }

.role-body-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}
@media (min-width: 900px) {
  .role-body-grid { grid-template-columns: 2fr 1fr; }
}
.role-body-grid p { color: var(--color-text-muted); margin-top: var(--space-4); }
.role-use-list { margin-top: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
.role-use-item { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-sm); }

.event-type-pills { margin-top: var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.event-type-pill {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: transform 0.2s var(--ease-signature), border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.event-type-pill:hover { border-color: var(--color-primary); color: var(--color-primary); transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) {
  .event-type-pill { transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease; }
  .event-type-pill:hover { transform: none; }
}
.role-use-item svg { width: 18px; height: 18px; color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }

.role-sidebar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  align-self: start;
  position: sticky;
  top: calc(var(--space-16) + 60px);
}
.role-sidebar h3 { font-size: var(--text-base); margin-bottom: var(--space-3); }
.role-sidebar p { font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-5); }

.other-roles { margin-top: var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.other-roles a {
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  text-decoration: none;
}
.other-roles a:hover { color: var(--color-primary); border-color: var(--color-primary); }

/* ---------- Applicants page ---------- */
.applicants-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}
@media (min-width: 960px) {
  .applicants-layout { grid-template-columns: 1fr 1fr; }
}
.applicants-form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  box-shadow: var(--shadow-sm);
}
.applicant-benefits { display: flex; flex-direction: column; gap: var(--space-5); }
.applicant-benefit { display: flex; gap: var(--space-4); }
.applicant-benefit svg { width: 24px; height: 24px; color: var(--color-primary); flex-shrink: 0; }
.applicant-benefit h3 { font-size: var(--text-base); margin-bottom: var(--space-1); }
.applicant-benefit p { font-size: var(--text-sm); color: var(--color-text-muted); }

/* ---------- Privacy page ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--text-lg); margin-top: var(--space-10); margin-bottom: var(--space-3); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--color-text-muted); margin-bottom: var(--space-3); font-size: var(--text-base); }
.prose ul { padding-left: var(--space-6); list-style: disc; margin-bottom: var(--space-4); }
.prose strong { color: var(--color-text); }

/* ---------- Coming soon placeholder ---------- */
.coming-soon {
  text-align: center;
  padding-block: var(--space-24);
}
.coming-soon .eyebrow { justify-content: center; }
.coming-soon h1 { font-size: var(--text-2xl); }
.coming-soon p { color: var(--color-text-muted); margin: var(--space-4) auto var(--space-8); max-width: 50ch; }

/* ---------- 404-style pattern reused: badge ---------- */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px var(--space-2);
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  font-weight: 700;
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0 !important; }
.text-muted { color: var(--color-text-muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---------- Scroll reveal (opacity + clip-path only — no layout shift) ---------- */
@supports (animation-timeline: view()) {
  .role-card,
  .case-card,
  .about-visual,
  .logo-marquee,
  .section-head,
  .faq-item,
  .role-use-item,
  .stat-strip > div,
  .trust-block,
  .cta-band {
    opacity: 0;
    clip-path: inset(14% 0 0 0);
    animation: reveal-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 58%;
  }
}
@keyframes reveal-up {
  to { opacity: 1; clip-path: inset(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) {
  .role-card, .case-card, .about-visual, .logo-marquee, .section-head,
  .faq-item, .role-use-item, .stat-strip > div, .trust-block, .cta-band {
    animation: none !important; opacity: 1 !important; clip-path: none !important;
  }
}

/* ---------- Custom cursor (desktop, fine-pointer only) ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 999;
  border-radius: 50%;
  opacity: 0;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  transition: opacity 0.2s ease;
}
.cursor-ring {
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 1.5px solid oklch(1 0 0 / 0.55);
  transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1), height 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    margin 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, opacity 0.2s ease;
}
body.has-custom-cursor .cursor-dot,
body.has-custom-cursor .cursor-ring { opacity: 1; }
body.has-custom-cursor .cursor-ring.is-active {
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-color: var(--color-accent);
}
body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor [role="button"],
body.has-custom-cursor .role-card,
body.has-custom-cursor summary {
  cursor: none;
}
body.has-custom-cursor input,
body.has-custom-cursor textarea,
body.has-custom-cursor select {
  cursor: auto;
}
@media (max-width: 900px), (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
}
