/* =====================================================
   Aequita Advisory: design system
   ===================================================== */

:root {
  /* Palette: Boutique (default) */
  --bg: #faf8f3;
  --bg-alt: #f1ede2;
  --bg-deep: #ebe5d3;
  --ink: #161614;
  --ink-soft: #3a3a36;
  --ink-muted: #71706a;
  --ink-faint: #a09e94;
  --line: #e0dccf;
  --line-strong: #c8c3b3;
  --accent: #b8431f;
  --accent-soft: #d97a55;

  /* Type */
  --serif: 'Fraunces', 'Iowan Old Style', 'Apple Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'Inter', system-ui, -apple-system, sans-serif;

  /* Rhythm */
  --container: 880px;
  --gutter: 32px;
  --wide: 1160px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Palette: Slate */
[data-palette="slate"] {
  --bg: #f5f3ee;
  --bg-alt: #ebe7df;
  --bg-deep: #ddd7c9;
  --ink: #1a1f2e;
  --ink-soft: #3a3f4e;
  --ink-muted: #6c7283;
  --ink-faint: #9ea3b1;
  --line: #d8d4c8;
  --line-strong: #b8b3a3;
  --accent: #c97a2c;
  --accent-soft: #d99659;
}

/* Palette: Mono (no accent: italics carry weight) */
[data-palette="mono"] {
  --bg: #f7f5ef;
  --bg-alt: #ece8dc;
  --bg-deep: #ddd6c4;
  --ink: #0f0f0d;
  --ink-soft: #2e2e2a;
  --ink-muted: #6b6a64;
  --ink-faint: #a4a298;
  --line: #d8d3c2;
  --line-strong: #b6b1a1;
  --accent: #0f0f0d;
  --accent-soft: #2e2e2a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
::selection { background: var(--accent); color: var(--bg); }

/* Fraunces optical sizing for all display serif text */
h1, h2, h3, h4, .f-logo, blockquote {
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 0, "WONK" 0;
}

img, svg { display: block; max-width: 100%; }

/* Density */
[data-density="generous"] section { padding-block: 96px; }
[data-density="standard"] section { padding-block: 64px; }
[data-density="compact"] section { padding-block: 44px; }

/* =====================================================
   Layout
   ===================================================== */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.wrap-wide {
  max-width: var(--wide);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* =====================================================
   Top navigation
   ===================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.logo svg { width: 28px; height: 28px; transition: transform .4s var(--ease); }
.logo:hover svg { transform: rotate(-3deg); }
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-name {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
}
.logo-name em { font-style: italic; color: var(--accent); }
.logo-sub {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-top: 4px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-link {
  font-size: 13.5px;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color .15s var(--ease);
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-cta {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: all .2s var(--ease);
  background: transparent;
  cursor: pointer;
}
.nav-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.nav-cta .arrow { display: inline-block; transition: transform .2s var(--ease); }
.nav-cta:hover .arrow { transform: translateX(3px); }
@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* =====================================================
   Hero
   ===================================================== */
.hero {
  padding: 88px 0 72px;
  position: relative;
  overflow: clip;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
  max-width: 760px;
}
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero { padding: 56px 0 48px; }
}

.eyebrow {
  font-size: 12px;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.eyebrow .dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.eyebrow .dot::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.35;
  animation: dot-pulse 2.4s ease-out infinite;
}
@keyframes dot-pulse {
  0%   { transform: scale(0.85); opacity: 0.4; }
  70%  { transform: scale(1.9);  opacity: 0;   }
  100% { transform: scale(1.9);  opacity: 0;   }
}

h1.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5.8vw, 70px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: 28px;
}
h1.hero-title em {
  font-style: italic;
  color: var(--accent);
}
h1.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(18px);
  animation: rise .9s var(--ease) forwards;
}
h1.hero-title .line:nth-child(2) { animation-delay: .08s; }
h1.hero-title .line:nth-child(3) { animation-delay: .16s; }
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.lead {
  font-size: 19px;
  color: var(--ink-soft);
  margin-bottom: 38px;
  max-width: 540px;
  text-wrap: pretty;
  line-height: 1.55;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  border: 1px solid var(--ink);
  transition: all .2s var(--ease);
  cursor: pointer;
}
.cta:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.cta .arrow { display: inline-block; transition: transform .2s var(--ease); }
.cta:hover .arrow { transform: translateX(4px); }
.cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color .15s var(--ease);
}
.cta-ghost:hover { color: var(--accent); }
.cta-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-muted);
}
.hero-founder {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

/* Hero ornament: animated "A" of risk tiers */
.hero-art {
  position: relative;
  aspect-ratio: 1 / 1.05;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art svg {
  width: 100%;
  height: auto;
  max-width: 360px;
}
.hero-art .tier {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.2;
  opacity: 0;
  transform-origin: center;
  animation: tier-in 1.1s var(--ease) forwards;
}
.hero-art .tier-fill {
  fill: var(--ink);
  opacity: 0;
  animation: fade-in 1.1s var(--ease) forwards;
}
.hero-art .tier-accent {
  fill: var(--accent);
  opacity: 0;
  animation: fade-in 1.1s var(--ease) forwards;
}
.hero-art .tier-bg {
  fill: var(--bg-alt);
  opacity: 0;
  animation: fade-in 1.1s var(--ease) forwards;
}
.hero-art .t1 { animation-delay: .3s; }
.hero-art .t2 { animation-delay: .5s; }
.hero-art .t3 { animation-delay: .7s; }
.hero-art .t4 { animation-delay: .9s; }
.hero-art .label {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: var(--ink-muted);
  opacity: 0;
  animation: fade-in .8s var(--ease) forwards;
}
.hero-art .label.l1 { animation-delay: 1.1s; }
.hero-art .label.l2 { animation-delay: 1.2s; }
.hero-art .label.l3 { animation-delay: 1.3s; }
.hero-art .label.l4 { animation-delay: 1.4s; }
.hero-art .caption {
  font-family: var(--serif);
  font-size: 11px;
  font-style: italic;
  fill: var(--ink-faint);
  opacity: 0;
  animation: fade-in .8s var(--ease) forwards;
  animation-delay: 1.5s;
}

@keyframes fade-in { to { opacity: 1; } }
@keyframes tier-in {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow .dot::before,
  h1.hero-title .line,
  .hero-art .tier,
  .hero-art .tier-fill,
  .hero-art .tier-accent,
  .hero-art .tier-bg,
  .hero-art .label,
  .hero-art .caption {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

/* =====================================================
   Sections: shared
   ===================================================== */
section {
  padding-block: 80px;
  border-top: 1px solid var(--line);
  position: relative;
}
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}
h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  text-wrap: balance;
}
h2 em { font-style: italic; color: var(--accent); }
p {
  margin-bottom: 16px;
  color: var(--ink-soft);
  font-size: 16.5px;
  text-wrap: pretty;
}
p strong { color: var(--ink); font-weight: 600; }
p em { font-style: italic; color: var(--accent); }
p:last-child { margin-bottom: 0; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =====================================================
   Approach (two-column editorial)
   ===================================================== */
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 760px) {
  .approach-grid { grid-template-columns: 1fr; gap: 28px; }
}
.approach-lead {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 420px;
}
.approach-do, .approach-dont {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 28px;
}
.approach-do strong, .approach-dont strong {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
}
.approach-do strong::before { content: "+ "; color: var(--accent); }
.approach-dont strong::before { content: "− "; color: var(--ink-muted); }
.approach-list {
  list-style: none;
  display: grid;
  gap: 8px;
}
.approach-list li {
  font-size: 15px;
  color: var(--ink-soft);
  padding-left: 24px;
  position: relative;
  line-height: 1.45;
}
/* Tick style for "What I do": highlighted, active */
.approach-tick li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}
.approach-tick li a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.approach-tick li a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
/* Cross style for "What I don't": muted, struck-through feel */
.approach-cross li {
  color: var(--ink-muted);
}
.approach-cross li::before {
  content: "✕";
  position: absolute;
  left: 0; top: 0;
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 13px;
}

/* Service resources: free PDFs below each service */
.svc-resources {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.svc-res-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: 2px;
}
.svc-resources a {
  font-size: 13.5px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.svc-resources a:hover { color: var(--accent); }
.svc-resources a .arrow { transition: transform .2s var(--ease); }
.svc-resources a:hover .arrow { transform: translateX(3px); }

/* Service actions: book a call + request form */
.svc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.svc-btn {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all .2s var(--ease);
  border: 1px solid var(--ink);
}
.svc-btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.svc-btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.svc-btn-primary .arrow { transition: transform .2s var(--ease); }
.svc-btn-primary:hover .arrow { transform: translateX(3px); }
.svc-btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.svc-btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.svc-btn-ghost .chev { font-size: 10px; transition: transform .2s var(--ease); }
.svc-btn-ghost[aria-expanded="true"] .chev { transform: rotate(180deg); }

/* Collapsible per-service form */
.svc-form {
  margin-top: 20px;
  padding: 24px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 4px;
  animation: svcFormIn .3s var(--ease);
}
.svc-form[hidden] { display: none; }
@keyframes svcFormIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   Services: numbered editorial
   ===================================================== */
.services-intro {
  max-width: 580px;
  margin-bottom: 32px;
}
.svc {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 60px 1fr 200px;
  gap: 32px;
  align-items: start;
  transition: background .25s var(--ease);
}
.svc:last-of-type { border-bottom: 1px solid var(--line); }
.svc:hover { background: linear-gradient(to right, transparent, var(--bg-alt) 50%, transparent); }
.svc-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  color: var(--accent);
  line-height: 1;
  padding-top: 4px;
}
.svc-body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.012em;
  line-height: 1.15;
  margin-bottom: 8px;
}
.svc-body h3 em { font-style: italic; color: var(--accent); }
.svc-body p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 14px;
  max-width: 540px;
}
.svc-deliverables {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-top: 12px;
}
.svc-deliverables span {
  font-size: 11.5px;
  color: var(--ink-muted);
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
}
.svc-meta {
  text-align: right;
  font-size: 12.5px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  padding-top: 8px;
  line-height: 1.7;
}
.svc-meta strong {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 4px;
}
@media (max-width: 760px) {
  .svc {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .svc-meta { text-align: left; }
}

.svc-also {
  margin-top: 36px;
  padding: 20px 0;
  font-size: 14.5px;
  color: var(--ink-muted);
  border-top: 1px dashed var(--line);
}
.svc-also strong { color: var(--ink); font-weight: 500; }

/* =====================================================
   Frameworks: full bleed background, diagrams
   ===================================================== */
.frameworks {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.frameworks .intro {
  max-width: 600px;
  margin-bottom: 48px;
}
.fw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) {
  .fw-grid { grid-template-columns: 1fr; gap: 20px; }
}
.fw-card {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.fw-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}
.fw-card .fw-kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
}
.fw-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  min-height: 52px;
}
.fw-card h3 em { font-style: italic; color: var(--accent); }
.fw-diagram {
  width: 100%;
  aspect-ratio: 1 / 0.85;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fw-diagram svg { width: 100%; height: 100%; overflow: visible; }
.fw-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-top: auto;
}

