 /* ----- TOKENS — Golden Twilight palette from coolers.co
     Ink Black #000814 · Prussian Blue #001D3D · Oxford Navy #003566
     School Bus Yellow #FFC300 · Gold #FFD60A ----- */

:root {
    --font-display: 'Satoshi', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
 
    --ink: #000814;
    --prussian: #001D3D;
    --oxford: #003566;
    --bus-yellow: #FFC300;
    --gold: #FFD60A;
 
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --container: 1180px;
    --nav-h: 76px;
 
    --shadow-soft: 0 12px 32px -16px rgba(0, 8, 20, 0.35);
    --transition: 180ms ease;
  }
 
  :root[data-theme="light"] {
    --bg: #FFFFFF;
    --bg-alt: #F3F7FC;
    --bg-elevated: #FFFFFF;
    --text: var(--ink);
    --text-muted: #3D4F63;
    --border: #DDE6F0;
    --accent: var(--oxford);
    --accent-strong: var(--ink);
    --cta-bg: var(--bus-yellow);
    --cta-text: var(--ink);
    --cta-hover: var(--gold);
    --focus: var(--oxford);
    --card-border: #E3EAF3;
    --chip-bg: #EDF3FA;
  }
 
  :root[data-theme="dark"] {
    --bg: var(--ink);
    --bg-alt: #051327;
    --bg-elevated: #051E37;
    --text: #F2F6FB;
    --text-muted: #A9BED4;
    --border: #16324F;
    --accent: var(--gold);
    --accent-strong: var(--bus-yellow);
    --cta-bg: var(--bus-yellow);
    --cta-text: var(--ink);
    --cta-hover: var(--gold);
    --focus: var(--gold);
    --card-border: #163455;
    --chip-bg: #0A2540;
  }

