:root {
    --ink:    #11161d;
    --ink-2:  #2a323d;
    --muted:  #6b7480;
    --rule:   #e6e3dc;
    --rule-2: #efece6;
    --paper:  #faf8f3;
    --paper-2:#f3efe6;
    --accent: #1f4e5c;
    --max:    920px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* ---- Scroll reveal ---- */
.reveal {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition:
        opacity 700ms cubic-bezier(0.22, 0.61, 0.36, 1),
        transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}
.reveal.delay-1 { transition-delay: 80ms; }
.reveal.delay-2 { transition-delay: 160ms; }
.reveal.delay-3 { transition-delay: 240ms; }
.reveal.delay-4 { transition-delay: 320ms; }
.reveal.delay-5 { transition-delay: 400ms; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

::selection { background: var(--ink); color: var(--paper); }

/* ---- Page entrance ---- */
body { animation: page-in 520ms cubic-bezier(0.22, 0.61, 0.36, 1) both; }
@keyframes page-in {
    from { opacity: 0; transform: translate3d(0, 6px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
    body { animation: none; }
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 32px;
}

/* ---- Header ---- */
.site-header {
    border-bottom: 1px solid transparent;
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(250, 248, 243, 0.72);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    transition:
        padding 300ms cubic-bezier(0.22, 0.61, 0.36, 1),
        background 300ms cubic-bezier(0.22, 0.61, 0.36, 1),
        border-color 300ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.site-header.is-scrolled {
    padding: 14px 0;
    background: rgba(250, 248, 243, 0.92);
    border-bottom-color: var(--rule);
}

.site-header.is-scrolled .brand .mark { width: 28px; }
.site-header.is-scrolled .wordmark { font-size: 20px; }
.brand .mark, .wordmark {
    transition: width 300ms ease, height 300ms ease, font-size 300ms ease, transform 300ms ease, opacity 200ms ease;
}

/* Header tree mark (portrait-shaped → size by height) */
.brand .tree-mark {
    width: auto;
    height: 34px;
    display: block;
}
.site-header.is-scrolled .brand .tree-mark {
    width: auto;
    height: 26px;
}
.brand:hover .tree-mark { transform: translateY(-1px); opacity: 0.92; }

.site-header .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
}

.brand .mark {
    width: 36px;
    height: auto;
    color: var(--ink);
    transition: color 200ms ease;
}

.brand:hover .mark { color: var(--accent); }

.wordmark {
    font-family: "Newsreader", "Iowan Old Style", Charter, Georgia, serif;
    font-weight: 500;
    font-size: 24px;
    letter-spacing: -0.01em;
    line-height: 1;
}

nav {
    display: flex;
    gap: 4px;
}

nav a {
    color: var(--ink-2);
    text-decoration: none;
    padding: 8px 14px;
    font-size: 15px;
    border-radius: 6px;
    transition: background 150ms ease, color 150ms ease;
}

nav a:hover { background: var(--rule-2); color: var(--ink); }
nav a:active { transform: translateY(1px); }
nav a[aria-current="page"] { color: var(--ink); background: var(--rule-2); }

/* ---- Main ---- */
main { padding: 80px 0 96px; }

main > section,
main > article {
    margin: 0 auto;
    max-width: var(--max);
    padding: 0 32px;
}

/* ---- Full-bleed panel layout (home) ---- */
.panels { padding: 0; }
.panels main { padding: 0; }

.panel {
    position: relative;
    padding: 140px 32px;
    max-width: none;
    margin: 0;
}

.panel-inner {
    max-width: var(--max);
    margin: 0 auto;
}

.panel + .panel { border-top: 1px solid var(--rule); }

.panel--tone-2 { background: var(--paper-2); }
.panel--ink {
    background: var(--ink);
    color: var(--paper);
}
.panel--ink h1, .panel--ink h2, .panel--ink h3 { color: var(--paper); }
.panel--ink p { color: rgba(250, 248, 243, 0.78); }
.panel--ink a { color: var(--paper); }

.panel--hero {
    padding: 120px 32px 140px;
    min-height: 72vh;
    display: flex;
    align-items: center;
}

.display {
    font-family: "Newsreader", serif;
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.02;
    font-size: clamp(44px, 8vw, 84px);
    margin: 0 0 32px;
}

.panel .lede { max-width: 640px; }

.panel-eyebrow {
    font-family: "Inter", sans-serif;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 20px;
    font-weight: 500;
}

.panel--ink .panel-eyebrow { color: rgba(250, 248, 243, 0.55); }

/* Three-column pillar grid */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 56px 40px;
    margin-top: 48px;
}
.pillar h3 {
    font-family: "Newsreader", serif;
    font-size: 22px;
    font-weight: 500;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}
.pillar p { font-size: 15px; line-height: 1.55; margin: 0; }
.pillar .pillar-mark {
    width: 28px;
    height: 28px;
    color: var(--accent);
    margin-bottom: 14px;
    display: block;
}
@media (max-width: 900px) {
    .pillars { grid-template-columns: 1fr; gap: 36px; }
}

/* Large feature cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}
.feature-card {
    display: flex;
    flex-direction: column;
    padding: 32px;
    border: 1px solid var(--rule);
    border-radius: 14px;
    background: var(--paper);
    color: var(--ink);
    text-decoration: none;
    min-height: 280px;
    transition:
        transform 400ms cubic-bezier(0.22, 0.61, 0.36, 1),
        border-color 250ms ease,
        box-shadow 400ms ease;
}
.feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--ink-2);
    box-shadow: 0 12px 30px -16px rgba(17, 22, 29, 0.18);
}
.feature-card .card-eyebrow {
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 14px;
}
.feature-card h3 {
    font-family: "Newsreader", serif;
    font-weight: 500;
    font-size: 24px;
    letter-spacing: -0.01em;
    margin: 0 0 10px;
    line-height: 1.2;
}
.feature-card p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}
.feature-card .card-arrow {
    margin-top: auto;
    padding-top: 24px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: color 220ms ease;
}
.feature-card .card-arrow::after {
    content: "→";
    display: inline-block;
    margin-left: 6px;
    transition: transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.feature-card:hover .card-arrow { color: var(--ink); }
.feature-card:hover .card-arrow::after { transform: translateX(6px); }

@media (max-width: 900px) {
    .feature-grid { grid-template-columns: 1fr; }
}

/* CTA panel */
.cta-panel {
    text-align: center;
    padding: 120px 32px;
}
.cta-panel .display { margin-left: auto; margin-right: auto; max-width: 14ch; }
.cta-panel .cta { justify-content: center; }

/* ---- Type ---- */
h1, h2, h3 {
    font-family: "Newsreader", "Iowan Old Style", Charter, Georgia, serif;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.015em;
}

h1 {
    font-size: 48px;
    line-height: 1.08;
    margin: 0 0 28px;
}

h2 {
    font-size: 26px;
    line-height: 1.25;
    margin: 56px 0 14px;
}

h3 {
    font-size: 19px;
    line-height: 1.3;
    margin: 32px 0 8px;
    font-weight: 500;
    font-family: "Inter", sans-serif;
    letter-spacing: -0.005em;
}

p { margin: 0 0 18px; color: var(--ink-2); }

a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 180ms ease, text-decoration-color 180ms ease, text-underline-offset 180ms ease;
}
a:hover { color: var(--ink); text-underline-offset: 4px; }

/* Keyboard focus - consistent, quiet accent ring */
a:focus-visible,
button:focus-visible,
.cta a:focus-visible,
.feature-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}
.feature-card:focus-visible { outline-offset: 4px; }

code {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.92em;
    background: var(--rule-2);
    padding: 1px 6px;
    border-radius: 4px;
    color: var(--ink);
}

.eyebrow {
    font-family: "Inter", sans-serif;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 18px;
    font-weight: 500;
}

.lede {
    font-family: "Newsreader", serif;
    font-size: 22px;
    line-height: 1.5;
    color: var(--ink);
    font-weight: 400;
}

/* ---- Hero ---- */
.hero { padding-top: 24px; }
.hero h1 { font-size: 56px; }
.hero .lede { max-width: 640px; margin-top: 0; }

.hero-mark {
    width: auto;
    height: 120px;
    max-height: 120px;
    max-width: 80px;
    aspect-ratio: 612 / 930;
    flex: 0 0 auto;
    object-fit: contain;
    color: var(--accent);
    margin: 0 0 36px;
    display: block;
    animation: mark-breath 7s ease-in-out infinite;
    transform-origin: left center;
}
@keyframes mark-breath {
    0%, 100% { opacity: 0.92; transform: scale(1); }
    50%      { opacity: 1;    transform: scale(1.015); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-mark { animation: none; }
}

.cta {
    margin-top: 36px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cta a {
    display: inline-flex;
    align-items: center;
    padding: 11px 20px;
    border: 1px solid var(--ink);
    color: var(--ink);
    text-decoration: none;
    font-size: 15px;
    border-radius: 6px;
    transition: background 150ms ease, color 150ms ease;
}

.cta a {
    transition:
        background 180ms ease,
        color 180ms ease,
        border-color 180ms ease,
        transform 180ms cubic-bezier(0.22, 0.61, 0.36, 1),
        box-shadow 220ms ease;
}
.cta a:hover {
    background: var(--ink);
    color: var(--paper);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -14px rgba(17, 22, 29, 0.35);
}
.cta a:active { transform: translateY(0); box-shadow: none; }

.cta a.primary { background: var(--ink); color: var(--paper); }
.cta a.primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 12px 28px -14px rgba(31, 78, 92, 0.55);
}

/* ---- Prose ---- */
.prose { max-width: 720px; }
.prose p { font-size: 17px; }
.prose p + p { margin-top: -2px; }

/* ---- Service blocks ---- */
.services-grid article {
    border-top: 1px solid var(--rule);
    padding: 28px 0 8px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    transition: border-color 220ms ease;
}
.services-grid article:hover { border-top-color: var(--ink-2); }
.services-grid article h2 { transition: transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1); }
.services-grid article:hover h2 { transform: translateX(4px); }

.services-grid article:last-child { border-bottom: 1px solid var(--rule); }

.services-grid h2 {
    margin: 0;
    font-size: 18px;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    letter-spacing: -0.005em;
    color: var(--ink);
}

.services-grid .ref {
    color: var(--muted);
    font-size: 14px;
    margin-top: 6px;
}

@media (max-width: 700px) {
    .services-grid article { grid-template-columns: 1fr; gap: 8px; }
}

/* ---- Selected work list ---- */
.work-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--rule);
}