/* SVG diagram pieces: use currentColor where helpful */
.dx-line { stroke: var(--ink); stroke-width: 1.2; fill: none; }
.dx-line-soft { stroke: var(--line-strong); stroke-width: 1; fill: none; }
.dx-fill { fill: var(--ink); }
.dx-fill-soft { fill: var(--bg-alt); }
.dx-accent { fill: var(--accent); }
.dx-accent-stroke { stroke: var(--accent); stroke-width: 1.4; fill: none; }
.dx-text {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.06em;
  fill: var(--ink-soft);
}
.dx-text-small {
  font-family: var(--sans);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  fill: var(--ink-muted);
}
.dx-text-serif {
  font-family: var(--serif);
  font-style: italic;
  font-size: 11px;
  fill: var(--ink);
}

/* Animation on hover */
.fw-card .dx-anim {
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.fw-card:hover .dx-anim-pulse {
  animation: gentle-pulse 1.4s var(--ease) infinite;
}
@keyframes gentle-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* =====================================================
   How working with me feels
   ===================================================== */
.how-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.how-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  align-items: baseline;
  transition: padding-left .25s var(--ease);
}
.how-item:hover { padding-left: 12px; }
.how-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  padding-top: 4px;
}
.how-body strong {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 20px;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}
.how-body p {
  font-size: 15.5px;
  color: var(--ink-soft);
  margin: 0;
}