/* ----- RESET & BASE ----- */
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    transition: background var(--transition), color var(--transition);
  }
  img { max-width: 100%; display: block; }
  a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
  ul { margin: 0; padding: 0; list-style: none; }
  h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
    color: var(--text);
  }
  p { margin: 0; }
  button { font-family: inherit; }
 
  /* Visible, high-contrast focus for keyboard users everywhere */
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  textarea:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
  }
 
  .container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
  }
 
  .eyebrow {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
  }
 
  .section-head { max-width: 640px; margin-bottom: 48px; }
  .section-head h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem); margin-top: 10px; }
  .section-head p { color: var(--text-muted); margin-top: 14px; font-size: 1.05rem; }
 
  section { padding: 96px 0; }
  .section-alt { background: var(--bg-alt); }
 
  .skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    background: var(--bus-yellow);
    color: var(--ink);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    z-index: 1000;
    transition: top var(--transition);
  }
  .skip-link:focus { top: 16px; }
 
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.98rem;
    padding: 14px 26px;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
    text-decoration: none;
    white-space: nowrap;
  }
  .btn:hover { transform: translateY(-2px); }
  .btn-primary { background: var(--cta-bg); color: var(--cta-text); }
  .btn-primary:hover { background: var(--cta-hover); }
  .btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
  .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
 
  .chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--chip-bg);
    color: var(--text);
    border: 1px solid var(--card-border);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 500;
  }


  /* ----- HEADER / NAV ----- */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 500;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
  }
  .nav-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: var(--font-display);
  }
  .brand-mark {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: linear-gradient(155deg, var(--ink), var(--prussian) 45%, var(--oxford) 75%, var(--bus-yellow));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    flex-shrink: 0;
  }
  .brand-name { font-weight: 700; font-size: 1.02rem; color: var(--text); line-height: 1.1; }
  .brand-name span { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.04em; }
 
  /* Shared underline-hover component — reused by the desktop nav and the
     footer link columns. Set --underline-color to theme it per context;
     defaults to the current accent. */
  .nav-item {
    position: relative;
    overflow: hidden;
  }
  .nav-item::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    /* Painted bar is inset from the full-width box above so the slide-to-
       neighbor translate math (based on this box's real width) stays correct
       even when the visible line looks shorter. Set --underline-inset to
       trim it; 0 (default) draws edge-to-edge. */
    background: linear-gradient(var(--underline-color, var(--accent)) 0 0) no-repeat center / calc(100% - (var(--underline-inset, 0rem) * 2)) 100%;
    scale: 0 1;
    transform-origin: left;
    transition: scale 300ms var(--_scale-delay, 0ms), translate 500ms var(--_translate-delay, 0ms);
  }
  .nav-item:hover a,
  .nav-item:focus-within a,
  .nav-item.is-active a { color: var(--underline-color, var(--accent)); }
  .nav-item:hover::after,
  .nav-item:focus-within::after,
  .nav-item.is-active::after { scale: 1 1; }
 
  .primary-nav { display: none; }
  .primary-nav ul {
    display: flex;
    align-items: center;
    --_gap: 2.2rem;
  }
  .primary-nav .nav-item {
    padding-inline: calc(var(--_gap) / 2);
    --underline-inset: 1.1rem;
  }
  .primary-nav a {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text);
    text-decoration: none;
    padding-block: 8px;
  }
  .primary-nav .nav-item:hover a,
  .primary-nav .nav-item.is-active a { font-weight: 700; }
 
  /* progressive enhancement: underline hands off to/from the neighbor being hovered
     (nav-only — needs true DOM siblings in a horizontal row; see shared .nav-item rules) */
  @supports selector(:has(a)) {
    .primary-nav .nav-item:hover + .nav-item::after {
      translate: -100%;
      --_scale-delay: 300ms;
      --_translate-delay: 200ms;
    }
    .primary-nav .nav-item:has(+ .nav-item:hover)::after {
      translate: 100%;
      --_scale-delay: 300ms;
      --_translate-delay: 200ms;
    }
  }
 
  .nav-actions { display: flex; align-items: center; gap: 10px; }
 
  /* Theme toggle: segmented control */
  .theme-toggle {
    display: inline-flex;
    align-items: center;
    background: var(--chip-bg);
    border: 1px solid var(--card-border);
    border-radius: 999px;
    padding: 3px;
    gap: 2px;
  }
  .theme-toggle button {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
  }
  .theme-toggle button svg { width: 16px; height: 16px; }
  .theme-toggle button[aria-pressed="true"] {
    background: var(--bg-elevated);
    color: var(--accent-strong);
    box-shadow: var(--shadow-soft);
  }
 
  .hamburger {
    display: flex;
    align-items: center; justify-content: center;
    width: 42px; height: 42px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--card-border);
    background: var(--bg-elevated);
    color: var(--accent); /* resolves to gold in dark mode, oxford navy in light mode */
    cursor: pointer;
  }
  .hamburger svg { width: 20px; height: 20px; }
 
  /* Mobile nav panel */
  .mobile-nav {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--bg);
    z-index: 400;
    padding: 32px 24px;
    transform: translateX(100%);
    transition: transform 240ms ease;
  }
  .mobile-nav.is-open { transform: translateX(0); }
  .mobile-nav ul { display: flex; flex-direction: column; gap: 6px; }
  .mobile-nav a {
    display: block;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    padding: 14px 4px;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
  }
 
  /* Laptop/desktop only — tablets (including landscape) keep the hamburger */
  @media (min-width: 1100px) {
    .primary-nav { display: block; }
    .hamburger { display: none; }
    .mobile-nav { display: none; }
  }

  /* ----- HERO ----- */
  .hero {
    padding-top: 84px;
    padding-bottom: 64px;
    overflow: hidden;
  }
  .hero .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
  }
  .hero h1 { font-size: clamp(2.4rem, 1.7rem + 3vw, 4.2rem); margin-top: 14px; }
  .hero h1 .accent { color: var(--accent); }
  .hero-lede { font-size: 1.15rem; color: var(--text-muted); max-width: 46ch; margin-top: 20px; }
  .hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
  .hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
 
  .hero-art { display: flex; justify-content: center; }
  .horizon-frame {
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--card-border);
  }
  .horizon-frame svg { width: 100%; height: auto; display: block; }
 
  .sun-core { transform-origin: 400px 300px; }
  .sun-ray { stroke: var(--gold); stroke-width: 3; stroke-linecap: round; opacity: 0.85; }
  .sun-node { fill: var(--bus-yellow); }
 
  @media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
    .sun-core {
      animation: rise 1.4s cubic-bezier(.2,.8,.2,1) both, glow 5s ease-in-out 1.4s infinite;
    }
    .sun-ray { animation: fade-in 1.6s ease 0.4s both; }
  }
  @keyframes rise {
    from { transform: translateY(26px) scale(0.9); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
  }
  @keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 0px rgba(255, 214, 10, 0)); }
    50% { filter: drop-shadow(0 0 14px rgba(255, 214, 10, 0.55)); }
  }
  @keyframes fade-in { from { opacity: 0; } to { opacity: 0.85; } }
 
  @media (min-width: 860px) {
    .hero .container { grid-template-columns: 1.05fr 0.95fr; }
  }

/* ----- ABOUT ----- */
  .about-grid {
    display: grid;
    gap: 40px;
  }
  .about-avatar-wrap { display: flex; justify-content: center; }
  .avatar-placeholder {
    width: 220px; height: 220px;
    border-radius: 50%;
    background: linear-gradient(155deg, var(--oxford), var(--prussian));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 3.2rem;
    border: 4px solid var(--bg-elevated);
    box-shadow: var(--shadow-soft);
  }
  .about-copy p + p { margin-top: 16px; }
  .about-copy { color: var(--text-muted); font-size: 1.05rem; }
  .about-copy strong { color: var(--text); }
  .skills-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
 
  @media (min-width: 860px) {
    .about-grid { grid-template-columns: 260px 1fr; align-items: start; }
  }