.work-list li {
    border-bottom: 1px solid var(--rule);
}

.work-list a, .work-list .row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 24px;
    padding: 18px 0;
    color: var(--ink);
    text-decoration: none;
    position: relative;
    transition: padding 250ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.work-list a::after {
    content: "→";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(-6px, -50%);
    color: var(--accent);
    font-size: 15px;
    opacity: 0;
    transition: opacity 220ms ease, transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1);
    pointer-events: none;
}
.work-list a:hover { padding-left: 10px; padding-right: 22px; }
.work-list a:hover::after { opacity: 1; transform: translate(0, -50%); }
.work-list a .title { transition: color 180ms ease; }

.work-list .title {
    font-size: 17px;
    color: var(--ink);
}

.work-list .org {
    font-size: 14px;
    color: var(--muted);
}

.work-list a:hover .title { color: var(--accent); }

/* ---- Project pages ---- */
.project header { margin-bottom: 36px; }
.project .meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 14px;
    margin-top: 12px;
}

.project .meta span::before {
    content: "·";
    margin-right: 24px;
    color: var(--rule);
}
.project .meta span:first-child::before { content: ""; margin: 0; }

.project ul.facts {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 24px 0;
}

.project ul.facts li { color: var(--ink-2); }
.project ul.facts strong {
    display: block;
    font-family: "Newsreader", serif;
    font-weight: 500;
    color: var(--ink);
    font-size: 28px;
    line-height: 1.1;
    margin-bottom: 4px;
}
.project ul.facts span {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
    display: block;
}

