:root {
    --bg: #07050a;
    --bg-elev: #0d0a12;
    --bg-card: #11101a;
    --line: rgba(255, 140, 80, 0.08);
    --line-strong: rgba(255, 140, 80, 0.20);
    --text: #f4ede5;
    --text-dim: #a89d92;
    --text-mute: #8f867a;
    --orange: #ff5722;
    --orange-bright: #ff6a3d;
    --amber: #ffb547;
    --amber-light: #ffd27f;
    --spark: #fff4d6;
    --orange-dim: rgba(255, 87, 34, 0.18);
    --amber-dim: rgba(255, 181, 71, 0.15);
    --red: #ff4d6d;
    --green: #4ade80;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
    --sans: 'Sora', system-ui, sans-serif;
    --grad: linear-gradient(135deg, #ff5722 0%, #ff8c42 50%, #ffb547 100%);
    /* Gradient used as text colour (needs to be darker in light mode) */
    --grad-text: var(--grad);
    --on-accent: #1a0e08;          /* text on orange buttons/badges */
    --nav-bg: rgba(7, 5, 10, 0.78);
    --grid-line: rgba(255, 140, 80, 0.04);
    --shadow: rgba(0, 0, 0, 0.6);
    --panel: #141414;
    --bg-alt: #0a0a0a;
    color-scheme: dark;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }

  /* Particle landing layer — Three.js point cloud morphs scene-by-scene.
     Sits behind the grid + noise + content. Hidden on narrow viewports and
     when the visitor prefers reduced motion (handled by the JS boot gate). */
  #iit-particles {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    display: block;
  }

  /* Animated grid background */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
      linear-gradient(var(--grid-line) 1px, transparent 1px),
      linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 1;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.8) 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.8) 0%, transparent 70%);
  }

  /* Noise overlay */
  body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 0.5 0 0 0 0 0.2 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 2;
    opacity: 0.6;
  }

  .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 3;
  }

  /* === NAV === */
  nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: var(--nav-bg);
    border-bottom: 1px solid var(--line);
  }

  .nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text);
    transition: opacity 0.2s;
  }
  .logo:hover { opacity: 0.85; }

  .logo-mark {
    width: 64px;
    height: 64px;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
    /* No background, no shadow — let the transparent PNG sit naturally on the nav */
  }

  .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 0.92;
    letter-spacing: -0.01em;
  }
  .logo-word-1 {
    font-family: var(--sans);
    font-weight: 800;
    font-size: 22px;
    color: var(--text);
    letter-spacing: 0.02em;
  }
  .logo-word-2 {
    font-family: var(--sans);
    font-weight: 800;
    font-size: 22px;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.04em;
    margin-top: 4px;
  }

  /* Footer logo — same horizontal lockup as the nav, just bigger */
  .footer-logo {
    gap: 18px;
  }
  .footer-logo .footer-logo-mark {
    width: 80px;
    height: 80px;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
  }
  .footer-logo .logo-word-1,
  .footer-logo .logo-word-2 {
    font-size: 26px;
    letter-spacing: 0.02em;
  }
  .footer-logo .logo-word-2 {
    margin-top: 4px;
  }

  .nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    font-family: var(--mono);
    font-size: 13px;
    padding: 0;
    margin: 0;
  }
  .nav-links li { white-space: nowrap; }
  .nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
    white-space: nowrap;
  }
  .nav-links a::before {
    content: '> ';
    color: var(--orange);
    opacity: 0;
    transition: opacity 0.2s;
  }
  .nav-links a:hover { color: var(--text); }
  .nav-links a:hover::before { opacity: 1; }

  .nav-cta {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--on-accent);
    background: var(--grad);
    padding: 10px 18px;
    border: none;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s;
    box-shadow: 0 0 20px var(--orange-dim);
    position: relative;
  }
  .nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 30px rgba(255, 87, 34, 0.5);
  }

  .menu-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; }

  /* === HERO === */
  .hero {
    min-height: 100vh;
    padding: 140px 0 80px;
    position: relative;
    display: flex;
    align-items: center;
  }

  /* Hero ambient glow */
  .hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--orange-dim) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
  }
  .hero::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--amber-dim) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
  }

  .hero-tag {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--amber);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .hero-tag::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--orange);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--orange);
    animation: blink 1.6s infinite;
  }
  @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
  }

  h1 {
    font-family: var(--sans);
    font-size: clamp(40px, 6.5vw, 84px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.04em;
    margin-bottom: 28px;
  }
  h1 .accent {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    position: relative;
  }
  h1 .accent::after {
    content: '_';
    color: var(--orange);
    -webkit-text-fill-color: var(--orange);
    animation: blink 1s steps(1) infinite;
  }

  .hero-sub {
    font-size: 19px;
    color: var(--text-dim);
    max-width: 560px;
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.55;
  }

  .hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }

  .btn {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 700;
    padding: 16px 28px;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: none;
  }
  .btn-primary {
    background: var(--grad);
    color: var(--on-accent);
    box-shadow: 0 0 24px var(--orange-dim);
    position: relative;
  }
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 36px rgba(255, 87, 34, 0.4);
  }
  .btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line-strong);
  }
  .btn-ghost:hover {
    border-color: var(--orange);
    color: var(--orange);
    box-shadow: 0 0 20px var(--orange-dim);
  }

  /* Hero panel — fake terminal/SOC */
  .hero-panel {
    background: var(--bg-card);
    border: 1px solid var(--line-strong);
    font-family: var(--mono);
    font-size: 12.5px;
    position: relative;
    box-shadow: 0 30px 80px var(--shadow), 0 0 0 1px var(--line);
  }
  .hero-panel::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, var(--orange) 0%, transparent 40%, transparent 60%, var(--amber) 100%);
    z-index: -1;
    opacity: 0.4;
  }

  .panel-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    color: var(--text-mute);
    font-size: 11px;
    letter-spacing: 0.05em;
  }
  .panel-dot { width: 10px; height: 10px; border-radius: 50%; }
  .panel-dot.r { background: #ff5f57; }
  .panel-dot.y { background: #febc2e; }
  .panel-dot.g { background: #28c941; }
  .panel-bar span:last-child { margin-left: auto; }

  .panel-body { padding: 20px 18px; line-height: 1.85; }
  .panel-body .line { display: block; }
  .panel-body .prompt { color: var(--orange); }
  .panel-body .cmd { color: var(--text); }
  .panel-body .ok { color: var(--green); }
  .panel-body .warn { color: var(--amber); }
  .panel-body .err { color: var(--red); }
  .panel-body .dim { color: var(--text-mute); }
  .panel-body .stat { display: flex; justify-content: space-between; padding: 2px 0; }

  /* === SECTION HEADERS === */
  section { padding: 120px 0; position: relative; }
  .section-tag {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--orange);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .section-tag::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--grad);
  }
  .section-title {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 24px;
    max-width: 800px;
  }
  .section-lead {
    font-size: 18px;
    color: var(--text-dim);
    max-width: 720px;
    margin-bottom: 64px;
    line-height: 1.55;
  }

  /* === SERVICES === */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
  }
  .service {
    background: var(--bg);
    padding: 40px 36px;
    position: relative;
    transition: background 0.3s;
    cursor: pointer;
  }
  .service:hover { background: var(--bg-elev); }
  .service:hover .service-num {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .service:hover .service-icon { color: var(--orange); transform: translateX(4px); }

  .service-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
  }
  .service-num {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-mute);
    letter-spacing: 0.1em;
    transition: color 0.2s;
  }
  .service-icon {
    width: 24px;
    height: 24px;
    color: var(--text-dim);
    transition: all 0.2s;
  }
  .service h3 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    line-height: 1.2;
  }
  .service p {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 20px;
  }
  .service ul {
    list-style: none;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-mute);
  }
  .service li {
    padding: 4px 0;
    display: flex;
    gap: 10px;
  }
  .service li::before {
    content: '+';
    color: var(--orange);
  }



  /* === Wide service card (spans full row of grid) === */
  .service-wide {
    grid-column: 1 / -1;
    padding: 0;
  }
  .service-wide:hover { background: var(--bg); }
  .service-wide-inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 0;
  }
  .service-wide-content {
    padding: 40px 36px;
    border-right: 1px solid var(--line);
  }
  .service-wide-visual {
    padding: 40px 36px;
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.04) 0%, rgba(255, 181, 71, 0.02) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Executive briefing panel */
  .exec-panel {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--line-strong);
    font-family: var(--mono);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  }
  .exec-panel-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .exec-panel-tag {
    font-size: 10px;
    color: var(--orange);
    letter-spacing: 0.15em;
  }
  .exec-panel-period {
    font-size: 10px;
    color: var(--text-mute);
    letter-spacing: 0.1em;
  }
  .exec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
  }
  .exec-tile {
    background: var(--bg-card);
    padding: 18px;
  }
  .exec-tile-kpis {
    grid-column: 1 / -1;
  }
  .exec-tile-label {
    font-size: 10px;
    color: var(--text-mute);
    letter-spacing: 0.15em;
    margin-bottom: 14px;
  }

  /* Roadmap bars */
  .exec-tile-bars { display: flex; flex-direction: column; gap: 10px; }
  .exec-bar { display: grid; grid-template-columns: 110px 1fr 36px; gap: 10px; align-items: center; font-size: 11px; }
  .exec-bar-name { color: var(--text-dim); }
  .exec-bar-track { height: 4px; background: rgba(255, 140, 80, 0.08); position: relative; }
  .exec-bar-fill { height: 100%; background: var(--grad); }
  .exec-bar-val { color: var(--orange); text-align: right; }

  /* Risks */
  .exec-risk-list { display: flex; flex-direction: column; gap: 10px; }
  .exec-risk { display: grid; grid-template-columns: 12px 1fr 50px; gap: 10px; align-items: center; font-size: 11px; }
  .risk-dot { width: 8px; height: 8px; border-radius: 50%; }
  .risk-low { background: var(--green); box-shadow: 0 0 6px var(--green); }
  .risk-med { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
  .risk-high { background: var(--red); box-shadow: 0 0 6px var(--red); }
  .risk-name { color: var(--text-dim); }
  .risk-tag { font-size: 9px; letter-spacing: 0.1em; color: var(--text-mute); text-align: right; }

  /* KPIs */
  .exec-kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .exec-kpi {
    text-align: center;
    padding: 12px 6px;
    background: rgba(255, 140, 80, 0.03);
    border: 1px solid var(--line);
  }
  .exec-kpi-num {
    font-size: 22px;
    font-weight: 700;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    letter-spacing: -0.02em;
  }
  .exec-kpi-unit { font-size: 13px; }
  .exec-kpi-name {
    font-size: 9px;
    color: var(--text-mute);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 6px;
  }

  /* Footer */
  .exec-panel-footer {
    padding: 12px 18px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    color: var(--green);
    letter-spacing: 0.15em;
  }
  .exec-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: blink 2s infinite;
  }

  @media (max-width: 980px) {
    .service-wide-inner { grid-template-columns: 1fr; }
    .service-wide-content { border-right: none; border-bottom: 1px solid var(--line); }
    .exec-bar { grid-template-columns: 90px 1fr 32px; }
  }
  @media (max-width: 600px) {
    .exec-grid { grid-template-columns: 1fr; }
    .exec-kpi-row { grid-template-columns: repeat(2, 1fr); }
  }

  /* === STATS === */
  .stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .stat-cell {
    padding: 48px 32px;
    border-right: 1px solid var(--line);
    position: relative;
  }
  .stat-cell:last-child { border-right: none; }
  .stat-num {
    font-family: var(--mono);
    font-size: 56px;
    font-weight: 700;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
  }
  .stat-label {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }

  /* === PROCESS === */
  .process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 48px;
  }
  .process-step {
    border-top: 2px solid var(--line);
    padding-top: 24px;
    position: relative;
  }
  .process-step::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--grad);
    box-shadow: 0 0 8px var(--orange);
  }
  .process-num {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--orange);
    margin-bottom: 12px;
  }
  .process-step h4 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
  }
  .process-step p {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.6;
  }

  /* === STACK === */
  .stack-section {
    background: var(--bg-elev);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .stack-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: start;
  }
  .stack-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  .stack-cat h5 {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--orange);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
  }
  .stack-cat ul {
    list-style: none;
    font-size: 14px;
    color: var(--text-dim);
  }
  .stack-cat li { padding: 4px 0; }

  /* === ABOUT === */
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }
  .about-stat {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text-mute);
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
  }
  .about-stat strong {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
  }

  .about-visual {
    aspect-ratio: 1 / 1;
    background:
      radial-gradient(circle at 30% 40%, var(--orange-dim), transparent 50%),
      radial-gradient(circle at 70% 70%, var(--amber-dim), transparent 50%),
      var(--bg-card);
    border: 1px solid var(--line-strong);
    position: relative;
    overflow: hidden;
  }
  .about-visual svg { width: 100%; height: 100%; }

  /* === CTA === */
  .cta-section {
    padding: 100px 0;
    text-align: center;
    border-top: 1px solid var(--line);
    background:
      radial-gradient(ellipse at center top, var(--orange-dim), transparent 60%),
      var(--bg);
  }
  .cta-section h2 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
  .cta-section h2 span {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .cta-section p {
    color: var(--text-dim);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 40px;
  }

  /* === CONTACT === */
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
  .contact-info h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 24px;
  }
  .contact-info p {
    color: var(--text-dim);
    font-size: 16px;
    margin-bottom: 40px;
  }
  .contact-detail {
    padding: 20px 0;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
  }
  .contact-detail:last-child { border-bottom: 1px solid var(--line); }
  .contact-label {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-mute);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    flex-shrink: 0;
  }
  .contact-value {
    font-size: 15px;
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
    text-align: right;
  }
  .contact-value:hover { color: var(--orange); }

  /* form */
  .contact-form {
    background: var(--bg-card);
    border: 1px solid var(--line-strong);
    padding: 40px;
  }
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .form-group { margin-bottom: 20px; }
  .form-group.full { grid-column: 1 / -1; }
  label {
    display: block;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-mute);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 8px;
  }
  input, select, textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--line-strong);
    color: var(--text);
    padding: 14px 16px;
    font-family: var(--sans);
    font-size: 15px;
    transition: border-color 0.2s;
  }
  input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px var(--orange-dim);
  }
  textarea { resize: vertical; min-height: 110px; font-family: var(--sans); }

  /* === FOOTER === */
  footer {
    border-top: 1px solid var(--line);
    padding: 60px 0 40px;
    background: var(--bg-elev);
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
  }
  .footer-brand p {
    color: var(--text-dim);
    font-size: 14px;
    margin-top: 16px;
    max-width: 320px;
  }
  .footer-col h6 {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--orange);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 16px;
  }
  .footer-col ul { list-style: none; }
  .footer-col li { margin-bottom: 8px; }
  .footer-col a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
  }
  .footer-col a:hover { color: var(--orange); }

  .footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-mute);
  }

  /* === REVEAL === */
  .js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  .js .reveal.in { opacity: 1; transform: none; }

  /* === RESPONSIVE === */
  @media (max-width: 980px) {
    .hero-grid, .stack-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat-cell:nth-child(2) { border-right: none; }
    .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-bottom: 1px solid var(--line); }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    section { padding: 80px 0; }
    .hero { padding: 120px 0 60px; }
    .logo-mark { width: 52px; height: 52px; }
    .logo-word-1, .logo-word-2 { font-size: 19px; }
    .footer-logo .footer-logo-mark { width: 64px; height: 64px; }
    .footer-logo .logo-word-1, .footer-logo .logo-word-2 { font-size: 22px; }
  }
  @media (max-width: 600px) {
    .container { padding: 0 20px; }
    .nav-inner { padding: 12px 20px; }
    .services-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr; }
    .stat-cell { border-right: none; border-bottom: 1px solid var(--line); }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 28px 24px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .nav-cta { padding: 8px 14px; font-size: 12px; }
    .stack-categories { grid-template-columns: 1fr; }
    .logo-mark { width: 44px; height: 44px; }
    .logo-word-1, .logo-word-2 { font-size: 16px; }
    .footer-logo .footer-logo-mark { width: 56px; height: 56px; }
    .footer-logo .logo-word-1, .footer-logo .logo-word-2 { font-size: 19px; }
    .footer-logo { gap: 14px; }
    .logo { gap: 12px; }
    .contact-detail { flex-direction: column; align-items: flex-start; gap: 6px; }
    .contact-value { text-align: left; }
  }

  /* === Mobile menu === */
  .mobile-menu {
    position: fixed;
    inset: 60px 0 0 0;
    background: var(--bg);
    z-index: 99;
    padding: 32px;
    transform: translateX(100%);
    transition: transform 0.3s;
  }
  .mobile-menu.open { transform: translateX(0); }
  .mobile-menu ul { list-style: none; }
  .mobile-menu li { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .mobile-menu a {
    color: var(--text);
    text-decoration: none;
    font-family: var(--mono);
    font-size: 16px;
  }

/* ============================================================
   NEW: Multi-page components (added for SEO/AIO restructure)
   ============================================================ */

/* Breadcrumbs */
.breadcrumbs {
  padding: 20px 0 0 0;
  font-family: var(--mono);
  font-size: 12px;
  background: var(--bg);
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
  margin: 0;
  color: var(--text-dim);
}
.breadcrumbs li { display: inline; }
.breadcrumbs a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumbs a:hover { color: var(--orange); }
.crumb-sep {
  color: var(--text-dim);
  opacity: 0.5;
  padding: 0 10px;
}
.crumb-current { color: var(--text); font-weight: 500; }

/* Active nav state */
.nav-links a.active { color: var(--text); }
.nav-links a.active::before { opacity: 1; }

/* Service hero (shorter + more SEO-focused than homepage hero) */
.service-hero {
  padding: 80px 0 60px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.service-hero .kicker {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--orange);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  display: inline-block;
}
.service-hero h1 {
  font-family: var(--sans);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--text);
}
.service-hero h1 .accent {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.service-hero .lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 720px;
  margin-bottom: 32px;
}
.service-hero .hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Content sections — long-form reading */
.content-section {
  padding: 70px 0;
  border-bottom: 1px solid var(--line);
}
.content-section:last-child { border-bottom: none; }
.content-section h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text);
  letter-spacing: -0.015em;
}
.content-section h2 .accent {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.content-section h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
}
.content-section p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 18px;
  max-width: 760px;
}
.content-section ul {
  margin: 20px 0 24px 24px;
  color: var(--text-dim);
  max-width: 760px;
}
.content-section ul li {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 10px;
}
.content-section ul li::marker { color: var(--orange); }
.content-section a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.content-section a:hover { color: var(--orange); }

