/* ============================================================
   ianmayer.org — built from the brand stylesheet
   Fonts:  Quicksand (headings + body), Archivo (buttons/labels)
   Colour: text #000, link #ff8300, button gradient
           #fd9900 → #ff00a8 → #ff0000
   ============================================================ */

:root {
    --ink:        #000000;
    --ink-soft:   #2a2a2a;
    --muted:      #5c5c5c;
    --line:       #eaeaea;
    --paper:      #ffffff;
    --paper-alt:  #f7f7f8;
    --link:       #ff8300;
    --link-hover: #e56f00;

    /* Signature gradient from the brand guide */
    --grad: linear-gradient(90deg, #fd9900 0%, #ff00a8 55%, #ff0000 100%);
    --grad-soft: linear-gradient(90deg, #fd9900, #ff00a8, #ff0000);

    --wrap: 1140px;
    --radius: 18px;
    --shadow: 0 18px 50px -22px rgba(0,0,0,.35);
    --font-body: 'Quicksand', system-ui, sans-serif;
    --font-btn:  'Archivo', system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }

.wrap { width: min(var(--wrap), 92%); margin-inline: auto; }
.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 200;
    background: #000; color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
    font-family: var(--font-btn);
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons (Archivo, all caps) ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--font-btn); font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em; font-size: .82rem;
    color: #fff; background: var(--grad); background-size: 180% 100%;
    padding: .85rem 1.6rem; border: 0; border-radius: 999px; cursor: pointer;
    transition: background-position .5s ease, transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 10px 24px -12px rgba(255,0,120,.6);
}
.btn:hover { background-position: 100% 0; color: #fff; text-decoration: none; transform: translateY(-2px); }
.btn-ghost {
    background: none; color: var(--ink); box-shadow: none;
    border: 2px solid var(--ink); padding: calc(.85rem - 2px) calc(1.6rem - 2px);
}
.btn-ghost:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn-nav { padding: .55rem 1.1rem; font-size: .72rem; }
.btn-footer { margin-top: 1rem; }

/* Buy Me a Coffee — official brand style (yellow, dark text) */
.btn-bmc {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--font-btn); font-weight: 700; font-size: .8rem;
    background: #FFDD00; color: #0D0C22; padding: .7rem 1.2rem;
    border-radius: 12px; margin-top: .9rem; box-shadow: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.btn-bmc:hover {
    color: #0D0C22; text-decoration: none; transform: translateY(-2px);
    box-shadow: 0 8px 18px -8px rgba(0,0,0,.4);
}
.btn-bmc i { font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.9);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: 1.7rem; font-weight: 500; letter-spacing: -.02em; }
.brand-name strong { font-weight: 700; }
.brand-tag { font-size: .68rem; color: var(--muted); font-family: var(--font-btn); text-transform: uppercase; letter-spacing: .12em; }

.site-nav ul { list-style: none; display: flex; align-items: center; gap: 1.6rem; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); font-weight: 600; font-size: .98rem; }
.site-nav a:hover { color: var(--link); text-decoration: none; }
.site-nav a.active { color: var(--link); }
.site-nav a:not(.btn)::after {
    content: ""; display: block; height: 2px; width: 0; background: var(--grad);
    transition: width .25s ease;
}
.site-nav a:not(.btn):hover::after, .site-nav a.active::after { width: 100%; }

.nav-toggle, .nav-toggle-btn { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem,7vw,5rem); }
.hero::before {
    content: ""; position: absolute; inset: 0 0 0 auto; width: 46%;
    background: url('../img/background03.png') right center / cover no-repeat;
    opacity: .95; z-index: 0;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.5rem; align-items: center; }
