/*
  Artificial Engineering · Media & Technology — luxury heraldic theme.
  Two palettes drawn from the house crest (heraldic gold, azure, platinum, ivory):
    • DAY  (default)  — warm ivory ground, deep antique gold, navy ink.  :root
    • NIGHT (toggle)  — midnight navy ground, bright gold, ivory text.   :root[data-theme="night"]
  Components reference semantic tokens, so a single value swap flips the whole theme.
  Gold appears two ways: --accent-* (bright, for FILLS: buttons, pills) is constant across
  themes; --gold-ink (gold as TEXT) darkens in day so it stays legible on ivory.
*/

/* ===================== DAY (default) ===================== */
:root {
  color-scheme: light;

  /* Ground & surfaces (warm ivory → white cards) */
  --ink-950: #f6f3ea;   /* page background */
  --ink-900: #efe8d8;   /* footer / deeper panel */
  --ink-850: #fffdf7;   /* card surface */
  --ink-800: #f1ebdb;   /* chip / raised */
  --ink-700: #e4dcc6;   /* border */
  --ink-600: #d0c4a4;   /* strong border */

  /* Heraldic gold — bright, for FILLS (constant across themes) */
  --accent-300: #f2e492;
  --accent-400: #e4cb4c;
  --accent-500: #cbb03c;
  --accent-600: #a2842a;

  /* Gold as TEXT / hairlines — deep antique in day */
  --gold-ink:   #8a6b12;
  --gold-ink-2: #a8842a;
  --on-gold:    #1c1503;   /* text on a gold fill */

  /* Azure — secondary accent */
  --violet-400: #1e78b8;
  --violet-500: #155f96;

  /* Text ramp (deep navy-ink → light muted) */
  --fog-50:  #1c2536;   /* headings */
  --fog-100: #26314a;
  --fog-200: #3b475e;   /* body */
  --fog-300: #55607a;
  --fog-400: #7b8394;   /* muted */
  --fog-500: #9aa1af;   /* faint */

  --red-400: #bf4d38;
  --green-400: #2f8f63;

  --field-bg: #ffffff;
  --header-bg: rgba(246, 243, 234, 0.82);
  --hairline: rgba(150, 120, 30, 0.24);
  --hairline-soft: rgba(40, 34, 18, 0.12);
  --grid-line: rgba(150, 120, 30, 0.06);
  --shadow-glow:
    0 0 0 1px rgba(150, 120, 30, 0.10),
    0 30px 70px -34px rgba(60, 50, 20, 0.30),
    0 12px 34px -22px rgba(150, 120, 30, 0.16);
  --shadow-soft: 0 22px 60px -34px rgba(60, 50, 20, 0.26);
  --page-bg-image:
    radial-gradient(ellipse 72% 52% at 50% -8%, rgba(228, 203, 76, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 50% at 92% 6%, rgba(30, 120, 184, 0.06), transparent 55%);

  --font-sans:  "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-mono:  var(--font-sans);

  --maxw: 75rem;
  --radius: 1rem;
}

/* ===================== NIGHT ===================== */
:root[data-theme="night"] {
  color-scheme: dark;

  --ink-950: #070b14;
  --ink-900: #0b1120;
  --ink-850: #0f1626;
  --ink-800: #141f33;
  --ink-700: #21304c;
  --ink-600: #33456a;

  --gold-ink:   #e4cb4c;
  --gold-ink-2: #f2e492;
  --on-gold:    #1a1405;

  --violet-400: #3a9bda;
  --violet-500: #1e86cc;

  --fog-50:  #f5f2e9;
  --fog-100: #e9ebf1;
  --fog-200: #cdd3df;
  --fog-300: #a8b0c3;
  --fog-400: #828ba0;
  --fog-500: #626b81;

  --red-400: #e8836f;
  --green-400: #6fcaa0;

  --field-bg: #070b14;
  --header-bg: rgba(7, 11, 20, 0.72);
  --hairline: rgba(228, 203, 76, 0.16);
  --hairline-soft: rgba(205, 211, 223, 0.10);
  --grid-line: rgba(228, 203, 76, 0.035);
  --shadow-glow:
    0 0 0 1px rgba(228, 203, 76, 0.12),
    0 34px 90px -34px rgba(0, 0, 0, 0.78),
    0 14px 44px -24px rgba(228, 203, 76, 0.16);
  --shadow-soft: 0 24px 70px -30px rgba(0, 0, 0, 0.7);
  --page-bg-image:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(228, 203, 76, 0.07), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 8%, rgba(42, 147, 214, 0.06), transparent 55%);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  background-color: var(--ink-950);
  background-image: var(--page-bg-image);
  background-attachment: fixed;
  color: var(--fog-200);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.4s ease, color 0.4s ease;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ---------- Layout primitives ---------- */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: 1.5rem; }