/* Our Work page — case study blocks */
.work-head {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.work-kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.work-tagline {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-dim);
  margin-top: 10px;
  max-width: 820px;
}
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin: 20px 0 28px;
}
@media (max-width: 760px) {
  .work-grid { grid-template-columns: 1fr; gap: 24px; }
}
.work-col h3 {
  font-size: 14px;
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 14px;
}
.work-list {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--text-dim);
}
.work-list li {
  position: relative;
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 12px;
}
.work-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 1px;
  background: var(--orange);
}
.work-actions {
  margin-top: 8px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Our Work — end-to-end lifecycle grid */
.e2e-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 24px 0 0;
}
.e2e-step {
  position: relative;
  padding: 24px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  transition: border-color 0.2s, transform 0.2s;
}
:root[data-theme="dark"] .e2e-step,
.e2e-step { background: #0d0a12; }
:root[data-theme="light"] .e2e-step { background: #ffffff; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .e2e-step { background: #ffffff; }
}
.e2e-step:hover {
  border-color: color-mix(in srgb, var(--orange) 40%, var(--line));
  transform: translateY(-2px);
}
.e2e-num {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--orange);
  margin-bottom: 10px;
}
.e2e-step h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.e2e-step p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0;
  max-width: none;
}

/* Carousel */
.work-carousel {
  position: relative;
  margin: 8px 0 24px;
  --slide-radius: 6px;
}
.work-carousel-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0;
}
.work-carousel-track::-webkit-scrollbar { display: none; }
.work-carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  position: relative;
  margin: 0;
  background: var(--bg-elevated, var(--bg-2, #0d0a12));
  border: 1px solid var(--line);
  border-radius: var(--slide-radius);
  overflow: hidden;
}
:root[data-theme="light"] .work-carousel-slide,
.work-carousel-slide { background: var(--card, rgba(255,255,255,0.03)); }
.work-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}
.work-carousel-slide figcaption {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f5f1ea;
  background: rgba(7, 5, 10, 0.78);
  backdrop-filter: blur(6px);
  padding: 5px 10px;
  border-radius: 3px;
  border: 1px solid rgba(255, 107, 53, 0.3);
}
.work-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(7, 5, 10, 0.65);
  color: #f5f1ea;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.15s, border-color 0.15s;
  backdrop-filter: blur(6px);
}
.work-carousel-nav:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #07050a;
}
.work-carousel-nav.prev { left: 10px; }
.work-carousel-nav.next { right: 10px; }
.work-carousel-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.work-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.work-carousel-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-dim);
  opacity: 0.4;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, opacity 0.2s, transform 0.2s;
}
.work-carousel-dots .dot:hover { opacity: 0.9; }
.work-carousel-dots .dot.active {
  background: var(--orange);
  opacity: 1;
  transform: scale(1.3);
}
@media (max-width: 640px) {
  .work-carousel-nav { width: 36px; height: 36px; }
}

