/* ===========================================================
   Rob Offutt portfolio — shared stylesheet
   Extracted from the prototype. Page-switching rules removed;
   multi-page navigation is real anchor links now.
   =========================================================== */


:root{
  --ink:#0f1b2d;
  --ink-soft:#475569;
  --ink-faint:#8593a6;
  --line:#e3e8ef;
  --line-soft:#eef2f7;
  --paper:#f7f9fb;
  --card:#ffffff;
  --navy:#1763b8;
  --navy-soft:#dceaf8;
  --accent:#1763b8;
  --accent-bg:#e6f1fb;
  --red:#e2725b;
  --red-bg:#fceeeb;
  --green:#16b8a6;
  --green-bg:#e0f5f1;
  --eng:#2e90e0;
  --eng-bg:#e6f1fb;
  --bridge:#16b8a6;
  --bridge-bg:#e0f5f1;
  --design:#e8a13a;
  --design-bg:#fcf3e3;
  --maxw:780px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:'Inter Tight',-apple-system,sans-serif;
  background:var(--paper);
  color:var(--ink);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  font-size:17px;
}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 28px}
.wrap-wide{max-width:1240px;margin:0 auto;padding:0 32px}

/* ---- shared navbar (dark) ---- */
.nav{border-bottom:1px solid #1f2937;background:rgba(15,27,45,.9);backdrop-filter:blur(8px);position:sticky;top:0;z-index:20}
.nav .wrap-wide{display:flex;justify-content:space-between;align-items:center;padding-top:15px;padding-bottom:15px}
.nav .brand{display:inline-flex;align-items:center;gap:10px;font-weight:600;letter-spacing:-.01em;color:#fff;text-decoration:none;font-size:17px}
.nav .brand-mark{display:block;width:26px;height:26px;flex:none}
.nav .links{display:flex;gap:26px;align-items:center}
.nav .links .nl{font-size:15px;color:rgba(255,255,255,.72);text-decoration:none;transition:color .18s;position:relative}
.nav .links .nl:hover{color:#fff}
.nav .links .nl.active{color:#fff;font-weight:500}
.nav .links .nl.active::after{content:"";position:absolute;left:0;right:0;bottom:-19px;height:2px;background:var(--green)}
.nav .menu-btn{display:none;background:none;border:none;cursor:pointer;font-size:22px;color:#fff;padding:4px}
.nav .links .nl-icon{display:inline-flex;align-items:center;justify-content:center;color:rgba(255,255,255,.72);text-decoration:none;transition:color .18s;margin-left:6px}
.nav .links .nl-icon:hover{color:#fff}
.nav .links .nl-icon svg{width:20px;height:20px;display:block;fill:currentColor}

@media(max-width:640px){
  .nav .links{position:absolute;top:100%;left:0;right:0;background:#0f1b2d;border-bottom:1px solid #1f2937;flex-direction:column;gap:0;padding:8px 0;display:none}
  .nav .links.open{display:flex}
  .nav .links .nl{padding:12px 28px;width:100%}
  .nav .links .nl.active::after{display:none}
  .nav .links .nl-icon{padding:12px 28px;justify-content:flex-start;margin-left:0;width:100%}
  .nav .menu-btn{display:block}
}

/* ---- shared typography helpers ---- */
.eyebrow{font-size:13px;letter-spacing:.12em;color:var(--accent);font-weight:600;margin-bottom:20px}
h1{font-family:'Space Grotesk',sans-serif;font-weight:500;line-height:1.06;letter-spacing:-.02em}
h2{font-family:'Space Grotesk',sans-serif;font-weight:500;letter-spacing:-.015em}
.lede{font-size:20px;line-height:1.5;color:var(--ink-soft)}

/* ---- shared footer ---- */
.site-footer{padding:22px 0;background:var(--card);border-top:1px solid var(--line)}
.site-footer .wrap-wide{display:flex;justify-content:space-between;align-items:center;gap:24px}
.site-footer p{margin:0}
.site-footer .footer-left{text-align:left}
.site-footer .copyright{font-size:14px;color:var(--ink-soft);margin-bottom:3px;text-align:left}
.site-footer .credit{font-size:12px;color:var(--ink-soft);letter-spacing:.02em;text-align:left}
.site-footer .footer-cta{font-size:15px;font-weight:500;color:var(--navy);text-decoration:none;white-space:nowrap;display:inline-flex;align-items:center;gap:4px;transition:transform .2s ease}
.site-footer .footer-cta .arrow{display:inline-block;transition:transform .22s ease}
.site-footer .footer-cta:hover .arrow{transform:translateX(4px)}
@media(max-width:640px){
  .site-footer{padding:20px 0 24px}
  .site-footer .wrap-wide{flex-direction:column;align-items:flex-start;gap:14px}
}

/* ---- entrance animation ---- */
@keyframes rise{to{opacity:1;transform:translateY(0)}}

  .hero{padding:96px 0 72px;border-bottom:1px solid var(--line)}
  .hero h1{font-size:clamp(40px,6.5vw,66px);margin-bottom:24px;opacity:0;animation:rise .7s .12s forwards;transform:translateY(14px)}
  .hero .eyebrow{opacity:0;animation:rise .7s .05s forwards;transform:translateY(14px)}
  .hero .lede{max-width:640px;opacity:0;animation:rise .7s .2s forwards;transform:translateY(14px)}
  .hero .tag-roles{display:flex;flex-wrap:wrap;gap:10px;margin-top:34px;opacity:0;animation:rise .7s .3s forwards;transform:translateY(14px)}
  .hero .tag-roles span{font-size:14px;padding:8px 15px;border:1px solid var(--line);border-radius:999px;color:var(--ink-soft);background:var(--card)}

  #home .hero .tag-roles span{background:var(--paper)}

  /* ---- home hero: two-column with portrait ---- */
  #home .hero{background:#ffffff}
  .hero .hero-grid{display:grid;grid-template-columns:1fr 320px;gap:54px;align-items:center}
  .hero .hero-copy{min-width:0}
  .hero .hero-portrait{opacity:0;animation:rise .8s .35s forwards;transform:translateY(14px);align-self:center}
  .hero .hero-portrait .frame{position:relative;border-radius:20px;overflow:hidden;border:1px solid var(--line);box-shadow:0 18px 44px rgba(20,25,29,.10);background:var(--line-soft)}
  .hero .hero-portrait img{display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover}
  .hero .hero-portrait .frame::after{content:"";position:absolute;inset:0;border-radius:20px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.4);pointer-events:none}
  .hero .hero-portrait .cap{margin-top:14px;font-size:13px;color:var(--ink-faint);text-align:center;line-height:1.4}
  .hero .hero-portrait .cap .cap-link{color:var(--accent);font-weight:500;cursor:pointer;transition:color .18s;white-space:nowrap}
  .hero .hero-portrait .cap .cap-link:hover{color:var(--ink)}

  @media(max-width:820px){
    .hero .hero-grid{grid-template-columns:1fr;gap:38px}
    .hero .hero-portrait{max-width:320px;order:-1;margin:0 auto;width:100%}
    .hero .hero-portrait .cap{text-align:center}
  }

  .explore{padding:60px 0}
  .explore h2{font-size:15px;letter-spacing:.1em;color:var(--ink-faint);font-weight:600;margin-bottom:26px;font-family:'Inter Tight',sans-serif}
  .cards{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px}
  .pcard{display:block;background:var(--card);border:1px solid var(--line);border-radius:15px;padding:26px 26px 24px;text-decoration:none;color:inherit;transition:transform .2s,box-shadow .2s,border-color .2s}
  .pcard:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(20,25,29,.07);border-color:var(--navy-soft)}
  .pcard .k{font-size:12px;letter-spacing:.1em;color:var(--accent);font-weight:600;margin-bottom:12px}
  .pcard .t{font-family:'Space Grotesk',sans-serif;font-size:23px;font-weight:500;letter-spacing:-.01em;margin-bottom:8px;line-height:1.15}
  .pcard .d{font-size:14.5px;color:var(--ink-soft);line-height:1.5}
  .pcard .go{font-size:14px;color:var(--navy);font-weight:500;margin-top:14px;display:inline-block}
  .pcard.feature{grid-column:1 / -1;background:#0f1b2d;border-color:#0f1b2d;position:relative;overflow:hidden}
  .pcard.feature::before{content:"";position:absolute;top:0;left:0;width:4px;height:100%;background:var(--green)}
  .pcard.feature:hover{box-shadow:0 16px 40px rgba(15,27,45,.28);border-color:#0f1b2d}
  .pcard.feature .k{display:inline-block;background:var(--green);color:#04342c;padding:4px 11px;border-radius:999px;letter-spacing:.08em;margin-bottom:16px}
  .pcard.feature .t{font-size:27px;color:#ffffff}
  .pcard.feature .d{color:rgba(255,255,255,.74);max-width:620px}
  .pcard.feature .go{color:var(--green)}

  /* Explore cards: 3-up on desktop; stack on tablet + mobile */
  @media(max-width:1024px){
    .cards{grid-template-columns:1fr}
  }

  @media(max-width:640px){
    body{font-size:16px}
  }

  /* responsive grid utilities for wide pages */
  .grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
  .grid2w{display:grid;grid-template-columns:1fr 1fr;gap:16px}
  @media(max-width:900px){
    .grid3{grid-template-columns:1fr 1fr}
  }
  @media(max-width:640px){
    .grid3,.grid2w{grid-template-columns:1fr}
  }

/* ===== work styles ===== */


  /* ---- hero ---- */
  .hero{padding:88px 0 56px;border-bottom:1px solid var(--line)}
  .eyebrow{font-size:13px;letter-spacing:.14em;color:var(--accent);font-weight:600;margin-bottom:22px;opacity:0;animation:rise .7s .05s forwards}
  h1{font-family:'Space Grotesk',sans-serif;font-weight:500;font-size:clamp(38px,6vw,60px);line-height:1.04;letter-spacing:-.02em;margin-bottom:24px;opacity:0;animation:rise .7s .12s forwards}
  .lede{font-size:21px;line-height:1.5;color:var(--ink-soft);max-width:620px;opacity:0;animation:rise .7s .2s forwards}
  .facts{display:flex;flex-wrap:wrap;gap:36px;margin-top:44px;opacity:0;animation:rise .7s .3s forwards}
  .fact .k{font-size:12px;letter-spacing:.1em;color:var(--ink-faint);margin-bottom:5px}
  .fact .v{font-size:15px;font-weight:500;color:var(--ink)}

  /* ---- sections ---- */
  section{padding:62px 0;border-bottom:1px solid var(--line)}
  .sec-num{font-family:'Space Grotesk',sans-serif;font-size:14px;color:var(--accent);font-weight:600;margin-bottom:10px;display:block}
  h2{font-family:'Space Grotesk',sans-serif;font-weight:500;font-size:30px;letter-spacing:-.015em;line-height:1.12;margin-bottom:24px}
  h3{font-size:16px;font-weight:600;letter-spacing:-.01em;margin:30px 0 10px}
  p{margin-bottom:18px;color:var(--ink-soft)}
  p strong{color:var(--ink);font-weight:600}
  p:last-child{margin-bottom:0}

  /* ---- pull quote ---- */
  .quote{padding:66px 0;border-bottom:1px solid var(--line);background:#0f1b2d;color:#fff}
  .quote .wrap{text-align:center}
  .quote blockquote{font-family:'Space Grotesk',sans-serif;font-weight:400;font-size:clamp(26px,4.4vw,38px);line-height:1.28;letter-spacing:-.015em;max-width:640px;margin:0 auto 22px}
  .quote .mark{color:#16b8a6}
  .quote cite{font-style:normal;font-size:14px;letter-spacing:.06em;color:rgba(255,255,255,.62)}

  /* ---- audit findings grid ---- */
  .findings{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--line);border:1px solid var(--line);border-radius:14px;overflow:hidden;margin-top:30px}
  .finding{background:var(--card);padding:22px 24px}
  .finding .cat{font-size:12px;letter-spacing:.08em;color:var(--navy);font-weight:600;margin-bottom:8px;display:flex;align-items:center;gap:7px}
  .finding .cat .dot{width:6px;height:6px;border-radius:50%;background:var(--accent);flex:none}
  .finding p{font-size:14.5px;line-height:1.55;margin:0;color:var(--ink-soft)}

  /* ---- heuristics chips ---- */
  .chips{display:flex;flex-wrap:wrap;gap:9px;margin-top:22px}
  .chip{font-size:13px;padding:7px 14px;border:1px solid var(--line);border-radius:999px;color:var(--ink-soft);background:var(--card);transition:all .2s}
  .chip:hover{border-color:var(--navy);color:var(--navy)}

  /* ---- before/after solution rows ---- */
  .fix{display:grid;grid-template-columns:140px 1fr;gap:20px;padding:20px 0;border-top:1px solid var(--line-soft)}
  .fix:first-of-type{border-top:none}
  .fix .label{font-size:13px;font-weight:600;color:var(--ink);padding-top:1px}
  .fix .detail{font-size:15px;color:var(--ink-soft);line-height:1.55}
  .fix .detail .from{color:var(--red);font-weight:500}
  .fix .detail .to{color:var(--green);font-weight:500}

  /* ---- status note ---- */
  .status{display:flex;gap:14px;align-items:flex-start;background:var(--accent-bg);border:1px solid #c3ddf6;border-radius:12px;padding:20px 22px;margin-top:8px}
  .status .ic{flex:none;width:26px;height:26px;border-radius:50%;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:600;margin-top:1px}
  .status p{margin:0;font-size:15px;color:#0c447c}
  .status p strong{color:#042c53}

  /* ---- screens strip ---- */
  .screens{display:flex;flex-wrap:wrap;gap:9px;margin-top:24px}
  .screen-tag{font-size:13px;font-family:'Inter Tight';padding:8px 15px;border-radius:9px;background:var(--navy-soft);color:var(--navy);font-weight:500}

  footer{padding:48px 0 72px;text-align:center}
  footer p{font-size:14px;color:var(--ink-faint);margin:0}

    .eyebrow,h1,.lede,.facts{transform:translateY(14px)}

  @media(max-width:620px){
    body{font-size:16px}
    .findings{grid-template-columns:1fr}
    .fix{grid-template-columns:1fr;gap:5px}
    .fix .label{padding-top:0}
    .facts{gap:24px}
  }

/* ===== timeline styles ===== */


  header.intro{padding:80px 0 40px;border-bottom:1px solid var(--line)}
  .eyebrow{font-size:13px;letter-spacing:.14em;color:var(--accent);font-weight:600;margin-bottom:20px;opacity:0;animation:rise .7s .05s forwards}
  h1{font-family:'Space Grotesk',sans-serif;font-weight:500;font-size:clamp(34px,5.4vw,52px);line-height:1.06;letter-spacing:-.02em;margin-bottom:22px;opacity:0;animation:rise .7s .12s forwards}
  .lede{font-size:20px;line-height:1.5;color:var(--ink-soft);max-width:640px;opacity:0;animation:rise .7s .2s forwards}

  /* phase legend */
  .legend{display:flex;flex-wrap:wrap;gap:18px;margin-top:34px;opacity:0;animation:rise .7s .3s forwards}
  .leg{display:flex;align-items:center;gap:9px;font-size:14px;color:var(--ink-soft)}
  .leg .sw{width:11px;height:11px;border-radius:3px;flex:none}

  /* timeline */
  .timeline{padding:10px 0 20px;position:relative}
  .rail{position:absolute;left:calc(50% - 0px);top:0;bottom:0;width:2px;background:var(--line);transform:translateX(-1px)}
  /* Phase divider — editorial chapter break (Direction 1)
     Replaces the previous pill-chip treatment. Each phase opens with
     a small "Phase 0N" eyebrow, the phase name as a display-weight
     heading, a thin horizontal rule in the phase color, then the
     description paragraph. The chromatic coding lives in the rule.
     The paper background + z-index breaks the timeline rail visually
     so it terminates above the chapter and resumes below it. */
  .phase-label{text-align:center;margin:72px 0 48px;position:relative;z-index:1;background:var(--paper);padding:12px 0}
  .phase-label .phase-eyebrow{font-family:'Space Grotesk',sans-serif;font-size:11px;letter-spacing:.22em;font-weight:500;color:var(--ink-faint);margin-bottom:12px}
  .phase-label .phase-name{font-family:'Space Grotesk',sans-serif;font-size:clamp(24px,3vw,30px);font-weight:500;letter-spacing:-.015em;color:var(--ink);line-height:1.12;margin-bottom:16px}
  .phase-label .phase-rule{display:block;width:56px;height:2px;margin:0 auto 20px;border-radius:1px}
  .phase-eng .phase-rule{background:var(--eng)}
  .phase-bridge .phase-rule{background:var(--bridge)}
  .phase-design .phase-rule{background:var(--design)}

  .entry{position:relative;width:calc(50% - 38px);margin-bottom:30px}
  .entry.left{margin-right:auto;text-align:right}
  .entry.right{margin-left:auto;text-align:left}
  .entry .dot{position:absolute;top:22px;width:13px;height:13px;border-radius:50%;background:var(--card);border:2.5px solid var(--navy);z-index:2}
  .entry.left  .dot{right:-44px}
  .entry.right .dot{left:-44px}
  .entry.eng .dot{border-color:var(--eng)}
  .entry.bridge .dot{border-color:var(--bridge)}
  .entry.design .dot{border-color:var(--design)}

  .card-e{background:var(--card);border:1px solid var(--line);border-radius:13px;padding:22px 26px;transition:transform .2s,box-shadow .2s}
  .card-e:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(20,25,29,.06)}
  .yr{font-size:14px;letter-spacing:.04em;color:var(--ink-faint);font-weight:500;margin-bottom:7px}
  .role{font-size:19.5px;font-weight:600;letter-spacing:-.01em;line-height:1.25;margin-bottom:3px}
  .co{font-size:15.5px;color:var(--navy);font-weight:500;margin-bottom:11px}
  .desc{font-size:15.5px;color:var(--ink-soft);line-height:1.55}
  .tag{display:inline-block;font-size:12.5px;font-weight:500;padding:4px 11px;border-radius:6px;margin-top:13px}
  .tag.eng{background:var(--eng-bg);color:var(--eng)}
  .tag.bridge{background:var(--bridge-bg);color:var(--bridge)}
  .tag.design{background:var(--design-bg);color:var(--design)}

  /* closing arc note */
  .arc{padding:48px 0 70px;border-top:1px solid var(--line);margin-top:30px}
  .arc h2{font-family:'Space Grotesk',sans-serif;font-weight:500;font-size:27px;letter-spacing:-.015em;margin-bottom:16px;line-height:1.15}
  .arc p{font-size:16.5px;color:var(--ink-soft);margin-bottom:16px}
  .arc p strong{color:var(--ink);font-weight:600}
  .arc p:last-child{margin-bottom:0}

    .eyebrow,h1,.lede,.legend{transform:translateY(14px)}

  @media(max-width:680px){
    body{font-size:16px}
    .rail{left:18px}
    .entry{width:100%;text-align:left!important}
    .entry.left,.entry.right{margin:0 0 26px}
    .entry.left .dot,.entry.right .dot{left:12px;right:auto}
    .entry .card-e{margin-left:46px}
    .entry.left .tl-logo{margin-left:0;margin-right:auto}
  }

/* ===== clients styles ===== */


  header.intro{padding:80px 0 44px;border-bottom:1px solid var(--line)}
  .eyebrow{font-size:13px;letter-spacing:.14em;color:var(--accent);font-weight:600;margin-bottom:20px;opacity:0;animation:rise .7s .05s forwards}
  h1{font-family:'Space Grotesk',sans-serif;font-weight:500;font-size:clamp(34px,5.4vw,52px);line-height:1.06;letter-spacing:-.02em;margin-bottom:22px;opacity:0;animation:rise .7s .12s forwards}
  .lede{font-size:20px;line-height:1.5;color:var(--ink-soft);max-width:640px;opacity:0;animation:rise .7s .2s forwards}

  .block{padding:52px 0;border-bottom:1px solid var(--line)}
  .block-head{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin-bottom:26px}
  .block-head h2{margin-bottom:0}
  h2{font-family:'Space Grotesk',sans-serif;font-weight:500;font-size:26px;letter-spacing:-.015em}
  .block-note{font-size:14px;color:var(--ink-faint);text-align:left}

  .grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:14px;overflow:hidden}
  .cell{background:var(--card);padding:26px 22px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;min-height:104px;transition:background .2s}
  .cell .nm{font-size:17px;font-weight:600;letter-spacing:-.01em;color:var(--ink);line-height:1.2}
  .cell .meta{font-size:13px;color:var(--ink-faint);margin-top:6px;line-height:1.4}

  .clients-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:14px;overflow:hidden}
  .cclient{background:var(--card);padding:22px 18px;display:flex;align-items:center;justify-content:center;text-align:center;min-height:92px;transition:background .2s}
  .cclient .nm{font-size:15px;font-weight:600;letter-spacing:-.01em;color:var(--ink);line-height:1.25}

  .sector-row{display:flex;flex-wrap:wrap;gap:9px;margin-top:6px}
  .chip{font-size:13.5px;padding:8px 15px;border:1px solid var(--line);border-radius:999px;color:var(--ink-soft);background:var(--card)}

  .note{font-size:14px;color:var(--ink-faint);margin-top:18px;font-style:italic}

  footer{padding:46px 0 72px;text-align:center}
  footer p{font-size:14px;color:var(--ink-faint);margin:0}

    .eyebrow,h1,.lede{transform:translateY(14px)}

  @media(max-width:680px){
    body{font-size:16px}
    .grid{grid-template-columns:repeat(2,1fr)}
    .clients-grid{grid-template-columns:repeat(2,1fr)}
    .block-note{text-align:left}
  }



/* ===== logo chips ===== */
.logo-chip{display:inline-flex;align-items:center;justify-content:center;background:var(--card);border:1px solid var(--line);border-radius:10px;overflow:hidden}
.logo-chip img{display:block;max-width:85%;max-height:82%;width:auto;height:auto;object-fit:contain}
.cell .logo-chip{width:150px;height:78px;margin-bottom:12px;border:none;background:transparent;border-radius:0}
.cclient .logo-chip{width:100%;max-width:150px;height:70px;border:none;background:transparent}
.tl-logo{width:120px;overflow:hidden;background:transparent;border:none;border-radius:0;display:flex;justify-content:center;margin-bottom:12px}
.tl-logo img{max-width:100%;max-height:52px;width:auto;height:auto;object-fit:contain}
.entry.left .tl-logo{margin-left:auto;margin-right:0}

/* ===== logo placeholders (text fallback for clients without a logo) ===== */
.logo-ph{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-size:13px;font-weight:600;color:var(--ink-soft);text-align:center;padding:6px 10px;line-height:1.25;letter-spacing:.01em}

/* ===========================================================
   Motion + accessibility pass
   - Cross-document View Transitions (Chrome/Edge/Safari 18+;
     no-op on Firefox)
   - IntersectionObserver-driven scroll reveals
   - prefers-reduced-motion reset (catches all transitions/anims)
   - :focus-visible polish for keyboard nav
   - Cheap hover refinements
   =========================================================== */

/* --- cross-document view transitions --- */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.25s;
  animation-timing-function: ease;
}

/* --- scroll reveals ---
   Gated on html.js-ready so the page is fully visible without JS.
   Inline head script flips js-ready before this CSS evaluates, and
   script.js synchronously marks above-the-fold elements in-view
   before first paint to avoid any flash. */
@media (prefers-reduced-motion: no-preference) {
  html.js-ready .reveal,
  html.js-ready .reveal-left,
  html.js-ready .reveal-right {
    opacity: 0;
    transition: opacity .55s ease-out var(--reveal-delay, 0s),
                transform .55s ease-out var(--reveal-delay, 0s);
    will-change: opacity, transform;
  }
  html.js-ready .reveal       { transform: translateY(18px); }
  html.js-ready .reveal-left  { transform: translateX(-24px); }
  html.js-ready .reveal-right { transform: translateX(24px); }
  html.js-ready .reveal.in-view,
  html.js-ready .reveal-left.in-view,
  html.js-ready .reveal-right.in-view {
    opacity: 1;
    transform: none;
  }
  /* on mobile, timeline entries are stacked full-width, so X-axis slides look odd */
  @media (max-width: 680px) {
    html.js-ready .reveal-left,
    html.js-ready .reveal-right { transform: translateY(18px); }
  }
}

/* --- :focus-visible polish (keyboard nav) --- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.nav .nl:focus-visible,
.nav .brand:focus-visible {
  outline-color: var(--green);
  outline-offset: 6px;
}
.pcard:focus-visible {
  outline-offset: 4px;
}
.menu-btn:focus-visible {
  outline-color: var(--green);
}

/* --- hover refinements --- */
.pcard .go {
  transition: transform .22s ease;
}
.pcard:hover .go,
.pcard:focus-visible .go {
  transform: translateX(4px);
}

/* --- clients logo: full color, no hover (mobile parity + brand recognition) --- */
.cclient .logo-chip img {
  opacity: 0.9;
}
.cclient:hover .logo-chip.dark img,
.cclient:focus-within .logo-chip.dark img {
  transform: scale(1.04);
}

/* --- prefers-reduced-motion: nuke all motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
}

/* ===========================================================
   Home logo strip — social proof between hero and Explore
   =========================================================== */
.logo-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
  background: var(--card);
}
.logo-strip .label {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-bottom: 26px;
  font-weight: 600;
}
.logo-strip .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 28px 36px;
  max-width: 1240px;
  margin: 0 auto;
}
.logo-strip .row img {
  /* Full color, no hover. A small opacity dial keeps brand colors from
     punching above the page hierarchy where the hero copy lives. */
  height: 30px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  opacity: 0.85;
  flex: 0 0 auto;
}
.logo-strip .see-all {
  text-align: center;
  margin-top: 28px;
}
.logo-strip .see-all a {
  font-size: 14px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  transition: color .18s ease;
}
.logo-strip .see-all a:hover {
  color: var(--ink);
}
@media (max-width: 820px) {
  .logo-strip { padding: 32px 0; }
  .logo-strip .row { gap: 22px 28px; }
  .logo-strip .row img { height: 26px; max-width: 160px; }
}
@media (max-width: 480px) {
  .logo-strip .row { gap: 18px 22px; }
  .logo-strip .row img { height: 22px; max-width: 130px; }
}

/* ===========================================================
   About page pull quote — sculpted display treatment
   The only Fraunces serif moment on the site; given a large
   decorative open-quote glyph as a visual anchor.
   =========================================================== */
.about-pull-quote {
  position: relative;
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 16px 0 56px;
  padding: 28px 0 8px 84px;
  max-width: 720px;
}
.about-pull-quote::before {
  content: "\201C"; /* opening curly double quote */
  position: absolute;
  left: -6px;
  top: -22px;
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 180px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.16;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 640px) {
  .about-pull-quote {
    font-size: clamp(24px, 6vw, 32px);
    padding: 20px 0 4px 56px;
    margin: 8px 0 40px;
  }
  .about-pull-quote::before {
    font-size: 120px;
    top: -14px;
    left: -2px;
  }
}

/* ===========================================================
   Page-top white band — matches the home page treatment where
   the hero + logo strip sit on --card (white) while the body
   below sits on --paper. Applied to work, clients, about, and
   case-nulisa. Journey is intentionally exempt (different
   opening rhythm — opens straight into the timeline rail).
   =========================================================== */
#work .intro,
#clients .intro,
#about .intro {
  background: var(--card);
}

/* Case study: no .intro header; instead, give the first content
   section the white band so the page opens with the same visual
   weight as the other inner pages. */
#case-nulisa > section:first-of-type {
  background: var(--card);
}

/* ===========================================================
   Home thesis statement — punched version of the Journey
   closing essay. Sits between the logo strip and the Explore
   cards as the page's argument: this is why I'm different.
   =========================================================== */
.thesis {
  padding: 60px 0 36px;
  text-align: center;
}
.thesis .eyebrow {
  margin-bottom: 20px;
}
.thesis .thesis-lede {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-weight: 400;
  max-width: 760px;
  margin: 0 auto;
}
.thesis .thesis-lede strong {
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .thesis { padding: 44px 0 24px; }
  .thesis .thesis-lede { font-size: 20px; }
}

/* ===========================================================
   Phase description — short narrative beneath each phase chip
   on the Journey page. Turns chips into chapter announcements
   with framing prose, especially the "why" of the bridge pivot.
   =========================================================== */
.phase-label .phase-desc {
  margin: 16px auto 0;
  max-width: 540px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  text-align: center;
}
.phase-label .phase-desc strong {
  color: var(--ink);
  font-weight: 500;
}
@media (max-width: 680px) {
  .phase-label .phase-desc {
    font-size: 14.5px;
    padding: 0 14px;
    max-width: none;
  }
}

/* ===========================================================
   Navbar entrance motion
   Subtle drop-in + fade for the nav as a whole, plus a
   draw-in animation for the active-page underline as a small
   follow-through detail. Gated on html.js-ready + no reduced-
   motion so the page is fully usable without JS and respects
   the user's motion preference.
   =========================================================== */
@media (prefers-reduced-motion: no-preference) {
  html.js-ready .nav {
    opacity: 0;
    transform: translateY(-100%);
    animation: rise 1s cubic-bezier(.22, .7, .25, 1) .05s forwards;
  }
  html.js-ready .nav .links .nl.active::after {
    transform: scaleX(0);
    transform-origin: left center;
    animation: navUnderline .55s cubic-bezier(.22, .7, .25, 1) .95s forwards;
  }
  @keyframes navUnderline {
    to { transform: scaleX(1); }
  }
}

/* ===========================================================
   Back-to-top floating button
   Hidden by default. JS adds .visible after the visitor scrolls
   past ~80% of one viewport height. Sits above the sticky nav
   (z-index 30 vs nav's 20) so it never gets covered.
   Respects prefers-reduced-motion.
   =========================================================== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 30;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0f1b2d;
  color: #fff;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease, visibility 0s .3s, background-color .2s ease;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .3s ease, transform .3s ease, visibility 0s 0s, background-color .2s ease;
}
.back-to-top:hover { background: var(--navy); }
.back-to-top svg { width: 18px; height: 18px; display: block; }
@media (max-width: 640px) {
  .back-to-top { bottom: 16px; right: 16px; width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity 0s, visibility 0s; transform: none; }
}

/* ===========================================================
   End-of-page CTA block — the conversion moment
   Sits above the slim footer on every page. Makes the
   "let's talk" intent loud instead of passive.
   =========================================================== */
.cta-block {
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 72px 0 80px;
  text-align: center;
}
.cta-block .cta-eyebrow {
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--ink-faint);
  font-weight: 600;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cta-block .cta-eyebrow::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}
.cta-block .cta-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 4.6vw, 46px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 16px;
}
.cta-block .cta-lede {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 520px;
  margin: 0 auto 32px;
}
.cta-block .cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.cta-block .cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  border: 1px solid transparent;
}
.cta-block .cta-btn svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
  flex: none;
}
.cta-block .cta-btn-primary {
  background: var(--ink);
  color: #fff;
}
.cta-block .cta-btn-primary:hover {
  background: var(--navy);
  transform: translateY(-1px);
}
.cta-block .cta-btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.cta-block .cta-btn-secondary:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}
.cta-block .cta-meta {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-faint);
  line-height: 1.5;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
}
.cta-block .cta-meta .cta-meta-sep {
  opacity: 0.5;
}
@media (max-width: 640px) {
  .cta-block { padding: 56px 0 64px; }
  .cta-block .cta-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .cta-block .cta-btn { justify-content: center; }
}