.project ul.bullets {
    margin: 0;
    padding: 0;
    list-style: none;
}

.project ul.bullets li {
    border-top: 1px solid var(--rule);
    padding: 18px 0 18px 28px;
    position: relative;
    color: var(--ink-2);
}

.project ul.bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 28px;
    width: 14px;
    height: 1px;
    background: var(--accent);
}

@media (max-width: 700px) {
    .project ul.facts { grid-template-columns: 1fr; gap: 18px; }
}

/* ---- Long-form article prose (insights) ---- */
.project .key-points-label {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

.project h3 {
    font-family: "Newsreader", serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.25;
    color: var(--ink);
    margin: 40px 0 12px;
}

.project blockquote {
    margin: 40px 0;
    padding: 4px 0 4px 28px;
    border-left: 2px solid var(--accent);
}
.project blockquote p {
    font-family: "Newsreader", serif;
    font-size: 22px;
    line-height: 1.4;
    color: var(--ink);
    margin: 0 0 12px;
}
.project blockquote p:last-child {
    font-family: inherit;
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

.table-scroll {
    overflow-x: auto;
    margin: 28px 0;
    -webkit-overflow-scrolling: touch;
}

.project table {
    border-collapse: collapse;
    width: 100%;
    min-width: 640px;
    font-size: 14px;
    line-height: 1.5;
}
.project table th,
.project table td {
    text-align: left;
    vertical-align: top;
    padding: 12px 16px 12px 0;
    border-bottom: 1px solid var(--rule);
}
.project table thead th {
    font-family: inherit;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 1px solid var(--ink-2);
}
.project table tbody td:first-child {
    color: var(--muted);
    white-space: nowrap;
    padding-right: 24px;
}
.project table tbody td { color: var(--ink-2); }

/* ---- Clients ---- */
.clients {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 32px;
}

.panel .clients {
    max-width: none;
    padding: 0;
}

.clients-heading {
    font-family: "Newsreader", serif;
    font-weight: 500;
    font-size: 22px;
    margin: 0 0 32px;
    color: var(--ink);
    letter-spacing: -0.01em;
    max-width: 520px;
}

.client-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0;
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
}

.client {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 20px;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    background: var(--paper);
    transition: background 200ms ease, transform 350ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.client:hover {
    background: var(--paper-2);
    transform: translateY(-2px);
}
.client:hover .client-mark { color: var(--accent); }
.client-mark { transition: color 200ms ease; }

.client-mark {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    color: var(--ink);
}

.client-name {
    display: block;
    font-size: 14px;
    color: var(--ink);
    font-weight: 500;
    line-height: 1.25;
}

.client-role {
    display: block;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.35;
    margin-top: 3px;
}

.clients-note {
    font-size: 12px;
    color: var(--muted);
    margin-top: 16px;
    max-width: 520px;
}

@media (max-width: 700px) {
    .client-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Bio block ---- */
.bio {
    border-top: 1px solid var(--rule);
    padding-top: 28px;
}
.bio h3 { margin-top: 0; font-family: "Newsreader", serif; font-size: 22px; }
.bio-role {
    color: var(--muted);
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: -8px 0 18px;
}
ul.creds {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 24px;
    color: var(--ink-2);
    font-size: 15px;
}
@media (max-width: 700px) { ul.creds { grid-template-columns: 1fr; } }

/* ---- Contact ---- */
.contact {
    display: grid;
    grid-template-columns: 180px 1fr;
    row-gap: 12px;
    margin-top: 28px;
    border-top: 1px solid var(--rule);
    padding-top: 24px;
}

.contact dt {
    color: var(--muted);
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.contact dd { margin: 0; color: var(--ink); }

/* ---- Footer ---- */
.site-footer {
    border-top: 1px solid var(--rule);
    padding: 32px 0;
    color: var(--muted);
    font-size: 14px;
    margin-top: 40px;
}

.site-footer .wrap {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.foot-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
}
.foot-brand .mark {
    width: auto;
    height: 22px;
    aspect-ratio: 612 / 930;
    flex: 0 0 auto;
    object-fit: contain;
    color: var(--ink);
    display: block;
    transition: transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.foot-brand:hover .mark { transform: translateY(-1px); }
.site-footer a { transition: color 180ms ease; }
.site-footer a:hover { color: var(--ink); }
.foot-brand span {
    font-family: "Newsreader", serif;
    font-size: 18px;
    color: var(--ink);
}

.foot-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

@media (max-width: 700px) {
    main { padding: 56px 0 64px; }
    h1 { font-size: 38px; }
    .hero h1 { font-size: 42px; }
    .lede { font-size: 19px; }
    nav { gap: 0; }
    nav a { padding: 6px 10px; font-size: 14px; }
    .wrap { padding: 0 22px; }
    main > section, main > article { padding: 0 22px; }
}

/* ---- Dark panel button variants ---- */
.panel--ink .cta a {
    border-color: rgba(250, 248, 243, 0.28);
    color: var(--paper);
    background: transparent;
}
.panel--ink .cta a:hover {
    background: rgba(250, 248, 243, 0.08);
    border-color: var(--paper);
    color: var(--paper);
}
.panel--ink .cta a.primary {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--paper);
}
.panel--ink .cta a.primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--paper);
    box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.6);
}
.panel--ink ::selection { background: var(--paper); color: var(--ink); }

/* ---- Typographic polish ---- */
.display, h1, h2, h3 { text-wrap: balance; }
.lede, .prose p { text-wrap: pretty; }
html { font-optical-sizing: auto; }

/* ---- Refined nav active indicator ---- */
nav a { position: relative; }
nav a[aria-current="page"] {
    background: transparent;
    color: var(--ink);
}
nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 1px;
    background: var(--ink);
    border-radius: 1px;
}