.container-narrow { max-width: 48rem; margin-inline: auto; padding-inline: 1.5rem; }
.container-mid { max-width: 58rem; margin-inline: auto; padding-inline: 1.5rem; }
.section { padding-block: 5rem; }
.section-sm { padding-block: 3.5rem; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
main { display: block; }

/* ---------- Decorative backdrops ---------- */
.bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 80% 62% at 50% 0%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 62% at 50% 0%, #000 35%, transparent 100%);
}

.text-gradient {
  background: linear-gradient(100deg, var(--gold-ink-2), var(--gold-ink) 60%, var(--gold-ink-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Focus ring ---------- */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, .focusable:focus-visible {
  outline: 2px solid var(--gold-ink);
  outline-offset: 3px;
}

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 60; }
.skip-link:focus {
  left: 1rem; top: 1rem;
  background: var(--accent-400); color: var(--on-gold);
  padding: 0.5rem 0.85rem; border-radius: 0.4rem; font-weight: 600;
}

/* ---------- Typography ---------- */
h1, h2, h3 { color: var(--fog-50); font-family: var(--font-serif); font-weight: 600; line-height: 1.12; letter-spacing: 0.005em; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--gold-ink);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--hairline);
  background: rgba(228, 203, 76, 0.06);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-ink);
}
.kicker .dot { width: 0.375rem; height: 0.375rem; border-radius: 999px; background: var(--accent-400); box-shadow: 0 0 10px rgba(228, 203, 76, 0.7); }

.lead { font-size: 1.2rem; line-height: 1.75; color: var(--fog-300); font-weight: 300; }
.muted { color: var(--fog-400); }
.text-mono { font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.72rem; }
.balance { text-wrap: balance; }
.pretty { text-wrap: pretty; }

.h1 { font-size: clamp(2.9rem, 6.2vw, 4.6rem); line-height: 1.04; letter-spacing: 0.002em; font-weight: 600; }
.h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
.section-title { font-family: var(--font-serif); font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 600; color: var(--fog-50); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 0.6rem;
  padding: 0.95rem 1.7rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}
.btn-primary {
  background: linear-gradient(180deg, var(--accent-300), var(--accent-500));
  color: var(--on-gold);
  box-shadow: 0 10px 30px -12px rgba(203, 176, 60, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(203, 176, 60, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn-ghost {
  border-color: var(--hairline);
  color: var(--fog-100);
  background: rgba(228, 203, 76, 0.03);
}
.btn-ghost:hover { background: rgba(228, 203, 76, 0.1); border-color: rgba(228, 203, 76, 0.45); color: var(--fog-50); }
.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.875rem; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn:disabled:hover { transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--hairline-soft);
  background: var(--header-bg);
  backdrop-filter: blur(14px) saturate(120%);
}
.site-header .bar {
  display: flex;
  height: 5.25rem;
  max-width: var(--maxw);
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: 1.5rem;
}

/* Logo lockup: crest + two-line serif wordmark */
.logo { display: inline-flex; align-items: center; gap: 0.8rem; }
.logo-crest { height: 42px; width: auto; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.25)); }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark .line1 { font-family: var(--font-serif); font-size: 1.28rem; font-weight: 600; letter-spacing: 0.02em; color: var(--fog-50); }
.wordmark .line2 { margin-top: 0.18rem; font-family: var(--font-sans); font-size: 0.6rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.34em; color: var(--gold-ink); }
@media (max-width: 480px) {
  .wordmark .line1 { font-size: 1.12rem; }
  .logo-crest { height: 36px; }
}