/* =====================================================
   About: with pull quote
   ===================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
}
.about-meta {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.7;
}
.about-meta dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 16px;
}
.about-meta dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 2px;
}
.about-meta dd { color: var(--ink-soft); }
.about-meta dd em { font-style: italic; color: var(--accent); }

.pullquote {
  border-left: 2px solid var(--accent);
  padding: 8px 0 8px 20px;
  margin: 20px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.4;
  color: var(--ink);
}

/* =====================================================
   Resources
   ===================================================== */
.res {
  margin-top: 8px;
  display: grid;
  border-top: 1px solid var(--line);
}
.res-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 18px;
  align-items: baseline;
  text-decoration: none;
  color: inherit;
  transition: padding-left .25s var(--ease);
}
.res-item:hover { padding-left: 10px; }
.res-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}
.res-name {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: -0.005em;
  line-height: 1.3;
  color: var(--ink);
}
.res-name em { font-style: italic; color: var(--accent); }
.res-link {
  font-size: 13px;
  color: var(--ink-muted);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.res-item:hover .res-link { color: var(--accent); }
.res-link .arrow { transition: transform .15s var(--ease); display: inline-block; }
.res-item:hover .arrow { transform: translateX(4px); }

@media (max-width: 600px) {
  .res-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .res-num { display: none; }
}

/* =====================================================
   Roadmap
   ===================================================== */
.roadmap-list {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}
.roadmap-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  align-items: baseline;
}
.roadmap-when {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.roadmap-what {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  line-height: 1.3;
}
.roadmap-what em { font-style: italic; color: var(--accent); }
.roadmap-desc {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-muted);
  margin-top: 6px;
  line-height: 1.55;
  font-style: normal;
}
@media (max-width: 600px) {
  .roadmap-item { grid-template-columns: 1fr; gap: 6px; }
}