/* Side-by-side cards */
.content-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 36px;
}
.content-card {
  background: rgba(255, 87, 34, 0.03);
  border: 1px solid rgba(255, 87, 34, 0.15);
  padding: 28px;
  border-radius: 2px;
}
.content-card .mono-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--orange);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block;
}
.content-card h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.content-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
}

/* FAQ (gets its own schema; readable long-form) */
.faq-section {
  padding: 70px 0;
  border-bottom: 1px solid var(--line);
}
.faq-section h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  margin-bottom: 36px;
  color: var(--text);
}
.faq-item {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  align-items: start;
  gap: 12px;
}
.faq-item h3::before {
  content: 'Q:';
  color: var(--orange);
  font-family: var(--mono);
  font-weight: 800;
  flex-shrink: 0;
}
.faq-item p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dim);
  margin: 0 0 0 32px;
  max-width: 720px;
}
.faq-item p + p { margin-top: 12px; }

/* Big CTA footer (sub-pages that don't have the full contact form) */
.cta-footer {
  padding: 80px 0;
  background: var(--bg-alt);
  text-align: center;
  border-top: 1px solid var(--line);
}
.cta-footer h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text);
}
.cta-footer h2 .accent {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cta-footer p {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.cta-footer .cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Author bio (E-E-A-T signal) */
.author-bio {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.author-bio .inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  max-width: 820px;
}
.author-bio .avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-accent);
  font-family: var(--mono);
  font-weight: 800;
  font-size: 24px;
  flex-shrink: 0;
}
.author-bio .meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--orange);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.author-bio .name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.author-bio .credentials {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Key stat block (for citation-friendly numbers) */
.stat-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin: 40px 0;
  padding: 32px;
  background: rgba(255, 87, 34, 0.04);
  border-left: 3px solid var(--orange);
  border-radius: 2px;
}
.stat-block .stat-item {
  text-align: left;
}
.stat-block .number {
  font-family: var(--sans);
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.stat-block .label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Reduce body padding on breadcrumbs page */
.breadcrumbs + .service-hero { padding-top: 40px; }

/* Mobile tweaks */
@media (max-width: 768px) {
  .content-section { padding: 48px 0; }
  .faq-section { padding: 48px 0; }
  .service-hero { padding: 48px 0 32px; }
  .cta-footer { padding: 56px 0; }
  .author-bio .inner {
    grid-template-columns: 1fr;
  }
  .stat-block { padding: 24px 20px; gap: 16px; }
  .stat-block .number { font-size: 32px; }
  .breadcrumbs { font-size: 11px; }
  .breadcrumbs ol {
    overflow-x: auto;
    white-space: nowrap;
    display: block;
  }
}

/* ===== Breach tracker ===== */
.tracker-section .muted {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 32px;
}
.breach-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  padding: 24px 28px;
  margin-bottom: 20px;
  border-radius: 4px;
  transition: border-left-color 0.2s;
}
.breach-card:hover {
  border-left-color: var(--amber);
}
.breach-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.breach-date {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--orange);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.breach-company {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  flex: 1;
  min-width: 220px;
}
.breach-sector {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
}
.breach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  margin-bottom: 16px;
}
.breach-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.field-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.field-value {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}
.breach-method, .breach-impact {
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  margin-top: 12px;
}
.breach-method p, .breach-impact p {
  margin: 4px 0 0 0;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}