.hero-eyebrow {
    font-family: var(--font-btn); text-transform: uppercase; letter-spacing: .18em;
    font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 1rem;
}
.hero h1 { margin-bottom: .4rem; }
.hero h1 .grad-text {
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 34ch; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-photo {
    justify-self: center; width: 300px; height: 300px; aspect-ratio: 1 / 1;
    border-radius: 50%; overflow: hidden;
    object-fit: cover; object-position: center; box-shadow: var(--shadow);
    border: 6px solid #fff; background: #fff;
}

/* ---------- Section scaffolding ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tight { padding-top: 0; }
.section-alt { background: var(--paper-alt); }

/* Contact page — "what happens next" steps + "other ways to connect" cards */
.contact-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.contact-list li {
    position: relative; padding: .4rem 0 .4rem 1.6rem; color: var(--ink-soft);
    font-size: 1.02rem;
}
.contact-list li::before {
    content: ""; position: absolute; left: 0; top: .95rem;
    width: 8px; height: 8px; border-radius: 50%; background: var(--grad);
}
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.step-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 2rem 1.6rem 1.6rem; position: relative;
}
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%; margin-bottom: 1rem;
    background: var(--grad); color: #fff; font-family: var(--font-body);
    font-weight: 700; font-size: 1.3rem;
}
.step-card h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.step-card p { color: var(--muted); font-size: .95rem; margin: 0; }

.connect-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.connect-card {
    display: block; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.5rem 1.4rem;
    text-decoration: none; color: var(--ink); position: relative; overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.connect-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); }
.connect-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.connect-card h3 { font-size: 1.05rem; margin: .3rem 0 .4rem; }
.connect-card p { color: var(--muted); font-size: .88rem; margin: 0; }
.section-head { max-width: 60ch; margin-bottom: 2.5rem; }
.eyebrow {
    display: inline-block; font-family: var(--font-btn); text-transform: uppercase;
    letter-spacing: .16em; font-size: .74rem; font-weight: 700; color: var(--link);
    margin-bottom: .8rem;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); }

/* ---------- Quarters (signature block) ---------- */
.quarters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.quarter {
    position: relative; padding: 1.6rem 1.4rem; border-radius: var(--radius);
    background: #fff; border: 1px solid var(--line); overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.quarter::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--grad); }
.quarter:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.quarter { display: flex; flex-direction: column; }
.quarter h3 { margin-top: .4rem; }
.quarter-cta {
    font-family: var(--font-btn); text-transform: uppercase; letter-spacing: .08em;
    font-size: .72rem; font-weight: 700; color: var(--link); margin-top: auto; padding-top: .8rem;
    display: inline-flex; align-items: center; gap: .35rem;
}
.quarter-cta::after { content: ""; }
.quarter:hover .quarter-cta { text-decoration: none; }
.quarter p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Cards / books ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.book-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.6rem; text-align: center; display: flex; flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
    color: var(--ink); text-decoration: none;
}
.book-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.book-card img { height: 240px; width: auto; margin: 0 auto 1.2rem; object-fit: contain; }
.book-card h3 { font-size: 1.1rem; }
.book-card p { color: var(--muted); font-size: .93rem; flex: 1; }
.book-cta {
    font-family: var(--font-btn); text-transform: uppercase; letter-spacing: .08em;
    font-size: .74rem; font-weight: 700; color: var(--link); margin-top: .6rem;
    display: inline-flex; align-items: center; gap: .35rem;
}
.book-cta::after { content: "\2192"; transition: transform .2s ease; }
.book-card:hover .book-cta::after { transform: translateX(3px); }