/* =====================================================
   FAQ
   ===================================================== */
.faq {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}
.faq-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
summary {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  cursor: pointer;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  transition: color .15s var(--ease);
}
summary:hover { color: var(--accent); }
summary::-webkit-details-marker { display: none; }
summary .plus {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--ink-muted);
  transition: transform .25s var(--ease), color .15s var(--ease);
  flex-shrink: 0;
}
details[open] summary .plus { transform: rotate(45deg); color: var(--accent); }
.faq-a {
  margin-top: 14px;
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 640px;
}
.faq-a strong { color: var(--ink); font-weight: 600; }

/* =====================================================
   Contact
   ===================================================== */
.contact-intro {
  max-width: 560px;
  margin-bottom: 36px;
}
.contact-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 820px) {
  .contact-paths { grid-template-columns: 1fr; gap: 24px; }
}
.contact-path {
  border: 1px solid var(--line);
  padding: 32px;
  background: var(--bg);
}
.contact-path-call {
  background: var(--bg-alt);
}
.path-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.contact-path h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.012em;
  margin-bottom: 10px;
}
.path-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 22px;
}

/* Enquiry form */
.enquiry-form { display: grid; gap: 14px; }
.hidden-field { display: none; }
.form-row { display: grid; gap: 5px; }
.form-row label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  padding: 9px 12px;
  border-radius: 2px;
  transition: border-color .2s var(--ease);
  width: 100%;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-row textarea { resize: vertical; min-height: 80px; }
.form-submit {
  justify-self: start;
  margin-top: 4px;
  border: none;
  cursor: pointer;
}
.form-success {
  padding: 20px 24px;
  background: var(--bg-alt);
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}
.form-success strong { color: var(--accent); }

