/* Edwin Blanchard: shared styles v2.
   Informed by Edwin's Taste profile: light, spacious, borderless, muted colour, high contrast,
   bold sans (Manrope), pill and rounded corners, flat (no shadows, no blur). */
:root {
  --ink: #151515;
  --muted: #55534d;
  --paper: #faf6ee;
  --cream: #fffdf8;
  --crimson: #da1e44;
  --pink: #fcc9d4;
  --sage: #dde7cf;
  --butter: #f6ebc0;
  --powder: #d5e3f0;
  --lilac: #e4dcf4;
  --accent: var(--crimson);
  --max: 1200px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
.wrap { width: min(100% - 64px, var(--max)); margin: 0 auto; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; font-weight: 800; font-size: 13px; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* Persistent menu: flat, light, pill */
.bar { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; pointer-events: none; }
.bar-inner { pointer-events: auto; width: min(100% - 28px, 1080px); background: var(--cream); border-radius: 999px; padding: 8px 8px 8px 12px; display: flex; align-items: center; justify-content: space-between; gap: 20px; position: relative; }
.mark { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 13px; letter-spacing: .1em; white-space: nowrap; }
.mark i { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 12px; letter-spacing: 0; transition: background .5s ease; }
.mark em { font-style: normal; font-weight: 600; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { font-size: 14px; font-weight: 700; padding: 11px 18px; border-radius: 999px; transition: background .25s ease; }
.nav a:hover { background: var(--paper); }
.nav a[aria-current='page'] { background: var(--pink); }
.nav .cta { background: var(--ink); color: var(--cream); margin-left: 6px; }
.nav .cta:hover { background: #333; }
.nav .cta[aria-current='page'] { background: var(--ink); }
.burger { display: none; background: var(--ink); color: var(--cream); border: 0; border-radius: 999px; padding: 12px 20px; font-weight: 800; font-size: 13px; cursor: pointer; }
.progress { position: fixed; top: 0; left: 0; height: 4px; width: 100%; transform-origin: left; transform: scaleX(var(--scroll, 0)); background: var(--accent); z-index: 60; transition: background .5s ease; }

/* Type */
.kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transition: background .5s ease; }
.display { font-weight: 800; letter-spacing: -.055em; line-height: .96; }
.h-xl { font-size: clamp(40px, 6vw, 92px); }
.h-lg { font-size: clamp(40px, 5.6vw, 84px); }
.h-md { font-size: clamp(30px, 3.8vw, 52px); }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; max-width: 600px; color: #3a3935; }
.hl { background: linear-gradient(transparent 60%, var(--hl, var(--butter)) 60% 94%, transparent 94%); }
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 17px 26px; border-radius: 999px; font-weight: 800; font-size: 15px; transition: transform .25s var(--ease), background .25s ease; }
.btn:hover { transform: translateY(-3px); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-soft { background: var(--pink); }
.btn-soft:hover { background: #f8b6c5; }

/* Fields: muted tints, no hard edges between content */
.field { position: relative; padding: 140px 0; }
.f-paper { background: var(--paper); }
.f-cream { background: var(--cream); }
.f-pink { background: var(--pink); }
.f-sage { background: var(--sage); }
.f-butter { background: var(--butter); }
.f-powder { background: var(--powder); }
.f-lilac { background: var(--lilac); }

.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .1s; } .rv.d2 { transition-delay: .2s; } .rv.d3 { transition-delay: .3s; }

/* HOME hero */
.hero { padding: 150px 0 90px; }
.hero h1 { max-width: 1000px; margin: 30px 0 34px; }
.hero h1 .a { color: var(--crimson); }
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.chartcard { margin-top: 70px; background: var(--pink); border-radius: 44px; padding: 44px 44px 30px; }
.chartcard svg { width: 100%; height: auto; overflow: visible; }
.ln { fill: none; stroke-width: 6; stroke-linecap: round; }
.ln-up { stroke: var(--ink); }
.ln-down { stroke: var(--crimson); }
.ln-grid { stroke: rgba(21, 21, 21, .1); stroke-width: 1.5; stroke-dasharray: 2 10; stroke-linecap: round; }
.ln-lbl { font-size: 16px; font-weight: 800; fill: var(--ink); }
.ln-sub { font-size: 12px; font-weight: 800; fill: rgba(21, 21, 21, .6); letter-spacing: .1em; text-transform: uppercase; }
.cross { fill: var(--cream); stroke: var(--ink); stroke-width: 5; }
.cross-ring { fill: none; stroke: var(--ink); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ring 2.6s ease-out infinite; }
.cap { display: flex; justify-content: space-between; gap: 20px; font-size: 14px; font-weight: 700; margin-top: 22px; flex-wrap: wrap; }
.cap span:last-child { color: var(--muted); }

.ticker { background: var(--sage); overflow: hidden; white-space: nowrap; padding: 18px 0; }
.ticker-track { display: inline-flex; gap: 36px; animation: tick 40s linear infinite; font-weight: 800; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.ticker-track b { font-weight: 400; color: var(--crimson); }

/* Receipts: rounded tiles, no rules */
.recs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 64px; }
.rec { border-radius: 32px; padding: 30px 24px 26px; min-height: 290px; display: flex; flex-direction: column; justify-content: space-between; transition: transform .35s var(--ease); }
.rec:hover { transform: translateY(-6px); }
.rec:nth-child(1) { background: var(--sage); }
.rec:nth-child(2) { background: var(--butter); }
.rec:nth-child(3) { background: var(--powder); }
.rec:nth-child(4) { background: var(--lilac); }
.rec:nth-child(5) { background: var(--pink); }
.rec strong { display: block; font-size: clamp(48px, 5vw, 76px); letter-spacing: -.07em; line-height: .9; font-weight: 800; }
.rec strong sup { font-size: .42em; vertical-align: top; letter-spacing: -.04em; margin-left: 2px; }
.rec > span { display: block; font-size: 14px; line-height: 1.4; color: #3a3935; margin-top: 18px; }
.rec b { display: block; margin-top: 18px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }

/* The route: Taste reference "Career Timeline", dashed line linking ring markers */
.route-head { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; }
.route { position: relative; margin-top: 80px; }
.route-line { position: absolute; left: 0; top: 0; width: 100%; height: 120px; overflow: visible; }
.route-line path { fill: none; stroke: var(--crimson); stroke-width: 2.5; stroke-dasharray: 3 9; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.route-nodes { display: grid; grid-template-columns: repeat(7, 1fr); position: relative; }
.rnode { display: block; width: 100%; background: none; border: 0; cursor: pointer; text-align: center; padding: 28px 10px 10px; }
.rnode .ring { width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 17px; background: var(--cream); border: 4px solid var(--crimson); transition: background .3s ease, color .3s ease, transform .35s var(--ease); }
.rnode:hover .ring { transform: scale(1.08); }
.rnode[aria-selected='true'] .ring { background: var(--crimson); color: #fff; transform: scale(1.12); }
.rnode strong { display: block; font-size: 17px; letter-spacing: -.03em; line-height: 1.15; }
.rnode em { display: block; font-style: normal; color: var(--crimson); font-weight: 800; font-size: 13px; margin: 6px 0 8px; }
.rnode small { display: block; font-size: 13px; color: #3a3935; line-height: 1.4; }
.rpanel { display: none; margin-top: 46px; background: var(--cream); border-radius: 44px; padding: 54px; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.rpanel.on { display: grid; animation: pop .5s var(--ease); }
.rpanel h3 { font-size: clamp(30px, 3.4vw, 48px); letter-spacing: -.05em; line-height: 1; font-weight: 800; }
.rpanel p { margin-top: 18px; font-size: 17px; color: #3a3935; max-width: 520px; }
.stats { display: grid; gap: 14px; }
.stat { display: flex; align-items: baseline; gap: 18px; padding: 20px 26px; border-radius: 999px; background: var(--paper); }
.stat:nth-child(1) { background: var(--sage); } .stat:nth-child(2) { background: var(--butter); } .stat:nth-child(3) { background: var(--powder); }
.stat b { font-size: clamp(28px, 3vw, 42px); letter-spacing: -.06em; font-weight: 800; line-height: 1; min-width: 110px; }
.stat span { font-size: 14px; line-height: 1.35; }

/* Doors */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.door { border-radius: 40px; padding: 36px; min-height: 380px; display: flex; flex-direction: column; justify-content: space-between; transition: transform .4s var(--ease); position: relative; overflow: hidden; }
.door:hover { transform: translateY(-8px); }
.door h3 { font-size: clamp(34px, 3.6vw, 50px); letter-spacing: -.055em; line-height: .96; font-weight: 800; }
.door p { margin-top: 14px; font-size: 16px; max-width: 280px; }
.door .go { font-weight: 800; font-size: 15px; display: inline-flex; gap: 12px; align-items: center; }
.door .go i { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--cream); display: grid; place-items: center; font-style: normal; transition: transform .35s var(--ease); }
.door:hover .go i { transform: rotate(45deg); }
.door svg { position: absolute; right: 6px; top: 6px; width: 150px; }

/* Quote */
.quote { max-width: 980px; }
.quote blockquote { font-size: clamp(28px, 3.8vw, 54px); letter-spacing: -.045em; line-height: 1.08; font-weight: 800; margin: 28px 0 36px; }
.by { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.by i { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--cream); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 13px; }
.by small { display: block; color: var(--muted); font-size: 13px; }

/* Inner page hero */
.phero { padding: 170px 0 110px; position: relative; overflow: hidden; }
.phero h1 { margin: 28px 0 34px; max-width: 1000px; }
.bigword { position: absolute; right: -2%; bottom: -16%; font-size: clamp(180px, 30vw, 440px); font-weight: 800; letter-spacing: -.08em; line-height: .8; color: rgba(21, 21, 21, .06); pointer-events: none; white-space: nowrap; }

/* About */
.how { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 56px; }
.how article { border-radius: 40px; padding: 40px; min-height: 280px; transition: transform .35s var(--ease); }
.how article:hover { transform: translateY(-6px); }
.how article:nth-child(1) { background: var(--sage); }
.how article:nth-child(2) { background: var(--pink); }
.how article:nth-child(3) { background: var(--powder); }
.how article:nth-child(4) { background: var(--butter); }
.how span { font-size: 14px; font-weight: 800; }
.how h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.05em; line-height: 1; margin: 56px 0 14px; font-weight: 800; }
.how p { max-width: 430px; font-size: 16px; color: #33322e; }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.prose p { font-size: 18px; line-height: 1.65; margin-bottom: 20px; max-width: 640px; }
.sectors { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.sectors span { padding: 15px 22px; border-radius: 999px; font-weight: 800; font-size: 16px; letter-spacing: -.02em; transition: transform .3s var(--ease); }
.sectors span:hover { transform: translateY(-4px); }
.edu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.edu div { background: var(--cream); border-radius: 32px; padding: 30px; }
.edu strong { display: block; font-size: 22px; letter-spacing: -.04em; line-height: 1.15; }
.edu small { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }
.scale { display: flex; align-items: flex-end; gap: 12px; height: 240px; margin-top: 56px; }
.scale div { flex: 1; border-radius: 28px 28px 8px 8px; position: relative; height: 0; transition: height 1.2s var(--ease); background: var(--sage); }
.scale.in div { height: var(--h); }
.scale div:nth-child(2) { background: var(--pink); } .scale div:nth-child(3) { background: var(--butter); } .scale div:nth-child(4) { background: var(--lilac); } .scale div:nth-child(5) { background: var(--powder); }
.scale small { position: absolute; top: -30px; left: 4px; font-weight: 800; font-size: 14px; white-space: nowrap; }
.scale em { position: absolute; bottom: 16px; left: 16px; right: 8px; font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

/* Experience timeline */
.tl { position: relative; padding-left: 80px; margin-top: 60px; }
.tl::before { content: ''; position: absolute; left: 21px; top: 8px; bottom: 0; width: 4px; background: rgba(21, 21, 21, .08); border-radius: 4px; }
.tl-fill { position: absolute; left: 21px; top: 8px; width: 4px; height: calc(var(--p, 0) * 100% - 8px); background: var(--crimson); border-radius: 4px; }
.job { position: relative; padding-bottom: 90px; max-width: 980px; }
.job::before { content: ''; position: absolute; left: -71px; top: 10px; width: 28px; height: 28px; border-radius: 50%; border: 4px solid var(--crimson); background: var(--paper); z-index: 2; transition: background .4s ease, transform .4s var(--ease); }
.job.lit::before { background: var(--crimson); transform: scale(1.15); }
.job-top { display: flex; align-items: center; gap: 16px; }
.logo { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 17px; letter-spacing: -.04em; flex: none; }
.job h2 { font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -.05em; font-weight: 800; line-height: 1; }
.meta { margin: 16px 0 12px; font-size: 14px; color: var(--muted); font-weight: 600; }
.meta b { color: var(--ink); font-weight: 800; }
.role { color: var(--crimson); font-weight: 800; font-size: clamp(17px, 1.7vw, 21px); letter-spacing: -.02em; line-height: 1.25; max-width: 760px; }
.job > p { margin-top: 16px; max-width: 700px; font-size: 17px; color: #33322e; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { font-size: 13px; font-weight: 700; padding: 9px 15px; border-radius: 999px; background: var(--pink); white-space: nowrap; }
.chip b { font-weight: 800; }
.job .glyph { position: absolute; right: 0; top: 0; width: 150px; height: 100px; }
.assign { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 30px; align-items: start; }
.as { background: var(--cream); border-radius: 30px; padding: 4px 26px; transition: background .3s ease; }
.as.open { background: var(--butter); }
.as button { width: 100%; background: none; border: 0; text-align: left; padding: 22px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.as button strong { font-size: 22px; letter-spacing: -.04em; display: block; line-height: 1.1; }
.as button small { font-size: 13px; color: var(--muted); font-weight: 600; display: block; margin-top: 6px; }
.as button i { font-style: normal; font-size: 28px; font-weight: 400; line-height: 1; color: var(--crimson); transition: transform .3s var(--ease); }
.as.open button i { transform: rotate(45deg); }
.as .body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.as.open .body { grid-template-rows: 1fr; }
.as .body > div { overflow: hidden; }
.as .body p { font-size: 15px; color: #33322e; padding-bottom: 4px; }
.as .body .chips { padding-bottom: 24px; margin-top: 14px; }
.as .chip { background: var(--cream); }
.as:not(.open) .chip { background: var(--pink); }

/* AI page */
.steps { display: grid; grid-template-columns: 310px 1fr; gap: 40px; margin-top: 60px; align-items: start; }
.tabs { display: flex; flex-direction: column; gap: 8px; }
.tab { text-align: left; background: rgba(255, 255, 255, .55); border: 0; border-radius: 999px; padding: 18px 24px; cursor: pointer; font-weight: 800; font-size: 17px; letter-spacing: -.03em; display: flex; gap: 14px; align-items: center; transition: background .3s ease, transform .3s var(--ease); }
.tab span { font-size: 12px; color: var(--muted); }
.tab:hover { background: rgba(255, 255, 255, .85); }
.tab[aria-selected='true'] { background: var(--ink); color: var(--cream); transform: translateX(10px); }
.tab[aria-selected='true'] span { color: rgba(255, 253, 248, .7); }
.panel { background: var(--cream); border-radius: 44px; padding: 52px; min-height: 340px; display: none; }
.panel.on { display: block; animation: pop .5s var(--ease); }
.panel h3 { font-size: clamp(30px, 3.4vw, 48px); letter-spacing: -.05em; line-height: 1; font-weight: 800; }
.panel p { margin-top: 18px; font-size: 18px; max-width: 560px; color: #33322e; }
.loop { width: min(100%, 500px); margin: 0 auto; }
.loop .ring { fill: none; stroke: rgba(21, 21, 21, .25); stroke-width: 2; stroke-dasharray: 3 9; stroke-linecap: round; transform-origin: 250px 250px; animation: spin 50s linear infinite; }
.loop .node text { font-size: 13px; font-weight: 800; fill: var(--ink); text-anchor: middle; letter-spacing: .05em; text-transform: uppercase; }
.loop .orb { fill: var(--crimson); transform-origin: 250px 250px; animation: spin 14s linear infinite; }
.evid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 56px; }
.evid article { border-radius: 40px; padding: 44px; }
.evid h3 { font-size: 32px; letter-spacing: -.045em; font-weight: 800; line-height: 1.05; }
.evid small { display: block; margin: 8px 0 26px; font-weight: 700; color: var(--muted); font-size: 14px; }
.evid li { padding: 14px 0 14px 28px; position: relative; font-size: 16px; }
.evid li::before { content: ''; position: absolute; left: 0; top: 23px; width: 10px; height: 10px; border-radius: 50%; background: var(--crimson); }
.note { margin-top: 32px; font-size: 15px; color: var(--muted); max-width: 640px; }

/* Contact */
.mail { display: block; font-size: clamp(30px, 6vw, 92px); font-weight: 800; letter-spacing: -.06em; line-height: 1.05; width: fit-content; max-width: 100%; word-break: break-word; padding: 6px 30px 14px; background: var(--cream); border-radius: 999px; margin-left: -30px; transition: background .3s ease; }
.mail:hover { background: var(--pink); }
.ways { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 56px; }
.ways article { border-radius: 40px; padding: 44px; background: var(--sage); }
.ways article:nth-child(2) { background: var(--powder); }
.ways h3 { font-size: 34px; letter-spacing: -.05em; font-weight: 800; line-height: 1; }
.ways p { margin-top: 16px; max-width: 440px; font-size: 17px; }
.contact-lines { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.contact-lines a { background: var(--cream); border-radius: 999px; padding: 14px 24px; font-weight: 800; font-size: 16px; transition: background .25s ease; }
.contact-lines a:hover { background: var(--pink); }

/* Next + footer */
.next { display: block; padding: 90px 0; }
.next small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--muted); }
.next strong { display: flex; justify-content: space-between; align-items: center; font-size: clamp(44px, 8vw, 120px); letter-spacing: -.06em; line-height: 1; font-weight: 800; margin-top: 14px; transition: transform .4s var(--ease); }
.next:hover strong { transform: translateX(14px); }
footer { background: var(--cream); color: var(--muted); padding: 28px 0 32px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--ink); }

@keyframes tick { to { transform: translateX(-50%); } }
@keyframes ring { from { transform: scale(.6); opacity: .8; } to { transform: scale(3.2); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 1000px) {
  .route-nodes { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
  .route-line { display: none; }
  .rnode { padding-top: 10px; }
  .rnode small { display: none; }
  .rpanel { grid-template-columns: 1fr; padding: 34px; gap: 30px; }
}
@media (max-width: 900px) {
  .wrap { width: min(100% - 36px, var(--max)); }
  .field { padding: 90px 0; }
  .burger { display: block; }
  .nav { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--cream); border-radius: 32px; padding: 12px; flex-direction: column; align-items: stretch; gap: 2px; }
  .nav.open { display: flex; }
  .nav a { padding: 16px 20px; font-size: 17px; }
  .nav .cta { margin: 6px 0 0; text-align: center; }
  .mark em { display: none; }
  .hero { padding: 120px 0 70px; }
  .chartcard { padding: 24px 18px 20px; border-radius: 32px; margin-top: 50px; }
  .recs { grid-template-columns: repeat(2, 1fr); }
  .rec { min-height: 230px; padding: 24px 20px; }
  .rec:nth-child(5) { grid-column: 1 / -1; min-height: 200px; }
  .route-head, .split, .steps, .evid, .ways, .how, .assign, .edu { grid-template-columns: 1fr; gap: 24px; }
  .doors { grid-template-columns: 1fr; }
  .door { min-height: 300px; }
  .phero { padding: 130px 0 70px; }
  .tl { padding-left: 52px; }
  .tl::before, .tl-fill { left: 11px; }
  .job::before { left: -51px; width: 24px; height: 24px; }
  .job .glyph { display: none; }
  .tabs { flex-direction: row; overflow-x: auto; }
  .tab { white-space: nowrap; }
  .tab[aria-selected='true'] { transform: none; }
  .panel { padding: 30px; border-radius: 32px; }
  .mail { margin-left: 0; padding: 4px 20px 10px; }
  .stat { border-radius: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .ticker-track, .cross-ring, .loop .ring, .loop .orb, .rpanel.on, .panel.on { animation: none; }
  .scale div { transition: none; height: var(--h); }
}
@media (max-width: 1000px) { .route-nodes { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rnode strong { font-size: 15px; overflow-wrap: anywhere; } }
html, body { overflow-x: clip; }

/* AI page: the eight-step method */
.method { margin-top: 70px; }
.mroute { position: relative; }
.mroute ol { display: grid; grid-template-columns: repeat(8, 1fr); }
.mline { position: absolute; left: 6.25%; right: 6.25%; top: 132px; border-top: 3px dashed var(--crimson); opacity: .55; }
.mnode { width: 100%; background: none; border: 0; cursor: pointer; display: grid; grid-template-rows: 96px 72px 96px; justify-items: center; padding: 0 4px; position: relative; }
.mnode .mring { grid-row: 2; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 18px; letter-spacing: -.02em; background: var(--tint); transition: background .3s ease, color .3s ease, transform .35s var(--ease); }
.mnode:hover .mring { transform: scale(1.1); }
.mnode[aria-selected='true'] .mring { background: var(--ink); color: var(--cream); transform: scale(1.14); }
.mnode .lbl { font-size: 15px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; text-align: center; position: relative; padding: 0 2px; }
.mnode.up .lbl { grid-row: 1; align-self: start; padding-top: 10px; }
.mnode.down .lbl { grid-row: 3; align-self: end; padding-bottom: 10px; }
.mnode.up .lbl::after, .mnode.down .lbl::before { content: ''; position: absolute; left: 50%; width: 2px; height: 22px; margin-left: -1px; background: var(--crimson); opacity: .55; }
.mnode.up .lbl::after { top: calc(100% + 14px); }
.mnode.down .lbl::before { bottom: calc(100% + 14px); }
.mnode[aria-selected='true'] .lbl { color: var(--ink); }
.t-sage { --tint: var(--sage); } .t-butter { --tint: var(--butter); } .t-powder { --tint: var(--powder); } .t-lilac { --tint: var(--lilac); } .t-pink { --tint: var(--pink); }
.loopback { text-align: center; font-size: 14px; font-weight: 700; color: var(--muted); margin-top: 12px; display: flex; justify-content: center; gap: 14px; }
.mpanel { display: none; margin-top: 44px; background: var(--paper); border-radius: 44px; padding: 54px; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
.mpanel.on { display: grid; animation: pop .5s var(--ease); }
.pnum { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--pink); border-radius: 999px; padding: 8px 16px; }
.mpanel h3 { font-size: clamp(32px, 3.6vw, 52px); letter-spacing: -.05em; line-height: 1; font-weight: 800; margin-top: 20px; }
.mpanel .q { font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1.35; margin-top: 18px; max-width: 520px; }
.mpanel h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--muted); margin: 32px 0 6px; }
.dolist li { position: relative; padding: 11px 0 11px 28px; font-size: 16px; }
.dolist li::before { content: ''; position: absolute; left: 0; top: 20px; width: 10px; height: 10px; border-radius: 50%; background: var(--crimson); }
.leave { background: var(--sage); border-radius: 32px; padding: 30px 32px; }
.leave h4 { margin-top: 0; color: var(--ink); }
.leave li { padding: 10px 0; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.aside { background: var(--butter); border-radius: 32px; padding: 28px 32px; margin-top: 14px; }
.aside p { font-size: 15px; line-height: 1.5; color: #33322e; margin-top: 12px; }
.aside svg { width: 100%; max-width: 280px; height: auto; }
.aside .pull { font-size: clamp(20px, 2vw, 26px); font-weight: 800; letter-spacing: -.035em; line-height: 1.15; margin: 0; color: var(--ink); }
.bigstat b { font-size: clamp(40px, 5vw, 64px); letter-spacing: -.06em; font-weight: 800; line-height: 1; }
.lights li { display: flex; gap: 16px; align-items: flex-start; padding: 9px 0; font-size: 15px; }
.lights i { flex: none; width: 18px; height: 18px; border-radius: 50%; margin-top: 3px; }
.lights b { display: block; font-size: 16px; }
@media (max-width: 1000px) {
  .mpanel { grid-template-columns: 1fr; padding: 32px; gap: 28px; }
}
@media (max-width: 900px) {
  .mline { left: 35px; right: auto; top: 20px; bottom: 20px; border-top: 0; border-left: 3px dashed var(--crimson); }
  .mroute ol { display: block; }
  .mnode { display: grid; grid-template-columns: 72px 1fr; grid-template-rows: auto; justify-items: start; align-items: center; gap: 18px; padding: 8px 0; text-align: left; }
  .mnode .mring { grid-row: 1; grid-column: 1; }
  .mnode .lbl, .mnode.up .lbl, .mnode.down .lbl { grid-row: 1; grid-column: 2; text-align: left; padding: 0; align-self: center; font-size: 17px; }
  .mnode .lbl::before, .mnode .lbl::after { display: none; }
  .mnode .lbl br { display: none; }
  .loopback { flex-direction: column; text-align: left; gap: 0; }
  .loopback span { display: none; }
}
/* Mobile: swipe across the eight steps */
@media (max-width: 900px) {
  .mroute ol { display: flex; overflow-x: auto; scroll-snap-type: x proximity; gap: 4px; margin: 0 -18px; padding: 0 18px 6px; scrollbar-width: none; }
  .mroute ol::-webkit-scrollbar { display: none; }
  .mroute ol li { flex: none; width: 92px; scroll-snap-align: center; }
  .mline { left: 18px; right: 18px; top: 36px; bottom: auto; border-left: 0; border-top: 3px dashed var(--crimson); }
  .mnode, .mnode.up, .mnode.down { display: grid; grid-template-columns: 1fr; grid-template-rows: 72px auto; justify-items: center; align-items: start; gap: 10px; padding: 0; text-align: center; }
  .mnode .mring { grid-row: 1; grid-column: 1; }
  .mnode .lbl, .mnode.up .lbl, .mnode.down .lbl { grid-row: 2; grid-column: 1; text-align: center; font-size: 13px; align-self: start; padding: 0 2px; }
  .mroute { position: relative; }
  .mpanels { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 28px -18px 0; padding: 0 18px; scrollbar-width: none; }
  .mpanels::-webkit-scrollbar { display: none; }
  .mpanels .mpanel, .mpanels .mpanel.on { display: grid; flex: none; width: calc(100% - 28px); margin-top: 0; scroll-snap-align: center; animation: none; }
  .mpanels .mpanel:last-child { margin-right: 18px; }
  .loopback { text-align: center; flex-direction: row; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .mpanel.on { animation: none; } }

/* v3 home */
.rnode .ring { overflow: hidden; }
.rnode .ring img { width: 76%; height: 76%; object-fit: contain; }
.rnode .ring img + b { display: none; }
.rnode .ring b { font-weight: 800; }
.mk-dot { fill: var(--cream); stroke: var(--ink); stroke-width: 5; }
.mk-dot.sale { fill: var(--crimson); stroke: var(--ink); }
.outs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 56px; }
.out { border-radius: 36px; padding: 40px 36px 38px; transition: transform .45s var(--ease); }
.out:hover { transform: translateY(-6px); }
.out strong { display: block; font-size: clamp(54px, 6vw, 88px); letter-spacing: -.06em; line-height: .95; font-weight: 800; }
.out h3 { font-size: 24px; letter-spacing: -.03em; margin-top: 18px; font-weight: 800; }
.out p { margin-top: 6px; font-size: 16px; color: #33322e; }
@media (max-width: 900px) { .outs { grid-template-columns: 1fr; } }

.mk-list { display: none; }
@media (max-width: 700px) {
  .mk-list { display: none; font-size: 14px; font-weight: 700; margin-top: 14px; color: var(--muted); }
}

/* v4 quotes */
.qslides { display: grid; margin-top: 28px; }
.qslide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .6s ease, transform .6s var(--ease), visibility 0s linear .6s; }
.qslide.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.qslide blockquote { font-size: clamp(26px, 3.4vw, 48px); letter-spacing: -.045em; line-height: 1.1; font-weight: 800; margin: 0 0 32px; }
.qctl { display: flex; align-items: center; gap: 14px; margin-top: 40px; }
.qctl button { font: inherit; cursor: pointer; }
.qprev, .qnext { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ink); color: var(--cream); font-size: 18px; font-weight: 800; transition: transform .3s var(--ease); }
.qprev:hover, .qnext:hover { transform: scale(1.08); }
.qdots { display: flex; gap: 8px; margin: 0 6px; }
.qdot { width: 12px; height: 12px; border-radius: 50%; border: 0; background: rgba(21, 21, 21, .22); padding: 0; transition: background .3s, transform .3s; }
.qdot.on { background: var(--crimson); transform: scale(1.25); }
.pq { margin: 30px 0 0; background: var(--paper); border-radius: 28px; padding: 24px 26px; }
.pq blockquote { font-size: 18px; line-height: 1.35; letter-spacing: -.02em; font-weight: 700; margin: 0; }
.pq figcaption { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 14px; }
.pq figcaption i { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--cream); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 12px; }
.pq figcaption small { display: block; color: var(--muted); font-size: 12.5px; }
.pq.big { background: transparent; padding: 0; max-width: 900px; margin: 0; }
.pq.big blockquote { font-size: clamp(26px, 3.4vw, 46px); letter-spacing: -.045em; line-height: 1.1; font-weight: 800; }
.pq.big figcaption { margin-top: 26px; font-size: 15px; }
.pq.big figcaption i { width: 48px; height: 48px; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .qslide { transition: none; } }

.rhint { margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--muted); }
.rback { margin-top: 24px; background: none; border: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; border-bottom: 2px solid var(--crimson); }
#r-intro .stat { display: block; border-radius: 32px; padding: 22px 30px; }
#r-intro .stat b { display: block; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.05; }
#r-intro .stat span { display: block; margin-top: 8px; font-size: 15px; line-height: 1.4; max-width: none; }

.rhint-top { margin: 40px 0 6px; text-align: left; }
.expbox { margin-top: 30px; background: var(--paper); border-radius: 28px; padding: 22px 26px; max-width: 560px; }
.expbox h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--muted); margin: 0 0 8px; }
.expbox p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.rnode .ring { width: 104px; height: 72px; border-radius: 40px; background: var(--cream); }
.rnode .ring img { width: auto; height: auto; max-width: 70%; max-height: 62%; object-fit: contain; }
.rnode[aria-selected='true'] .ring { background: var(--cream); color: var(--ink); border-color: var(--ink); transform: scale(1.1); }
@media (max-width: 1000px) { .rnode .ring { width: 92px; height: 64px; } }
.rnode .ring img { max-height: 42px; max-width: 66px; }
.rhint-top { margin-bottom: -34px; position: relative; z-index: 1; }
.rnode .ring img { border-radius: 6px; }

.how .outp { margin-top: 16px; font-size: 15px; font-weight: 700; color: var(--ink); }
.how .outp b { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--crimson); margin-bottom: 4px; }
.mk-dot.join { fill: var(--ink); stroke: var(--cream); }

/* v5: balanced wrapping, mobile sizes, portrait, values, FAQ */
h1, h2, h3, .display, .lede, blockquote { text-wrap: balance; }
p, li { text-wrap: pretty; }
@media (max-width: 700px) {
  .h-xl { font-size: clamp(30px, 8vw, 44px); letter-spacing: -.05em; }
  .h-lg { font-size: clamp(30px, 8.2vw, 46px); }
  .h-md { font-size: clamp(26px, 7vw, 36px); }
  .lede { font-size: 17px; }
  .mail { font-size: clamp(15px, 4.9vw, 28px); padding: 4px 16px 8px; letter-spacing: -.045em; }
  .qslide blockquote { font-size: clamp(22px, 6.2vw, 30px); }
  .stat b, #r-intro .stat b { font-size: 26px; }
}
.hero-grid { display: grid; gap: 36px; }
.portrait { margin: 0; max-width: 320px; aspect-ratio: 4 / 5; border-radius: 40px; overflow: hidden; background: var(--pink); }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.5fr .75fr; gap: 64px; align-items: end; } .portrait { max-width: none; } }
.vals { display: grid; gap: 14px; margin-top: 48px; grid-template-columns: 1fr; }
.val { border-radius: 32px; padding: 30px 30px 32px; }
.val h3 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -.035em; line-height: 1.1; font-weight: 800; padding-top: 22px; position: relative; }
.val h3::before { content: ''; position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--crimson); }
.val p { margin-top: 10px; font-size: 16px; line-height: 1.5; color: #33322e; }
@media (min-width: 700px) { .vals { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .vals { grid-template-columns: repeat(3, 1fr); } }
.faq { margin-top: 40px; max-width: 860px; }
.faq details { background: var(--cream); border-radius: 28px; padding: 6px 28px; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 800; font-size: 18px; letter-spacing: -.02em; padding: 18px 28px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 700; color: var(--crimson); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 0 22px; font-size: 16.5px; line-height: 1.55; max-width: 62ch; }
.faq summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 8px; }
.cta-band { display: grid; gap: 16px; justify-items: start; }

/* v6 logos */
.scale .bl { position: absolute; left: 8px; right: 8px; bottom: 10px; height: 34px; background: var(--cream); border-radius: 10px; display: grid; place-items: center; padding: 4px 6px; }
.scale .bl img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.scale em { font-size: 11px; letter-spacing: .04em; left: 8px; right: 4px; line-height: 1.15; }
@media (max-width: 700px) { .scale { gap: 8px; } .scale div { border-radius: 20px 20px 8px 8px; } .scale small { font-size: 12px; top: -26px; left: 0; } .scale em { font-size: 9px; } .scale .bl { left: 5px; right: 5px; height: 28px; } }
.logo.logo-img { width: 84px; height: 50px; border-radius: 12px; background: var(--cream); padding: 6px 8px; box-shadow: inset 0 0 0 1px rgba(21,21,21,.08); }
.logo.logo-img img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }

.aside .exh { font-weight: 800; font-size: 15px; margin-bottom: 10px; }
.aside .ex { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 15px; line-height: 1.4; }
.aside .ex dt { font-weight: 800; }
.aside .ex dd { margin: 0; }

.aside .gov { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: g; }
.aside .gov li { font-size: 14.5px; line-height: 1.35; padding-left: 34px; position: relative; counter-increment: g; }
.aside .gov li::before { content: counter(g); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--cream); font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.aside .gov b { display: block; font-size: 15.5px; }
.aside .govnote { margin-top: 14px; font-weight: 700; font-size: 14.5px; line-height: 1.4; }
.logo.logo-img { width: 76px; height: 44px; padding: 5px 8px; overflow: hidden; }
.logo.logo-img img { width: auto; height: auto; max-width: 56px; max-height: 30px; }
.as button { display: flex; align-items: center; gap: 16px; }
.as .atx { flex: 1; text-align: left; }
.alogo { flex: none; width: 64px; height: 40px; border-radius: 10px; background: var(--paper); display: grid; place-items: center; padding: 4px 6px; box-shadow: inset 0 0 0 1px rgba(21,21,21,.08); }
.alogo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.alogo.t { font-weight: 800; font-size: 12px; letter-spacing: -.02em; }
.scale em { left: 4px; right: 4px; bottom: 10px; text-align: center; font-size: 11px; letter-spacing: .03em; line-height: 1.15; }
.scale small { left: 0; right: 0; text-align: center; }
@media (max-width: 700px) { .scale em { font-size: 9px; left: 2px; right: 2px; letter-spacing: 0; } }
.vals { counter-reset: v; }
.val { counter-increment: v; }
.val h3 { padding-top: 0; }
.val h3::before { content: counter(v, decimal-leading-zero); position: static; display: block; width: auto; height: auto; background: none; border-radius: 0; color: var(--crimson); font-size: clamp(34px, 3.4vw, 46px); font-weight: 800; letter-spacing: -.05em; line-height: 1; margin-bottom: 14px; }
.alogo.dk { background: #500e5e; padding: 0; overflow: hidden; }
.alogo.dk img { width: 100%; height: 100%; object-fit: cover; }
.alogo.dk { padding: 7px 9px; }
.alogo.dk img { object-fit: contain; }
.next strong { font-size: clamp(20px, 5.2vw, 72px); white-space: nowrap; gap: 16px; }
.next strong .arrow, .next strong i { flex: none; }
/* v7 mobile fixes */
.rnode strong { overflow-wrap: normal; word-break: normal; hyphens: none; }
@media (max-width: 1000px) { .rnode strong { overflow-wrap: normal; } }
@media (max-width: 500px) { .rnode strong { font-size: 13px; letter-spacing: -.02em; } .rnode em { font-size: 12px; } }
@media (max-width: 700px) {
  .door svg { width: 96px; }
  .door h3 { padding-right: 84px; }
  .scale em { font-size: 10px; }
  .note, small { font-size: max(12px, 1em); }
  footer .wrap { gap: 4px 20px; }
  footer a { display: inline-flex; align-items: center; min-height: 44px; }
  .qctl button, .qctl .qbtn, .qctl > button { min-width: 44px; min-height: 44px; }
  #top.phero[style*="100svh"] { min-height: auto !important; padding: 150px 0 90px; }
}
.qdot { position: relative; }
.qdot::after { content: ''; position: absolute; inset: -16px -6px; }
.qdots { gap: 10px; }
.logo.logo-img { width: 88px; height: 48px; padding: 5px 8px; }
.logo.logo-img img { max-width: 72px; max-height: 36px; }
.alogo { width: 80px; height: 44px; padding: 4px 6px; }
.alogo.dk { padding: 6px 8px; }
@media (max-width:700px){ .mail { padding-top: 12px; padding-bottom: 12px; } }
a.mail { font-size: clamp(15px, 4.6vw, 56px); white-space: nowrap; word-break: normal; overflow-wrap: normal; }
.contact-lines a { min-height: 44px; display: inline-flex; align-items: center; }
.aside .chipset { display: flex; flex-wrap: wrap; gap: 6px; }
.aside .chipset span { font-weight: 700; font-size: 13.5px; padding: 7px 12px; border-radius: 999px; line-height: 1.1; }
.aside .gov li { padding-top: 2px; }

/* Hero chart: dedicated static layout on mobile */
.chartcard .mob { display: none; }
@media (max-width: 700px) {
  .chartcard { overflow: hidden; padding: 22px 14px 20px; }
  .chartcard .dsk { display: none; }
  .chartcard .mob { display: block; width: 100%; height: auto; overflow: visible; }
  .chartcard .mob .ln { stroke-width: 3.2; }
  .chartcard .mob .ln-grid { stroke-width: 1; stroke-dasharray: 1 6; }
  .chartcard .mob .ln-lbl { font-size: 11px; }
  .chartcard .mob .ln-sub { font-size: 8.5px; }
  .chartcard .mob .mk-dot { stroke-width: 3; }
  .chartcard .cap { flex-direction: column; gap: 4px; margin-top: 14px; }
  .chartcard .cap span { overflow-wrap: anywhere; }
}

/* Outcome cards: number beside headline on narrow layouts */
@media (max-width: 900px) {
  .out { display: grid; grid-template-columns: auto 1fr; column-gap: 22px; align-items: center; padding: 26px 24px; border-radius: 30px; }
  .out strong { grid-row: 1 / span 2; font-size: clamp(48px, 14vw, 72px); min-width: 1.5em; }
  .out h3 { margin-top: 0; align-self: end; }
  .out p { margin-top: 4px; align-self: start; }
}
@media (max-width: 900px) {
  .out { grid-template-columns: clamp(92px, 26vw, 120px) 1fr; }
  .out strong { min-width: 0; font-size: clamp(44px, 12.5vw, 60px); }
}

/* Doors: compact rows on mobile */
@media (max-width: 700px) {
  .doors { gap: 10px; margin-top: 36px; }
  .door { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; column-gap: 16px; min-height: 0; padding: 18px 18px 18px 16px; border-radius: 26px; }
  .door:hover { transform: none; }
  .door svg { position: static; width: 52px; height: 52px; grid-column: 1; grid-row: 1; }
  .door > div:empty { display: none; }
  .door > div:not(:empty) { grid-column: 2; grid-row: 1; min-width: 0; }
  .door h3 { font-size: 21px; letter-spacing: -.04em; line-height: 1.05; padding-right: 0; }
  .door p { margin-top: 4px; font-size: 14px; line-height: 1.35; max-width: none; }
  .door .go { grid-column: 3; grid-row: 1; font-size: 0; gap: 0; }
  .door .go i { width: 36px; height: 36px; font-size: 16px; }
}

/* How-I-work cards: tighter on mobile, number beside heading */
@media (max-width: 700px) {
  .how { gap: 10px; margin-top: 36px; }
  .how article { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: baseline; padding: 24px 22px; border-radius: 28px; min-height: 0; }
  .how article:hover { transform: none; }
  .how h3 { margin: 0 0 10px; font-size: 26px; }
  .how p { grid-column: 1 / -1; font-size: 15px; max-width: none; }
  .how .outp { margin-top: 12px; }
}

/* Quote slider: small dots, large tap area kept via ::after */
.qctl .qdot { min-width: 0; min-height: 0; width: 10px; height: 10px; }
.qctl .qdot.on { transform: scale(1.2); }
.qdot::after { inset: -17px -6px; }
@media (max-width: 700px) {
  .qctl { margin-top: 28px; gap: 10px; }
  .qprev, .qnext { width: 40px; height: 40px; min-width: 40px; min-height: 40px; font-size: 15px; }
}
@media (max-width: 700px) { .qctl .qprev, .qctl .qnext { width: 40px; height: 40px; min-width: 40px; min-height: 40px; } }

.edu .eduLogo { display: block; height: 40px; width: auto; max-width: 140px; object-fit: contain; object-position: left; margin-bottom: 18px; }
@media (max-width: 1000px) { .edu { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 700px) { .edu { grid-template-columns: 1fr; gap: 10px; } .edu div { padding: 20px 22px; border-radius: 26px; } .edu .eduLogo { height: 32px; margin-bottom: 12px; } }

/* Education cards: logo chip beside text, as on Experience */
.edu { grid-template-columns: repeat(2, 1fr); gap: 14px; }
.edu > div { display: flex; align-items: center; gap: 18px; padding: 22px 26px; border-radius: 28px; }
.edu .eduChip { flex: none; width: 84px; height: 56px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px rgba(21,21,21,.08); display: grid; place-items: center; padding: 6px 10px; overflow: hidden; font-weight: 800; font-size: 15px; letter-spacing: -.03em; color: var(--ink); }
.edu .eduChip img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.edu .eduTxt { min-width: 0; }
.edu .eduTxt strong { font-size: 20px; }
@media (max-width: 700px) {
  .edu { grid-template-columns: 1fr; gap: 10px; }
  .edu > div { gap: 14px; padding: 14px 16px; border-radius: 22px; }
  .edu .eduChip { width: 70px; height: 46px; border-radius: 12px; }
  .edu .eduTxt strong { font-size: 17px; }
  .edu .eduTxt small { margin-top: 3px; font-size: 13px; }
}
.edu .eduChip img { max-height: 40px; max-width: 64px; }
@media (max-width: 700px) { .edu .eduChip img { max-height: 32px; max-width: 54px; } }
.edu .eduChip.lg { padding: 0; box-shadow: none; }
.edu .eduChip.lg img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }

/* One headline accent: red words on a yellow marker, on every page */
h1.display .hl { color: var(--crimson); --hl: var(--butter); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .06em; margin: 0 -.06em; }

/* Contact: CV request menu, revealed phone, copy buttons */
.contact-lines button, .contact-lines summary { background: var(--cream); border: 0; border-radius: 999px; padding: 14px 24px; font: inherit; font-weight: 800; font-size: 16px; min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; color: var(--ink); transition: background .25s ease; list-style: none; }
.contact-lines button:hover, .contact-lines summary:hover { background: var(--pink); }
.contact-lines summary::-webkit-details-marker { display: none; }
.contact-lines summary::after { content: '+'; margin-left: 10px; font-weight: 800; }
.cvreq[open] summary::after { content: '\2212'; }
.cvreq { position: relative; }
.cvopts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cvreq[open] { flex-basis: 100%; }
.cvopts a, .cvopts button { background: var(--ink); color: var(--cream); padding: 10px 18px; font-size: 14px; min-height: 40px; }
.cvopts a:hover, .cvopts button:hover { background: var(--crimson); color: var(--cream); }

/* Contact hero: portrait beside the text */
.chero { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.cphoto { margin: 0; width: 132px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--cream); }
.cphoto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; display: block; filter: grayscale(1); }
@media (min-width: 900px) {
  .chero { grid-template-columns: 1fr 340px; gap: 72px; }
  .cphoto { order: 2; width: 100%; aspect-ratio: 4 / 5; border-radius: 40px; }
  .cphoto img { object-position: 50% 30%; }
}

/* Home: employer logo strip */
.worked { padding: 6px 0 56px; }
.wlogos { list-style: none; display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; margin-top: 20px; padding: 0; }
.wlogos li { background: var(--cream); border-radius: 22px; padding: 16px 8px 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; box-shadow: inset 0 0 0 1px rgba(21,21,21,.06); }
.wlogos .wl { height: 44px; width: 100%; display: grid; place-items: center; }
.wlogos img { max-height: 40px; max-width: 86%; width: auto; height: auto; object-fit: contain; display: block; }
.wlogos li > span:last-child { font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; line-height: 1.2; }
@media (max-width: 1000px) { .wlogos { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px) { .worked { padding-bottom: 36px; } .wlogos { grid-template-columns: repeat(2, 1fr); gap: 8px; } .wlogos li { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 10px 14px; border-radius: 18px; } .wlogos .wl { width: 56px; height: 36px; flex: none; } .wlogos img { max-height: 30px; max-width: 54px; } .wlogos li > span:last-child { font-size: 12.5px; text-align: left; } }
@media (max-width: 700px) {
  .wlogos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wlogos li { min-width: 0; padding: 10px 10px; gap: 8px; }
  .wlogos .wl { width: 44px; }
  .wlogos img { max-width: 42px; max-height: 28px; }
  .wlogos li > span:last-child { font-size: 12px; min-width: 0; overflow-wrap: anywhere; }
}
@media (max-width: 700px) { .wlogos li { padding: 10px 8px; gap: 7px; } .wlogos li > span:last-child { font-size: 11.5px; overflow-wrap: normal; letter-spacing: -.01em; } }

/* About: What I offer, numbered rows */
.offers { list-style: none; padding: 0; margin: 44px 0 0; border-top: 1.5px solid rgba(21,21,21,.14); }
.offers li { display: grid; grid-template-columns: 72px 1fr; align-items: baseline; gap: 12px; padding: 22px 0; border-bottom: 1.5px solid rgba(21,21,21,.14); }
.offers li span { font-size: 14px; font-weight: 800; color: var(--crimson); letter-spacing: .02em; }
.offers h3 { font-size: clamp(24px, 3.4vw, 44px); letter-spacing: -.05em; line-height: 1.05; font-weight: 800; }
@media (max-width: 700px) { .offers { margin-top: 30px; } .offers li { grid-template-columns: 38px 1fr; padding: 16px 0; gap: 8px; } .offers h3 { font-size: 22px; } }

.offers-note { margin-top: 26px; font-size: clamp(17px, 1.6vw, 20px); font-weight: 700; color: var(--ink); }

/* What I offer: grouped, numbered straight through */
.offgroups { margin-top: 36px; }
.offgroup { margin-top: 40px; }
.offgroup:first-child { margin-top: 0; }
.offgroup > h3 { font-size: clamp(17px, 1.6vw, 20px); font-weight: 800; letter-spacing: -.02em; color: var(--muted); }
.offgroup .offers { margin-top: 12px; }
.offers h4 { font-size: clamp(24px, 3.4vw, 44px); letter-spacing: -.05em; line-height: 1.05; font-weight: 800; }
@media (max-width: 700px) { .offgroups { margin-top: 26px; } .offgroup { margin-top: 28px; } .offers h4 { font-size: 22px; } }
.offers h4 { margin: 0; }

/* What I offer: three tinted cards */
.ocards { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 44px; }
.ocard { border-radius: 36px; padding: 34px 32px 30px; }
.ocard h3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.05em; line-height: 1; font-weight: 800; margin-bottom: 26px; }
.ocard ol { list-style: none; margin: 0; padding: 0; }
.ocard li { display: grid; grid-template-columns: 34px 1fr; align-items: baseline; gap: 6px; padding: 12px 0; border-top: 1.5px solid rgba(21,21,21,.14); }
.ocard li span { font-size: 13px; font-weight: 800; color: var(--crimson); }
.ocard h4 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
@media (min-width: 900px) { .ocards { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
@media (max-width: 700px) { .ocards { margin-top: 28px; gap: 10px; } .ocard { padding: 24px 22px 18px; border-radius: 28px; } .ocard h3 { margin-bottom: 14px; } }
@media (min-width: 900px) { .ocard h3 { min-height: 2em; } }

/* Experience: company names must wrap, not overflow, on phones */
.job-top h2 { min-width: 0; overflow-wrap: break-word; }
@media (max-width: 560px) {
  .job-top { flex-direction: column; align-items: flex-start; gap: 14px; }
  .job h2 { font-size: clamp(28px, 8.4vw, 36px); }
}

/* Hold the page until script and fonts are ready, so nothing flashes alone */
.js body { opacity: 0; }
.js.ready body { opacity: 1; transition: opacity .3s ease; }
@media (prefers-reduced-motion: reduce) { .js body { opacity: 1; } }

/* Keep swipe cards inside their own width */
@media (max-width: 900px) {
  .mpanels .mpanel { grid-template-columns: minmax(0, 1fr); min-width: 0; box-sizing: border-box; padding: 28px 22px; overflow: hidden; }
  .mpanels .mpanel > div { min-width: 0; }
  .mpanels .mpanel * { overflow-wrap: anywhere; }
  .mpanels .aside, .mpanels .leave { padding-left: 22px; padding-right: 22px; }
}