/* Four-settings diagram (speaking) */
.settings-diagram { max-width: 680px; margin: 0 auto 2.5rem; }
.settings-svg { width: 100%; height: auto; display: block; }
.settings-svg .sd-title { font-family: var(--font-body); font-weight: 700; font-size: 15px; fill: var(--ink); }
.settings-svg .sd-sub { font-family: var(--font-body); font-weight: 400; font-size: 12px; fill: var(--muted); }
.settings-svg .sd-centre { font-family: var(--font-body); font-weight: 700; font-size: 19px; fill: #fff; }
.settings-svg .sd-centre-sub { font-family: var(--font-btn); font-weight: 600; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; fill: #fff; }
.setting-node-link { cursor: pointer; }
.setting-node-link .setting-node rect:first-of-type { transition: fill .2s ease; }
.setting-node-link:hover .setting-node rect:first-of-type { fill: #faf7f5; }
.setting-node-link:hover .sd-title { fill: var(--link); }
.settings-svg .sd-arrow { font-family: var(--font-body); font-weight: 700; font-size: 22px; fill: #cbcbcb; transition: fill .2s ease; }
.setting-node-link:hover .sd-arrow { fill: var(--link); }

/* Detailed setting cards */
.settings-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.setting-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.6rem 1.4rem; position: relative; overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    text-decoration: none; color: var(--ink);
}
a.setting-card:hover { text-decoration: none; color: var(--ink); }
.setting-cta {
    font-family: var(--font-btn); text-transform: uppercase; letter-spacing: .08em;
    font-size: .72rem; font-weight: 700; color: var(--link); margin-top: 1rem;
    padding-top: .9rem; border-top: 1px solid var(--line);
    display: inline-flex; align-items: center; gap: .35rem;
}
.setting-card:hover .setting-cta { text-decoration: none; }
.setting-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--grad); }
.setting-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.setting-card h3 { font-size: 1.2rem; margin-top: .4rem; margin-bottom: .5rem; }
.setting-card > p { color: var(--muted); font-size: .92rem; margin-bottom: 1rem; }
.setting-card ul { list-style: none; margin: 0; padding: 0; }
.setting-card li {
    font-size: .9rem; padding: .4rem 0 .4rem 1.3rem; position: relative;
    border-top: 1px solid var(--line); color: var(--ink-soft);
}
.setting-card li::before {
    content: ""; position: absolute; left: 0; top: .95rem; width: 7px; height: 7px;
    border-radius: 50%; background: var(--grad);
}

/* Format cards (speaking) */
.format-list { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.format-list li {
    position: relative; padding: .4rem 0 .4rem 1.6rem; color: var(--ink-soft);
    font-size: 1rem;
}
.format-list li::before {
    content: ""; position: absolute; left: 0; top: .95rem;
    width: 8px; height: 8px; border-radius: 50%; background: var(--grad);
}
.format-list strong { color: var(--ink); font-weight: 600; }
.split-image-left { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split-image-left img { border-radius: var(--radius); box-shadow: var(--shadow); display: block; width: 100%; height: auto; }
/* Portrait image: narrower image column so a tall photo doesn't dominate */
.split-portrait { grid-template-columns: 0.7fr 1fr; }
.split-portrait > div:first-child { text-align: center; }
.split-portrait img { width: auto !important; height: 520px; max-width: 100%; margin-inline: auto; }
.format-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.1rem; }
.format-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.4rem 1.2rem; position: relative; overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.format-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); }
.format-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.format-card h3 { font-size: 1.05rem; margin-top: .3rem; }
.format-card p { color: var(--muted); font-size: .9rem; margin: 0; }

/* Detail cards (resources / publicity / fees) */
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.detail-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.8rem; transition: transform .25s ease, box-shadow .25s ease;
}
.detail-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.detail-card h3 { font-size: 1.15rem; }
.detail-card p { color: var(--muted); font-size: .96rem; margin: 0; }

