/* =====================================================================
   {BRAND_NAME} — styles.css
   Palette: deep-water navy. Type: Bricolage Grotesque (display) / Instrument Sans (body)
   ===================================================================== */

   :root {
    --abyss:   #06122a;   /* page background */
    --navy:    #0b1f44;   /* raised surfaces */
    --mid:     #14325f;   /* borders, hover surfaces */
    --line:    rgba(122, 160, 255, 0.16);
    --accent:  #4f8cff;   /* interactive blue */
    --accent-strong: #7fb0ff;
    --amber:   #f2b950;   /* single warm counterpoint — use sparingly */
    --text:    #e6edf9;
    --muted:   #9db0d6;
  
    --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
    --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  
    --step--1: clamp(0.88rem, 0.85rem + 0.15vw, 0.95rem);
    --step-0:  clamp(1rem, 0.96rem + 0.25vw, 1.125rem);
    --step-1:  clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
    --step-2:  clamp(1.6rem, 1.4rem + 1vw, 2.1rem);
    --step-3:  clamp(2.2rem, 1.8rem + 2vw, 3.2rem);
    --step-4:  clamp(2.8rem, 2rem + 4.5vw, 5.6rem);
  
    --wrap: 1200px;
    --gutter: clamp(1.25rem, 4vw, 3rem);
    --radius-s: 6px;
    --radius-m: 14px;
  
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  }
  
  /* ---------- Reset ---------- */
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  body {
    margin: 0;
    background: var(--abyss);
    color: var(--text);
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  img { display: block; max-width: 100%; height: auto; }
  a { color: var(--accent-strong); text-decoration: none; }
  a:hover { text-decoration: underline; text-underline-offset: 3px; }
  h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; margin: 0; letter-spacing: -0.015em; }
  h2 { font-size: var(--step-3); font-weight: 600; }
  h3 { font-size: var(--step-1); font-weight: 600; }
  p { margin: 0 0 1em; }
  ul, ol { margin: 0; padding: 0; }
  
  :focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 3px; }
  
  .skip-link {
    position: absolute; left: 1rem; top: -3rem;
    background: var(--amber); color: var(--abyss); padding: .5rem .9rem; border-radius: var(--radius-s);
    font-weight: 600; z-index: 100;
  }
  .skip-link:focus { top: 1rem; }
  
  /* ---------- Buttons ---------- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .85rem 1.5rem; border-radius: 999px;
    font-weight: 600; font-size: var(--step-0);
    border: 1px solid transparent;
    transition: transform .18s var(--ease-out), background .18s, border-color .18s;
    cursor: pointer; text-decoration: none !important;
  }
  .btn:active { transform: translateY(1px); }
  .btn-primary { background: var(--accent); color: #fff; }
  .btn-primary:hover { background: var(--accent-strong); color: var(--abyss); }
  .btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
  .btn-ghost:hover { border-color: var(--accent); }
  .btn-block { width: 100%; }
  .text-link { font-weight: 600; font-size: var(--step--1); }
  
  /* ---------- Header ---------- */
  .site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(6, 18, 42, 0.6);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, background .3s;
  }
  .site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(6, 18, 42, 0.86); }
  
  .nav {
    max-width: var(--wrap); margin: 0 auto; padding: 1rem var(--gutter);
    display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  }
  .brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); }
  .brand:hover { text-decoration: none; }
  .brand-mark {
    width: 28px; height: 28px; border-radius: 50%;
    background:
      radial-gradient(circle at 35% 35%, var(--accent-strong) 0 18%, transparent 19%),
      conic-gradient(from 210deg, var(--accent) 0 40%, var(--navy) 40% 100%);
    box-shadow: inset 0 0 0 1px var(--line);
  }
  
  .nav-menu { list-style: none; display: flex; align-items: center; gap: 1.75rem; }
  .nav-menu a { color: var(--muted); font-weight: 500; }
  .nav-menu a:hover { color: var(--text); text-decoration: none; }
  .nav-menu .nav-cta { color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1.1rem; }
  .nav-menu .nav-cta:hover { border-color: var(--accent); }
  
  .nav-toggle {
    display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--radius-s);
    background: transparent; cursor: pointer; position: relative;
  }
  .nav-toggle span {
    position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text);
    transition: transform .3s var(--ease-out), top .3s var(--ease-out);
  }
  .nav-toggle span:first-child { top: 15px; }
  .nav-toggle span:last-child { top: 25px; }
  .nav-toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }
  
  /* ---------- Hero ---------- */
  .hero {
    position: relative; overflow: hidden;
    min-height: calc(100vh - 74px);
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: stretch;
    max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  }
  .hero-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
  .hero-inner { position: relative; z-index: 1; padding: clamp(3rem, 8vh, 6rem) 0 3rem; display: flex; flex-direction: column; justify-content: center; }
  
  .breadcrumb ol { list-style: none; display: flex; gap: .5rem; font-size: var(--step--1); color: var(--muted); margin-bottom: 2rem; }
  .breadcrumb li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }
  .breadcrumb a { color: var(--muted); }
  
  .hero-title { font-size: var(--step-4); font-weight: 700; letter-spacing: -0.03em; max-width: 14ch; }
  .hero-line { display: block; overflow: hidden; }
  .hero-line:nth-child(2) { color: var(--accent-strong); font-weight: 400; font-variation-settings: "opsz" 96; }
  
  .hero-lead { max-width: 56ch; color: var(--muted); font-size: var(--step-1); line-height: 1.5; margin: 1.75rem 0 2.25rem; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
  
  .hero-facts {
    display: grid; grid-template-columns: repeat(3, auto); gap: 2.5rem; margin: 3.5rem 0 0;
    padding-top: 1.5rem; border-top: 1px solid var(--line); width: fit-content;
  }
  .hero-facts dt { font-size: var(--step--1); color: var(--muted); }
  .hero-facts dd { margin: .1rem 0 0; font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; font-variant-numeric: tabular-nums; }
  
  .hero-figure {
    position: relative; z-index: 1; margin: 0; align-self: end;
    padding: clamp(2rem, 6vh, 5rem) 0 0 clamp(1rem, 4vw, 3rem);
  }
  .hero-figure img {
    width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
    border-radius: 220px 220px var(--radius-m) var(--radius-m);   /* arch — the signature shape */
    border: 1px solid var(--line);
  }
  .hero-figure figcaption { font-size: var(--step--1); color: var(--muted); margin-top: .75rem; padding-left: .2rem; }
  
  /* Page-load sequence (only orchestrated motion on the page) */
  .hero-line > span, .hero-lead, .hero-actions, .hero-facts, .breadcrumb, .hero-figure {
    opacity: 0; transform: translateY(18px);
    animation: rise .9s var(--ease-out) forwards;
  }
  .breadcrumb    { animation-delay: .05s; }
  .hero-line:nth-child(1) > span { animation-delay: .15s; }
  .hero-line:nth-child(2) > span { animation-delay: .28s; }
  .hero-lead     { animation-delay: .42s; }
  .hero-actions  { animation-delay: .52s; }
  .hero-facts    { animation-delay: .62s; }
  .hero-figure   { animation-delay: .35s; animation-duration: 1.2s; }
  .hero-line > span { display: block; }
  @keyframes rise { to { opacity: 1; transform: none; } }
  
  /* ---------- Sections ---------- */
  .section { max-width: var(--wrap); margin: 0 auto; padding: clamp(4rem, 10vh, 7rem) var(--gutter); }
  .section + .section { border-top: 1px solid var(--line); }
  
  .section-grid {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(2rem, 6vw, 6rem); row-gap: 3rem;
  }
  .section-head h2 { max-width: 16ch; }
  .section-head--wide { max-width: 60ch; margin-bottom: 3rem; }
  .section-sub { color: var(--muted); margin-top: 1rem; font-size: var(--step-1); line-height: 1.5; }
  
  .prose p { max-width: 62ch; color: var(--muted); }
  .prose p:first-child::first-letter { color: var(--text); }
  
  .checklist { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 2rem; margin-top: 2rem; }
  .checklist li { position: relative; padding-left: 1.6rem; }
  .checklist li::before {
    content: ""; position: absolute; left: 0; top: .55em; width: .8rem; height: .8rem;
    border-radius: 50%; border: 2px solid var(--accent); box-shadow: inset 0 0 0 2px var(--abyss), inset 0 0 0 5px var(--accent);
  }
  
  .about-figure, .process-figure { grid-column: 1 / -1; margin: 0; }
  .about-figure img, .process-figure img { width: 100%; border-radius: var(--radius-m); border: 1px solid var(--line); object-fit: cover; }
  .about-figure img { aspect-ratio: 3 / 2; max-height: 520px; }
  .process-figure img { aspect-ratio: 4 / 3; max-height: 480px; }
  figcaption { font-size: var(--step--1); color: var(--muted); margin-top: .75rem; }
  
  /* ---------- Services ---------- */
  .service-list { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
  .service {
    padding: 2.25rem; background: var(--navy);
    border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
    transition: background .25s;
  }
  .service:nth-child(2n) { border-right: 0; }
  .service:nth-last-child(-n+2) { border-bottom: 0; }
  .service:hover { background: var(--mid); }
  .service h3 { margin-bottom: .8rem; }
  .service p { color: var(--muted); }
  
  /* ---------- Process (ordered steps) ---------- */
  .steps { list-style: none; counter-reset: step; display: grid; gap: 0; }
  .step {
    counter-increment: step; display: grid; grid-template-columns: 3.5rem 1fr; gap: 1.25rem;
    padding: 1.75rem 0; border-top: 1px solid var(--line);
  }
  .step:last-child { border-bottom: 1px solid var(--line); }
  .step::before {
    content: counter(step, decimal-leading-zero);
    font-family: var(--font-display); font-size: var(--step-2); font-weight: 300; color: var(--amber); line-height: 1;
  }
  .step::before { grid-row: 1 / span 2; }
  .step h3 { grid-column: 2; margin-bottom: .5rem; }
  .step p { grid-column: 2; color: var(--muted); margin: 0; }
  
  /* ---------- Quote band ---------- */
  .quote-band { padding-top: clamp(3rem, 8vh, 5rem); padding-bottom: clamp(3rem, 8vh, 5rem); }
  .quote-band blockquote { margin: 0; max-width: 46ch; margin-left: auto; margin-right: auto; text-align: center; }
  .quote-band p { font-family: var(--font-display); font-size: var(--step-2); font-weight: 400; line-height: 1.3; }
  .quote-band footer { color: var(--muted); font-size: var(--step--1); margin-top: 1rem; }
  
  /* ---------- FAQ ---------- */
  .faq-list { display: grid; gap: .75rem; }
  .faq-item { background: var(--navy); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
  .faq-item summary { list-style: none; cursor: pointer; padding: 1.25rem 3.5rem 1.25rem 1.5rem; position: relative; }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary h3 { font-size: var(--step-0); font-family: var(--font-body); font-weight: 600; }
  .faq-item summary::after {
    content: ""; position: absolute; right: 1.5rem; top: 50%; width: 12px; height: 12px;
    border-right: 2px solid var(--accent-strong); border-bottom: 2px solid var(--accent-strong);
    transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease-out);
  }
  .faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
  .faq-answer { padding: 0 1.5rem 1.25rem; color: var(--muted); }
  .faq-answer p { margin: 0; max-width: 70ch; }
  .faq-item[open] .faq-answer { animation: rise .35s var(--ease-out); }
  
  /* ---------- Contact ---------- */
  .contact-inner {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem);
    background: var(--navy); border: 1px solid var(--line); border-radius: var(--radius-m);
    padding: clamp(2rem, 5vw, 4rem);
    background-image: radial-gradient(60% 80% at 100% 0%, rgba(79, 140, 255, .18), transparent 70%);
  }
  .contact-copy p { color: var(--muted); margin-top: 1rem; }
  .contact-details { font-style: normal; display: grid; gap: .4rem; margin-top: 2rem; color: var(--muted); }
  .contact-form { display: grid; gap: 1rem; }
  .field label { display: block; font-size: var(--step--1); color: var(--muted); margin-bottom: .35rem; }
  .field input, .field textarea {
    width: 100%; padding: .85rem 1rem; font: inherit; color: var(--text);
    background: var(--abyss); border: 1px solid var(--line); border-radius: var(--radius-s);
    transition: border-color .2s;
  }
  .field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
  .field textarea { resize: vertical; }
  .form-note { min-height: 1.4em; font-size: var(--step--1); color: var(--amber); margin: 0; }
  
  /* ---------- Footer ---------- */
  .site-footer { border-top: 1px solid var(--line); background: #040d20; }
  .footer-grid {
    max-width: var(--wrap); margin: 0 auto; padding: 3rem var(--gutter) 2rem;
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem;
  }
  .footer-brand p { color: var(--muted); margin-top: 1rem; max-width: 40ch; }
  .footer-nav, .footer-social { display: grid; gap: .6rem; align-content: start; }
  .footer-nav a, .footer-social a { color: var(--muted); }
  .footer-nav a:hover, .footer-social a:hover { color: var(--text); }
  .copyright { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) 2rem; color: var(--muted); font-size: var(--step--1); }
  
  /* ---------- Scroll reveal (section headings only) ---------- */
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
  .reveal.is-visible { opacity: 1; transform: none; }
  
  /* ---------- Responsive ---------- */
  @media (max-width: 960px) {
    .hero { grid-template-columns: 1fr; min-height: 0; }
    .hero-figure { padding: 0 0 3rem; max-width: 520px; }
    .hero-figure img { border-radius: 160px 160px var(--radius-m) var(--radius-m); }
    .section-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 720px) {
    .nav-toggle { display: block; }
    .nav-menu {
      position: absolute; left: 0; right: 0; top: 100%;
      flex-direction: column; align-items: flex-start; gap: 0;
      background: var(--navy); border-bottom: 1px solid var(--line);
      padding: .5rem var(--gutter) 1.25rem;
      transform: translateY(-8px); opacity: 0; visibility: hidden;
      transition: transform .3s var(--ease-out), opacity .3s;
    }
    .nav-menu.is-open { transform: none; opacity: 1; visibility: visible; }
    .nav-menu li { width: 100%; }
    .nav-menu a { display: block; padding: .85rem 0; }
    .nav-menu .nav-cta { display: inline-block; margin-top: .5rem; }
    .hero-facts { grid-template-columns: 1fr 1fr; gap: 1.5rem; width: 100%; }
    .service-list { grid-template-columns: 1fr; }
    .service { border-right: 0; }
    .service:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
    .service:last-child { border-bottom: 0; }
    .checklist { grid-template-columns: 1fr; }
    .contact-inner { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
  }
  
  /* ---------- Reduced motion ---------- */
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
    .hero-field { display: none; }
  }