.primary-nav { display: none; align-items: center; gap: 1.5rem; }
.primary-nav a {
  position: relative;
  white-space: nowrap;               /* never let a label break onto two lines */
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  color: var(--fog-300);
  transition: color 0.2s ease;
}
.primary-nav a::after { content: ""; position: absolute; left: 0; bottom: -0.5rem; width: 0; height: 1px; background: var(--gold-ink); transition: width 0.25s ease; }
.primary-nav a:hover { color: var(--fog-50); }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { width: 100%; }
.primary-nav a[aria-current="page"] { color: var(--fog-50); }

.header-actions { display: flex; align-items: center; gap: 0.85rem; flex-shrink: 0; }
.site-header .logo { flex-shrink: 0; }

/* Theme toggle */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem; padding: 0;
  border: 1px solid var(--hairline-soft); background: transparent;
  color: var(--fog-300); border-radius: 0.5rem; cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.theme-toggle:hover { color: var(--gold-ink); border-color: var(--hairline); background: rgba(228, 203, 76, 0.05); }
.theme-toggle svg { width: 17px; height: 17px; }
/* Show the icon of the mode you'll switch TO: day shows the moon (→ night), night shows the sun (→ day). */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline; }
:root[data-theme="night"] .theme-toggle .icon-sun { display: inline; }
:root[data-theme="night"] .theme-toggle .icon-moon { display: none; }

/* Language switcher */
.lang-switch { display: flex; align-items: center; gap: 0.1rem; }
.lang-switch a { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; color: var(--fog-500); padding: 0.22rem 0.42rem; border-radius: 0.3rem; transition: color 0.2s ease, background-color 0.2s ease; }
.lang-switch a:hover { color: var(--fog-100); }
.lang-switch a.active { color: var(--on-gold); background: var(--accent-400); }
/* On mobile the header shows only the logo + hamburger; Book, theme, and language move into
   the dropdown menu, so the bar can never overflow the viewport. */
@media (max-width: 767px) {
  .header-actions .btn-primary,
  .header-actions .theme-toggle,
  .header-actions .lang-switch { display: none; }
}

.menu-toggle { display: inline-flex; padding: 0.5rem; border: 0; background: transparent; color: var(--fog-200); border-radius: 0.375rem; cursor: pointer; }

.mobile-nav { border-top: 1px solid var(--hairline-soft); background: var(--ink-900); padding: 0.75rem 1.5rem; }
.mobile-nav a { display: block; border-radius: 0.375rem; padding: 0.7rem 0.5rem; font-size: 0.9rem; letter-spacing: 0.04em; color: var(--fog-200); }
.mobile-nav a:hover { background: var(--ink-800); }
.mobile-nav[hidden] { display: none; }
/* Book CTA inside the menu */
.mobile-nav a.mobile-cta {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  margin: 0.9rem 0.25rem 0.35rem;
  padding: 0.9rem; border-radius: 0.6rem;
  background: linear-gradient(180deg, var(--accent-300), var(--accent-500));
  color: var(--on-gold); font-weight: 600; letter-spacing: 0.02em;
  box-shadow: 0 8px 22px -12px rgba(203, 176, 60, 0.55);
}
.mobile-nav a.mobile-cta:hover { background: linear-gradient(180deg, var(--accent-300), var(--accent-400)); }
/* Theme row inside the menu */
.mobile-theme { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 0.5rem 0.35rem; border-top: 1px solid var(--hairline-soft); margin-top: 0.5rem; }
.mobile-theme span { font-size: 0.72rem; color: var(--fog-500); text-transform: uppercase; letter-spacing: 0.12em; }
.mobile-lang { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0.7rem 0.5rem 0.25rem; border-top: 1px solid var(--hairline-soft); margin-top: 0.5rem; }
.mobile-lang span { font-size: 0.72rem; color: var(--fog-500); text-transform: uppercase; letter-spacing: 0.12em; }
.mobile-lang a { display: inline; padding: 0.2rem 0.5rem; font-size: 0.85rem; color: var(--fog-300); border-radius: 0.3rem; }
.mobile-lang a.active { color: var(--on-gold); background: var(--accent-400); }