/* Call path */
.path-direct {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-muted);
}
.path-direct span { display: block; margin-bottom: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.email-link {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.015em;
  border-bottom: 1px solid transparent;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.email-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.path-meta {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px 16px;
  font-size: 13.5px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.path-meta dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 3px;
}
.path-meta dd { color: var(--ink-soft); }
.path-meta a {
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-strong);
  text-decoration: none;
  transition: color .15s var(--ease);
}
.path-meta a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Layout B: primary call + secondary form */
.contact-primary {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 48px;
}
@media (max-width: 820px) {
  .contact-primary { grid-template-columns: 1fr; gap: 28px; }
}
.contact-primary-text p {
  max-width: 520px;
  margin-bottom: 22px;
  color: var(--ink-soft);
}
.cta-large {
  font-size: 16px;
  padding: 14px 28px;
}
.contact-card-b {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 28px;
}
.contact-secondary {
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.secondary-head { margin-bottom: 24px; }
.secondary-head h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.012em;
  margin-bottom: 8px;
}
.secondary-head h3 em { font-style: italic; color: var(--accent); }
.secondary-head p {
  max-width: 600px;
  color: var(--ink-soft);
  font-size: 15px;
}
.enquiry-form-inline { max-width: 720px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   Footer
   ===================================================== */
footer {
  padding: 40px 0 60px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 24px;
  align-items: center;
  font-size: 12.5px;
  color: var(--ink-muted);
}
footer .f-logo {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
}
footer .f-logo em { font-style: italic; color: var(--accent); }
footer .f-divider { flex: 1; height: 1px; background: var(--line); }
@media (max-width: 600px) {
  footer { grid-template-columns: 1fr; text-align: left; gap: 8px; }
  footer .f-divider { display: none; }
}

/* =====================================================
   Booking modal
   ===================================================== */
.booking-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 22, 20, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.booking-overlay.open { display: flex; opacity: 1; }
.booking-modal {
  background: var(--bg);
  width: 100%;
  max-width: 1000px;
  height: min(720px, 90vh);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(8px);
  transition: transform 0.2s ease;
}
.booking-overlay.open .booking-modal { transform: translateY(0); }
.booking-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  font-size: 18px; line-height: 1;
  cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.booking-close:hover { color: var(--accent); border-color: var(--accent); }
.booking-frame { width: 100%; height: 100%; border: 0; display: block; }
.booking-loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-muted); font-size: 14px; pointer-events: none;
}
.booking-overlay.loaded .booking-loading { display: none; }
body.booking-open { overflow: hidden; }
@media (max-width: 600px) {
  .booking-overlay { padding: 0; }
  .booking-modal { height: 100vh; max-height: 100vh; border-radius: 0; }
}

/* =====================================================
   Tweaks panel
   ===================================================== */
.tweaks {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 18px;
  width: 280px;
  box-shadow: 0 12px 32px -8px rgba(0,0,0,0.18);
  display: none;
  font-family: var(--sans);
}
.tweaks.open { display: block; }
.tweaks h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  margin-bottom: 4px;
  color: var(--ink);
}
.tweaks h4 em { font-style: italic; color: var(--accent); }
.tweaks .tweaks-sub {
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-bottom: 16px;
}
.tweaks .tweaks-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.tweaks .tweaks-section:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.tweaks label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.tweaks .swatches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.tweaks .swatch {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  transition: border-color .15s var(--ease);
  text-align: left;
  font: inherit;
}
.tweaks .swatch:hover { border-color: var(--line-strong); }
.tweaks .swatch.active { border-color: var(--ink); }
.tweaks .swatch-chips {
  display: flex;
  gap: 3px;
  margin-bottom: 6px;
}
.tweaks .swatch-chip {
  width: 14px; height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,0.08);
}
.tweaks .swatch-name {
  font-size: 10px;
  color: var(--ink-soft);
  font-family: var(--sans);
}
.tweaks .segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-alt);
  padding: 3px;
  gap: 3px;
}
.tweaks .segmented button {
  font: inherit;
  font-size: 11.5px;
  background: transparent;
  border: 0;
  color: var(--ink-muted);
  padding: 6px 4px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s var(--ease);
}
.tweaks .segmented button.active {
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.tweaks .close-x {
  position: absolute;
  top: 12px; right: 12px;
  background: transparent;
  border: 0;
  color: var(--ink-muted);
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.tweaks .close-x:hover { color: var(--accent); }

@media (max-width: 600px) {
  .tweaks { right: 12px; bottom: 12px; left: 12px; width: auto; }
}

/* =====================================================
   GDPR Maturity Assessment
   ===================================================== */
.qa-intro { padding-top: 56px; max-width: 640px; }
.qa-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 14px 0 18px;
}
.qa-title em { font-style: italic; color: var(--accent); }
.qa-lead { font-size: 17px; line-height: 1.6; color: var(--ink-soft); margin-bottom: 14px; }
.qa-note-top { font-size: 13.5px; color: var(--ink-muted); line-height: 1.55; max-width: 600px; }

.qa-form { margin-top: 40px; }
.qa-progress {
  position: sticky; top: 70px; z-index: 10;
  height: 4px; background: var(--line); border-radius: 999px; overflow: hidden;
}
.qa-progress-bar { height: 100%; width: 0; background: var(--accent); transition: width .3s var(--ease); }
.qa-progress-text { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); margin: 8px 0 32px; }