/* ---- Custom scrollbar (WebKit) ---- */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(17, 22, 29, 0.18);
    border-radius: 999px;
    border: 3px solid var(--paper);
}
::-webkit-scrollbar-thumb:hover { background: rgba(17, 22, 29, 0.32); }

/* Firefox */
html { scrollbar-color: rgba(17, 22, 29, 0.28) transparent; scrollbar-width: thin; }

/* ---- Footer polish ---- */
.foot-meta { align-items: center; }
.foot-meta > * + *::before {
    content: "·";
    color: var(--rule);
    margin-right: 24px;
    margin-left: -12px;
}
.foot-brand { transition: transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1); }
.foot-brand:hover { transform: translateY(-1px); }

/* ---- Print ---- */
@media print {
    .site-header, .site-footer, .cta, .reveal { all: revert; }
    .site-header, .site-footer nav { display: none; }
    body { background: #fff; color: #000; animation: none; }
    a { color: #000; text-decoration: underline; }
    .panel { padding: 24px 0; border-top: 1px solid #ccc; background: transparent; color: #000; }
    .panel--ink, .panel--tone-2 { background: transparent; color: #000; }
    .panel--ink h1, .panel--ink h2, .panel--ink h3 { color: #000; }
    .reveal { opacity: 1; transform: none; }
    .hero-mark, .pillar-mark { filter: grayscale(1); }
}

/* ---- Globe (About) ---- */
.about-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
    gap: 56px;
    align-items: center;
}
.about-hero .prose { max-width: none; }
@media (max-width: 820px) {
    .about-hero { grid-template-columns: 1fr; gap: 32px; }
    .about-hero .globe { max-width: 320px; margin: 0 auto; }
}

.globe {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;      /* vertical page scroll still works on touch */
    cursor: grab;
}
.globe.is-dragging { cursor: grabbing; }
.globe canvas,
.globe .globe-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
}
.globe canvas { opacity: 0; transition: opacity 600ms ease; }
.globe.is-ready canvas { opacity: 1; }
.globe .globe-fallback {
    border: 1px solid var(--rule);
    background:
        radial-gradient(circle at 38% 32%, var(--paper) 0 55%, var(--paper-2) 100%);
    transition: opacity 600ms ease;
}
.globe.is-ready .globe-fallback { opacity: 0; }
.globe [data-globe-arc] { pointer-events: none; }

.globe-caption {
    margin: 14px 0 0;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    letter-spacing: 0.01em;
}

/* Pins */
.globe-pin {
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 0;
    padding: 0; margin: 0;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
    will-change: transform, opacity;
}
.globe-pin.is-behind { pointer-events: none; }
.globe-pin.is-open { z-index: 3; }
.globe-pin .dot {
    position: absolute;
    left: -6px; top: -6px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--paper) 85%, transparent);
}
.globe-pin .dot::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
    opacity: 0;
    animation: globe-pulse 2.4s ease-out infinite;
}
.globe-pin:nth-of-type(2) .dot::after { animation-delay: 1.2s; }
@keyframes globe-pulse {
    0%   { transform: scale(0.4); opacity: 0.7; }
    100% { transform: scale(1.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .globe-pin .dot::after { animation: none; }
}
.globe-pin:focus-visible .dot {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
.globe-pin:focus { outline: none; }

/* Cards */
.globe-card {
    position: absolute;
    left: 14px;
    top: -10px;
    width: max-content;
    max-width: 220px;
    padding: 12px 14px;
    text-align: left;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 10px;
    box-shadow: 0 18px 36px -20px rgba(17, 22, 29, 0.35);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 180ms ease, transform 180ms ease;
    pointer-events: none;
    z-index: 2;
}
.globe-pin.card-left .globe-card { left: auto; right: 14px; }
.globe-pin.card-up .globe-card { top: auto; bottom: -10px; }
.globe-pin.is-open .globe-card { opacity: 1; transform: translateY(0); }
.globe-card .place {
    display: block;
    font-family: "Newsreader", serif;
    font-size: 18px;
    line-height: 1.15;
    color: var(--ink);
}
.globe-card .country {
    display: block;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 4px 0 6px;
}
.globe-card .note {
    display: block;
    font-size: 13px;
    line-height: 1.4;
    color: var(--ink-2);
}

/* ---- Tools index ---- */
.tools-list { border-top: 1px solid var(--rule); }
.tool-card {
    padding: 28px 0;
    border-bottom: 1px solid var(--rule);
}
.tool-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
}
.tool-head h2 {
    margin: 0;
    font-family: "Newsreader", serif;
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.01em;
}
.tool-head h2 a { text-decoration: none; color: var(--ink); }
.tool-head h2 a:hover { color: var(--accent); }
.tool-meta { font-size: 13px; color: var(--muted); }
.tool-blurb {
    margin: 10px 0 0;
    max-width: 64ch;
    font-size: 16px;
    color: var(--ink-2);
}
.tool-stamp {
    margin: 14px 0 0;
    font-size: 13px;
    color: var(--muted);
}
.tool-stamp a { color: var(--ink-2); }
.tool-stamp .tool-open { color: var(--accent); font-weight: 500; }
.tool-stamp code { font-size: 12px; }

/* ---- Insight figures (wide diagram embeds) ---- */
.insight-figure {
    width: min(1080px, calc(100vw - 64px));
    margin: 40px 0 40px 50%;
    transform: translateX(-50%);
}
.insight-figure a { display: block; }
.insight-figure img {
    display: block;
    width: 100%;
    height: auto;
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 24px 48px -32px rgba(17, 22, 29, 0.25);
    transition: box-shadow 240ms ease, transform 240ms ease;
}
.insight-figure a:hover img {
    transform: translateY(-2px);
    box-shadow: 0 30px 56px -30px rgba(17, 22, 29, 0.32);
}
.insight-figure figcaption {
    margin-top: 12px;
    font-size: 13.5px;
    color: var(--muted);
    text-align: center;
}
