/* Shared styles for cavishalagarwal.com sub-pages — generated by build_pages.py from index.html */
    /* ═══════════ RESET ═══════════ */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
    img, svg { display: block; max-width: 100%; }
    a { color: inherit; text-decoration: none; }
    button { font: inherit; cursor: pointer; border: none; background: none; }

    /* ═══════════ TOKENS ═══════════ */
    :root {
      --bg:        #060b14;
      --bg-2:      #0a1120;
      --surface:   rgba(255,255,255,0.028);
      --surface-2: rgba(255,255,255,0.05);
      --line:      rgba(255,255,255,0.09);
      --line-soft: rgba(255,255,255,0.06);
      --ink:       #eef2f8;
      --dim:       rgba(238,242,248,0.62);
      --faint:     rgba(238,242,248,0.38);
      --gold:      #c5a572;
      --gold-hi:   #e8d5ae;
      --gold-dim:  rgba(197,165,114,0.14);
      --display:   'Jost', 'Futura', sans-serif;
      --sans:      'Inter', -apple-system, system-ui, sans-serif;
      --mono:      'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;
      --container: 1240px;
      --pad-x:     clamp(1.25rem, 4vw, 3rem);
      --r-md:      14px;
      --r-lg:      22px;
    }

    body {
      font-family: var(--sans);
      font-size: 16px;
      line-height: 1.65;
      color: var(--ink);
      background: var(--bg);
      overflow-x: hidden;
    }
    ::selection { background: rgba(197,165,114,0.3); }

    .container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); }
    section { padding: clamp(5rem, 10vw, 8.5rem) 0; position: relative; }

    h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); }
    h1 { font-size: clamp(3rem, 8vw, 6.2rem); font-weight: 800; letter-spacing: -0.035em; }
    h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
    h3 { font-size: 1.22rem; font-weight: 600; font-family: var(--sans); letter-spacing: -0.01em; }

    .eyebrow {
      display: inline-flex; align-items: center; gap: 0.7rem;
      font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
      letter-spacing: 0.22em; text-transform: uppercase;
      color: var(--gold); margin-bottom: 1.4rem;
    }
    .eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--gold); opacity: 0.7; }

    .lede { font-size: clamp(1.02rem, 1.6vw, 1.16rem); color: var(--dim); max-width: 640px; line-height: 1.75; }

    .section-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: end; margin-bottom: clamp(2.8rem, 5vw, 4.5rem); }
    @media (max-width: 820px) { .section-head { grid-template-columns: 1fr; gap: 1.2rem; align-items: start; } }

    /* ═══════════ BUTTONS ═══════════ */
    .btn {
      display: inline-flex; align-items: center; gap: 0.6rem;
      font-weight: 500; font-size: 0.92rem;
      padding: 0.8rem 1.5rem; border-radius: 999px;
      transition: all .25s ease; letter-spacing: 0.01em;
    }
    .btn svg { width: 14px; height: 14px; }
    .btn-gold { background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: #171207; font-weight: 600; }
    .btn-gold:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(197,165,114,0.25); }
    .btn-line { border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
    .btn-line:hover { border-color: rgba(197,165,114,0.5); background: var(--surface-2); }

    /* ═══════════ HEADER ═══════════ */
    .site-header {
      position: fixed; top: 0; left: 0; right: 0; z-index: 100;
      padding: 1.15rem 0;
      background: rgba(6,11,20,0.6);
      backdrop-filter: saturate(160%) blur(16px);
      -webkit-backdrop-filter: saturate(160%) blur(16px);
      border-bottom: 1px solid transparent;
      transition: background .25s, border-color .25s, padding .25s;
    }
    .site-header.scrolled { padding: 0.75rem 0; background: rgba(6,11,20,0.85); border-bottom-color: var(--line-soft); }
    .nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

    .brand { display: flex; align-items: center; gap: 0.75rem; }
    .brand-mark {
      width: 38px; height: 38px; border-radius: 10px;
      background: linear-gradient(135deg, #10192c, #060b14);
      border: 1px solid var(--line);
      color: var(--gold); display: grid; place-items: center;
      font-family: var(--display); font-weight: 600; font-size: 0.98rem;
    }
    .brand-text { display: flex; flex-direction: column; line-height: 1.15; }
    .brand-text strong { font-family: var(--display); font-size: 1.04rem; font-weight: 600; }
    .brand-text span { font-family: var(--mono); font-size: 0.58rem; color: var(--faint); letter-spacing: 0.22em; text-transform: uppercase; margin-top: 2px; }

    nav.primary ul { display: flex; gap: 2.1rem; list-style: none; }
    nav.primary a { font-size: 0.9rem; font-weight: 500; color: var(--dim); position: relative; transition: color .2s; }
    nav.primary a:hover { color: var(--ink); }
    nav.primary a::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 1.5px; background: var(--gold); transition: width .25s; }
    nav.primary a:hover::after { width: 100%; }

    .nav-actions { display: flex; align-items: center; gap: 1rem; }
    .menu-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); place-items: center; }
    .menu-toggle svg { width: 20px; height: 20px; }
    @media (max-width: 880px) {
      nav.primary { display: none; }
      .nav-actions .btn { display: none; }
      .menu-toggle { display: grid; }
    }

    /* ═══════════ MOBILE NAV ═══════════ */
    .mobile-nav {
      position: fixed; inset: 0; z-index: 200;
      background: rgba(6,11,20,0.97);
      backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
      display: flex; flex-direction: column;
      padding: 1.6rem var(--pad-x);
      opacity: 0; pointer-events: none; transform: translateY(-8px);
      transition: opacity .25s, transform .25s;
    }
    .mobile-nav.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
    .mobile-nav-top { display: flex; justify-content: space-between; align-items: center; }
    .mobile-nav .close { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); display: grid; place-items: center; }
    .mobile-nav .close svg { width: 20px; height: 20px; }
    .mobile-nav ul { list-style: none; margin-top: 3rem; display: grid; gap: 0.3rem; }
    .mobile-nav ul a { display: block; font-family: var(--display); font-size: 1.9rem; color: var(--ink); padding: 0.7rem 0; border-bottom: 1px solid var(--line-soft); }
    .mobile-nav ul a:hover { color: var(--gold); }

    /* ═══════════ HERO ═══════════ */
    #hero {
      min-height: 100vh;
      display: flex; align-items: center;
      padding: clamp(8rem, 14vw, 10rem) 0 clamp(4rem, 7vw, 6rem);
      overflow: hidden;
    }
    #hero::before {
      content: ''; position: absolute; inset: 0;
      background:
        radial-gradient(ellipse 55% 45% at 78% 18%, rgba(197,165,114,0.10), transparent 65%),
        radial-gradient(ellipse 50% 45% at 12% 85%, rgba(38,72,132,0.14), transparent 65%);
      pointer-events: none;
    }
    #hero::after {
      content: ''; position: absolute; inset: 0;
      background-image:
        linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
      background-size: 72px 72px;
      mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, black 25%, transparent 78%);
      -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, black 25%, transparent 78%);
      pointer-events: none;
    }
    .hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(3rem, 5vw, 5rem); align-items: center; width: 100%; }
    @media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

    .hero-kicker {
      font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.26em;
      text-transform: uppercase; color: var(--gold);
      display: inline-flex; align-items: center; gap: 0.8rem; margin-bottom: 2rem;
    }
    .hero-kicker .pulse { width: 7px; height: 7px; border-radius: 999px; background: var(--gold); box-shadow: 0 0 0 0 rgba(197,165,114,0.5); animation: pulse 2.4s infinite; }
    @keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(197,165,114,0); } 100% { box-shadow: 0 0 0 0 rgba(197,165,114,0); } }

    #hero h1 .accent { background: linear-gradient(110deg, var(--gold-hi) 20%, var(--gold) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
    .hero-sub { margin: 2rem 0 2.8rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--dim); max-width: 580px; line-height: 1.75; }
    .hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; }

    .hero-domains { display: flex; gap: 1.8rem; flex-wrap: wrap; margin-top: 3.2rem; }
    .hero-domains span { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); display: inline-flex; align-items: center; gap: 0.55rem; }
    .hero-domains span::before { content: ''; width: 4px; height: 4px; border-radius: 999px; background: var(--gold); opacity: 0.7; }

    /* particulars panel */
    .particulars {
      position: relative; border-radius: var(--r-lg);
      background: linear-gradient(165deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015));
      border: 1px solid var(--line);
      padding: 2rem 2.2rem 2.2rem;
      backdrop-filter: blur(6px);
      box-shadow: 0 40px 80px rgba(0,0,0,0.4);
    }
    .particulars::before { content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 1px; background: linear-gradient(90deg, transparent, rgba(197,165,114,0.6), transparent); }
    .particulars-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1.3rem; border-bottom: 1px solid var(--line-soft); }
    .particulars-head span { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); }
    .particulars-head .dots { display: flex; gap: 5px; }
    .particulars-head .dots i { width: 8px; height: 8px; border-radius: 999px; background: var(--line); }
    .particulars-head .dots i:first-child { background: var(--gold); opacity: 0.8; }
    .particulars dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1.5rem; margin-top: 1.5rem; }
    .particulars dt { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.4rem; }
    .particulars dd { font-family: var(--display); font-size: 1.16rem; font-weight: 600; color: var(--ink); }
    .particulars dd small { display: block; font-family: var(--sans); font-size: 0.76rem; font-weight: 400; color: var(--faint); margin-top: 2px; }

    /* ═══════════ TICKER ═══════════ */
    .ticker-band { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 1.1rem 0; overflow: hidden; background: var(--bg-2); }
    .ticker { display: flex; width: max-content; animation: ticker 46s linear infinite; }
    .ticker-band:hover .ticker { animation-play-state: paused; }
    @keyframes ticker { to { transform: translateX(-50%); } }
    .ticker-set { display: flex; align-items: center; gap: 2.6rem; padding-right: 2.6rem; }
    .ticker-set span { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
    .ticker-set i { width: 4px; height: 4px; border-radius: 999px; background: var(--gold); opacity: 0.6; flex-shrink: 0; }
    @media (prefers-reduced-motion: reduce) { .ticker { animation: none; } }

    /* ═══════════ ABOUT ═══════════ */
    .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; }
    @media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
    .about-text p { margin-top: 1.5rem; color: var(--dim); font-size: 1.04rem; line-height: 1.8; }
    .about-text p strong { color: var(--ink); font-weight: 600; }

    .principal {
      border-radius: var(--r-lg); border: 1px solid var(--line);
      background: linear-gradient(165deg, rgba(255,255,255,0.05), rgba(255,255,255,0.012));
      padding: 2.5rem; position: relative; overflow: hidden;
    }
    .principal::after { content: ''; position: absolute; top: -45%; right: -25%; width: 340px; height: 340px; background: radial-gradient(circle, rgba(197,165,114,0.14), transparent 70%); pointer-events: none; }
    .principal-avatar { width: 68px; height: 68px; border-radius: 18px; background: linear-gradient(135deg, var(--gold-hi), var(--gold)); display: grid; place-items: center; color: #171207; font-family: var(--display); font-size: 1.5rem; font-weight: 700; margin-bottom: 1.4rem; }
    .principal h3 { font-family: var(--display); font-size: 1.6rem; font-weight: 700; margin-bottom: 0.2rem; }
    .principal-role { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.6rem; }
    .principal p.bio { color: var(--dim); font-size: 0.96rem; line-height: 1.7; position: relative; z-index: 1; }
    .principal-meta { display: grid; gap: 0.7rem; margin-top: 1.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line-soft); position: relative; z-index: 1; }
    .principal-meta div { display: flex; justify-content: space-between; font-size: 0.88rem; color: var(--faint); }
    .principal-meta div strong { color: var(--ink); font-weight: 500; }

    /* ═══════════ PRACTICE CARDS ═══════════ */
    #services { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
    .card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
    @media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }

    .p-card {
      position: relative; border-radius: var(--r-md);
      border: 1px solid var(--line-soft);
      background: var(--surface);
      padding: 2rem; overflow: hidden;
      transition: border-color .3s, background .3s, transform .3s;
    }
    .p-card:hover { border-color: rgba(197,165,114,0.35); background: var(--surface-2); transform: translateY(-3px); }
    .p-card .num { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.18em; color: var(--faint); margin-bottom: 1.6rem; display: block; }
    .p-card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--gold-dim); color: var(--gold-hi); display: grid; place-items: center; margin-bottom: 1.3rem; }
    .p-card .icon svg { width: 20px; height: 20px; stroke-width: 1.6; }
    .p-card h3 { margin-bottom: 0.55rem; }
    .p-card p { font-size: 0.92rem; color: var(--dim); line-height: 1.65; }

    /* ═══════════ TECHNOLOGY BENTO ═══════════ */
    #technology::before {
      content: ''; position: absolute; inset: 0;
      background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(197,165,114,0.07), transparent 65%);
      pointer-events: none;
    }
    .bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2rem; }
    .bento > * { border-radius: var(--r-lg); border: 1px solid var(--line-soft); background: var(--surface); padding: 2.2rem; position: relative; overflow: hidden; transition: border-color .3s, background .3s; }
    .bento > *:hover { border-color: rgba(197,165,114,0.35); background: var(--surface-2); }
    .b-lg { grid-column: span 4; }
    .b-md { grid-column: span 2; }
    .b-third { grid-column: span 2; }
    .b-full { grid-column: span 6; }
    @media (max-width: 980px) { .b-lg, .b-md, .b-third { grid-column: span 6; } }

    .b-tag { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; display: block; }
    .bento h3 { font-family: var(--display); font-size: 1.45rem; font-weight: 600; margin-bottom: 0.7rem; }
    .bento p { font-size: 0.95rem; color: var(--dim); line-height: 1.7; max-width: 560px; }
    .bento ul.spec { list-style: none; margin-top: 1.4rem; display: grid; gap: 0.55rem; }
    .bento ul.spec li { font-size: 0.88rem; color: var(--dim); display: flex; gap: 0.7rem; align-items: baseline; }
    .bento ul.spec li::before { content: '—'; color: var(--gold); flex-shrink: 0; }

    .b-visual { position: absolute; right: -30px; bottom: -30px; opacity: 0.16; pointer-events: none; }
    .b-visual svg { width: 190px; height: 190px; stroke: var(--gold-hi); }

    .wave { display: flex; align-items: center; gap: 4px; margin-top: 1.6rem; height: 34px; }
    .wave i { width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); opacity: 0.85; animation: wave 1.5s ease-in-out infinite; }
    @keyframes wave { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
    @media (prefers-reduced-motion: reduce) { .wave i { animation: none; transform: none; } }

    .more-link { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.4rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-hi); position: relative; z-index: 1; }
    .more-link:hover { color: var(--ink); }

    .tech-foot { margin-top: 2.4rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
    .tech-note { font-size: 0.8rem; color: var(--faint); max-width: 640px; line-height: 1.65; }
    .tech-partner { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.55rem 1.2rem; border: 1px solid rgba(197,165,114,0.35); border-radius: 999px; font-size: 0.78rem; color: var(--gold-hi); white-space: nowrap; background: var(--gold-dim); }
    .tech-partner .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--gold); }

    /* ═══════════ MCS INDEX ═══════════ */
    #mcs { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
    .mcs-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-soft); border-left: 1px solid var(--line-soft); }
    @media (max-width: 940px) { .mcs-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 600px) { .mcs-grid { grid-template-columns: 1fr; } }
    .mcs-item { padding: 1.7rem 1.8rem; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); transition: background .25s; }
    .mcs-item:hover { background: var(--surface); }
    .mcs-item .idx { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.16em; color: var(--gold); display: block; margin-bottom: 0.7rem; }
    .mcs-item h4 { font-family: var(--sans); font-size: 0.98rem; font-weight: 600; color: var(--ink); margin-bottom: 0.35rem; letter-spacing: -0.005em; }
    .mcs-item p { font-size: 0.84rem; color: var(--faint); line-height: 1.6; }

    /* ═══════════ CONTACT ═══════════ */
    .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 5vw, 5rem); align-items: start; }
    @media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
    .contact-info { display: grid; gap: 1.7rem; margin-top: 2.4rem; }
    .contact-item { display: flex; gap: 1.2rem; align-items: start; }
    .contact-item .icon { width: 42px; height: 42px; border-radius: 12px; background: var(--gold-dim); color: var(--gold-hi); display: grid; place-items: center; flex-shrink: 0; }
    .contact-item .icon svg { width: 18px; height: 18px; stroke-width: 1.7; }
    .contact-item h4 { font-family: var(--mono); font-size: 0.62rem; font-weight: 500; color: var(--faint); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 0.3rem; }
    .contact-item p, .contact-item a { font-size: 1rem; color: var(--ink); line-height: 1.55; }
    .contact-item a:hover { color: var(--gold-hi); }

    .addr-card {
      border-radius: var(--r-lg); border: 1px solid var(--line);
      background: linear-gradient(165deg, rgba(255,255,255,0.05), rgba(255,255,255,0.012));
      padding: 2.8rem 2.6rem; position: relative; overflow: hidden;
    }
    .addr-card::before { content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 1px; background: linear-gradient(90deg, transparent, rgba(197,165,114,0.55), transparent); }
    .addr-card::after { content: ''; position: absolute; bottom: -25%; right: -12%; width: 280px; height: 280px; background: radial-gradient(circle, rgba(197,165,114,0.12), transparent 70%); pointer-events: none; }
    .addr-eyebrow { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
    .addr-card h3 { font-family: var(--display); font-size: 1.7rem; font-weight: 600; line-height: 1.25; margin-bottom: 1.4rem; }
    .addr-card address { font-style: normal; color: var(--dim); font-size: 0.98rem; line-height: 1.85; position: relative; z-index: 1; }
    .addr-card .hours { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line-soft); position: relative; z-index: 1; }
    .addr-card .hours div { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--faint); padding: 0.35rem 0; }
    .addr-card .hours div strong { color: var(--ink); font-weight: 500; }

    /* ═══════════ FOOTER ═══════════ */
    footer { border-top: 1px solid var(--line-soft); background: var(--bg-2); color: var(--faint); padding: 4rem 0 2rem; font-size: 0.88rem; }
    .footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 0.8fr; gap: 3rem; padding-bottom: 2.8rem; border-bottom: 1px solid var(--line-soft); }
    @media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; gap: 2rem; } }
    .footer-brand { font-family: var(--display); color: var(--ink); font-size: 1.3rem; font-weight: 600; margin-bottom: 0.8rem; }
    .footer-brand-sub { font-size: 0.85rem; max-width: 340px; line-height: 1.65; }
    .footer-col h5 { font-family: var(--mono); font-size: 0.64rem; font-weight: 500; color: var(--gold); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1.2rem; }
    .footer-col a { display: block; padding: 0.32rem 0; transition: color .2s; }
    .footer-col a:hover { color: var(--ink); }
    .footer-bottom { padding-top: 1.8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.78rem; }

    /* ═══════════ REVEAL ═══════════ */
    .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
    .reveal.in { opacity: 1; transform: translateY(0); }
    @media (prefers-reduced-motion: reduce) {
      .reveal { opacity: 1; transform: none; transition: none; }
      html { scroll-behavior: auto; }
      .mobile-nav { transition: none; }
    }
  
    /* ═══════════ SUB-PAGES ═══════════ */
    .page-hero { padding: clamp(9rem, 14vw, 11rem) 0 clamp(3.5rem, 6vw, 5rem); overflow: hidden; }
    .page-hero::before {
      content: ''; position: absolute; inset: 0;
      background:
        radial-gradient(ellipse 55% 55% at 80% 10%, rgba(197,165,114,0.10), transparent 65%),
        radial-gradient(ellipse 50% 50% at 10% 90%, rgba(38,72,132,0.14), transparent 65%);
      pointer-events: none;
    }
    .page-hero::after {
      content: ''; position: absolute; inset: 0;
      background-image:
        linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
      background-size: 72px 72px;
      mask-image: radial-gradient(ellipse 75% 70% at 50% 30%, black 25%, transparent 78%);
      -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 30%, black 25%, transparent 78%);
      pointer-events: none;
    }
    .page-hero .container { position: relative; z-index: 1; }
    .page-hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.8rem); max-width: 900px; }
    .page-hero h1 .accent { display: block; background: linear-gradient(110deg, var(--gold-hi) 20%, var(--gold) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
    .page-hero .hero-sub { margin: 1.8rem 0 0; max-width: 700px; }

    .crumbs { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 2rem; display: flex; gap: 0.7rem; flex-wrap: wrap; }
    .crumbs a:hover { color: var(--gold-hi); }
    .crumbs span[aria-hidden] { color: var(--gold); }

    section.alt { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
    section.tight { padding: clamp(4rem, 8vw, 6.5rem) 0; }

    .prose { max-width: 780px; }
    .prose p { color: var(--dim); font-size: 1.04rem; line-height: 1.85; margin-top: 1.3rem; }
    .prose p:first-child { margin-top: 0; }
    .prose strong { color: var(--ink); font-weight: 600; }
    .prose a { color: var(--gold-hi); border-bottom: 1px solid rgba(197,165,114,0.35); }
    .prose a:hover { border-color: var(--gold-hi); }

    .split { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
    @media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 1.6rem; } }

    .steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.2rem; counter-reset: step; }
    .steps li { border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--surface); padding: 1.8rem 1.6rem; position: relative; }
    .steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.18em; color: var(--gold); display: block; margin-bottom: 1rem; }
    .steps h3 { font-size: 1.04rem; margin-bottom: 0.45rem; }
    .steps p { font-size: 0.9rem; color: var(--dim); line-height: 1.65; }

    .stack { display: flex; flex-wrap: wrap; gap: 0.6rem; }
    .stack span { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--dim); border: 1px solid var(--line); background: var(--surface); padding: 0.5rem 0.95rem; border-radius: 999px; }

    .facts { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-soft); border-left: 1px solid var(--line-soft); }
    @media (max-width: 620px) { .facts { grid-template-columns: 1fr; } }
    .facts div { padding: 1.4rem 1.6rem; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
    .facts dt { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.4rem; }
    .facts dd { font-family: var(--display); font-size: 1.12rem; font-weight: 600; color: var(--ink); }

    .faq { max-width: 860px; border-top: 1px solid var(--line-soft); }
    .faq details { border-bottom: 1px solid var(--line-soft); }
    .faq summary { list-style: none; cursor: pointer; padding: 1.5rem 0; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; }
    .faq summary::-webkit-details-marker { display: none; }
    .faq summary h3 { font-size: 1.06rem; font-weight: 500; }
    .faq summary::after { content: '+'; font-family: var(--mono); color: var(--gold); font-size: 1.3rem; transition: transform .25s; flex-shrink: 0; }
    .faq details[open] summary::after { transform: rotate(45deg); }
    .faq details p { color: var(--dim); font-size: 0.97rem; line-height: 1.8; padding: 0 0 1.6rem; max-width: 760px; }

    .related { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem; }
    .related a { display: block; border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--surface); padding: 1.7rem 1.6rem; transition: border-color .3s, background .3s, transform .3s; }
    .related a:hover { border-color: rgba(197,165,114,0.35); background: var(--surface-2); transform: translateY(-3px); }
    .related .b-tag { margin-bottom: 0.8rem; }
    .related strong { display: block; font-family: var(--display); font-size: 1.2rem; font-weight: 600; margin-bottom: 0.4rem; }
    .related span.d { font-size: 0.88rem; color: var(--dim); line-height: 1.6; display: block; }

    .more-link { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.4rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-hi); }
    .more-link:hover { color: var(--ink); }

    .footer-top { grid-template-columns: 1.5fr 1fr 1fr; }
    @media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; } }

    .portrait { width: 100%; max-width: 420px; height: auto; border-radius: var(--r-lg); border: 1px solid var(--line); margin-bottom: 1.6rem; background: var(--surface); }

    .mcs-note { margin-top: 2.6rem; font-size: 0.8rem; color: var(--faint); max-width: 720px; line-height: 1.65; }