.qa-section { border: none; padding: 0; margin: 0 0 44px; }
.qa-section-title {
  font-family: var(--serif); font-weight: 400; font-size: 24px; letter-spacing: -0.01em;
  padding: 0; margin-bottom: 22px; display: flex; align-items: baseline; gap: 12px;
  border-bottom: 1px solid var(--line); padding-bottom: 12px; width: 100%;
}
.qa-section-num { font-family: var(--mono); font-size: 13px; color: var(--accent); font-weight: 600; }

.qa-q { margin-bottom: 26px; }
.qa-q-text { font-size: 15.5px; font-weight: 500; color: var(--ink); margin-bottom: 12px; line-height: 1.5; }
.qa-opts { display: grid; gap: 7px; }
.qa-opt {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 4px;
  cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease);
  font-size: 14px; line-height: 1.45; color: var(--ink-soft);
}
.qa-opt:hover { border-color: var(--accent-soft); background: var(--bg-alt); }
.qa-opt input { margin: 0; position: absolute; opacity: 0; width: 0; height: 0; }
.qa-opt.selected { border-color: var(--accent); background: var(--bg-alt); color: var(--ink); }
.qa-opt-score {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--ink-muted);
  transition: all .15s var(--ease);
}
.qa-opt.selected .qa-opt-score { background: var(--accent); border-color: var(--accent); color: var(--bg); }

.qa-contact .qa-fields { display: grid; gap: 14px; max-width: 520px; }

.qa-submit-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.qa-submit-hint { font-size: 13px; color: var(--accent); }

/* Result */
.qa-result { padding-top: 40px; max-width: 640px; }
.qa-score-big { font-family: var(--serif); display: flex; align-items: baseline; gap: 8px; margin: 10px 0 4px; }
.qa-score-big #qaScoreNum { font-size: 72px; line-height: 1; color: var(--accent); }
.qa-score-max { font-size: 24px; color: var(--ink-muted); }
.qa-band { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 8px 0 10px; }
.qa-band-note { font-size: 16px; line-height: 1.6; color: var(--ink-soft); margin-bottom: 28px; }

.qa-section-scores { display: grid; gap: 10px; margin-bottom: 36px; }
.qa-ss-row { display: grid; grid-template-columns: 1fr 140px 52px; align-items: center; gap: 12px; font-size: 13.5px; }
.qa-ss-name { color: var(--ink-soft); }
.qa-ss-bar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.qa-ss-fill { display: block; height: 100%; background: var(--accent); }
.qa-ss-num { font-family: var(--mono); font-size: 12px; color: var(--ink-muted); text-align: right; }

.qa-result-cta { border-top: 1px solid var(--line); padding-top: 24px; }
.qa-result-cta p { margin-bottom: 14px; color: var(--ink-soft); }
.qa-result-back { margin-top: 18px; font-size: 14px; }
.qa-result-back a { color: var(--ink-muted); }

@media (max-width: 560px) {
  .qa-ss-row { grid-template-columns: 1fr 80px 48px; }
}