/* Show the horizontal nav only when there's room for the (longer, translated) labels;
   below this width the header collapses to the hamburger menu — no cramped wrapping. */
@media (min-width: 1080px) {
  .primary-nav { display: flex; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero .inner { position: relative; max-width: var(--maxw); margin-inline: auto; padding: 6rem 1.5rem 5rem; }
@media (min-width: 640px) { .hero .inner { padding-top: 8rem; } }
.hero h1 { max-width: 20ch; margin-top: 1.5rem; }
.hero .lead { margin-top: 1.75rem; max-width: 44rem; }
.hero-actions { margin-top: 2.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; }
.hero-crest { width: 92px; height: auto; margin-bottom: 0.5rem; filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.3)); }

.stats { margin-top: 4.5rem; max-width: 46rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; border-top: 1px solid var(--hairline-soft); padding-top: 2.25rem; }
.stats dt { font-family: var(--font-serif); font-size: 1.9rem; font-weight: 600; color: var(--gold-ink); letter-spacing: 0.01em; }
.stats dd { margin-top: 0.35rem; font-size: 0.9rem; color: var(--fog-400); }

/* ---------- Section headers ---------- */
.section-head { margin-bottom: 3rem; display: flex; flex-direction: column; gap: 0.85rem; }
@media (min-width: 640px) { .section-head.row { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.section-head .section-title { margin-top: 0.6rem; }
.link-arrow { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--fog-300); transition: color 0.2s ease; }
.link-arrow:hover { color: var(--gold-ink); }

/* ---------- Grid utilities ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Cards ---------- */
.card {
  position: relative;
  border: 1px solid var(--hairline-soft);
  background: linear-gradient(160deg, var(--ink-850), var(--ink-900));
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { border-color: rgba(228, 203, 76, 0.4); transform: translateY(-3px); box-shadow: var(--shadow-soft); }
a.card:hover h3, a.card:hover h2 { color: var(--gold-ink); }

.service-card .icon { margin-bottom: 1.4rem; display: inline-flex; height: 3rem; width: 3rem; align-items: center; justify-content: center; border-radius: 0.7rem; border: 1px solid var(--hairline); background: rgba(228, 203, 76, 0.06); color: var(--gold-ink); font-size: 1.05rem; }
.service-card h3 { font-size: 1.4rem; }
.service-card .blurb { margin-top: 0.65rem; font-size: 0.92rem; line-height: 1.65; color: var(--fog-400); }
.bullets { margin-top: 1.4rem; list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.bullets li { display: flex; gap: 0.7rem; font-size: 0.9rem; color: var(--fog-300); }
.bullets .mark { margin-top: 0.1rem; color: var(--gold-ink); }

.card .client { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold-ink); }
.card h2, .card h3 { transition: color 0.25s ease; }
.card .summary { margin-top: 0.6rem; font-size: 0.92rem; color: var(--fog-400); flex: 1; }
.card .read-more { margin-top: 1.25rem; display: inline-block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold-ink); }

.process-card .step { font-family: var(--font-serif); font-size: 2rem; font-weight: 600; color: var(--gold-ink); }
.process-card h3 { margin-top: 0.85rem; font-size: 1.3rem; }
.process-card p { margin-top: 0.6rem; font-size: 0.9rem; color: var(--fog-400); }

/* Tag pills */
.tags { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; }
.tag { border: 1px solid var(--hairline-soft); border-radius: 999px; padding: 0.28rem 0.75rem; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--fog-400); }

/* ---------- CTA band ---------- */
.cta-band { padding-block: 6rem; }
.cta-inner {
  position: relative;
  max-width: 58rem;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--hairline);
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(228, 203, 76, 0.1), transparent 70%),
    linear-gradient(180deg, var(--ink-850), var(--ink-900));
  padding: 4rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-glow);
}
.cta-inner .bg-grid { opacity: 0.5; }
.cta-inner .content { position: relative; }
.cta-inner h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.cta-inner p { margin-inline: auto; margin-top: 1.2rem; max-width: 42rem; color: var(--fog-300); font-weight: 300; font-size: 1.08rem; }
.cta-inner .btn { margin-top: 2.25rem; }

/* ---------- Insights list ---------- */
.post-list { list-style: none; }
.post-list li { border-bottom: 1px solid var(--hairline-soft); }
.post-list li:first-child { border-top: 1px solid var(--hairline-soft); }
.post-list a { display: flex; flex-direction: column; gap: 0.35rem; padding-block: 2rem; transition: padding-left 0.25s ease; }
.post-list a:hover { padding-left: 0.5rem; }
.post-list h2 { font-size: 1.6rem; transition: color 0.25s ease; }
.post-list a:hover h2 { color: var(--gold-ink); }
.post-list .desc { margin-top: 0.4rem; max-width: 44rem; font-size: 0.95rem; color: var(--fog-400); }
.post-list time { flex-shrink: 0; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--fog-500); }
@media (min-width: 640px) { .post-list a { flex-direction: row; align-items: baseline; justify-content: space-between; } }

/* ---------- Article / prose ---------- */
.article { max-width: 46rem; margin-inline: auto; padding: 6rem 1.5rem 3rem; }
.back-link { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--fog-400); transition: color 0.2s ease; }
.back-link:hover { color: var(--gold-ink); }
.article h1 { margin-top: 2.25rem; font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 600; line-height: 1.08; }
.article .meta { margin-top: 1rem; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--fog-500); }
.results-grid { margin-top: 2.5rem; display: grid; gap: 1rem; list-style: none; }
@media (min-width: 640px) { .results-grid { grid-template-columns: repeat(3, 1fr); } }
.results-grid li { border: 1px solid var(--hairline); background: rgba(228, 203, 76, 0.05); border-radius: 0.8rem; padding: 1.25rem; font-family: var(--font-serif); font-size: 1.15rem; color: var(--fog-100); }

