/* johnny.style: "Midnight", clean & editorial on a dark background
   Colors and type live in the variables below; change them here to restyle the whole site. */

:root {
  color-scheme: dark;

  --bg: #14161c;          /* page background: dark ink */
  --surface: #1c1f27;     /* cards */
  --ink: #eee9e1;         /* main text */
  --ink-soft: #a8a196;    /* secondary text */
  --line: #2e323c;        /* hairlines */

  --accent: #cf9033;      /* antique gold: bars, highlights */
  --accent-ink: #e2b062;  /* lighter gold for text and links */
  --sun: #e07a5f;         /* coral */
  --sage: #7fb59b;
  --plum: #b58bc9;        /* lavender */

  --peach: #2b2220;       /* dark tints for tiles */
  --butter: #2a2619;
  --mint: #1c2925;
  --lilac: #262131;
  --sky: #1b2430;

  --radius: 6px;
  --radius-sm: 4px;
  --shadow: none;
  --shadow-lift: 0 12px 32px rgba(0, 0, 0, .35);
  --topbar: rgba(20, 22, 28, .88);
  --track: #2e323c;
  --track-on-tint: rgba(255, 255, 255, .12);
  --chip: #252932;
  --muted-bg: #191c23;
  --head-weight: 600;

  --font-head: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;   /* card titles, taglines, numbers */
  --font-display: "Playfair Display", Georgia, serif;                     /* name and big titles only */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 10px; z-index: 100;
}
.skip:focus { left: 12px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--topbar);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex; align-items: center; gap: 20px;
  min-height: 60px;
}
.brand {
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand span { color: var(--accent); }
.nav {
  display: flex; gap: 4px; margin-left: auto;
  overflow-x: auto; scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-weight: 700; font-size: .92rem;
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--peach); color: var(--ink); }

/* ---------- Sections ---------- */
section { padding: clamp(56px, 9vw, 96px) 0; }
section + section { border-top: 1px dashed var(--line); }
.eyebrow {
  display: inline-block;
  font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--peach);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.lede { color: var(--ink-soft); font-size: 1.08rem; }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(48px, 8vw, 88px); }
.hero-grid {
  display: grid; gap: 40px;
  grid-template-columns: 1.5fr 1fr; align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  margin-bottom: .25em;
}
.hero h1.name { margin-bottom: .55em; font-size: clamp(1.9rem, 8.6vw, 4.4rem); white-space: nowrap; }
.hero .nick { color: var(--ink-soft); white-space: nowrap; }
.hero .nick .sep { color: var(--accent); margin: 0 .12em; }


/* Me in 3 words: taglines under the name, one description open at a time */
.taglines { margin: -.2em 0 28px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.tagline {
  font: inherit; font-family: var(--font-head); font-weight: var(--head-weight, 600);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.3;
  color: var(--ink); background: none; border: 0; padding: 2px 0; cursor: pointer;

  display: inline-flex; align-items: baseline; gap: 8px;
  transition: color .15s;
}
.tagline::after {
  content: "+"; font-family: var(--font-body); font-size: .8em; font-weight: 400;
  color: var(--accent-ink); display: inline-block; transition: transform .2s;
}
.tagline:hover { color: var(--accent-ink); }
.tagline span { text-decoration: underline 1px dotted var(--accent); text-underline-offset: 6px; }
.tagline[aria-expanded="true"] { color: var(--accent-ink); }
.tagline[aria-expanded="true"] span { text-decoration-style: solid; }
.tagline[aria-expanded="true"]::after { transform: rotate(45deg); }
.tag-panel {
  margin-top: 16px; max-width: 54ch; padding-left: 16px;
  border-left: 2px solid var(--accent);
  animation: pop .3s ease both;
}
.tag-panel p { margin: 0; color: var(--ink-soft); }
.tag-panel .tag-word {
  font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 4px;
}

/* Photo: portrait with an offset block of color behind it */
.hero-photo {
  position: relative; margin: 0; justify-self: end;
  width: min(100%, 360px); aspect-ratio: 4 / 5;
}
.hero-photo::before {
  content: ""; position: absolute; inset: 0;
  transform: translate(16px, 16px);
  background: var(--peach); border-radius: var(--radius);
}
.hero-photo img {
  position: relative; display: block; width: 100%; height: 100%;
  object-fit: cover; border-radius: var(--radius);
}
.hero-photo .placeholder { display: none; }
.hero-photo.empty img { display: none; }
.hero-photo.empty .placeholder {
  position: relative; display: grid; place-content: center; text-align: center; height: 100%;
  border: 1.5px dashed var(--ink-soft); border-radius: var(--radius); background: var(--surface);
  color: var(--ink-soft); font-weight: 700;
}
.hero-photo.empty .placeholder small { font-weight: 400; opacity: .8; }

/* ---------- Contact icons ---------- */
.socials { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.socials a, .socials button {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 14px 8px 10px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  font: inherit; font-weight: 700; font-size: .92rem; text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.socials a:hover, .socials button:hover {
  transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink);
}
.socials svg { width: 22px; height: 22px; flex: none; }
.socials .ig svg { color: #d6336c; }
.socials .snap svg { color: #e0b400; }
.socials .wa svg { color: #1fa855; }
.socials .li svg { color: #0a66c2; }
.socials .dc svg { color: #5865f2; }
.socials .gh svg { color: var(--ink); }
.socials .ph svg, .socials .em svg { color: var(--accent); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px;
  font-weight: 700; font-size: .92rem; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 200;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Abbreviations and terms with tooltips (hover, tap, keyboard) ---------- */
.tip {
  position: relative;
  text-decoration: underline dotted var(--accent);
  text-underline-offset: 3px;
  cursor: help;
  border-radius: 4px;
}
.tip::after {
  content: attr(data-full);
  position: absolute; left: 50%; bottom: calc(100% + 8px);
  transform: translate(calc(-50% + var(--shift, 0px)), 4px);
  width: max-content; max-width: min(260px, 80vw);
  background: var(--ink); color: var(--bg);
  font-family: var(--font-body); font-size: .82rem; font-weight: 600; line-height: 1.35;
  text-align: center; white-space: normal;
  padding: 7px 11px; border-radius: 10px;
  opacity: 0; pointer-events: none; z-index: 20;
  transition: opacity .15s, transform .15s;
}
.tip:hover::after, .tip:focus::after, .tip.open::after {
  opacity: 1; transform: translate(calc(-50% + var(--shift, 0px)), 0);
}
/* Definitions are a sentence long, so they read better left-aligned and wider. */
dfn.tip { font-style: normal; }
dfn.tip::after { width: min(280px, 80vw); text-align: left; font-weight: 500; }

/* ---------- Work ---------- */

/* ---------- About note ---------- */
.about-note {
  margin-top: 28px; display: grid; gap: 12px;
  color: var(--ink-soft); font-size: 1rem;
}
.about-note p { margin: 0; }
.about-note strong { color: var(--ink); }

/* ---------- Me in 3 words (option A: flip cards) ---------- */
.words { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
.word {
  display: block; width: 100%; perspective: 1000px; border: 0; padding: 0; background: none; font: inherit; color: inherit;
  text-align: left; cursor: pointer; min-height: 260px;
}
.word-inner {
  display: block; position: relative; height: 100%; min-height: 260px;
  transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.word[aria-pressed="true"] .word-inner { transform: rotateY(180deg); }
.word-face {
  position: absolute; inset: 0; border-radius: var(--radius); padding: 26px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.word-front { background: var(--tint); justify-content: space-between; }
.word-back { background: var(--surface); transform: rotateY(180deg); justify-content: center; }
.word-front .emoji { font-size: 2.4rem; line-height: 1; }
.word .wt { display: block; font-family: var(--font-head); font-weight: 600; line-height: 1.15; }
.word-front .wt { font-size: clamp(1.9rem, 3.4vw, 2.3rem); }
.word-front .tag { display: block; }
.word-front .tag { font-weight: 800; color: var(--ink-soft); }
.word-front .hint { font-size: .82rem; font-weight: 700; color: var(--ink-soft); opacity: .8; }
.word-back p { margin: 0; font-size: 1rem; }
.word-back .wt { font-size: 1.3rem; color: var(--deep); margin-bottom: .5em; }
.word:hover .word-front { transform: translateY(-3px); }
.word-front { transition: transform .2s; }

/* ---------- Personality preview (option A: mini bars) ---------- */
.persona-link {
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
  text-decoration: none; color: inherit; margin-top: 28px;
  transition: transform .2s, box-shadow .2s;
}
.persona-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); color: inherit; }
.persona-link .more { font-weight: 800; color: var(--accent-ink); }
.type-badge {
  display: grid; place-items: center; text-align: center;
  width: 140px; aspect-ratio: 1; border-radius: 50%;
  background: var(--lilac); font-family: var(--font-head);
}
.type-badge b { font-size: 1.9rem; line-height: 1; }
.type-badge small { font-family: var(--font-body); font-size: .75rem; font-weight: 700; color: var(--ink-soft); }

/* Percentile bars (shared with the Personality page) */
.bars { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.bar { display: grid; grid-template-columns: minmax(130px, 34%) 1fr 3.2ch; gap: 12px; align-items: center; }
.bar .label { font-weight: 700; line-height: 1.2; }
.bar .label small { display: block; font-weight: 600; font-size: .74rem; color: var(--ink-soft); }
.bar .track {
  position: relative; height: 12px; border-radius: 6px; background: var(--track);
}
.bar .fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: calc(var(--p) * 1%); min-width: 4px;
  background: var(--accent); border-radius: 0 4px 4px 0;
}
.bar .track::after { /* 50th percentile: the average person */
  content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px;
  background: var(--ink); opacity: .45; border-radius: 1px;
}
.bar .value { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.bar-key { font-size: .8rem; color: var(--ink-soft); margin-top: 12px; display: flex; align-items: center; gap: 8px; }
.bar-key i { display: inline-block; width: 2px; height: 14px; background: var(--ink); opacity: .45; }

/* ---------- Strengths & challenges ---------- */
.sc-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; margin-top: 28px; }
.sc-col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; }
.sc-col h3 .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); }
.sc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.sc-list li { background: var(--surface); border-radius: var(--radius-sm); padding: 16px 18px; box-shadow: var(--shadow); }
.sc-list h4 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 800; margin: 0 0 4px; }
.sc-list p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
.sc-list .fix { margin-top: 6px; font-size: .9rem; color: var(--ink); }
.sc-list .fix b { color: var(--sage); }

/* ---------- Quotes ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 28px 0 20px; }
.tab {
  font: inherit; font-weight: 800; font-size: .92rem; cursor: pointer;
  border: 2px solid var(--line); background: var(--surface); color: var(--ink-soft);
  padding: 8px 16px; border-radius: 999px; min-height: 44px;
  transition: background .2s, color .2s, border-color .2s;
}
.tab:hover { border-color: var(--accent); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.quotes { columns: 2 320px; column-gap: 18px; }
.quotes[hidden] { display: none; }
.quote {
  break-inside: avoid; margin: 0 0 18px;
  background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  padding: 20px 22px 20px 52px; position: relative;
  font-size: 1.02rem;
  animation: pop .35s ease both;
}
.quote::before {
  content: "\201C"; position: absolute; left: 16px; top: 2px;
  font-family: var(--font-head); font-size: 3.2rem; line-height: 1; color: var(--q, var(--accent));
}
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Hobbies ---------- */
.legend { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-soft); margin-top: 10px; }
.chip-now-demo { display: inline-block; width: 22px; height: 14px; border-radius: 3px; background: var(--sun); }
.hobbies { display: grid; gap: 14px; margin-top: 28px; grid-template-columns: 1fr 1fr; align-items: start; }
.hobby {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
}
.hobby summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  font-family: var(--font-head); font-size: 1.25rem; font-weight: 600;
}
.hobby summary::-webkit-details-marker { display: none; }
.hobby summary .ico {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--tint); font-size: 1.4rem; flex: none;
}
.hobby summary .count { margin-left: auto; font-family: var(--font-body); font-size: .8rem; font-weight: 800; color: var(--ink-soft); white-space: nowrap; }
.hobby summary .chev { width: 22px; height: 22px; transition: transform .25s; flex: none; color: var(--ink-soft); }
.hobby[open] summary .chev { transform: rotate(180deg); }
.hobby .body { padding: 0 20px 20px; }
.hobby .group { margin-top: 12px; }
.hobby .group h4 {
  font-family: var(--font-body); font-size: .75rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-soft); margin: 0 0 8px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li {
  padding: 5px 12px; border-radius: 999px; font-size: .9rem; font-weight: 700;
  background: var(--chip); color: var(--ink-soft);
}
.chips li.now { background: var(--sun); color: var(--ink); }
.chips li.now .tip { text-decoration-color: currentColor; } /* gold dots vanish on coral */
.chips li.top { box-shadow: 0 0 0 2px var(--ink) inset; }
.hobby .note { font-size: .9rem; color: var(--ink-soft); margin: 10px 0 0; }

/* ---------- Footer ---------- */
footer { padding: 40px 0 56px; text-align: center; color: var(--ink-soft); font-size: .9rem; }

/* ---------- Personality page ---------- */
.back { font-weight: 800; text-decoration: none; }
.domains-lg { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
.domain-tile { background: var(--tint); border-radius: var(--radius); padding: 22px; }
.domain-tile .num { font-family: var(--font-head); font-size: 2.8rem; font-weight: 700; line-height: 1; }
.domain-tile .num sup { font-size: .4em; font-weight: 600; margin-left: 2px; }
.domain-tile .name { font-weight: 800; font-size: 1.08rem; margin-top: 6px; }
.domain-tile .tech { font-size: .78rem; color: var(--ink-soft); }
.domain-tile .track { height: 10px; border-radius: 5px; background: var(--track-on-tint); margin-top: 14px; position: relative; }
.domain-tile .fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p) * 1%); background: var(--accent); border-radius: 0 4px 4px 0; }
.domain-tile .track::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: var(--ink); opacity: .45; }

.facet-groups { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; margin-top: 28px; }
.facet-groups .card h3 { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.facet-groups .card h3 small { font-family: var(--font-body); font-size: .78rem; font-weight: 700; color: var(--ink-soft); }
.facet-groups .explain { font-size: .88rem; color: var(--ink-soft); margin: -4px 0 14px; }
.facet-groups .bar { grid-template-columns: minmax(110px, 40%) 1fr 3.2ch; }

.stands { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); margin-top: 24px; }
.stands .card h3 { font-size: 1.1rem; }
.stands .card p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

.types { display: grid; gap: 12px; margin-top: 24px; }
.type-row {
  display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start;
  background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 18px 20px;
}
.type-row .score {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.35rem;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--track) 0);
  position: relative;
}
.type-row .score span {
  width: 50px; height: 50px; border-radius: 50%; background: var(--surface);
  display: grid; place-items: center;
}
.type-row h3 { font-size: 1.12rem; margin: 0 0 2px; }
.type-row h3 small { font-family: var(--font-body); font-weight: 700; font-size: .8rem; color: var(--ink-soft); margin-left: 6px; }
.type-row p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
/* "Least like me": set apart so it reads as the opposite, not another match */
.types-split {
  display: flex; align-items: center; gap: 14px; margin: 22px 0 2px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sun);
}
.types-split::before, .types-split::after { content: ""; flex: 1; border-top: 1px dashed color-mix(in srgb, var(--sun) 45%, transparent); }
html .type-row.least {
  background: transparent; box-shadow: none;
  border: 1.5px dashed color-mix(in srgb, var(--sun) 55%, transparent);
}
.type-row.least .score { background: conic-gradient(var(--sun) calc(var(--p) * 1%), var(--track) 0); color: var(--sun); }
.type-row.least .score span { background: var(--bg); }
.me-tag {
  display: inline-block; margin-right: 8px; padding: 1px 7px; border-radius: 3px; vertical-align: 1px;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--bg); background: var(--accent);
}

.fine { font-size: .82rem; color: var(--ink-soft); margin-top: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; width: min(70%, 280px); justify-self: start; }
  .words { grid-template-columns: 1fr; }
  .word, .word-inner { min-height: 210px; }
  .sc-grid, .hobbies, .facet-groups { grid-template-columns: 1fr; }
  .domains-lg, .stands { grid-template-columns: 1fr 1fr; }
  .persona-link { grid-template-columns: 1fr; }
  .type-badge { width: 110px; justify-self: start; order: -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand { font-size: 1.05rem; }
  .topbar .wrap { gap: 10px; }
  .domains-lg, .stands { grid-template-columns: 1fr; }
  .bar, .facet-groups .bar { grid-template-columns: 1fr 3.2ch; row-gap: 4px; }
  .bar .label { grid-column: 1 / -1; }
  .card { padding: 20px; }
  .quote { padding: 18px 18px 18px 46px; }
}

/* ================= Editorial treatment ================= */
html .chips li.now { color: #1c1b19; }
html .socials .li svg { color: #4c9be8; }
html h1, html h2, html h3,
html .brand, html .word .wt, html .hobby summary,
html .domain-tile .num, html .type-row .score {
  font-weight: var(--head-weight);
}
html h1 { letter-spacing: -.025em; }
html h2 { letter-spacing: -.02em; font-size: clamp(2rem, 4.4vw, 2.9rem); }

/* hairlines instead of shadows */
html .card, html .sc-list li,
html .quote, html .hobby, html .type-row,
html .word-face, html .domain-tile {
  border: 1px solid var(--line);
}
html .socials a, html .socials button { border-radius: 4px; }
html section + section { border-top: 1px solid var(--line); }

/* eyebrow becomes a quiet small-caps label with a rule */
html .eyebrow {
  background: none; padding: 0; border-radius: 0;
  letter-spacing: .22em; font-size: .74rem; color: var(--accent-ink);
}
html .eyebrow::before {
  content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor;
  vertical-align: middle; margin-right: 12px;
}

/* nav: underline instead of pills */
html .nav a { border-radius: 0; padding: 6px 10px; }
html .nav a:hover { background: none; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 6px; }

/* calmer, fewer emoji */
html .word .emoji { display: none; }
html .hobby summary .ico { border-radius: 4px; }


/* tabs and chips: squarer */
html .tab { border-radius: 4px; border-width: 1px; }
html .chips li { border-radius: 3px; }

/* quotes set in the serif */
html .quote { font-family: var(--font-head); font-size: 1.14rem; line-height: 1.5; }

/* word cards: text colors from the palette */
html .word-back .wt { color: var(--accent-ink); }
html .word-front .wt { font-size: clamp(2rem, 3.6vw, 2.5rem); }

.aside { margin: 22px 0 0; color: var(--ink-soft); font-size: .95rem; }
.aside h3 { font-size: 1.1rem; color: var(--ink); margin: 0 0 6px; }
.aside p { margin: 0; }

/* ---------- Work: compact résumé list ---------- */
section.compact { padding: clamp(44px, 6vw, 72px) 0; }
.split { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.split-head h2 { margin-bottom: .3em; }
.hint { font-size: .85rem; color: var(--ink-soft); margin: 0; }
.cv { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cv li {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 20px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.cv-role { font-weight: 600; }
.cv-org { color: var(--ink-soft); text-align: right; }
.cv-sub { grid-column: 1 / -1; font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 560px) {
  .cv li { grid-template-columns: 1fr; }
  .cv-org { text-align: left; }
}

/* ---------- Personality page: INFJ-A letters ---------- */
.letters { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 28px; }
.letter {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px;
}
.letter .big { font-family: var(--font-head); font-size: 3rem; line-height: 1; color: var(--accent-ink); margin-bottom: 12px; }
.letter h3 { font-size: 1.15rem; margin: 0; }
.letter .vs { font-size: .8rem; color: var(--ink-soft); margin: 2px 0 10px; }
.letter p:last-child { margin: 0; font-size: .92rem; color: var(--ink-soft); }
@media (max-width: 980px) { .letters { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .letters { grid-template-columns: 1fr; } }

/* ---------- Personality page: emotions + patterns at the top ---------- */
.subtitle { margin: -.2em 0 0; font-size: 1.25rem; }
.emo-word {
  font-family: var(--font-display); font-weight: 600; font-size: 1.3em; line-height: 1;
  color: var(--accent-ink); letter-spacing: .01em; margin-left: .2em;
}
.patterns-title { font-size: clamp(1.5rem, 3vw, 1.9rem); margin: 40px 0 0; scroll-margin-top: 80px; }

/* ---------- Display serif: only the name and the big titles ---------- */
h1, h2, .brand, .letter .big, .type-badge b {
  font-family: var(--font-display);
  font-weight: 500;
}

/* Small title above the HEXACO bars on the home page */
.card-label { margin: 0 0 14px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
/* Keep the chevron on the right when a category has no "now" count */
.hobby summary .chev { margin-left: auto; }
.hobby summary .count + .chev { margin-left: 0; }

/* Illustrated portrait (transparent cutout): sits on a card, anchored to the bottom edge */
.hero-photo.cutout { aspect-ratio: 1 / 1; }
.hero-photo.cutout img {
  object-fit: contain; object-position: 50% 100%;
  background: radial-gradient(120% 90% at 50% 20%, #262a35 0%, var(--surface) 70%);
  border: 1px solid var(--line);
}

/* Contact buttons: show the handle on hover or keyboard focus (same look as the acronym tooltips) */
.socials [data-tip] { position: relative; }
.socials [data-tip]::after {
  content: attr(data-tip);
  position: absolute; left: 0; bottom: calc(100% + 8px);
  width: max-content; max-width: min(260px, 80vw);
  background: var(--ink); color: var(--bg);
  font-family: var(--font-body); font-size: .8rem; font-weight: 600; line-height: 1.35;
  padding: 6px 10px; border-radius: 8px;
  opacity: 0; transform: translateY(4px); pointer-events: none; z-index: 20;
  transition: opacity .15s, transform .15s;
}
.socials [data-tip]:hover::after, .socials [data-tip]:focus-visible::after { opacity: 1; transform: translateY(0); }
@media (hover: none) { .socials [data-tip]::after { display: none; } }

/* ---------- Collapsible sections ---------- */
.sec-toggle {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: inline-flex; align-items: center; gap: .35em; text-align: left;
  font: inherit; color: inherit; letter-spacing: inherit; border-radius: var(--radius-sm);
}
.sec-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.sec-chev { width: .55em; height: .55em; flex: none; color: var(--ink-soft); transition: transform .2s, color .2s; }
.sec-toggle:hover .sec-chev { color: var(--accent-ink); }
.is-collapsed .sec-chev { transform: rotate(-90deg); }
/* Hide everything in a collapsed section except its small label and heading */
.is-collapsed .wrap > :not(.eyebrow):not(h2):not(.split-head),
.is-collapsed .split-head > :not(.eyebrow):not(h2) { display: none; }
.is-collapsed h2 { margin-bottom: 0; }
section.is-collapsed { padding-top: clamp(32px, 5vw, 48px); padding-bottom: clamp(32px, 5vw, 48px); }
