:root{
    /* --- Palette: IAI brand. One accent only. --- */
    --accent:#8B2B3E;          /* warm brand maroon — CTA, active states, critical emphasis ONLY */
    --accent-deep:#6f2231;     /* maroon hover/press */
    --gold:#C8813A;            /* secondary brand warm — used very sparingly, never as the action color */

    --ink:#1c1a1a;             /* near-black text, not pure black */
    --mid:#56524f;             /* secondary text */
    --muted:#8a847f;           /* labels / meta */
    --bg:#FAF9F6;              /* warm off-white page background */
    --paper:#ffffff;
    --rule:#e7e1da;            /* hairline — a step lighter than text */
    --rule-strong:#d6cec5;     /* hairline for emphasis rows */

    /* --- 8px spacing system (tokens) --- */
    --space-2xs:4px;
    --space-xs:8px;
    --space-sm:16px;
    --space-md:24px;
    --space-lg:40px;
    --space-xl:64px;
    --space-2xl:96px;
    --space-3xl:128px;

    /* --- 6-step modular type scale, perfect-fourth-ish via clamp() --- */
    --t-display:clamp(2.6rem, 1.4rem + 4.6vw, 4.0rem);   /* hero H1 */
    --t-h1:clamp(2.0rem, 1.3rem + 2.6vw, 2.9rem);        /* big section heads / closing */
    --t-h2:clamp(1.5rem, 1.1rem + 1.4vw, 2.0rem);        /* section heads */
    --t-h3:clamp(1.18rem, 1.05rem + 0.5vw, 1.4rem);      /* card / case titles */
    --t-body:clamp(1.0rem, 0.97rem + 0.18vw, 1.125rem);  /* body 16–18px */
    --t-lead:clamp(1.12rem, 1.0rem + 0.5vw, 1.3rem);     /* hero/lead paragraphs */
    --t-cap:0.8125rem;                                   /* caption / meta */

    --maxw:1080px;
    --ease:cubic-bezier(.2,.6,.2,1);
  }

  *{margin:0;padding:0;box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{
    font-family:'Inter',-apple-system,BlinkMacSystemFont,system-ui,sans-serif;
    background:var(--bg);
    color:var(--ink);
    font-size:var(--t-body);
    line-height:1.6;
    -webkit-font-smoothing:antialiased;
    text-rendering:optimizeLegibility;
  }

  /* ---------- Type ---------- */
  h1,h2,h3,h4{font-family:'Inter',sans-serif;color:var(--ink);font-weight:600;}
  h1{font-size:var(--t-h1);line-height:1.12;letter-spacing:-0.022em;}
  h2{font-size:var(--t-h2);line-height:1.18;letter-spacing:-0.018em;}
  h3{font-size:var(--t-h3);line-height:1.25;letter-spacing:-0.01em;}
  p{max-width:68ch;}

  /* JetBrains Mono ONLY for small uppercase tags / labels / meta */
  .label{
    font-family:'JetBrains Mono',ui-monospace,monospace;
    font-size:var(--t-cap);
    font-weight:500;
    letter-spacing:0.14em;
    text-transform:uppercase;
    color:var(--muted);
  }

  .wrap{max-width:var(--maxw);margin:0 auto;padding:0 var(--space-lg);}

  a{color:var(--ink);text-decoration:none;}

  /* ---------- Links / actions ---------- */
  .btn{
    display:inline-flex;align-items:center;gap:8px;
    font-family:'Inter',sans-serif;font-size:0.97rem;font-weight:600;letter-spacing:0.005em;
    padding:14px 26px;border-radius:2px;
    border:1px solid transparent;cursor:pointer;
    transition:background .17s var(--ease), border-color .17s var(--ease), color .17s var(--ease), transform .17s var(--ease);
  }
  .btn-primary{background:var(--accent);color:#fff;border-color:var(--accent);}
  .btn-primary:hover{background:var(--accent-deep);border-color:var(--accent-deep);}
  .btn-primary:active{transform:scale(.985);}

  /* Text link with an animated underline, NOT the accent (accent reserved for action) */
  .tlink{
    display:inline-flex;align-items:center;gap:6px;
    font-weight:600;color:var(--ink);
    padding-bottom:2px;
    background-image:linear-gradient(var(--ink),var(--ink));
    background-size:0% 1px;background-position:0 100%;background-repeat:no-repeat;
    transition:background-size .2s var(--ease), color .17s var(--ease);
  }
  .tlink:hover{background-size:100% 1px;}
  .tlink .arw{transition:transform .17s var(--ease);}
  .tlink:hover .arw{transform:translateX(3px);}

  /* Focus visibility (keyboard) */
  a:focus-visible,.btn:focus-visible{
    outline:2px solid var(--accent);
    outline-offset:3px;
    border-radius:2px;
  }

  /* ---------- Signature hairline + header ---------- */
  .sigline{height:2px;background:var(--accent);}

  header.site{
    position:sticky;top:0;z-index:30;
    background:rgba(250,249,246,0.88);
    backdrop-filter:saturate(160%) blur(10px);
    -webkit-backdrop-filter:saturate(160%) blur(10px);
    border-bottom:1px solid var(--rule);
  }
  .nav{display:flex;align-items:center;justify-content:space-between;height:70px;}
  .brand{display:flex;align-items:center;gap:11px;color:var(--ink);}
  .brand .dot{width:9px;height:9px;border-radius:50%;background:var(--accent);flex:none;}
  .brand .name{font-size:1.0rem;font-weight:600;letter-spacing:-0.01em;}
  .navlinks{display:flex;align-items:center;gap:var(--space-lg);}
  .navlinks a{font-size:0.94rem;font-weight:500;color:var(--mid);transition:color .17s var(--ease);}
  .navlinks a:hover{color:var(--ink);}
  .navlinks .btn{padding:9px 18px;color:#fff;}
  .navlinks .btn:hover{color:#fff;}

  /* ---------- Section rhythm: hairline rules, not boxes ---------- */
  section{padding:var(--space-2xl) 0;border-bottom:1px solid var(--rule);}
  .eyebrow{display:block;margin-bottom:var(--space-md);}

  .sec-head{max-width:64ch;margin-bottom:var(--space-xl);}
  .sec-head h2{margin-bottom:var(--space-sm);}
  .sec-head .intro{font-size:var(--t-lead);color:var(--mid);}

  /* ---------- Hero ---------- */
  .hero{padding:var(--space-3xl) 0 var(--space-2xl);border-bottom:1px solid var(--rule);}
  .hero h1{font-size:var(--t-display);line-height:1.08;letter-spacing:-0.028em;max-width:none;margin-bottom:var(--space-lg);}
  .hero .lead{font-size:var(--t-lead);color:var(--mid);max-width:70ch;margin-bottom:var(--space-md);line-height:1.55;}
  .hero .lead.strong{color:var(--ink);}
  .hero .cta{margin-top:var(--space-lg);display:flex;align-items:center;gap:var(--space-md);flex-wrap:wrap;}

  /* ---------- Failure modes: hairline-separated blocks, no cards ---------- */
  .modes{
    display:grid;grid-template-columns:1fr 1fr;
    column-gap:var(--space-2xl);row-gap:0;
    border-top:1px solid var(--rule);
  }
  .mode{
    padding:var(--space-lg) 0;
    border-bottom:1px solid var(--rule);
  }
  .mode .num{
    font-family:'JetBrains Mono',monospace;font-size:var(--t-cap);font-weight:500;
    letter-spacing:0.08em;color:var(--muted);display:block;margin-bottom:10px;
  }
  .mode h3{margin-bottom:10px;}
  .mode p{color:var(--mid);max-width:52ch;}

  /* Responsibility Erosion close — quiet emphasis block, hairline framed, NOT a maroon fill */
  .re-close{
    margin-top:var(--space-xl);
    padding-top:var(--space-lg);
    border-top:2px solid var(--accent);
    max-width:72ch;
  }
  .re-close p{font-size:var(--t-lead);line-height:1.5;color:var(--ink);max-width:72ch;}
  .re-close .key{color:var(--accent);font-weight:600;}

  /* ---------- Field cases: hairline rows ---------- */
  .cases{border-top:1px solid var(--rule);}
  .case{
    display:grid;grid-template-columns:minmax(200px,0.8fr) minmax(0,2.4fr);
    gap:var(--space-xl);align-items:start;
    padding:var(--space-lg) 0;
    border-bottom:1px solid var(--rule);
  }
  .case .meta .sector{
    font-family:'JetBrains Mono',monospace;font-size:var(--t-cap);font-weight:500;
    letter-spacing:0.1em;text-transform:uppercase;color:var(--muted);display:block;margin-bottom:8px;
  }
  .case .meta h3{margin-bottom:0;}
  .case .desc p{color:var(--mid);margin-bottom:12px;max-width:64ch;}
  .case .desc .incident{color:var(--ink);}
  .case .desc .bl{
    font-family:'JetBrains Mono',monospace;font-size:0.7rem;font-weight:600;
    letter-spacing:0.08em;text-transform:uppercase;color:var(--muted);margin-right:8px;
  }
  .case .desc .tlink{font-size:0.92rem;}

  /* ---------- Proof ---------- */
  .proof .proof-inner{max-width:68ch;}
  .proof h2{margin:var(--space-sm) 0 var(--space-md);}
  .proof p{font-size:var(--t-lead);color:var(--mid);margin-bottom:var(--space-md);line-height:1.55;}

  /* ---------- What JA is ---------- */
  .system .grid{display:grid;grid-template-columns:0.85fr 1.15fr;gap:var(--space-2xl);align-items:start;}
  .system h2{max-width:18ch;}
  .system p{color:var(--mid);margin-bottom:var(--space-md);max-width:62ch;}
  .system .more{margin-top:var(--space-xs);}

  /* ---------- Go deeper ---------- */
  .deeper .grid{display:grid;grid-template-columns:1.3fr auto;gap:var(--space-xl);align-items:center;}
  .deeper p{font-size:var(--t-lead);color:var(--ink);max-width:48ch;line-height:1.45;}
  .deeper .cta{display:flex;align-items:center;gap:var(--space-md);flex-wrap:wrap;justify-content:flex-end;}

  /* ---------- Closing ---------- */
  .closing{text-align:center;border-bottom:1px solid var(--rule);}
  .closing .closing-inner{max-width:30ch;margin:0 auto;}
  .closing h2{font-size:var(--t-h1);line-height:1.18;letter-spacing:-0.02em;margin:0 auto var(--space-md);}
  .closing .tag{
    font-family:'JetBrains Mono',monospace;font-size:0.9rem;font-weight:500;
    letter-spacing:0.06em;color:var(--accent);
    margin-bottom:var(--space-lg);
  }

  /* ---------- Footer ---------- */
  footer.site{background:var(--bg);padding:var(--space-xl) 0 var(--space-lg);border-bottom:none;}
  .foot-top{display:flex;justify-content:space-between;gap:var(--space-xl);flex-wrap:wrap;align-items:flex-start;}
  .foot-brand .brand{margin-bottom:12px;}
  .foot-brand .tag{font-family:'JetBrains Mono',monospace;font-size:var(--t-cap);letter-spacing:0.05em;color:var(--muted);}
  .foot-cols{display:flex;gap:var(--space-2xl);flex-wrap:wrap;}
  .foot-col h4{font-family:'JetBrains Mono',monospace;font-size:var(--t-cap);font-weight:500;letter-spacing:0.12em;text-transform:uppercase;color:var(--muted);margin-bottom:var(--space-sm);font-weight:600;}
  .foot-col a{display:block;font-size:0.94rem;color:var(--mid);margin-bottom:10px;transition:color .17s var(--ease);}
  .foot-col a:hover{color:var(--ink);}
  .foot-legal{margin-top:var(--space-xl);padding-top:var(--space-md);border-top:1px solid var(--rule);font-size:var(--t-cap);color:var(--muted);max-width:90ch;}
  .foot-legal p{margin-bottom:6px;max-width:none;}

  /* ---------- Scroll reveal ---------- */
  .reveal{opacity:0;transform:translateY(18px);transition:opacity .4s var(--ease), transform .4s var(--ease);}
  .reveal.in{opacity:1;transform:none;}
  .reveal.d1{transition-delay:.06s;}
  .reveal.d2{transition-delay:.12s;}
  .reveal.d3{transition-delay:.18s;}

  @media (prefers-reduced-motion: reduce){
    html{scroll-behavior:auto;}
    *{transition-duration:0ms !important;animation-duration:0ms !important;}
    .reveal{opacity:1;transform:none;}
    .tlink:hover .arw{transform:none;}
  }

  /* ---------- Responsive ---------- */
  @media (max-width:880px){
    .wrap{padding:0 var(--space-md);}
    .navlinks{gap:var(--space-md);}
    .navlinks a:not(.btn){display:none;}
    .hero{padding:var(--space-2xl) 0 var(--space-xl);}
    .modes{grid-template-columns:1fr;column-gap:0;}
    .case{grid-template-columns:1fr;gap:var(--space-xs);}
    .case .figure{text-align:left;}
    .system .grid{grid-template-columns:1fr;gap:var(--space-md);}
    .system h2{max-width:none;}
    .deeper .grid{grid-template-columns:1fr;gap:var(--space-md);}
    .deeper .cta{justify-content:flex-start;}
    section{padding:var(--space-xl) 0;}
  }

  .about .prose p{color:var(--mid);max-width:68ch;margin-bottom:1.1rem;line-height:1.7;}
.logo-img{height:44px;width:auto;display:block;flex:none;border-radius:0;}
.headshot{width:120px;height:120px;border-radius:50%;object-fit:cover;border:1px solid var(--rule);display:block;margin-bottom:var(--space-md);}
