
  :root {
    --bg: #f4f1ea;
    --bg-2: #ece8df;
    --ink: #161412;
    --ink-2: #2a2622;
    --muted: #6b6358;
    --rule: #d6cfc1;
    --rule-2: #c2b9a8;
    --accent: #d97757;
    --accent-ink: #1a0f08;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', sans-serif;
    --serif: 'Instrument Serif', 'Times New Roman', serif;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-feature-settings: "ss01", "cv11";
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
  }
  ::selection { background: var(--accent); color: var(--accent-ink); }

  .mono { font-family: var(--mono); font-feature-settings: "zero", "ss02"; }
  .serif { font-family: var(--serif); }
  .upper { text-transform: uppercase; letter-spacing: 0.08em; }

  .page { width: 100%; max-width: 100%; margin: 0 auto; }

  /* ============ NAV ============ */
  .nav {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    border-bottom: 1px solid var(--rule);
  }
  .nav-inner {
    max-width: 1440px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 18px 40px;
    font-family: var(--mono); font-size: 12px;
  }
  .nav-mark { display: flex; align-items: center; gap: 10px; }
  .nav-mark .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
  .nav-mark .name { font-weight: 600; letter-spacing: 0.02em; }
  .nav-mark .role { color: var(--muted); }
  .nav-links { display: flex; gap: 28px; justify-self: center; }
  .nav-links a {
    color: var(--ink); text-decoration: none; position: relative;
  }
  .nav-links a::before {
    content: "↳ "; color: var(--muted); margin-right: 2px;
  }
  .nav-links a:hover { color: var(--accent); }
  .nav-cta {
    justify-self: end; display: flex; align-items: center; gap: 14px;
  }
  .nav-cta .clock { color: var(--muted); }
  .nav-cta .btn {
    border: 1px solid var(--ink); padding: 7px 14px; border-radius: 999px;
    color: var(--ink); text-decoration: none; transition: all .2s ease;
    display: inline-flex; align-items: center; gap: 8px;
  }
  .nav-cta .btn:hover { background: var(--ink); color: var(--bg); }
  .nav-cta .btn .ind { width: 6px; height: 6px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px color-mix(in srgb, #16a34a 25%, transparent); }

  /* ============ HERO ============ */
  .hero {
    position: relative;
    max-width: 1440px; margin: 0 auto;
    padding: 64px 40px 40px;
  }
  .hero-meta {
    display: grid; grid-template-columns: repeat(12, 1fr);
    gap: 20px; font-family: var(--mono); font-size: 11px;
    color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em;
    padding-bottom: 28px; border-bottom: 1px solid var(--rule);
  }
  .hero-meta > div { display: flex; flex-direction: column; gap: 6px; }
  .hero-meta .lbl { color: var(--muted); }
  .hero-meta .val { color: var(--ink); font-weight: 500; }
  .hero-meta .c1 { grid-column: span 3; }
  .hero-meta .c2 { grid-column: span 2; }
  .hero-meta .c3 { grid-column: span 2; }
  .hero-meta .c4 { grid-column: span 3; }
  .hero-meta .c5 { grid-column: span 2; text-align: right; }

  .hero-headline {
    font-family: var(--sans);
    font-weight: 400;
    font-size: clamp(48px, 8.5vw, 132px);
    line-height: 0.92;
    letter-spacing: -0.045em;
    margin: 56px 0 0;
    color: var(--ink);
    text-wrap: balance;
  }
  .hero-headline .line { display: block; }
  .hero-headline em {
    font-family: var(--serif); font-style: italic; font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--ink);
  }
  .hero-headline .ai-mark {
    display: inline-flex; align-items: center; gap: 0.18em;
    color: var(--accent);
    font-style: italic;
    font-family: var(--serif);
  }
  .hero-headline .arrow {
    display: inline-block;
    font-family: var(--mono); font-weight: 400;
    font-size: 0.6em;
    transform: translateY(-0.18em);
    color: var(--accent);
    margin: 0 0.04em;
  }

  .hero-tagrow {
    display: grid; grid-template-columns: 1fr auto;
    align-items: end; gap: 40px;
    margin-top: 64px;
    padding-top: 28px;
    border-top: 1px solid var(--rule);
  }
  .hero-blurb {
    max-width: 560px;
    font-size: 17px; line-height: 1.5;
    color: var(--ink-2);
  }
  .hero-blurb b { color: var(--ink); font-weight: 500; }
  .hero-actions { display: flex; gap: 12px; }
  .hero-actions a {
    font-family: var(--mono); font-size: 12px;
    text-decoration: none; color: var(--ink);
    border: 1px solid var(--ink);
    padding: 14px 20px; border-radius: 999px;
    display: inline-flex; align-items: center; gap: 10px;
    transition: all .2s ease;
  }
  .hero-actions a.primary { background: var(--ink); color: var(--bg); }
  .hero-actions a.primary:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
  .hero-actions a.ghost:hover { background: var(--ink); color: var(--bg); }
  .hero-actions svg { width: 12px; height: 12px; }

  /* Hero ASCII / monospace decoration */
  .hero-deco {
    position: absolute; right: 40px; top: 110px;
    font-family: var(--mono); font-size: 10px;
    color: var(--rule-2); white-space: pre; line-height: 1.4;
    pointer-events: none; user-select: none;
  }

  /* ============ TICKER ============ */
  .ticker {
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    overflow: hidden; padding: 22px 0;
    margin-top: 80px;
    background: var(--bg-2);
  }
  .ticker-track {
    display: flex; gap: 60px; width: max-content;
    animation: tick 50s linear infinite;
    font-family: var(--serif); font-style: italic;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1; color: var(--ink);
    padding-left: 60px;
  }
  .ticker-track span { display: flex; align-items: center; gap: 60px; }
  .ticker-track .star {
    font-family: var(--sans); font-style: normal;
    color: var(--accent); font-size: 0.6em;
    transform: translateY(-0.05em);
  }
  @keyframes tick {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  /* ============ SECTION SCAFFOLD ============ */
  section { max-width: 1440px; margin: 0 auto; padding: 120px 40px; position: relative; }
  .sec-head {
    display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px;
    align-items: end; margin-bottom: 56px;
    padding-bottom: 18px; border-bottom: 1px solid var(--rule);
  }
  .sec-num {
    grid-column: span 2;
    font-family: var(--mono); font-size: 11px;
    color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em;
    display: flex; align-items: center; gap: 8px;
  }
  .sec-num .bullet { color: var(--accent); }
  .sec-title {
    grid-column: 3 / span 7;
    font-family: var(--sans); font-weight: 400;
    font-size: clamp(28px, 3.4vw, 48px); line-height: 1.05;
    letter-spacing: -0.025em; margin: 0;
  }
  .sec-title em { font-family: var(--serif); font-style: italic; }
  .sec-tag {
    grid-column: span 3;
    font-family: var(--mono); font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--muted); text-align: right;
  }

  /* ============ STATS STRIP ============ */
  .stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    margin-top: 0;
  }
  .stats > div {
    padding: 36px 28px; border-right: 1px solid var(--rule);
    display: flex; flex-direction: column; gap: 12px;
    position: relative;
  }
  .stats > div:last-child { border-right: none; }
  .stats .num {
    font-family: var(--sans); font-weight: 300;
    font-size: clamp(48px, 6vw, 88px);
    line-height: 0.95; letter-spacing: -0.04em;
    color: var(--ink);
  }
  .stats .num em { font-family: var(--serif); font-style: italic; color: var(--accent); }
  .stats .lbl {
    font-family: var(--mono); font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--muted);
  }
  .stats .desc { font-size: 14px; line-height: 1.45; color: var(--ink-2); }

  /* ============ WORK ============ */
  .work-list { display: flex; flex-direction: column; }
  .work-row {
    display: grid; grid-template-columns: 60px 2fr 2fr 1.4fr 1fr 60px;
    gap: 24px; align-items: center;
    padding: 28px 12px;
    border-top: 1px solid var(--rule);
    cursor: pointer; transition: background .25s ease, padding .25s ease;
    position: relative;
  }
  .work-row:last-child { border-bottom: 1px solid var(--rule); }
  .work-row:hover { background: var(--bg-2); padding-left: 24px; }
  .work-row .idx { font-family: var(--mono); font-size: 12px; color: var(--muted); }
  .work-row .client {
    font-family: var(--sans); font-weight: 500;
    font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -0.02em;
    line-height: 1;
  }
  .work-row .client .sub {
    display: block; font-family: var(--mono); font-size: 11px;
    color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em;
    font-weight: 400; margin-top: 8px;
  }
  .work-row .summary {
    font-size: 14px; line-height: 1.45; color: var(--ink-2);
  }
  .work-row .summary em {
    font-family: var(--serif); font-style: italic;
    color: var(--accent); font-size: 1.05em;
  }
  .work-row .meta {
    font-family: var(--mono); font-size: 11px; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.1em;
    display: flex; flex-direction: column; gap: 6px;
  }
  .work-row .meta .y { color: var(--ink); }
  .work-row .tags {
    font-family: var(--mono); font-size: 10px;
    color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em;
  }
  .work-row .arrow-cell {
    text-align: right; font-family: var(--mono);
    font-size: 18px; color: var(--ink);
    transition: transform .25s ease, color .25s ease;
  }
  .work-row:hover .arrow-cell { color: var(--accent); transform: translateX(6px); }

  /* ============ SERVICES ============ */
  .services {
    display: grid; grid-template-columns: repeat(12, 1fr);
    gap: 20px;
  }
  .service {
    grid-column: span 4;
    border: 1px solid var(--rule);
    background: var(--bg);
    padding: 32px 28px;
    display: flex; flex-direction: column; gap: 18px;
    min-height: 320px;
    position: relative;
    transition: border-color .2s ease, transform .2s ease;
  }
  .service:hover { border-color: var(--ink); }
  .service .num {
    font-family: var(--mono); font-size: 11px; color: var(--accent);
    letter-spacing: 0.1em;
  }
  .service h3 {
    font-family: var(--sans); font-weight: 400;
    font-size: 26px; letter-spacing: -0.02em;
    margin: 0; line-height: 1.1;
  }
  .service h3 em { font-family: var(--serif); font-style: italic; }
  .service p {
    font-size: 14px; line-height: 1.55; color: var(--ink-2);
    margin: 0;
  }
  .service ul {
    margin: auto 0 0; padding: 0; list-style: none;
    display: flex; flex-direction: column; gap: 6px;
    border-top: 1px solid var(--rule); padding-top: 16px;
    font-family: var(--mono); font-size: 11px;
    color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em;
  }
  .service ul li::before { content: "→ "; color: var(--accent); }

  /* ============ ABOUT ============ */
  .about-grid {
    display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px;
  }
  .about-portrait {
    grid-column: span 4;
    aspect-ratio: 4/5;
    background:
      repeating-linear-gradient(45deg, transparent 0 12px, color-mix(in srgb, var(--ink) 6%, transparent) 12px 13px),
      var(--bg-2);
    border: 1px solid var(--rule);
    position: relative;
    overflow: hidden;
  }
  .about-portrait::before {
    content: "AS";
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif); font-style: italic;
    font-size: clamp(120px, 18vw, 240px);
    color: var(--ink);
    line-height: 1;
  }
  .about-portrait .tag {
    position: absolute; bottom: 16px; left: 16px;
    font-family: var(--mono); font-size: 10px;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--muted);
    background: var(--bg); padding: 6px 10px;
    border: 1px solid var(--rule);
  }
  .about-text { grid-column: 6 / span 7; display: flex; flex-direction: column; gap: 22px; }
  .about-text h3 {
    font-family: var(--sans); font-weight: 400;
    font-size: clamp(28px, 3vw, 44px); line-height: 1.15;
    letter-spacing: -0.025em; margin: 0; text-wrap: pretty;
  }
  .about-text h3 em { font-family: var(--serif); font-style: italic; }
  .about-text p { font-size: 16px; line-height: 1.6; color: var(--ink-2); margin: 0; max-width: 60ch; }
  .about-text p b { color: var(--ink); font-weight: 500; }

  /* ============ EXPERIENCE TIMELINE ============ */
  .exp-list {
    display: flex; flex-direction: column;
    border-top: 1px solid var(--rule);
  }
  .exp-row {
    display: grid; grid-template-columns: 110px 1fr 1.5fr 80px;
    gap: 24px; align-items: baseline;
    padding: 22px 12px;
    border-bottom: 1px solid var(--rule);
    font-family: var(--sans);
    transition: background .2s ease;
  }
  .exp-row:hover { background: var(--bg-2); }
  .exp-row .yr {
    font-family: var(--mono); font-size: 12px;
    color: var(--muted); letter-spacing: 0.05em;
  }
  .exp-row .co { font-size: 22px; letter-spacing: -0.02em; font-weight: 500; }
  .exp-row .role { font-size: 14px; color: var(--ink-2); }
  .exp-row .role em { font-family: var(--serif); font-style: italic; }
  .exp-row .loc {
    font-family: var(--mono); font-size: 11px;
    color: var(--muted); text-transform: uppercase;
    text-align: right;
  }
  .exp-row.current .yr { color: var(--accent); }
  .exp-row.current .yr::after { content: " ●"; color: var(--accent); }

  /* ============ TOOLS GRID ============ */
  .tools {
    display: grid; grid-template-columns: repeat(6, 1fr);
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
  }
  .tool {
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 22px 18px; min-height: 110px;
    display: flex; flex-direction: column; justify-content: space-between;
    transition: background .2s ease;
  }
  .tool:hover { background: var(--bg-2); }
  .tool .name { font-size: 14px; line-height: 1.2; letter-spacing: -0.01em; font-weight: 500; }
  .tool .lvl {
    font-family: var(--mono); font-size: 10px;
    color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em;
  }
  .tool .lvl b { color: var(--accent); font-weight: 500; }

  /* ============ CONTACT / FOOTER ============ */
  .contact {
    background: var(--ink);
    color: var(--bg);
    margin-top: 0;
    padding: 0;
    max-width: 100%;
  }
  .contact-inner {
    max-width: 1440px; margin: 0 auto;
    padding: 120px 40px 40px;
  }
  .contact h2 {
    font-family: var(--sans); font-weight: 300;
    font-size: clamp(60px, 10vw, 168px);
    line-height: 0.9; letter-spacing: -0.045em;
    margin: 0 0 56px;
  }
  .contact h2 em { font-family: var(--serif); font-style: italic; color: var(--accent); }
  .contact-grid {
    display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px;
    padding: 32px 0; border-top: 1px solid color-mix(in srgb, var(--bg) 22%, transparent);
    font-family: var(--mono); font-size: 12px;
  }
  .contact-grid .lbl { color: color-mix(in srgb, var(--bg) 50%, transparent); text-transform: uppercase; letter-spacing: 0.12em; font-size: 10px; margin-bottom: 8px; }
  .contact-grid .val { font-family: var(--sans); font-size: 18px; font-weight: 400; }
  .contact-grid .val a { color: var(--bg); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--bg) 30%, transparent); padding-bottom: 2px; }
  .contact-grid .val a:hover { color: var(--accent); border-color: var(--accent); }
  .contact-grid .c1 { grid-column: span 4; }
  .contact-grid .c2 { grid-column: span 4; }
  .contact-grid .c3 { grid-column: span 4; }

  .contact-cta {
    display: flex; flex-wrap: wrap; gap: 14px;
    margin-bottom: 80px;
  }
  .contact-cta a {
    border: 1px solid color-mix(in srgb, var(--bg) 30%, transparent);
    color: var(--bg); text-decoration: none;
    padding: 16px 24px; border-radius: 999px;
    font-family: var(--mono); font-size: 12px;
    display: inline-flex; align-items: center; gap: 10px;
    transition: all .2s ease;
  }
  .contact-cta a.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
  .contact-cta a:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }
  .contact-cta a.primary:hover { background: var(--bg); color: var(--ink); }

  .colophon {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 20px; padding: 32px 0 0;
    border-top: 1px solid color-mix(in srgb, var(--bg) 22%, transparent);
    font-family: var(--mono); font-size: 11px;
    color: color-mix(in srgb, var(--bg) 60%, transparent);
    text-transform: uppercase; letter-spacing: 0.1em;
  }
  .colophon .right { text-align: right; }
  .colophon .center { text-align: center; }

  /* ============ ASCII BIG MARK ============ */
  .big-mark {
    margin: 0 auto;
    max-width: 1440px;
    padding: 0 40px 40px;
    overflow: hidden;
  }
  .big-mark .glyph {
    font-family: var(--sans); font-weight: 300;
    font-size: clamp(120px, 24vw, 360px);
    line-height: 0.85; letter-spacing: -0.06em;
    color: var(--ink);
    display: flex; align-items: baseline; justify-content: space-between;
    border-top: 1px solid var(--rule);
    padding-top: 40px;
  }
  .big-mark .glyph em { font-family: var(--serif); font-style: italic; color: var(--accent); }

  /* === DROPDOWN NAV === */
  .nav-dd { position: relative; }
  .nav-dd-trigger { display: inline-flex; align-items: center; gap: 6px; }
  .nav-dd-trigger .caret { font-size: 9px; transition: transform .25s ease; color: var(--accent); }
  .nav-dd:hover .nav-dd-trigger .caret { transform: rotate(180deg); }
  .nav-dd-menu {
    position: absolute; top: calc(100% + 14px); left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: var(--bg);
    border: 1px solid var(--rule);
    min-width: 280px;
    opacity: 0; pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    box-shadow: 0 24px 48px -16px rgba(0,0,0,.18);
    z-index: 100;
  }
  .nav-dd-menu::before {
    content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px;
  }
  .nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu {
    opacity: 1; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  .nav-dd-menu a {
    display: grid; grid-template-columns: 60px 1fr;
    gap: 12px; padding: 14px 16px;
    border-bottom: 1px solid var(--rule);
    font-family: var(--mono); font-size: 12px;
    align-items: center;
  }
  .nav-dd-menu a::before { content: none; }
  .nav-dd-menu a:last-child { border-bottom: none; }
  .nav-dd-menu a:hover {
    background: var(--ink);
    color: var(--bg);
  }
  .nav-dd-menu a:hover .m-name { color: var(--bg); }
  .nav-dd-menu a:hover .m-lbl { color: var(--accent); }
  .nav-dd-menu .m-lbl { color: var(--muted); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
  .nav-dd-menu .m-name { color: var(--ink); font-family: var(--sans); font-size: 14px; font-weight: 500; }
  .nav-dd-menu a:hover .m-name { color: var(--bg); }

  /* === PAGE HERO (smaller hero for sub-pages) === */
  .page-hero {
    max-width: 1440px; margin: 0 auto;
    padding: 80px 40px 60px;
    border-bottom: 1px solid var(--rule);
  }
  .page-hero .crumb {
    font-family: var(--mono); font-size: 11px;
    color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em;
    margin-bottom: 32px;
    display: flex; gap: 10px; align-items: center;
  }
  .page-hero .crumb a { color: var(--muted); text-decoration: none; }
  .page-hero .crumb a:hover { color: var(--accent); }
  .page-hero .crumb .sep { color: var(--rule-2); }
  .page-hero .crumb .here { color: var(--ink); }
  .page-hero h1 {
    font-family: var(--sans); font-weight: 400;
    font-size: clamp(48px, 7vw, 108px);
    line-height: 0.95; letter-spacing: -0.04em;
    margin: 0;
  }
  .page-hero h1 em { font-family: var(--serif); font-style: italic; color: var(--accent); }
  .page-hero .sub {
    margin-top: 28px; max-width: 640px;
    font-size: 17px; line-height: 1.5; color: var(--ink-2);
  }
  .page-hero .sub b { color: var(--ink); font-weight: 500; }
  @media (max-width: 900px) {
    .page-hero { padding: 40px 20px; }
    .nav-dd-menu { left: 0; transform: translateX(0) translateY(-8px); }
    .nav-dd:hover .nav-dd-menu { transform: translateX(0) translateY(0); }
  }
  [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
  [data-reveal].in { opacity: 1; transform: none; }

  /* === HERO MASK REVEAL === */
  .mask-line { display: block; overflow: hidden; padding: 0.18em 0 0.16em; line-height: 0.92; }
  .mask-line > span {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 1.1s cubic-bezier(.2,.8,.2,1);
  }
  .mask-line.in > span { transform: translateY(0); }
  .hero-headline .mask-line > span { transition-delay: var(--d, 0s); }
  .page-hero .mask-line > span { transition-delay: var(--d, 0s); }
  .hero-headline { line-height: 1; }

  /* meta cells stagger */
  .hero-meta > div {
    opacity: 0; transform: translateY(12px);
    transition: opacity .7s ease var(--md, 0s), transform .7s ease var(--md, 0s);
  }
  .hero-meta.in > div { opacity: 1; transform: none; }

  /* hero ASCII flicker-in */
  .hero-deco {
    opacity: 0;
    transition: opacity 1.2s ease 1.2s;
  }
  .hero-deco.in { opacity: 1; }
  .hero-deco { animation: ascii-blink 4s steps(1) infinite 2s; }
  @keyframes ascii-blink {
    0%, 92%, 100% { color: var(--rule-2); }
    93%, 95%, 97% { color: var(--accent); }
    94%, 96% { color: var(--rule-2); }
  }

  /* ── status pulse ── */
  .nav-cta .btn .ind { animation: pulse 1.6s ease-in-out infinite; }
  @keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, #16a34a 30%, transparent); }
    50% { box-shadow: 0 0 0 7px color-mix(in srgb, #16a34a 0%, transparent); }
  }

  /* ── hero accent dot ── */
  .nav-mark .dot { animation: pulse-orange 2.2s ease-in-out infinite; }
  @keyframes pulse-orange {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); }
    50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 0%, transparent); }
  }

  /* ── ticker hover-pause ── */
  .ticker:hover .ticker-track { animation-play-state: paused; }

  /* ── stats count-up ── */
  .stats > div {
    opacity: 0; transform: translateY(20px);
    transition: opacity .7s ease var(--sd, 0s), transform .7s ease var(--sd, 0s);
  }
  .stats.in > div { opacity: 1; transform: none; }

  /* ── work row magnetic + label slide ── */
  .work-row {
    overflow: hidden;
  }
  .work-row .client {
    transition: transform .5s cubic-bezier(.2,.8,.2,1);
  }
  .work-row:hover .client { transform: translateX(8px); }

  .work-row::before {
    content: "";
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px; background: var(--accent);
    transform: scaleY(0); transform-origin: top;
    transition: transform .45s cubic-bezier(.2,.8,.2,1);
  }
  .work-row:hover::before { transform: scaleY(1); }

  /* fly-out reveal preview circle */
  .work-row .preview {
    position: absolute;
    top: 50%; left: 0;
    width: 180px; height: 180px;
    background: var(--accent);
    color: var(--accent-ink);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s ease;
    opacity: 0;
    z-index: 5;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--mono); font-size: 11px;
    letter-spacing: 0.1em; text-transform: uppercase;
    mix-blend-mode: normal;
  }
  .work-row:hover .preview { transform: translate(-50%, -50%) scale(1); opacity: 1; }

  /* ── service tilt + accent fill ── */
  .service {
    transition: border-color .25s ease, transform .35s cubic-bezier(.2,.8,.2,1);
  }
  .service::after {
    content: ""; position: absolute; inset: 0;
    background: var(--accent); transform: scaleY(0); transform-origin: bottom;
    transition: transform .5s cubic-bezier(.2,.8,.2,1); z-index: 0;
  }
  .service > * { position: relative; z-index: 1; transition: color .35s ease; }
  .service:hover { transform: translateY(-4px); border-color: var(--accent); }
  .service:hover::after { transform: scaleY(1); }
  .service:hover h3, .service:hover h3 em, .service:hover p, .service:hover .num, .service:hover ul, .service:hover ul li::before {
    color: var(--accent-ink) !important;
  }
  .service:hover ul { border-top-color: color-mix(in srgb, var(--accent-ink) 30%, transparent); }

  /* ── big mark scroll parallax ── */
  .big-mark .glyph span,
  .big-mark .glyph em {
    display: inline-block;
    transform: translateX(var(--bx, 0));
    transition: transform .1s linear;
  }

  /* ── exp row letter-stagger on hover ── */
  .exp-row .co {
    background: linear-gradient(90deg, var(--ink) 50%, var(--accent) 50%);
    background-size: 200% 100%;
    background-position: 0 0;
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    transition: background-position .5s cubic-bezier(.2,.8,.2,1);
  }
  .exp-row:hover .co { background-position: -100% 0; }

  /* ── tool grid sweep ── */
  .tool {
    position: relative; overflow: hidden;
  }
  .tool::before {
    content: ""; position: absolute; inset: 0;
    background: var(--accent);
    transform: translateY(100%);
    transition: transform .35s cubic-bezier(.2,.8,.2,1);
    z-index: 0;
  }
  .tool > * { position: relative; z-index: 1; transition: color .3s ease; }
  .tool:hover::before { transform: translateY(0); }
  .tool:hover .name, .tool:hover .lvl, .tool:hover .lvl b { color: var(--accent-ink); }

  /* ── contact giant hover ── */
  .contact h2 em {
    display: inline-block;
    transition: transform .6s cubic-bezier(.2,.8,.2,1), letter-spacing .6s ease;
  }
  .contact h2:hover em { transform: skewX(-6deg); letter-spacing: 0.02em; }

  /* ── cursor follower ── */
  .cursor-dot {
    position: fixed; top: 0; left: 0;
    width: 12px; height: 12px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform .15s ease, width .25s ease, height .25s ease, background .25s ease;
    mix-blend-mode: difference;
    opacity: 0;
  }
  .cursor-dot.active { opacity: 1; }
  .cursor-dot.hover { width: 56px; height: 56px; background: var(--accent); }
  @media (hover: none) { .cursor-dot { display: none; } }

  /* ── arrow nudge ── */
  .hero-actions a:hover svg { transform: translateX(4px); }
  .hero-actions a svg { transition: transform .3s cubic-bezier(.2,.8,.2,1); }

  /* ── reduced motion ── */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
    }
  }

  /* ============ MOBILE NAV (hamburger) ============ */
  .nav-burger {
    display: none;
    background: transparent; border: 1px solid var(--rule);
    color: var(--ink);
    padding: 8px 12px; border-radius: 999px;
    align-items: center; gap: 10px;
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
  }
  .nav-burger:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .nav-burger-bars { display: inline-flex; flex-direction: column; gap: 3px; width: 16px; }
  .nav-burger-bars span {
    display: block; height: 1.5px; background: currentColor;
    transition: transform .25s ease, opacity .2s ease;
    transform-origin: center;
  }
  .nav.is-open .nav-burger-bars span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
  .nav.is-open .nav-burger-bars span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav-burger-bars span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }
  html.nav-locked, html.nav-locked body { overflow: hidden; }

  @media (max-width: 1100px) {
    .nav-mark .role { display: none; }
    .nav-cta .clock { display: none; }
  }
  @media (max-width: 900px) {
    .nav-inner { grid-template-columns: 1fr auto; padding: 14px 20px; }
    .nav-cta .btn { display: none; }
    .nav-burger { display: inline-flex; }

    /* Slide-down panel */
    .nav-links {
      display: flex !important;
      position: fixed;
      top: 56px; /* below nav bar */
      left: 0; right: 0;
      max-height: calc(100vh - 56px);
      overflow-y: auto;
      flex-direction: column;
      align-items: stretch;
      justify-self: stretch;
      gap: 0;
      padding: 8px 20px 40px;
      background: var(--bg);
      border-bottom: 1px solid var(--rule);
      transform: translateY(-12px);
      opacity: 0;
      pointer-events: none;
      transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .2s ease;
      z-index: 60;
    }
    .nav.is-open .nav-links {
      transform: translateY(0);
      opacity: 1;
      pointer-events: auto;
    }
    .nav-links > a,
    .nav-links .nav-dd-trigger {
      padding: 18px 4px;
      font-size: 14px;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      border-bottom: 1px solid var(--rule);
    }
    .nav-links > a::before { content: none; }
    .nav-dd { position: static; }
    .nav-dd-trigger { width: 100%; justify-content: space-between; }
    .nav-dd-trigger .caret { color: var(--accent); transition: transform .2s ease; }
    .nav-dd.is-open .nav-dd-trigger .caret { transform: rotate(180deg); }

    /* Submenu: inline accordion, no hover */
    .nav-dd-menu {
      position: static;
      transform: none;
      opacity: 1;
      pointer-events: auto;
      box-shadow: none;
      border: none;
      background: transparent;
      min-width: 0;
      max-height: 0;
      overflow: hidden;
      transition: max-height .3s ease;
      padding: 0;
    }
    .nav-dd.is-open .nav-dd-menu { max-height: 600px; }
    .nav-dd:hover .nav-dd-menu { /* disable desktop hover behavior on mobile */
      max-height: 0;
    }
    .nav-dd.is-open:hover .nav-dd-menu { max-height: 600px; }
    .nav-dd-menu a {
      grid-template-columns: 60px 1fr;
      padding: 12px 16px 12px 24px;
      border-bottom: 1px solid var(--rule);
    }
    .nav-dd-menu a:last-child { border-bottom: none; }

    /* On touch, ditch sticky :hover/:focus styling — it leaves items in a
       confusing "still-highlighted" state after the finger lifts. Keep only
       a brief :active flash so the tap feels responsive, and force the
       default text colors so submenu items stay readable in every state. */
    .nav-dd-menu a:hover,
    .nav-dd-menu a:focus,
    .nav-dd-menu a:focus-visible {
      background: transparent !important;
    }
    .nav-dd-menu a:hover .m-name,
    .nav-dd-menu a:focus .m-name,
    .nav-dd-menu a:focus-visible .m-name { color: var(--ink) !important; }
    .nav-dd-menu a:hover .m-lbl,
    .nav-dd-menu a:focus .m-lbl,
    .nav-dd-menu a:focus-visible .m-lbl { color: var(--muted) !important; }

    .nav-dd-menu a:active {
      background: var(--bg-2) !important;
    }
    .nav-dd-menu a:active .m-name { color: var(--accent) !important; }
    .nav-dd-menu a:active .m-lbl { color: var(--accent) !important; }

    .hero { padding: 32px 20px; }
    section { padding: 80px 20px; }
    .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .hero-meta .c1, .hero-meta .c2, .hero-meta .c3, .hero-meta .c4, .hero-meta .c5 { grid-column: span 1; text-align: left; }
    .hero-tagrow { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stats > div:nth-child(2) { border-right: none; }
    .stats > div:nth-child(1), .stats > div:nth-child(2) { border-bottom: 1px solid var(--rule); }
    .work-row { grid-template-columns: 30px 1fr 30px; gap: 12px; }
    .work-row .summary, .work-row .meta, .work-row .tags { display: none; }
    .services { grid-template-columns: 1fr; }
    .service { grid-column: span 1; }
    .sec-head { grid-template-columns: 1fr; gap: 12px; }
    .sec-num, .sec-title, .sec-tag { grid-column: span 1; text-align: left; }
    .about-grid { grid-template-columns: 1fr; }
    .about-portrait, .about-text { grid-column: span 1; }
    .exp-row { grid-template-columns: 80px 1fr; }
    .exp-row .role, .exp-row .loc { grid-column: span 2; padding-left: 104px; }
    .tools { grid-template-columns: repeat(2, 1fr); }
    .contact-grid .c1, .contact-grid .c2, .contact-grid .c3 { grid-column: span 1; }
    .hero-deco { display: none; }
  }