/* Blog index */
.blog-search { margin-bottom: 2rem; }
.blog-search-wrap { position: relative; max-width: 620px; }
.blog-search input {
    width: 100%; padding: .9rem 1.2rem;
    border: 1.5px solid var(--line); border-radius: 999px;
    font-family: var(--font-body); font-size: 1rem; background: #fff; color: var(--ink);
}
.blog-search input:focus { outline: none; border-color: var(--link); }
.blog-search-results {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 50;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    box-shadow: var(--shadow); overflow: hidden; max-height: 60vh; overflow-y: auto;
    display: none;
}
.blog-search-results.open { display: block; }
.blog-search-result { display: flex; gap: .9rem; padding: .8rem 1rem; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.blog-search-result:last-child { border-bottom: none; }
.blog-search-result:hover { background: var(--paper-alt); text-decoration: none; }
.blog-search-result img { width: 54px; height: 54px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--paper-alt); }
.blog-search-text { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.blog-search-title { font-weight: 600; font-size: .95rem; }
.blog-search-snippet { font-size: .82rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-search-msg { padding: 1rem 1.2rem; color: var(--muted); font-size: .9rem; text-align: center; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.blog-card {
    display: flex; flex-direction: column; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    color: var(--ink); text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.blog-thumb { aspect-ratio: 16 / 9; background: var(--paper-alt); overflow: hidden; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-body { padding: 1.4rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.blog-date { font-family: var(--font-btn); text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; color: var(--link); }
.blog-card h3 { font-size: 1.15rem; margin: 0; line-height: 1.3; }
.blog-card p { color: var(--muted); font-size: .92rem; margin: 0; flex: 1; }
.blog-readmore { font-family: var(--font-btn); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; color: var(--link); margin-top: .4rem; }
.blog-empty { padding: 2rem 0; color: var(--muted); font-size: 1.05rem; }

.blog-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; }
.blog-pagination a, .blog-pagination span {
    font-family: var(--font-btn); font-weight: 600; font-size: .82rem;
    padding: .6rem 1rem; border-radius: 8px; text-decoration: none;
    color: var(--ink); border: 1px solid var(--line);
}
.blog-pagination a:hover { background: var(--ink); color: #fff; text-decoration: none; }
.blog-pagination .current { background: var(--grad); color: #fff; border: none; }
.blog-pagination .ellipsis { border: none; color: var(--muted); }

/* Single post */
.post { max-width: 760px; margin-inline: auto; }
.post-back { margin-bottom: 1.5rem; }
.post-back a { font-family: var(--font-btn); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; }
.post-header { margin-bottom: 1.8rem; }
.post-header h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-top: .5rem; }
.post-hero { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 2rem; display: block; }
.post-body { font-size: 1.08rem; line-height: 1.75; color: var(--ink-soft); }
.post-body p { margin: 0 0 1.3rem; }
.post-body h2, .post-body h3 { margin: 2rem 0 .8rem; color: var(--ink); }
.post-body a { color: var(--link); font-weight: 600; }
.post-body img { max-width: 100%; height: auto; border-radius: 12px; margin: 1.5rem 0; }
.post-body ul, .post-body ol { margin: 0 0 1.3rem 1.4rem; }
.post-body li { margin-bottom: .5rem; }
.post-body blockquote {
    margin: 1.5rem 0; padding: .5rem 0 .5rem 1.4rem; border-left: 4px solid;
    border-image: var(--grad) 1; font-style: italic; color: var(--ink);
}
.post-original {
    margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); text-align: center;
}
.post-original p { color: var(--muted); margin-bottom: 1rem; }
.post-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Media / press kit page */

/* Social profile cards (media kit) */
.social-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.social-card {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: .5rem; padding: 1.8rem 1.2rem; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius);
    text-decoration: none; color: var(--ink); position: relative; overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.social-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); }
.social-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.social-card i {
    width: 48px; height: 48px; border-radius: 50%; background: #000; color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem;
    margin-bottom: .3rem;
}
.social-card-name { font-weight: 600; font-size: 1rem; }
.social-card-handle { color: var(--muted); font-size: .85rem; }

.btn-sm { padding: .5rem 1.1rem; font-size: .68rem; }
.media-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.media-card {
    margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}
.media-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.media-thumb { aspect-ratio: 1 / 1; background: var(--paper-alt); overflow: hidden; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-card figcaption { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.media-card h3 { font-size: 1rem; margin: 0; }
.media-card p { color: var(--muted); font-size: .85rem; margin: 0; flex: 1; }
.media-card .btn { align-self: flex-start; margin-top: .3rem; }

.bio-block {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.6rem 1.8rem; margin-bottom: 1.4rem;
}
.bio-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.bio-head h3 { margin: 0; font-size: 1.1rem; }
.bio-block p { color: var(--ink-soft); margin: 0 0 .8rem; }
.bio-block p:last-child { margin-bottom: 0; }
.copy-btn.is-copied { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Topics list ---------- */
.topics { columns: 2; column-gap: 2.5rem; list-style: none; padding: 0; margin: 0; }
.topics li {
    break-inside: avoid; padding: .6rem 0 .6rem 1.8rem; position: relative;
    border-bottom: 1px solid var(--line); font-weight: 500;
}
.topics li::before {
    content: ""; position: absolute; left: 0; top: 1.05rem; width: 10px; height: 10px;
    border-radius: 50%; background: var(--grad);
}

/* ---------- Split / feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split-top { align-items: start; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); display: block; width: 100%; height: auto; }
.figure-caption { font-size: .85rem; color: var(--muted); margin-top: .6rem; font-family: var(--font-btn); text-transform: uppercase; letter-spacing: .1em; }
.figure-link { display: block; color: inherit; text-decoration: none; }
.figure-link img { transition: transform .25s ease, box-shadow .25s ease; }
.figure-link:hover { text-decoration: none; color: inherit; }
.figure-link:hover img { transform: translateY(-3px); box-shadow: var(--shadow); }
.figure-link:hover .figure-caption { color: var(--link); }

/* ---------- CTA band ---------- */
.cta-band {
    background: #000; color: #fff; border-radius: var(--radius);
    padding: clamp(2.2rem, 5vw, 3.5rem); text-align: center; position: relative; overflow: hidden;
}
.cta-band::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: var(--grad); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d8d8d8; max-width: 48ch; margin-inline: auto; }
.cta-band .btn-ghost { color: #fff; border-color: #fff; }
.cta-band .btn-ghost:hover { background: #fff; color: #000; }

/* White papers feature band (homepage) */
.feature-band {
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
}
.feature-band .eyebrow { justify-content: center; }
.feature-band h2 { margin-bottom: .6rem; }
.feature-band .lead { margin-inline: auto; }

/* ---------- Quarter pages ---------- */
.quarter-hero { background: var(--paper-alt); position: relative; overflow: hidden; }
.quarter-hero .lead { max-width: 46ch; }
.quarter-hero h1 { margin-bottom: .5rem; }
.quarter-hero .hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.quarter-hero::after {
    content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: var(--grad);
}
/* White-paper byline under the hero title */
.quarter-hero-by {
    font-family: var(--font-btn); text-transform: uppercase; letter-spacing: .1em;
    font-size: .75rem; color: var(--muted); margin-top: 1rem;
}

.reason-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
/* Four-up variant (the four needs on the white-paper page) */
.reason-grid-4 { grid-template-columns: repeat(4, 1fr); }
.reason-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.8rem 1.6rem; position: relative; overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.reason-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--grad); }
.reason-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.reason-card h3 { font-size: 1.15rem; margin-top: .3rem; }
.reason-card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* PART need cards — gradient badge icon leads each card (matches the white paper) */
.part-card { padding-top: 1.6rem; }
.part-head { display: flex; align-items: center; gap: .85rem; margin-bottom: .9rem; }
.part-badge {
    flex: 0 0 auto; width: 2.6rem; height: 2.6rem; border-radius: 12px;
    background: var(--grad); color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.part-badge svg { width: 1.4rem; height: 1.4rem; display: block; }
.part-head h3 { margin: 0; font-size: 1.15rem; }

.quarter-diagram { max-width: 680px; margin: 0 auto; }
.quarter-svg { width: 100%; height: auto; display: block; }
.quarter-svg .qd-centre { font-family: var(--font-body); font-weight: 700; font-size: 18px; fill: #fff; }
.quarter-svg .qd-centre-sub { font-family: var(--font-body); font-weight: 500; font-size: 14px; fill: #fff; }
.quarter-svg .qd-node-on { font-family: var(--font-body); font-weight: 700; font-size: 16px; fill: #fff; }
.quarter-svg .qd-node-on-sub { font-family: var(--font-btn); font-weight: 600; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; fill: #cfcfcf; }
.quarter-svg .qd-node { font-family: var(--font-body); font-weight: 700; font-size: 16px; fill: var(--ink); }
.quarter-svg .qd-node-sub { font-family: var(--font-btn); font-weight: 600; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; fill: var(--muted); }

.engage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.engage-card {
    display: block; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.6rem 1.5rem;
    text-decoration: none; color: var(--ink); position: relative; overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.engage-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); }
.engage-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.engage-card h3 { font-size: 1.1rem; margin: .2rem 0 .5rem; }
.engage-card p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Quarter tile links on the homepage */
a.quarter { text-decoration: none; color: var(--ink); }
a.quarter:hover { text-decoration: none; color: var(--ink); }

/* ---------- Prose (about, etc.) ---------- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose a { font-weight: 600; }

/* ---------- Info / facts ---------- */
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin: 2rem 0; }
.fact { padding: 1.4rem; border-left: 4px solid; border-image: var(--grad) 1; background: var(--paper-alt); border-radius: 0 12px 12px 0; }
.fact strong { display: block; font-size: 1.6rem; }
.fact span { color: var(--muted); font-size: .92rem; }

/* ---------- Contact ---------- */
.form-grid { display: grid; gap: 1.1rem; max-width: 560px; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .95rem; }
.field input, .field textarea, .field select {
    width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 12px;
    font-family: var(--font-body); font-size: 1rem; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--link); }
.field-optional { color: var(--muted); font-weight: 400; font-size: .85em; }
.field-group { display: grid; gap: 1.1rem; padding: 1.1rem 0 0; border-top: 1px solid var(--line); }
.field-group[hidden] { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.notice { padding: 1rem 1.2rem; border-radius: 12px; margin-bottom: 1.5rem; font-weight: 500; }
.notice-ok { background: #eafaef; border: 1px solid #b6e6c4; color: #1c6b36; }
.notice-err { background: #fdecec; border: 1px solid #f5b5b5; color: #a11919; }

/* ---------- Footer (4 columns) ---------- */
.site-footer { background: #0a0a0a; color: #cfcfcf; margin-top: 4rem; position: relative; }
.footer-ribbon { height: 6px; background: var(--grad); }
.footer-grid {
    display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1.3fr; gap: 2.2rem;
    padding: 3.2rem 0 2.4rem;
}
.footer-col img { margin-bottom: 1rem; }
.footer-lead { color: #e6e6e6; max-width: 32ch; }
.footer-quarters { font-family: var(--font-btn); text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; color: #8f8f8f; }

/* Circular white social icons */
.social-links { display: grid; grid-template-columns: repeat(5, min-content); gap: .5rem; margin-top: 1.3rem; }
.social-link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: #ffffff; color: #0a0a0a; font-size: .8rem;
    transition: transform .2s ease, box-shadow .2s ease, color .2s ease, background .2s ease;
}
.social-link:hover, .social-link:focus-visible {
    text-decoration: none; transform: translateY(-3px);
    background: var(--grad); color: #ffffff;
    box-shadow: 0 8px 18px -8px rgba(255,0,120,.7);
}
.social-link i { line-height: 1; }
.footer-head {
    font-family: var(--font-btn); text-transform: uppercase; letter-spacing: .12em;
    font-size: .8rem; color: #fff; margin-bottom: 1rem;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: #cfcfcf; font-size: .95rem; }
.footer-links a:hover { color: var(--link); text-decoration: none; }
.footer-bar { border-top: 1px solid #1e1e1e; }
.footer-bar-inner { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; flex-wrap: wrap; }
.footer-bar p { margin: 0; font-size: .85rem; color: #8f8f8f; }
.footer-bar a { color: #b5b5b5; }

/* ---------- Utilities ---------- */
.mt-2 { margin-top: 2rem; }
.center { text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero::before { display: none; }
    .hero-photo { justify-self: start; width: 220px; height: 220px; }
    .quarters { grid-template-columns: repeat(2, 1fr); }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .format-grid { grid-template-columns: repeat(2, 1fr); }
    .settings-grid { grid-template-columns: repeat(2, 1fr); }
    .media-grid { grid-template-columns: repeat(2, 1fr); }
    .social-cards { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-grid { grid-template-columns: 1fr; }
    .split { grid-template-columns: 1fr; }
    /* keep the image above the text when stacked, even if text comes first in the markup */
    .split-media-first > div:first-child { order: 2; }
    .split-media-first > div:last-child { order: 1; }
    .steps-grid { grid-template-columns: 1fr; }
    .connect-grid { grid-template-columns: repeat(2, 1fr); }
    .reason-grid { grid-template-columns: 1fr; }
    .reason-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .engage-grid { grid-template-columns: 1fr; }
    .split-image-left { grid-template-columns: 1fr; }
    .split-portrait { grid-template-columns: 1fr; }
    .split-portrait img { max-height: none; width: 100%; }
    .fact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }

    .site-nav {
        position: fixed; inset: 0 0 0 auto; width: min(300px, 82%);
        background-color: #ffffff; background-image: none;
        box-shadow: var(--shadow); transform: translateX(100%);
        transition: transform .3s ease; padding: 5rem 1.6rem 2rem; z-index: 120;
        border-left: 1px solid var(--line);
        -webkit-backdrop-filter: none; backdrop-filter: none;
        isolation: isolate; opacity: 1;
    }
    .site-nav::before {
        content: ""; position: absolute; inset: 0; background: #ffffff; z-index: -1;
    }
    .nav-backdrop { display: none; }
    .nav-toggle:checked ~ .nav-backdrop {
        display: block; position: fixed; inset: 0;
        background: rgba(0,0,0,.45); z-index: 110;
    }
    .site-nav ul { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
    .nav-toggle:checked ~ .site-nav { transform: translateX(0); }
    .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
    .nav-toggle-btn {
        display: flex; flex-direction: column; gap: 5px; cursor: pointer; z-index: 95;
        padding: .4rem;
    }
    .nav-toggle-btn span { width: 26px; height: 3px; background: var(--ink); border-radius: 2px; transition: .3s; }
    .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(2) { opacity: 0; }
    .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
@media (max-width: 560px) {
    .quarters, .card-grid, .topics, .footer-grid, .format-grid, .settings-grid, .media-grid, .blog-grid, .connect-grid, .reason-grid-4 { grid-template-columns: 1fr; columns: 1; }
    .brand-tag { display: none; }
}

/* ---------- Animated "flow" diagram (four quarters page) ---------- */
.flow-diagram { max-width: 560px; margin: 2.5rem auto 0; }
.flow-svg { width: 100%; height: auto; display: block; overflow: visible; }

.flow-node-title { font-family: var(--font-body); font-weight: 700; font-size: 15px; fill: var(--ink); }
.flow-icon { fill: var(--link); }
.flow-node-sub { font-family: var(--font-btn); font-weight: 600; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; fill: var(--muted); }
.flow-hub-title { font-family: var(--font-body); font-weight: 700; font-size: 22px; fill: #fff; }
.flow-hub-sub { font-family: var(--font-body); font-weight: 500; font-size: 15px; fill: #fff; }

/* The gradient pulses trace the paths by animating a dash along them */
.flow-ring {
    stroke-dasharray: 150 1130;      /* dash + gap ≈ full ring perimeter (1280) */
    animation: flowRing 7s linear infinite;
}
@keyframes flowRing { to { stroke-dashoffset: -1280; } }

.flow-diag {
    stroke-dasharray: 90 815;        /* dash + gap ≈ diagonal length (905) */
}
.flow-diag-1 { animation: flowDiag 4.5s linear infinite; }
.flow-diag-2 { animation: flowDiag 4.5s linear infinite; animation-delay: -2.25s; }
@keyframes flowDiag { to { stroke-dashoffset: -905; } }

/* Gentle breathing hub */
.flow-hub-pulse { transform-origin: 320px 320px; animation: flowHub 3.2s ease-in-out infinite; opacity: .5; }
@keyframes flowHub {
    0%, 100% { transform: scale(1); opacity: .45; }
    50%      { transform: scale(1.12); opacity: 0; }
}

.flow-caption {
    text-align: center; color: var(--muted); font-size: .95rem;
    max-width: 44ch; margin: 1.6rem auto 0; line-height: 1.5;
}

/* Respect reduced-motion: show the diagram fully, just stop moving it */
@media (prefers-reduced-motion: reduce) {
    .flow-ring, .flow-diag-1, .flow-diag-2, .flow-hub-pulse { animation: none; }
    .flow-ring, .flow-diag { stroke-dasharray: none; }   /* solid gradient paths */
    .flow-hub-pulse { opacity: 0; }
    .flow-dot { display: none; }
}

/* ---------- Framework diagram beside "Knowing your place" ---------- */
.framework-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}
.framework-split-figure { margin: 0; }
.framework-split-figure img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.framework-split-text h2 { margin-top: 0; }
@media (max-width: 760px) {
    .framework-split { grid-template-columns: 1fr; gap: 1.6rem; }
    .framework-split-figure { max-width: 480px; margin: 0 auto; }
}

/* ---------- "It takes a crowd" network animation (four quarters page) ---------- */
.crowd-diagram { max-width: 540px; margin: 2.5rem auto 3rem; }
.crowd-svg { width: 100%; height: auto; display: block; overflow: visible; }

/* Travelling momentum dots ride each spoke (inner wave + outer wave).
   Motion is driven by SVG <animateMotion>, so every spoke behaves identically. */
.net-flow-outer circle { opacity: .9; }

/* Leader hub gently pulses */
.crowd-hub-pulse { transform-origin: 320px 190px; animation: crowdHub 3s ease-in-out infinite; opacity: .5; }
@keyframes crowdHub {
    0%, 100% { transform: scale(1); opacity: .45; }
    50%      { transform: scale(1.18); opacity: 0; }
}

/* Crowd nodes breathe in a gentle ripple as momentum reaches them */
.net-inner circle, .net-outer circle { transform-box: fill-box; transform-origin: center; }
.net-inner circle { animation: netNode 2.8s ease-in-out infinite; }
.net-outer circle { animation: netNode 2.8s ease-in-out infinite; }
@keyframes netNode { 0%,100% { transform: scale(1); } 45% { transform: scale(1.28); } }
.ni1{animation-delay:.3s}.ni2{animation-delay:.52s}.ni3{animation-delay:.74s}.ni4{animation-delay:.96s}.ni5{animation-delay:1.18s}.ni6{animation-delay:1.4s}
.no1{animation-delay:.6s}.no2{animation-delay:.72s}.no3{animation-delay:.84s}.no4{animation-delay:.96s}.no5{animation-delay:1.08s}.no6{animation-delay:1.2s}
.no7{animation-delay:1.32s}.no8{animation-delay:1.44s}.no9{animation-delay:1.56s}.no10{animation-delay:1.68s}.no11{animation-delay:1.8s}.no12{animation-delay:1.92s}

.crowd-caption {
    text-align: center; color: var(--muted); font-size: .95rem;
    max-width: 46ch; margin: 1.4rem auto 0; line-height: 1.5;
}


@media (prefers-reduced-motion: reduce) {
    .crowd-hub-pulse, .net-inner circle, .net-outer circle { animation: none; }
    .net-flow { display: none; }
    .crowd-hub-pulse { opacity: 0; }
}