/* ==========================================================
   Helen's Legal AI Lab — homepage
   Light editorial theme: ivory paper, ink type, logo yellow,
   deep blue as a quiet accent.
   ========================================================== */

:root {
    --paper: #FBF9F4;
    --paper-2: #F4EFE3;
    --card: #FFFFFF;
    --ink: #15171C;
    --ink-2: #474C57;
    --muted: #7B808A;
    --line: #E7E1D3;
    --line-2: #D9D1BE;

    --yellow: #F7C63F;
    --yellow-deep: #E4AE1B;
    --yellow-soft: #FDF1CC;
    --blue: #1F3FAE;
    --blue-soft: #E8EDFB;

    --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --radius: 18px;
    --shadow-sm: 0 1px 2px rgba(21, 23, 28, .04), 0 2px 8px rgba(21, 23, 28, .04);
    --shadow-md: 0 2px 4px rgba(21, 23, 28, .04), 0 18px 40px -12px rgba(21, 23, 28, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* ---------- shared bits ---------- */
.kicker {
    display: inline-flex; align-items: center; gap: .6rem;
    font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--blue);
}
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; }

.display {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -.01em;
    line-height: 1.05;
    color: var(--ink);
}
.display em { font-style: italic; }

.mark {
    background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 90%, transparent 90%);
    padding: 0 .06em; white-space: nowrap;
}