/* ----- CARDS — work / services shared ----- */
  .card-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
  @media (min-width: 700px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 1040px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
 
  .card {
    background: var(--bg-elevated);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform var(--transition), box-shadow var(--transition);
  }
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
  .card-tag { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
  .card h3 { font-size: 1.25rem; }
  .card p { color: var(--text-muted); font-size: 0.98rem; }
  .card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
  .card-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-display); font-weight: 700; font-size: 0.92rem;
    color: var(--accent); text-decoration: none; margin-top: 4px;
  }
  .card-link svg { width: 14px; height: 14px; transition: transform var(--transition); }
  .card-link:hover svg { transform: translateX(3px); }

 /* ----- WORKSHOPS — timeline ----- */
  .timeline { display: flex; flex-direction: column; gap: 0; border-left: 2px solid var(--border); margin-left: 8px; }
  .timeline-item { position: relative; padding: 0 0 40px 32px; }
  .timeline-item:last-child { padding-bottom: 4px; }
  .timeline-item::before {
    content: "";
    position: absolute;
    left: -7px; top: 4px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--bus-yellow);
    border: 3px solid var(--bg);
  }
  .timeline-date { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: var(--accent); }
  .timeline-item h3 { margin-top: 6px; font-size: 1.15rem; }
  .timeline-item p { color: var(--text-muted); margin-top: 8px; }
  .status-pill {
    display: inline-block;
    margin-left: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--chip-bg);
    color: var(--text-muted);
    vertical-align: middle;
  }
  .status-pill.upcoming { background: var(--bus-yellow); color: var(--ink); }

 /* ----- SERVICES — process steps ----- */
  .process { display: grid; gap: 20px; margin-top: 56px; grid-template-columns: 1fr; }
  @media (min-width: 760px) { .process { grid-template-columns: repeat(3, 1fr); } }
  .process-step { padding: 24px; border-radius: var(--radius-md); border: 1px dashed var(--border); }
  .process-num { font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; color: var(--accent); }
  .process-step h4 { margin-top: 10px; font-size: 1.05rem; }
  .process-step p { margin-top: 8px; color: var(--text-muted); font-size: 0.95rem; }

/* ---- CONTACT ----- */
  .contact-grid { display: grid; gap: 48px; grid-template-columns: 1fr; }
  @media (min-width: 900px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; } }
  .contact-info h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.5rem); margin-top: 10px; }
  .contact-info p { color: var(--text-muted); margin-top: 16px; max-width: 40ch; }
  .contact-direct { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
  .contact-direct a { font-family: var(--font-display); font-weight: 600; color: var(--accent); text-decoration: none; }
  .contact-direct a:hover { text-decoration: underline; }
 
  .form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
  .form-field label { font-weight: 600; font-size: 0.92rem; }
  .form-field .req { color: var(--accent); }
  .form-field input,
  .form-field textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
  }
  .form-field textarea { resize: vertical; min-height: 130px; }
  .form-hint { font-size: 0.82rem; color: var(--text-muted); margin-top: -8px; margin-bottom: 20px; }
  .form-status { font-size: 0.92rem; font-weight: 600; margin-top: 10px; min-height: 1.4em; }
  .form-status.is-success { color: var(--accent-strong); }
  .form-status.is-error { color: #C4432B; }

 /*----- FOOTER — fixed "night sky" bookend, same in both modes ----- */
  .site-footer {
    background: var(--ink);
    color: #E7EEF7;
    padding: 72px 0 32px;
    border-top: 4px solid var(--bus-yellow);
  }
  .footer-grid {
    display: grid;
    gap: 44px;
    grid-template-columns: 1fr;
  }
  @media (min-width: 760px) {
    .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  }
  .footer-brand p { color: #9FB3C8; margin-top: 14px; max-width: 34ch; }
  .footer-col h5 {
    font-family: var(--font-display);
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
  }
  .footer-col ul { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-col .nav-item { --underline-color: var(--gold); }
  .footer-col a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #D6E2EF;
    text-decoration: none;
    font-size: 0.96rem;
    padding-block: 2px;
    transition: color var(--transition);
  }
  .footer-col a svg { width: 18px; height: 18px; flex-shrink: 0; }
 
  .footer-bottom {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid #14304D;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #7F94AC;
    font-size: 0.85rem;
  }
  .back-to-top {
    color: #D6E2EF;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .back-to-top:hover { color: var(--gold); }
 
  .visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }