/* ==========================================================================
   home.css  |  Home page layout. Requires tokens.css, components.css and
   site-type.css. Every color, space, radius and motion value is a token.
   ========================================================================== */

.small { font-size: var(--text-sm); }
/* Eyebrows and all-caps labels share the link underline color. */
.label { color: var(--accent); font-weight: var(--fw-semibold); }
.muted { color: var(--ink-muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.home-block { display: flex; flex-direction: column; gap: var(--space-6); scroll-margin-top: var(--space-6); }
.home-block + .home-block { margin-top: var(--space-9); }
.block-head { display: flex; flex-direction: column; gap: var(--space-3); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Icons (sprig and Off the clock set) */
.icon { flex: none; display: inline-block; vertical-align: -0.15em; fill: none; stroke: currentColor; stroke-width: var(--stroke); stroke-linecap: round; stroke-linejoin: round; color: var(--illustration); opacity: .8; }
.divider .icon { width: 21px; height: 21px; }
.footer .sprig-footer { width: 18px; height: 18px; opacity: .7; }
.ui-icon { flex: none; width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Top bar: name on the left, email, LinkedIn and the theme toggle on the right.
   An accent strip along the top of the page and a hairline under the bar set it apart from the hero. */
body { border-top: 4px solid var(--accent); }
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-5); padding-block: var(--space-4); border-bottom: var(--rule) solid var(--line); }
.topbar__name { font-size: var(--text-xl); font-weight: var(--fw-bold); letter-spacing: var(--track-heading); line-height: var(--lh-tight); color: var(--ink); }
.topbar__nav { display: flex; align-items: center; gap: var(--space-4); }
.topbar__links { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-5); }
.topbar__links a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--text-sm); font-weight: var(--fw-medium); }

/* Hero */
.hero { display: flex; flex-direction: column; gap: var(--space-5); padding-top: var(--space-8); }
.hero .t-h1 { max-width: 22ch; }
.hero__body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--space-7); align-items: start; margin-top: var(--space-3); }
.plain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.arrow-link { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; font-size: var(--text-sm); font-weight: var(--fw-medium); }
.arrow-link .ui-icon { color: var(--accent); }

/* Skyline, between the hero and the in-page nav */
.hero__art { max-width: 900px; width: 100%; margin: var(--space-7) auto 0; }
.skyline-controls { display: flex; justify-content: flex-end; }

/* On this page */
.jump { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); padding-block: var(--space-4); margin-block: var(--space-6) var(--space-9); border-block: var(--rule) solid var(--line); }
.jump .tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.jump a.tag { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding-inline: var(--space-4); border-radius: 999px; font-size: var(--text-sm); text-decoration: none; color: var(--ink); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 7%, var(--bg)); transition: background-color var(--dur) var(--ease); }
.jump a.tag:hover { background: color-mix(in srgb, var(--accent) 16%, var(--bg)); border-color: var(--accent); }
.jump a.tag .ui-icon { color: var(--accent); }

/* The problem: handwritten note */
.hand { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-2) var(--space-3); color: var(--accent); transform: rotate(-2deg); transform-origin: left center; margin-block: var(--space-2) calc(-1 * var(--space-2)); padding-left: var(--space-2); }
.hand svg { flex: none; width: 132px; height: 72px; margin-bottom: calc(-1 * var(--space-5)); }

/* The problem: disclosure tiles */
.tiles { display: flex; flex-direction: column; gap: var(--space-4); }
.tile { border: var(--rule) solid var(--line); border-radius: var(--radius-m); background: var(--bg); transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.tile[data-open="true"] { border-color: var(--accent); background: var(--surface); }
.tile__h { margin: 0; font-size: inherit; text-wrap: pretty; }
.tile__btn { width: 100%; display: flex; align-items: center; gap: var(--space-5); padding: var(--space-5) var(--space-6); background: none; border: 0; border-radius: var(--radius-m); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background-color var(--dur) var(--ease); }
.tile[data-open="false"]:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.tile[data-open="false"] .tile__btn:hover { background: var(--surface); }
.tile__btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--radius-s); }
.tile__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.tile__icon { flex: none; width: 2.25rem; height: 2.25rem; color: var(--accent); }
.tile__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.tile[data-open="true"] .tile__icon .v { display: none; }
.tile__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur) var(--ease); }
.tile[data-open="true"] .tile__panel { grid-template-rows: 1fr; }
.tile__clip { min-height: 0; overflow: hidden; }
.tile__body { display: flex; flex-direction: column; gap: var(--space-5); margin-inline: var(--space-6); padding-block: var(--space-5) var(--space-6); border-top: var(--rule) solid var(--line); }
.tile__core { display: flex; flex-direction: column; gap: var(--space-2); }

/* Placeholder pills: anything in [RESULT: …], [STORY: …], [PORTFOLIO PIECE: …], [CONFIRM: …] */
.ph { display: inline; font-size: var(--text-sm); line-height: 1.9; color: var(--ink); background: var(--surface); border: var(--rule) dashed var(--accent); border-radius: 999px; padding: 0.15em 0.7em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.tile[data-open="true"] .ph { background: var(--bg); }

/* Where I'm most valuable */
.valuable { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(30rem, 100%), 1fr)); gap: var(--space-6) var(--space-7); }
.valuable__item { display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-4); border-top: 2px solid var(--accent); }
.valuable__item h3 { margin: 0; }

/* Not a fit */
.notfit { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(18.75rem, 100%), 1fr)); gap: var(--space-5); }
.notfit__card { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); border: var(--rule) dashed var(--ink-muted); border-radius: var(--radius-m); }
.notfit__card .ui-icon { width: 1.5rem; height: 1.5rem; color: var(--accent); stroke-width: 1.75; }
.notfit__role { margin: 0; color: var(--ink-muted); text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

/* Off the clock: dot and hairline over each item, as in the problem tiles' family */
.life { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.life__item { display: flex; flex-direction: column; gap: var(--space-3); }
.dot-rule { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-2); }
.dot-rule::after { content: ""; flex: 1; height: var(--rule); background: var(--line); }
.dot-rule__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); flex: none; }
.life__heading { margin: 0; font-size: var(--text-xl); line-height: var(--lh-snug); letter-spacing: var(--track-heading); }
.life__note { margin-top: var(--space-4); }

/* Closing */
.closing { display: flex; flex-direction: column; gap: var(--space-4); background: var(--accent); color: var(--on-accent); border-radius: var(--radius-m); padding: var(--space-7) var(--space-6); margin-top: var(--space-9); }
.closing h2, .closing p { color: var(--on-accent); }
.closing__links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
.closing__links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: var(--fw-semibold); color: var(--on-accent); text-decoration-color: var(--on-accent); }
.closing__links a:hover { text-decoration-thickness: 3px; }
.closing :focus-visible { outline-color: var(--on-accent); }

/* Site footer */
.footer p { text-wrap: balance; }
.footer .footer__tagline { font-size: var(--text-base); font-weight: var(--fw-semibold); letter-spacing: var(--track-heading); color: var(--ink); }

@media (max-width: 960px) {
  .hero__body { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .life { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  }
@media (max-width: 560px) {
    .tile__btn { padding: var(--space-4); gap: var(--space-3); }
  .tile__body { margin-inline: var(--space-4); }
  .closing { padding: var(--space-6) var(--space-5); }
}

/* Print: every panel open, no chrome */
@media print {
  .topbar, .jump, .hero__art, .skyline-controls { display: none; }
  .tile__panel, .tile__panel[hidden] { display: grid !important; grid-template-rows: 1fr !important; content-visibility: visible !important; }
  .tile__icon { display: none; }
  .tile { break-inside: avoid; }
}

/* Icons on the problem tiles and the "most valuable" items */
.valuable__head { display: flex; align-items: center; gap: var(--space-3); }
.icon-badge { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, var(--bg)); color: var(--accent); }
.icon-badge .ui-icon { width: 1.25rem; height: 1.25rem; stroke-width: 1.75; }
.icon-badge--lg { width: 3rem; height: 3rem; }
.icon-badge--lg .ui-icon { width: 1.5rem; height: 1.5rem; }
.tile[data-open="true"] .icon-badge { background: var(--bg); }
@media (max-width: 560px) { .icon-badge--lg { width: 2.5rem; height: 2.5rem; } .icon-badge--lg .ui-icon { width: 1.25rem; height: 1.25rem; } }

/* Stage track: a line of stops, the range in the accent */
.track { margin-top: var(--space-3); }
.track__list { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.track__stop { position: relative; padding-top: var(--space-5); text-align: center; font-size: var(--text-xs); line-height: var(--lh-snug); color: var(--ink-muted); }
.track__stop::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 3px; background: linear-gradient(to right, var(--l) 50%, var(--r) 50%); }
.track__stop:first-child::before { left: 50%; background: var(--r); }
.track__stop:last-child::before { right: 50%; background: var(--l); }
.track__stop::after { content: ""; position: absolute; top: 0; left: 50%; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--ink-muted); }
.track__stop.is-in { color: var(--ink); font-weight: var(--fw-semibold); }
.track__stop.is-in::after { background: var(--accent); box-shadow: none; }

/* "Where I'm most valuable" heading: two lines on wide screens */
#icp .t-h2 { max-width: none; font-size: min(var(--h2-size), max(1.5rem, 3.3vw)); }

/* Top bar email button */
.button--sm { padding: 0 var(--space-4); font-size: var(--text-sm); }
.topbar__links a.button { color: var(--on-accent); text-decoration: none; }

/* How I solve it: numbered steps */
.tile__how { display: flex; flex-direction: column; gap: var(--space-3); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.step { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5); background: var(--bg); border-radius: var(--radius-m); border-top: 3px solid var(--accent); }
.step__num { font-size: var(--text-sm); font-weight: var(--fw-bold); color: var(--accent); font-variant-numeric: tabular-nums; }
.step__title { font-weight: var(--fw-semibold); line-height: var(--lh-snug); color: var(--ink); }
.step__text { font-size: var(--text-sm); line-height: var(--lh-snug); color: var(--ink-muted); }


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

/* Hero, problem-first: story on the left, the five problems on the right */
.hero__story { display: flex; flex-direction: column; gap: var(--space-5); }
.hero__intro { color: var(--ink); }
.hero__pull { color: var(--ink); }
/* Highlighter marks on the roles and capabilities in the intro */
mark.hl { color: var(--ink); font-weight: var(--fw-semibold); background: linear-gradient(transparent 58%, color-mix(in srgb, var(--accent) 30%, transparent) 58%); padding: 0 0.1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.chooser { display: flex; flex-direction: column; gap: var(--space-2); }
.chooser .hand.t-hand { margin: 0 0 var(--space-3); font-size: clamp(1.375rem, 2vw, 1.625rem); }
.chooser .hand span { white-space: nowrap; }
.chooser .hand svg { width: 96px; height: 52px; margin-bottom: 0; }
.chooser__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.chooser__item { display: flex; align-items: center; gap: var(--space-3); min-height: 44px; padding: var(--space-2) var(--space-4) var(--space-2) var(--space-2); border: var(--rule) solid var(--line); border-radius: var(--radius-m); background: var(--bg); color: var(--ink); text-decoration: none; font-weight: var(--fw-semibold); transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.chooser__item:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--bg)); }
.chooser__item .icon-badge { width: 2.25rem; height: 2.25rem; }
.chooser__label { flex: 1; }
.chooser__item > .ui-icon { color: var(--accent); }
.tile { scroll-margin-top: var(--space-5); }
main { padding-bottom: var(--space-8); }

/* Hero foot: Hire me as and Experience side by side, quiet; "let's talk" smaller still */
.hero-meta { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-5); padding-top: var(--space-5); border-top: var(--rule) solid var(--line); }
.hero-meta__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-7); }
.hero-meta__col { display: flex; flex-direction: column; gap: var(--space-1); }
.hero-meta__items { font-size: var(--text-sm); font-weight: var(--fw-medium); color: var(--ink); max-width: none; }
.hero-meta__aside { font-size: var(--text-xs); color: var(--ink-muted); }
.hero-meta__aside a { color: var(--ink-muted); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hero-meta__aside a:hover { color: var(--ink); }

/* A quieter emphasis than the highlighter: ink text with a thin accent underline */
em.em-key { font-style: normal; color: var(--ink); font-weight: var(--fw-medium); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }

@media (max-width: 560px) { .hero-meta__cols { grid-template-columns: 1fr; } }

/* On this page: the same cards as the hero shortcuts, four across */
.jump { display: block; border-block: 0; padding-block: 0; }
.jump > .label { display: block; margin-bottom: var(--space-3); }
.jump__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: var(--space-2) var(--space-3); }
.jump__list li { display: flex; }
.jump__list .chooser__item { flex: 1; }

/* Chips (Customer, Product, Team, Hire me as) */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { font-size: var(--text-xs); font-weight: var(--fw-semibold); line-height: var(--lh-snug); color: var(--ink); padding: var(--space-1) var(--space-3); border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, var(--bg)); border: var(--rule) solid color-mix(in srgb, var(--accent) 40%, var(--line)); }
.chips--roles .chip { font-size: var(--text-sm); padding: var(--space-1) var(--space-4); }

/* What I'm looking for: a bold one-line answer per item */
.valuable__item { gap: var(--space-3); }
.valuable__headline { font-size: var(--text-lg); font-weight: var(--fw-semibold); line-height: var(--lh-snug); color: var(--ink); }
.roles-band { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); padding: var(--space-5); border-radius: var(--radius-m); background: var(--surface); }
.roles-band .hero-meta__aside { flex-basis: 100%; }

/* On this page: compact bordered text links that read as jump links */
.jump__list { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.jump__list li { display: block; }
.jump__link { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-4); border: var(--rule) solid var(--line); border-radius: var(--radius-m); background: var(--bg); color: var(--ink); font-size: var(--text-sm); font-weight: var(--fw-medium); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: border-color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease); }
.jump__link:hover { border-color: var(--accent); text-decoration-color: var(--accent); }
.jump__link .ui-icon { color: var(--accent); }

/* Hire me as in What I'm looking for: plain text, like the hero */
.roles-band__roles { font-weight: var(--fw-semibold); color: var(--ink); max-width: none; }

/* Get to know me: playful icon badges */
.life__badge { margin-bottom: var(--space-2); }
.life__badge .ui-icon { stroke-width: 1.5; }
.life__note.small { font-size: var(--text-base); }

/* Hero alignment: the note sits in a short row of its own above the shortcuts,
   so the story on the left starts level with the first shortcut. */
.hero__body { grid-template-areas: ". note" "story list"; row-gap: var(--space-2); margin-top: var(--space-4); }
.hero__story { grid-area: story; }
.chooser { display: contents; }
.chooser .hand.t-hand { grid-area: note; align-self: end; margin: 0; flex-wrap: nowrap; align-items: flex-end; }
.chooser .hand svg { width: 64px; height: 36px; margin-bottom: -10px; transform: scaleY(0.9); }
.chooser__list { grid-area: list; }
@media (max-width: 960px) {
  .hero__body { grid-template-areas: "story" "note" "list"; row-gap: var(--space-3); }
  .chooser .hand.t-hand { margin-top: var(--space-4); }
}


/* Dark mode: a stronger, more opaque yellow-orange highlighter */
:root[data-theme="dark"] mark.hl { background: linear-gradient(transparent 58%, color-mix(in srgb, var(--accent) 42%, transparent) 58%); }

/* Skyline inside Get to know me */
.life__art { margin: 0 auto; }
.jump { margin-block: var(--space-7) var(--space-9); }

/* Off the clock: skyline first, then a small handwritten heading over the three items */
.life-block .life__title { margin: var(--space-5) 0 0; font-size: clamp(1.75rem, 3vw, 2.25rem); max-width: none; }
.life-block .life__art { margin: 0 auto; }