.btn {
    display: inline-flex; align-items: center; gap: .55rem;
    height: 50px; padding: 0 1.4rem;
    border-radius: 999px;
    font-size: .95rem; font-weight: 600;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
    white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #000; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--yellow-deep); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: #fff; }

.section { padding: 120px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head .display { font-size: clamp(2.3rem, 4.6vw, 3.6rem); margin-top: 18px; }
.section-head p.lede { margin-top: 18px; color: var(--ink-2); font-size: 1.08rem; }

/* ---------- nav ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(251, 249, 244, .82);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { white-space: nowrap; display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .98rem; letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(21, 23, 28, .06); }
.nav-links { white-space: nowrap; display: flex; align-items: center; gap: 28px; font-size: .9rem; color: var(--ink-2); }
.nav-links a:not(.btn) { position: relative; transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a:not(.btn)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
    background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-links .btn { height: 40px; padding: 0 1.1rem; font-size: .86rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 88px 0 110px; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(640px 420px at 88% 8%, rgba(247, 198, 63, .22), transparent 70%),
        radial-gradient(520px 380px at 4% 96%, rgba(31, 63, 174, .07), transparent 70%);
}
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
            mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.9rem, 6.4vw, 5.6rem); margin: 26px 0 28px; max-width: 900px; }
.hero-lede { font-size: 1.16rem; color: var(--ink-2); max-width: 640px; line-height: 1.7; }
.hero-lede + .hero-lede { margin-top: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero-note {
    margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line);
    display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; color: var(--muted);
}
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow-deep); }

/* lab card */
.lab-card {
    background: var(--card); border: 1px solid var(--line); border-radius: 24px;
    box-shadow: var(--shadow-md); padding: 28px; position: relative;
}
.lab-card::before {
    content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1;
    background: var(--yellow); border-radius: 24px;
}
.lab-card-top { display: flex; align-items: center; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.lab-card-top img { width: 64px; height: 64px; border-radius: 14px; }
.lab-card-top strong { display: block; font-size: 1.02rem; letter-spacing: -.01em; }
.lab-card-top small { color: var(--muted); font-size: .82rem; }
.stats { display: grid; grid-template-columns: 1fr 1fr; }
.stat { padding: 22px 4px 4px; }
.stat:nth-child(odd) { padding-right: 18px; border-right: 1px solid var(--line); }
.stat:nth-child(even) { padding-left: 22px; }
.stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 18px; }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: 2.5rem; line-height: 1; letter-spacing: -.01em; }
.stat b sup { font-size: .5em; color: var(--yellow-deep); top: -.9em; margin-left: 1px; }
.stat span { display: block; margin-top: 8px; font-size: .82rem; color: var(--muted); line-height: 1.4; }

/* ---------- mission ---------- */
.mission { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mission-grid { display: grid; grid-template-columns: 280px 1fr; gap: 64px; }
.mission-quote { font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.22; letter-spacing: -.005em; }
.mission-quote em { color: var(--blue); }
.mission-body { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; color: var(--ink-2); }
.mission-body p { padding-top: 18px; border-top: 2px solid var(--ink); }
.mission-body p:last-child { border-top-color: var(--yellow); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.portrait { position: relative; max-width: 440px; }
.portrait::before {
    content: ""; position: absolute; inset: -18px 18px 18px -18px; z-index: 0;
    border: 1px solid var(--line-2); border-radius: 24px;
}
.portrait img { position: relative; z-index: 1; border-radius: 22px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: var(--shadow-md); }
.portrait-tag {
    position: absolute; z-index: 2; right: -20px; bottom: 28px;
    background: var(--yellow); color: var(--ink); border-radius: 12px;
    padding: 12px 16px; font-size: .8rem; font-weight: 600; line-height: 1.35; box-shadow: var(--shadow-md);
}
.portrait-tag span { display: block; font-weight: 500; opacity: .75; }
.about-text h2 { font-size: clamp(2.6rem, 5vw, 3.8rem); margin: 18px 0 10px; }
.role { font-size: .92rem; font-weight: 500; color: var(--blue); margin-bottom: 26px; }
.about-text p.bio { color: var(--ink-2); margin-bottom: 16px; }
.about-text p.bio strong { color: var(--ink); font-weight: 600; }
.connect { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.connect h4 { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.connect-list { display: flex; flex-wrap: wrap; gap: 10px; }
.connect-list a {
    display: inline-flex; align-items: center; gap: 8px;
    height: 40px; padding: 0 14px; border-radius: 999px;
    background: var(--card); border: 1px solid var(--line); font-size: .86rem; font-weight: 500;
    transition: border-color .2s, transform .2s;
}
.connect-list a:hover { border-color: var(--ink); transform: translateY(-1px); }
.connect-list svg { width: 16px; height: 16px; color: var(--blue); }

/* ---------- consultancy ---------- */
.consult { background: var(--paper-2); }
.consult-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 48px; }
.consult-head .section-head { margin-bottom: 0; }
.offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.offer {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 40px; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s;
}
.offer:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.offer-icon {
    width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
    background: var(--blue-soft); color: var(--blue); margin-bottom: 28px;
}
.offer:nth-child(2) .offer-icon { background: var(--yellow-soft); color: #8A6300; }
.offer-icon svg { width: 22px; height: 22px; }
.offer .for { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.offer h3 { font-family: var(--serif); font-size: 1.95rem; line-height: 1.15; margin: 10px 0 18px; }
.offer ul { list-style: none; padding: 0; margin: 0; }
.offer li { position: relative; padding: 12px 0 12px 26px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .95rem; }
.offer li::before {
    content: ""; position: absolute; left: 2px; top: 21px; width: 10px; height: 6px;
    border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg);
}

/* ---------- research ---------- */
.research { padding-bottom: 100px; }
.feature {
    display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center;
    background: var(--card); border: 1px solid var(--line); border-radius: 24px;
    padding: 52px; box-shadow: var(--shadow-sm);
    transition: box-shadow .25s, transform .25s;
}
.feature:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tag { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.tag-yellow { background: var(--yellow); color: var(--ink); }
.feature h3, .experiment h3 { font-family: var(--serif); font-size: clamp(2.2rem, 3.6vw, 3rem); line-height: 1.05; margin-bottom: 16px; }
.feature p, .experiment p { color: var(--ink-2); }
.feature-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-weight: 600; font-size: .95rem; border-bottom: 2px solid var(--yellow); padding-bottom: 3px; }
.feature-link svg { width: 16px; height: 16px; transition: transform .2s; }
a:hover .feature-link svg { transform: translateX(3px); }

.mini-stack { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mini-stack li {
    display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: center;
    padding: 13px 18px; border-radius: 12px; border: 1px solid var(--line);
    font-weight: 600; font-size: .95rem; background: var(--paper);
}
.mini-stack li b { grid-row: span 2; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--blue); }
.mini-stack li span { font-weight: 400; font-size: .8rem; color: var(--muted); }
.mini-stack li:nth-child(1) { background: var(--yellow); border-color: var(--yellow); }
.mini-stack li:nth-child(1) b { color: var(--ink); }
.mini-stack li:nth-child(1) span { color: rgba(21,23,28,.7); }
.mini-stack li:nth-child(2) { background: var(--yellow-soft); border-color: #F6E3A6; }
.mini-stack li:nth-child(3) { background: #FEF8E6; }
.mini-stack li:nth-child(1) { margin-right: 0; }
.mini-stack li:nth-child(5) { margin-left: 0; }
.mini-stack li.crossing {
    display: flex; align-items: center; gap: 12px; padding: 0 4px; border: 0; background: none;
    font-weight: 500; font-size: .76rem; color: #B4461F;
}
.mini-stack li.crossing::before, .mini-stack li.crossing::after { content: ""; flex: 1; border-top: 1.5px dashed #E08A63; }
.mini-stack li.crossing em { font-family: var(--serif); font-size: 1rem; }

.experiment {
    margin-top: 20px; display: grid; grid-template-columns: 1.4fr auto; gap: 48px; align-items: center;
    background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 40px 52px;
    transition: box-shadow .25s, transform .25s;
}
.experiment:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.experiment h3 { font-size: clamp(1.9rem, 3vw, 2.4rem); margin-bottom: 12px; }
.experiment-stats { display: flex; gap: 36px; }
.experiment-stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: 2.4rem; line-height: 1; }
.experiment-stats b sup { font-size: .5em; color: var(--yellow-deep); }
.experiment-stats span { font-size: .8rem; color: var(--muted); }
.experiment:hover .xcard-go { background: var(--yellow); border-color: var(--yellow); transform: rotate(-45deg); }

/* ---------- insights ---------- */
.insights { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.insights-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 48px; }
.insights-head .section-head { margin-bottom: 0; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post { display: flex; flex-direction: column; }
.post-img { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post:hover .post-img img { transform: scale(1.04); }
.post-meta { display: flex; justify-content: space-between; gap: 12px; margin: 18px 0 10px; font-size: .78rem; color: var(--muted); }
.post-meta span { color: var(--blue); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .72rem; }
.post h3 { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; transition: color .2s; }
.post:hover h3 { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }

.appearances { margin-top: 72px; }
.appearances h4 { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.appear {
    display: grid; grid-template-columns: 110px 260px 1fr; gap: 24px; align-items: center;
    padding: 20px 4px; border-bottom: 1px solid var(--line); transition: background .2s, padding .2s;
}
.appear:first-of-type { border-top: 1px solid var(--line); }
.appear:hover { background: var(--paper); padding-left: 14px; padding-right: 14px; }
.appear-type { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.appear-outlet { font-weight: 600; }
.appear-title { font-family: var(--serif); font-size: 1.25rem; color: var(--ink-2); }
.appear-go { color: var(--muted); text-align: right; }
.appear:hover .appear-go { color: var(--ink); }

.xcard-go {
    flex: none; width: 42px; height: 42px; border-radius: 50%;
    display: grid; place-items: center; border: 1px solid var(--line-2);
    transition: background .25s, border-color .25s, transform .25s;
}
.xcard-go svg { width: 16px; height: 16px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: .86rem; color: var(--muted); }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer .brand { color: var(--ink); }
.footer .brand img { width: 30px; height: 30px; border-radius: 8px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--ink); }

/* ---------- inner pages ---------- */
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { transform: scaleX(1); }
.page-hero { position: relative; padding: 88px 0 72px; overflow: hidden; }
.page-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(640px 420px at 85% 0%, rgba(247, 198, 63, .22), transparent 70%);
}
.page-hero .wrap { position: relative; }
.page-hero-tall { padding: 140px 0 180px; }
.page-hero h1 { font-size: clamp(3rem, 6.4vw, 5.2rem); margin: 22px 0 24px; }
.page-dek { font-size: 1.18rem; color: var(--ink-2); max-width: 680px; }
.page-stats { display: flex; flex-wrap: wrap; gap: 48px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); max-width: 980px; }
.page-stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: 2.8rem; line-height: 1; }
.page-stats b sup { font-size: .5em; color: var(--yellow-deep); }
.page-stats span { font-size: .85rem; color: var(--muted); }

/* home entry points */
.explore { background: var(--paper-2); }
.entries { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.entry {
    position: relative; overflow: hidden; display: flex; flex-direction: column;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 24px; min-height: 280px;
    transition: box-shadow .25s, transform .25s;
}
.entry::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.entry:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.entry:hover::before { transform: scaleX(1); }
.entry-num { font-family: var(--serif); font-size: 1.3rem; color: var(--muted); }
.entry-label { margin-top: 22px; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.entry h3 { font-family: var(--serif); font-size: 1.55rem; line-height: 1.12; margin: 10px 0 10px; }
.entry p { color: var(--ink-2); font-size: .88rem; }
@media (max-width: 1100px) { .entries { grid-template-columns: repeat(3, 1fr); } }
.entry-link { margin-top: auto; padding-top: 24px; font-weight: 600; font-size: .92rem; align-self: flex-start; border-bottom: 2px solid var(--yellow); padding-bottom: 3px; }

/* community */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shot { margin: 0; }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.shot:first-child { grid-column: span 2; grid-row: span 2; }
.shot:first-child img { aspect-ratio: auto; height: calc(100% - 30px); }
.shot figcaption { margin-top: 8px; font-size: .82rem; color: var(--muted); }
.cities-light { margin-top: 36px; }
.cities-light li { border-color: var(--line-2); color: var(--ink-2); background: var(--card); }

/* consultancy notice */
.notice { background: var(--yellow-soft); border: 1px solid #F2DC98; border-radius: 24px; padding: 48px 52px; }
.notice-text { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.35; margin: 18px 0 28px; max-width: 900px; }
.notice-text a { border-bottom: 2px solid var(--yellow-deep); }
@media (max-width: 560px) { .notice { padding: 32px 22px; } }

/* value stack */
.versions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; max-width: 980px; }
.ver {
    all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 6px;
    background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px;
    transition: border-color .2s, box-shadow .2s;
}
.ver:hover { border-color: var(--line-2); }
.ver[aria-selected="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.ver:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.ver-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ver-badge { font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--paper-2); }
.ver[aria-selected="true"] .ver-badge { background: var(--yellow); }
.ver-date { font-size: .84rem; color: var(--muted); }
.ver-title { font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; }
.ver-for { font-size: .92rem; color: var(--muted); }
.vs-body { padding-top: 24px; }
.rows { list-style: none; margin: 0; padding: 0; max-width: 980px; border-top: 2px solid var(--ink); }
.row { display: grid; grid-template-columns: 64px 1fr 220px; gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); }
.row-n { font-family: var(--serif); font-size: 1.7rem; color: var(--blue); }
.row h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: 4px; }
.row p { color: var(--ink-2); font-size: .97rem; }
.row-tag { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--muted); text-align: right; }
.row-top .row-tag { color: var(--ink); }
.row-top h3 { background: linear-gradient(transparent 60%, var(--yellow-soft) 60%); display: inline; }
.row-cross { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-style: italic; color: #B4461F; font-size: .98rem; }
.row-cross::before, .row-cross::after { content: ""; flex: 1; border-top: 1.5px dashed #E08A63; }
.takeaway { max-width: 780px; margin-top: 48px; font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.3; }
.takeaway em { color: var(--blue); }
.read { display: inline-block; margin-top: 28px; font-weight: 600; font-size: .95rem; border-bottom: 2px solid var(--yellow); padding-bottom: 3px; }
@media (max-width: 760px) {
    .versions { grid-template-columns: 1fr; }
    .row { grid-template-columns: 44px 1fr; gap: 6px 14px; }
    .row-tag { grid-column: 2; text-align: left; font-size: 1rem; }
    .ver { padding: 22px; }
    .ver-title { font-size: 1.6rem; }
}

/* featured on */
.press-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 20px; }
@media (max-width: 1100px) { .press-grid { grid-template-columns: repeat(2, 1fr); } }
.press { display: flex; flex-direction: column; }
.press-img { aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); }
.press-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a.press:hover .press-img img { transform: scale(1.04); }
.press-label { margin-top: 16px; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.press h3 { margin-top: 8px; font-family: var(--serif); font-size: 1.25rem; line-height: 1.22; }
a.press:hover h3 { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }
@media (max-width: 860px) { .press-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .press-grid { grid-template-columns: 1fr; } }

/* podcast */
.listen { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.listen-label { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.poster { margin: 0 0 88px; }
.poster img { width: 100%; border-radius: 20px; box-shadow: var(--shadow-md); }
.announce { display: grid; grid-template-columns: 240px 1fr; gap: 56px; }
.announce-body { max-width: 720px; }
.announce-body p { color: var(--ink-2); font-size: 1.05rem; line-height: 1.75; margin-bottom: 18px; }
.announce-body p a { color: var(--ink); border-bottom: 2px solid var(--yellow); }
.announce-lead { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem) !important; line-height: 1.3 !important; color: var(--ink) !important; margin-bottom: 28px !important; }
.guests-title { margin: 40px 0 8px; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.guests { list-style: none; margin: 0 0 28px; padding: 0; border-top: 2px solid var(--ink); }
.guests li { display: grid; grid-template-columns: 240px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.guests b { font-weight: 600; }
.guests span { color: var(--ink-2); font-size: .95rem; }
.announce-foot { font-family: var(--serif); font-style: italic; font-size: 1.3rem !important; color: var(--ink) !important; }
@media (max-width: 860px) {
    .announce { grid-template-columns: 1fr; gap: 16px; }
    .guests li { grid-template-columns: 1fr; gap: 2px; }
    .poster { margin-bottom: 56px; }
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    * { transition: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
    .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
    .lab-card { max-width: 520px; }
    .mission-grid { grid-template-columns: 1fr; gap: 20px; }
    .about-grid { grid-template-columns: 1fr; gap: 64px; }
    .portrait { margin-left: 18px; }
    .consult-head, .insights-head { flex-direction: column; align-items: flex-start; }
    .feature { grid-template-columns: 1fr; gap: 40px; }
    .experiment { grid-template-columns: 1fr; gap: 28px; }
    .appear { grid-template-columns: 90px 1fr; }
    .appear-title { grid-column: 2 / 3; grid-row: 2; }
}
@media (max-width: 1060px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: absolute; top: 72px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--paper); border-bottom: 1px solid var(--line);
        padding: 8px 28px 20px; display: none;
    }
    .nav-links.open { display: flex; }
    .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
    .nav-links a:not(.btn)::after { display: none; }
    .nav-links .btn { margin-top: 16px; justify-content: center; height: 46px; }
}
@media (max-width: 860px) {
    .offer-grid, .posts, .entries { grid-template-columns: 1fr; }
    .entry { min-height: 0; }
    .gallery { grid-template-columns: 1fr 1fr; }
    .shot:first-child { grid-column: span 2; grid-row: auto; }
    .shot:first-child img { height: auto; aspect-ratio: 16 / 9; }
    .posts { gap: 40px; }
    .mission-body { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .wrap { padding: 0 16px; }
    .mark { white-space: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
    .section { padding: 84px 0; }
    .hero { padding: 56px 0 80px; }
    .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
    .lab-card::before { inset: 10px -8px -10px 10px; }
    .stat b { font-size: 2rem; }
    .offer, .feature, .experiment { padding: 28px 22px; }
    .experiment-stats { gap: 24px; }
    .appear { grid-template-columns: 1fr; gap: 4px; }
    .appear-type { grid-column: 1; }
    .appear-outlet { grid-column: 1; }
    .appear-title { grid-column: 1; grid-row: auto; font-size: 1.1rem; }
    .portrait-tag { right: -8px; }
    .page-hero { padding: 56px 0 48px; }
    .page-stats { gap: 28px; }
}