.prose { color: var(--fog-200); line-height: 1.85; margin-top: 2.5rem; font-size: 1.06rem; font-weight: 300; }
.prose h2 { color: var(--fog-50); font-family: var(--font-serif); font-size: 1.9rem; font-weight: 600; margin: 2.5rem 0 0.85rem; }
.prose h3 { color: var(--fog-50); font-family: var(--font-serif); font-size: 1.45rem; font-weight: 600; margin: 1.8rem 0 0.5rem; }
.prose p { margin: 1.15rem 0; }
.prose a { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul { list-style: none; padding-left: 0; margin: 1.15rem 0; }
.prose ul li { position: relative; padding-left: 1.5rem; margin: 0.55rem 0; }
.prose ul li::before { content: "❖"; position: absolute; left: 0; color: var(--gold-ink); font-size: 0.7em; top: 0.35em; }
.prose ol { list-style: decimal; padding-left: 1.4rem; margin: 1.15rem 0; }
.prose ol li { margin: 0.55rem 0; }
.prose ol li::marker { color: var(--gold-ink); font-family: var(--font-serif); font-weight: 600; }
.prose strong { color: var(--fog-50); font-weight: 600; }
.prose code { font-family: ui-monospace, "SF Mono", monospace; background: var(--ink-800); padding: 0.15rem 0.4rem; border-radius: 0.3rem; font-size: 0.88em; color: var(--gold-ink); }
.prose pre { background: var(--ink-900); border: 1px solid var(--hairline-soft); border-radius: 0.75rem; padding: 1.15rem; overflow-x: auto; margin: 1.5rem 0; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose blockquote { border-left: 2px solid var(--accent-500); padding-left: 1.25rem; color: var(--fog-300); margin: 1.5rem 0; font-style: italic; font-family: var(--font-serif); font-size: 1.2rem; }

/* ---------- Empty state ---------- */
.empty { border: 1px dashed var(--hairline); border-radius: 1rem; padding: 3rem; text-align: center; color: var(--fog-400); font-family: var(--font-serif); font-size: 1.2rem; }

/* ---------- Booking form ---------- */
.booking-hero { text-align: center; }
.booking-hero .lead { margin-inline: auto; }

.booking-card {
  border: 1px solid var(--hairline-soft);
  background: linear-gradient(160deg, var(--ink-850), var(--ink-900));
  border-radius: 1.4rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-glow);
}
@media (max-width: 640px) { .booking-card { padding: 1.6rem; } }

.step { border: 0; padding: 0; margin: 0; }
.step + .step { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--hairline-soft); }
.step legend { padding: 0; margin-bottom: 0.4rem; }
.field-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; margin-top: 1rem; }
@media (min-width: 640px) { .field-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }

label.field-label { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fog-400); margin-bottom: 0.4rem; }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="datetime-local"], input[type="time"], input[type="number"], input[type="password"],
textarea, select {
  width: 100%;
  background: var(--field-bg);
  border: 1px solid var(--ink-700);
  color: var(--fog-100);
  border-radius: 0.55rem;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent-500); box-shadow: 0 0 0 3px rgba(228, 203, 76, 0.14); outline: none; }
textarea { resize: vertical; }

/* Service radio chips */
.service-options { display: grid; gap: 0.85rem; grid-template-columns: 1fr; margin-top: 1rem; }
@media (min-width: 640px) { .service-options { grid-template-columns: repeat(2, 1fr); } }
.chip { display: block; cursor: pointer; border: 1px solid var(--ink-700); background: var(--ink-850); border-radius: 0.8rem; padding: 1.1rem; transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; }
.chip:hover { border-color: rgba(228, 203, 76, 0.45); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip .name { display: block; font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; color: var(--fog-50); }
.chip .detail { display: block; margin-top: 0.3rem; font-size: 0.78rem; color: var(--fog-400); }
.chip:has(input:checked) { border-color: var(--accent-400); background: rgba(228, 203, 76, 0.08); box-shadow: inset 0 0 0 1px var(--accent-400); }

/* Slot radio grid */
.slot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; margin-top: 1rem; }
@media (min-width: 640px) { .slot-grid { grid-template-columns: repeat(4, 1fr); } }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; pointer-events: none; }
.slot label { display: block; text-align: center; cursor: pointer; border: 1px solid var(--ink-700); background: var(--ink-850); color: var(--fog-100); border-radius: 0.5rem; padding: 0.65rem 0.5rem; font-size: 0.9rem; transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease; }
.slot label:hover { border-color: rgba(228, 203, 76, 0.45); }
.slot input:checked + label { border-color: var(--accent-400); background: var(--accent-400); color: var(--on-gold); font-weight: 600; }
.slot-empty { grid-column: 1 / -1; font-size: 0.9rem; color: var(--fog-500); }

.date-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem; margin-top: 1rem; }
.date-row input[type="date"] { width: auto; }