.breach-sources {
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--text-mute);
}
.breach-sources a {
  color: var(--orange);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.breach-sources a:hover {
  border-bottom-color: var(--orange);
}
@media (max-width: 768px) {
  .breach-card { padding: 20px 20px; }
  .breach-company { font-size: 18px; }
  .breach-grid { grid-template-columns: 1fr; }
}

/* ---- Contact form status + honeypot ---- */
.form-status { min-height: 1.4em; margin: 12px 0 0; font-size: 14px; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 12px; color: var(--text-mute); margin: 12px 0 0; }
.form-note a { color: inherit; text-decoration: underline; }

/* ---- Cookie consent banner ---- */
.consent-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000;
  max-width: 720px; margin: 0 auto; padding: 16px 20px;
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  background: var(--bg-card); border: 1px solid var(--line-strong);
  border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.consent-banner[hidden] { display: none; }
.consent-banner p { flex: 1 1 280px; margin: 0; font-size: 14px; }
.consent-banner p a { color: inherit; text-decoration: underline; }
.consent-actions { display: flex; gap: 10px; }
.consent-actions .btn { padding: 10px 18px; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* The hero's decorative glows are wider than a phone screen; keep them from
   widening the page and causing sideways scrolling. */
.hero { overflow-x: hidden; overflow-x: clip; }

/* Breadcrumbs are a <nav> too; undo the fixed site-header styling above and
   start them below the fixed header (its height changes with the logo size). */
:root { --nav-h: 89px; }
@media (max-width: 980px) { :root { --nav-h: 77px; } }
@media (max-width: 600px) { :root { --nav-h: 69px; } }
nav.breadcrumbs {
  position: static;
  z-index: auto;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  padding-top: calc(var(--nav-h) + 20px);
}

/* =====================================================================
   Light theme.
   <html data-theme="light|dark"> is set before first paint by the script in
   templates/base.html: the visitor's saved choice from the header toggle,
   otherwise their system setting. The @media block covers visitors without
   JavaScript (no data-theme attribute).
   Accent text colours are darkened so they stay readable on a light
   background; orange gradient buttons keep the bright brand gradient.
   ===================================================================== */
:root[data-theme="light"] {
    --bg: #faf7f2;
    --bg-elev: #f3eee6;
    --bg-card: #ffffff;
    --panel: #f3eee6;
    --bg-alt: #f3eee6;
    --line: rgba(140, 70, 20, 0.12);
    --line-strong: rgba(140, 70, 20, 0.28);
    --text: #1c1610;
    --text-dim: #4f463d;
    --text-mute: #6b6157;
    --orange: #b8380f;
    --amber: #9a5b06;
    --orange-dim: rgba(255, 87, 34, 0.12);
    --amber-dim: rgba(255, 181, 71, 0.20);
    --red: #c8213f;
    --green: #15803d;
    --grad-text: linear-gradient(135deg, #b8380f 0%, #d0560f 50%, #a8600a 100%);
    --nav-bg: rgba(250, 247, 242, 0.85);
    --grid-line: rgba(140, 70, 20, 0.06);
    --shadow: rgba(60, 30, 10, 0.15);
    color-scheme: light;
  }
:root[data-theme="light"] body::after { opacity: 0.35; }
:root[data-theme="light"] .consent-banner { box-shadow: 0 10px 30px var(--shadow); }

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #faf7f2;
    --bg-elev: #f3eee6;
    --bg-card: #ffffff;
    --panel: #f3eee6;
    --bg-alt: #f3eee6;
    --line: rgba(140, 70, 20, 0.12);
    --line-strong: rgba(140, 70, 20, 0.28);
    --text: #1c1610;
    --text-dim: #4f463d;
    --text-mute: #6b6157;
    --orange: #b8380f;
    --amber: #9a5b06;
    --orange-dim: rgba(255, 87, 34, 0.12);
    --amber-dim: rgba(255, 181, 71, 0.20);
    --red: #c8213f;
    --green: #15803d;
    --grad-text: linear-gradient(135deg, #b8380f 0%, #d0560f 50%, #a8600a 100%);
    --nav-bg: rgba(250, 247, 242, 0.85);
    --grid-line: rgba(140, 70, 20, 0.06);
    --shadow: rgba(60, 30, 10, 0.15);
    color-scheme: light;
  }
  :root:not([data-theme]) body::after { opacity: 0.35; }
}

/* Logo glyph: the dark-mode and light-mode versions are both in the markup;
   show the one that matches the active theme. */
.logo-variant-light { display: none !important; }
:root[data-theme="light"] .logo-variant-dark { display: none !important; }
:root[data-theme="light"] .logo-variant-light { display: block !important; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .logo-variant-dark { display: none !important; }
  :root:not([data-theme]) .logo-variant-light { display: block !important; }
}

/* ---- Sun / moon theme toggle (header) ---- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: 12px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
}
.theme-toggle:hover { border-color: var(--orange); color: var(--orange); }
.theme-toggle:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.theme-toggle svg { width: 18px; height: 18px; }
/* Show the sun in dark mode (click for light), the moon in light mode */
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
.nav-actions { display: flex; align-items: center; }
.nav-actions .menu-toggle { margin-left: 12px; }
@media (max-width: 600px) {
  .theme-toggle { width: 34px; height: 34px; margin-left: 8px; }
  .nav-actions .menu-toggle { margin-left: 8px; }
}
/* Without JavaScript the toggle can't work, so don't show it */
html:not(.js) .theme-toggle { display: none; }
/* On phones the header can't fit logo + CTA + toggle + menu. The CTA is
   repeated in the hero and the menu, so drop it from the header there. */
@media (max-width: 480px) {
  .nav-actions .nav-cta { display: none; }
}