.honeypot { position: absolute; left: -9999px; }

.booking-submit { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 0.85rem; }
.form-status { min-height: 1.25rem; text-align: center; font-size: 0.9rem; }
.form-status.error { color: var(--red-400); }
.form-status.info { color: var(--fog-400); }

.alert { border-radius: 0.7rem; padding: 0.85rem 1.1rem; font-size: 0.92rem; margin-bottom: 1.25rem; }
.alert-error { background: rgba(191, 77, 56, 0.1); color: var(--red-400); border: 1px solid rgba(191, 77, 56, 0.3); }

/* Booking success panel */
.success-panel {
  margin-top: 1.5rem;
  border: 1px solid var(--hairline);
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(228, 203, 76, 0.1), transparent 70%),
    linear-gradient(180deg, var(--ink-850), var(--ink-900));
  border-radius: 1.4rem;
  padding: 2.75rem;
  text-align: center;
  box-shadow: var(--shadow-glow);
}
.success-panel .check { margin-inline: auto; display: flex; height: 3.25rem; width: 3.25rem; align-items: center; justify-content: center; border-radius: 999px; background: linear-gradient(180deg, var(--accent-300), var(--accent-500)); color: var(--on-gold); }
.success-panel h2 { margin-top: 1.25rem; font-size: 1.9rem; }
.success-panel p { margin-top: 0.65rem; color: var(--fog-300); }
.success-panel .sub { font-size: 0.85rem; color: var(--fog-500); }

/* ---------- 404 / 500 ---------- */
.notfound { max-width: 42rem; margin-inline: auto; padding: 9rem 1.5rem; text-align: center; display: flex; flex-direction: column; align-items: center; }
.notfound .code { font-family: var(--font-serif); font-size: 5rem; font-weight: 600; color: var(--gold-ink); line-height: 1; }
.notfound h1 { margin-top: 1.25rem; font-size: 2.1rem; }
.notfound p { margin-top: 0.85rem; color: var(--fog-400); }
.notfound .btn { margin-top: 2.25rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hairline-soft); background: var(--ink-950); margin-top: 2rem; }
.footer-grid { max-width: var(--maxw); margin-inline: auto; display: grid; gap: 3rem; padding: 4.5rem 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer-grid .about { max-width: 24rem; }
.footer-grid .about p { margin-top: 1.25rem; font-size: 0.92rem; line-height: 1.7; color: var(--fog-400); font-weight: 300; }
.legal { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--hairline-soft); font-size: 0.78rem; line-height: 1.5; color: var(--fog-500); }
.legal .legal-name { color: var(--fog-300); font-weight: 600; margin-bottom: 0.5rem; }
.legal > div { display: flex; gap: 0.5rem; margin-top: 0.2rem; }
.legal dt { flex-shrink: 0; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.66rem; color: var(--fog-500); padding-top: 0.05rem; min-width: 5.5rem; }
.legal dd { margin: 0; color: var(--fog-400); }
.footer-col .lbl { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.66rem; color: var(--fog-500); margin-right: 0.15rem; }
.footer-col a.social { display: inline-flex; align-items: center; gap: 0.45rem; }
.footer-col a.social svg { color: var(--gold-ink); }
.footer-col h2 { font-family: var(--font-sans); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold-ink); font-weight: 600; }
.footer-col ul { margin-top: 1.25rem; list-style: none; display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.9rem; }
.footer-col a { color: var(--fog-300); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--fog-50); }
.footer-col a.accent { color: var(--gold-ink); }
.footer-bottom { border-top: 1px solid var(--hairline-soft); }
.footer-bottom .inner { max-width: var(--maxw); margin-inline: auto; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 1.75rem 1.5rem; font-size: 0.72rem; color: var(--fog-500); }
@media (min-width: 640px) { .footer-bottom .inner { flex-direction: row; } }

/* Utility */
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.center { text-align: center; }
