/* ==========================================================================
   Tutsirai Samantha Puwai: portfolio (multipage)
   Brand: warm paper, forest green, terracotta accent · Fraunces + Inter
   ========================================================================== */
:root {
  color-scheme: light;
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f2ede4;
  --surface-3: #ebe4d8;
  --text: #1f1c18;
  --text-2: #3d3832;
  --muted: #5e574d;
  --line: #e4ddd1;
  --accent: #1f6f5c;
  --accent-hover: #185a4b;
  --accent-soft: #e2efe9;
  --accent-ink: #185a4b;
  --accent-2: #b5562d;
  --accent-2-soft: #f6e6dc;
  --good: #1f7a3a;
  --good-soft: #e3f1e6;
  --warn: #8a5a00;
  --warn-soft: #fbf0d9;
  --danger: #b3261e;
  --danger-soft: #f9e3e1;
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1140px;
  --shadow: 0 1px 2px rgba(31, 28, 24, .04), 0 10px 30px rgba(31, 28, 24, .07);
  --shadow-lg: 0 2px 4px rgba(31, 28, 24, .05), 0 24px 60px rgba(31, 28, 24, .12);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #151412; --surface: #1e1c19; --surface-2: #26231f; --surface-3: #302c27;
    --text: #f0ebe3; --text-2: #ddd6cb; --muted: #b0a799; --line: #36322c;
    --accent: #6cc3a8; --accent-hover: #86d2ba; --accent-soft: #1d3330; --accent-ink: #86d2ba;
    --accent-2: #e49170; --accent-2-soft: #3a2820;
    --good: #7fd09a; --good-soft: #1c3324; --warn: #f0c36b; --warn-soft: #3a2f17;
    --danger: #f2948c; --danger-soft: #3d1f1d;
    --shadow: 0 1px 2px rgba(0,0,0,.3); --shadow-lg: 0 20px 50px rgba(0,0,0,.45);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #151412; --surface: #1e1c19; --surface-2: #26231f; --surface-3: #302c27;
  --text: #f0ebe3; --text-2: #ddd6cb; --muted: #b0a799; --line: #36322c;
  --accent: #6cc3a8; --accent-hover: #86d2ba; --accent-soft: #1d3330; --accent-ink: #86d2ba;
  --accent-2: #e49170; --accent-2-soft: #3a2820;
  --good: #7fd09a; --good-soft: #1c3324; --warn: #f0c36b; --warn-soft: #3a2f17;
  --danger: #f2948c; --danger-soft: #3d1f1d;
  --shadow: 0 1px 2px rgba(0,0,0,.3); --shadow-lg: 0 20px 50px rgba(0,0,0,.45);
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16.5px/1.65 var(--sans); }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; line-height: 1.15; margin: 0 0 .5em; }
h4 { font-size: 16px; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 10px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.lead { font-size: 19px; color: var(--text-2); max-width: 720px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.3) blur(12px);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(31, 28, 24, .05); }
.nav { display: flex; align-items: center; gap: 12px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); margin-right: auto; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: var(--accent); color: #fff; font: 600 15px/1 var(--serif); letter-spacing: .02em;
}
.brand-name { font: 600 17px/1.1 var(--serif); }
.brand-name small { display: block; font: 500 12px/1.3 var(--sans); color: var(--muted); letter-spacing: .02em; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { background: var(--surface-2); color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--accent-ink); background: var(--accent-soft); }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); display: grid; place-items: center; cursor: pointer; flex: none;
}
.icon-btn:hover { border-color: var(--muted); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-dark-icon { display: none; }
:root[data-theme="dark"] .theme-dark-icon { display: block; }
:root[data-theme="dark"] .theme-light-icon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-dark-icon { display: block; }
  :root:not([data-theme="light"]) .theme-light-icon { display: none; }
}
.header-cta { display: none; }
@media (min-width: 1000px) {
  .nav-links { display: flex; }
  .header-cta { display: inline-flex; }
  .icon-btn.menu-btn { display: none; }
}
.mobile-nav { display: none; padding: 6px 0 18px; border-top: 1px solid var(--line); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: flex; justify-content: space-between; padding: 13px 4px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); font-weight: 500; }
.mobile-nav a[aria-current="page"] { color: var(--accent-ink); }
.mobile-nav .btn { margin-top: 14px; width: 100%; justify-content: center; border-bottom: 0; }

/* ---------------------------------------------------------------- buttons, chips, badges */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px; border: 1px solid transparent;
  font: 600 15px/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
:root[data-theme="dark"] .btn-primary, :root[data-theme="dark"] .btn-primary:hover { color: #10241e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary, :root:not([data-theme="light"]) .btn-primary:hover { color: #10241e; } }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); color: var(--text); }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 13.5px;
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); white-space: nowrap;
}
button.chip { cursor: pointer; font-family: inherit; }
button.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
:root[data-theme="dark"] button.chip[aria-pressed="true"] { color: #10241e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) button.chip[aria-pressed="true"] { color: #10241e; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 12.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13.5px; font-weight: 600; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 0%, transparent); } }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--accent-2-soft); color: var(--accent-2); }

/* ---------------------------------------------------------------- page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; padding: 64px 0 48px; border-bottom: 1px solid var(--line); background: var(--surface); isolation: isolate; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .9;
  background:
    radial-gradient(50% 80% at 100% 0%, var(--accent-soft), transparent 70%),
    radial-gradient(40% 70% at 0% 100%, var(--accent-2-soft), transparent 70%);
}
.page-hero h1 { font-size: clamp(34px, 5.4vw, 54px); max-width: 860px; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); }

/* ---------------------------------------------------------------- home hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 64px; isolation: isolate; }
@media (min-width: 960px) { .hero { padding: 88px 0 96px; } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(45% 60% at 85% 20%, var(--accent-soft), transparent 70%),
    radial-gradient(35% 50% at 10% 90%, var(--accent-2-soft), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(color-mix(in srgb, var(--accent) 22%, transparent) 1.2px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 85%); mask-image: linear-gradient(90deg, transparent 35%, #000 85%);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.hero h1 { font-size: clamp(38px, 6vw, 64px); margin: 18px 0 18px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lead { margin-bottom: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 14.5px; }
.hero-facts span { display: inline-flex; align-items: center; gap: 7px; }
.hero-facts svg { width: 17px; height: 17px; color: var(--accent); }

.portrait { position: relative; max-width: 420px; margin: 0 auto; width: 100%; }
.portrait-frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, var(--accent) 0%, #174f42 100%);
}
.portrait-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait-mono { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.92); }
.portrait-mono svg { width: 78%; height: auto; }
.float-card {
  position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
  box-shadow: var(--shadow-lg); font-size: 13.5px; display: flex; gap: 10px; align-items: center; max-width: 240px;
  animation: float 6s ease-in-out infinite;
}
.float-card b { display: block; font-size: 14px; }
.float-card small { color: var(--muted); }
.float-card .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float-card .ic svg { width: 19px; height: 19px; }
.float-card.one { left: -18px; top: 12%; }
.float-card.two { right: -14px; bottom: 14%; animation-delay: -3s; }
@media (max-width: 520px) { .float-card.one { left: 6px; } .float-card.two { right: 6px; } }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------------------------------------------------------------- sections */
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 92px 0; } }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(28px, 3.8vw, 40px); }
.section-head p { color: var(--muted); font-size: 17.5px; margin: 0; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.split { display: grid; gap: 32px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split.wide-left { grid-template-columns: 1.3fr 1fr; } }

/* ---------------------------------------------------------------- stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.section.alt .stat { background: var(--bg); }
.stat b { display: block; font: 600 clamp(32px, 4vw, 42px)/1 var(--serif); color: var(--accent); }
.stat span { display: block; margin-top: 10px; font-weight: 600; }
.stat small { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.4; }

/* ---------------------------------------------------------------- cards */
.cards { display: grid; gap: 18px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.section.alt .card { background: var(--bg); }
a.card { color: inherit; text-decoration: none; display: block; }
a.card:hover, .card.hoverable:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); }
.card h3 { font-size: 21px; margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 0; }
.card .icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--accent-soft); color: var(--accent-ink);
}
.card .icon svg { width: 23px; height: 23px; }
.card .icon.terra { background: var(--accent-2-soft); color: var(--accent-2); }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; color: var(--accent-ink); font-size: 15px; }
.card .more svg { width: 16px; height: 16px; transition: transform .2s ease; }
a.card:hover .more svg { transform: translateX(4px); }
.card .tag { position: absolute; top: 20px; right: 20px; }

/* ---------------------------------------------------------------- process steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: relative; }
.section.alt .steps li { background: var(--bg); }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block; font: 600 14px/1 var(--sans); color: var(--accent-2);
  margin-bottom: 12px; letter-spacing: .05em;
}
.steps h4 { font-size: 16.5px; }
.steps p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------------------------------------------------------------- timeline (about, experience) */
.timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline > li { position: relative; padding-bottom: 28px; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before {
  content: ""; position: absolute; left: -28px; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--accent);
}
.timeline .when { font-size: 13.5px; font-weight: 600; color: var(--accent-2); text-transform: uppercase; letter-spacing: .06em; }
.timeline h3 { font-size: 20px; margin: 4px 0 4px; }
.timeline p { color: var(--muted); margin: 0; }

/* ---------------------------------------------------------------- experience roles */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 26px; }
.filter-bar .label { font-weight: 600; font-size: 14px; color: var(--muted); margin-right: 4px; }
.role { display: grid; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; }
@media (min-width: 900px) { .role { grid-template-columns: 240px 1fr; gap: 32px; padding: 32px; } }
.role-meta .dates { font-weight: 600; color: var(--accent-2); font-size: 14px; }
.role-meta h3 { font-size: 22px; margin: 6px 0; }
.role-meta .org { color: var(--text-2); font-weight: 500; }
.role-meta .place { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.role-meta .place svg { width: 15px; height: 15px; }
.role h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.role ul.duties { margin: 0 0 22px; color: var(--text-2); }
.role ul.duties li { margin-bottom: 6px; }
.transfer { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.transfer li { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid transparent; transition: opacity .2s ease, border-color .2s ease, background .2s ease; }
.transfer li b { color: var(--text); }
.transfer li span { color: var(--muted); }
.transfer li.hit { border-color: var(--accent); background: var(--accent-soft); }
.transfer li.dim { opacity: .38; }
.transfer .kind { display: inline-block; margin-right: 6px; }

/* ---------------------------------------------------------------- services detail */
.service-nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 26px; scrollbar-width: thin; }
.service-block { display: grid; gap: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 22px; scroll-margin-top: 100px; }
@media (min-width: 900px) { .service-block { grid-template-columns: 1.1fr 1fr; padding: 36px; gap: 40px; } }
.service-block h2 { font-size: clamp(24px, 3vw, 30px); }
.service-block .icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 16px; }
.service-block .icon svg { width: 26px; height: 26px; }
.checklist { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 9px; }
.checklist li { position: relative; padding-left: 30px; color: var(--text-2); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6f5c' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/13px no-repeat;
}
.deliverable { background: var(--surface-2); border-radius: 12px; padding: 18px; font-size: 15px; }
.deliverable h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.deliverable .snippet { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 13px; white-space: pre-wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 10px 0 0; color: var(--text-2); }
.from-exp { font-size: 14.5px; color: var(--muted); margin-top: 14px; }

/* ---------------------------------------------------------------- work samples */
.sample-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.sample { display: none; }
.sample.active { display: block; }
.prompt-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.prompt-box .who { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.prompt-box p { font-size: 17px; margin: 0; }
.responses { display: grid; gap: 16px; margin-bottom: 18px; }
@media (min-width: 900px) { .responses { grid-template-columns: 1fr 1fr; } }
.response { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 20px; transition: border-color .2s ease; }
.response header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.response header b { font-family: var(--serif); font-size: 18px; }
.response ul, .response p { color: var(--text-2); font-size: 15px; }
.response.preferred { border-color: var(--good); }
.response.rejected { border-color: var(--danger); }
.verdict-pill { font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; display: none; }
.response.preferred .verdict-pill.good { display: inline-block; background: var(--good-soft); color: var(--good); }
.response.rejected .verdict-pill.bad { display: inline-block; background: var(--danger-soft); color: var(--danger); }
.vote { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 18px; border-radius: var(--radius); background: var(--accent-soft); margin-bottom: 18px; }
.vote b { margin-right: 6px; }
.rationale { display: none; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: 22px; }
.rationale.show { display: block; animation: fadein .35s ease; }
.rationale h3 { font-size: 20px; }
.score-table { width: 100%; border-collapse: collapse; margin: 12px 0 16px; font-size: 14.5px; }
.score-table th, .score-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.score-table th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.score-table td.num { text-align: center; font-weight: 700; }
.dots5 { display: inline-flex; gap: 3px; vertical-align: middle; margin-right: 6px; }
.dots5 i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.dots5 i.on { background: var(--accent); }
.match { margin-top: 10px; font-weight: 600; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.flagged { line-height: 1.9; font-size: 16px; color: var(--text-2); }
.flag {
  background: var(--warn-soft); border-bottom: 2px solid var(--warn); border-radius: 3px; padding: 1px 2px; cursor: pointer; color: inherit;
  font: inherit; border-top: 0; border-left: 0; border-right: 0;
}
.flag.high { background: var(--danger-soft); border-bottom-color: var(--danger); }
.flag[aria-expanded="true"] { outline: 2px solid currentColor; outline-offset: 1px; }
.flag-notes { display: grid; gap: 10px; margin-top: 16px; }
.flag-note { display: none; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; }
.flag-note.show { display: block; animation: fadein .3s ease; }
.flag-note b { display: block; margin-bottom: 2px; }
.sev { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.sev.high { background: var(--danger-soft); color: var(--danger); }
.sev.med { background: var(--warn-soft); color: var(--warn); }

.compare { display: grid; gap: 16px; }
@media (min-width: 900px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare .pane { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.compare .pane h4 { display: flex; align-items: center; gap: 8px; }
.compare del { background: var(--danger-soft); color: var(--danger); text-decoration-thickness: 1.5px; border-radius: 3px; }
.compare ins { background: var(--good-soft); color: var(--good); text-decoration: none; border-radius: 3px; }
.notes-list { margin: 14px 0 0; padding-left: 18px; color: var(--text-2); font-size: 15px; }
.edit-pane.clean del { display: none; }
.edit-pane.clean ins { background: none; color: inherit; }
.compare .pane h4 .btn { font-family: var(--sans); }
a.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
a.chip { text-decoration: none; }

/* ---------------------------------------------------------------- education */
.edu { display: grid; gap: 20px; }
.edu-item { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
@media (min-width: 860px) { .edu-item { grid-template-columns: 76px 1fr auto; align-items: start; padding: 30px; } }
.edu-logo { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font: 600 20px/1 var(--serif); color: #fff; }
.edu-item h3 { font-size: 22px; margin-bottom: 4px; }
.edu-item .school { color: var(--text-2); font-weight: 500; }
.edu-item .when { color: var(--muted); font-size: 14.5px; }
.edu-item .awards { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.award { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--accent-2-soft); color: var(--accent-2); font-size: 13.5px; font-weight: 600; }
.award svg { width: 15px; height: 15px; }
.gpa { text-align: center; padding: 10px 16px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); }
.gpa b { display: block; font: 600 30px/1 var(--serif); }
.gpa small { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* ---------------------------------------------------------------- languages, skills meters */
.lang { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font-weight: 600; }
.lang small { color: var(--muted); font-weight: 500; }
.meter { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; margin-bottom: 18px; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--accent-2))); border-radius: 4px; transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.meter.in i { width: var(--v); }

/* ---------------------------------------------------------------- FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.section.alt .faq details { background: var(--bg); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--accent); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* ---------------------------------------------------------------- CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: 24px; padding: 40px 28px; color: #fff; isolation: isolate;
  background: linear-gradient(135deg, var(--accent) 0%, #174f42 100%);
}
:root[data-theme="dark"] .cta-band { background: linear-gradient(135deg, #1d5a4b 0%, #12352d 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta-band { background: linear-gradient(135deg, #1d5a4b 0%, #12352d 100%); } }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,.08); z-index: -1; }
@media (min-width: 860px) { .cta-band { padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; } }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0 0 20px; max-width: 560px; }
@media (min-width: 860px) { .cta-band p { margin-bottom: 0; } }
.cta-band .btn-light { background: #fff; color: #174f42; }
.cta-band .btn-light:hover { background: #f2ede4; color: #174f42; }
.cta-band .btn-outline { border-color: rgba(255,255,255,.45); color: #fff; }
.cta-band .btn-outline:hover { border-color: #fff; color: #fff; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

/* ---------------------------------------------------------------- contact */
.contact-grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 48px; } }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.contact-list .ic svg { width: 20px; height: 20px; }
.contact-list small { display: block; color: var(--muted); font-size: 13px; }
.contact-list a { font-weight: 600; text-decoration: none; }
form.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 16px; box-shadow: var(--shadow); }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
input, textarea, select {
  font: inherit; font-size: 15.5px; color: var(--text); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 11px 14px; width: 100%; transition: border-color .15s ease;
}
input:hover, textarea:hover, select:hover { border-color: var(--muted); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
textarea { min-height: 150px; resize: vertical; }
.row-2 { display: grid; gap: 16px; }
@media (min-width: 620px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.field-hint { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.field-error { color: var(--danger); font-size: 13px; font-weight: 600; min-height: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: 15px; font-weight: 500; }
.form-status.ok { color: var(--good); }
.form-status.err { color: var(--danger); }
.privacy { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text-2); text-decoration: none; }
.footer-grid a:hover { color: var(--accent-ink); }
.footer-grid p { color: var(--muted); font-size: 15px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-bottom a { color: var(--muted); }
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer;
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- scroll reveal (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }

/* selected state for vote buttons */
.vote .btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
:root[data-theme="dark"] .vote .btn[aria-pressed="true"] { color: #10241e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .vote .btn[aria-pressed="true"] { color: #10241e; } }

/* pipeline diagram (work samples case study) */
.arch-flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin-top: 14px; }
.arch-flow .node { flex: 1 1 150px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.arch-flow .node b { display: block; font-size: 15px; }
.arch-flow .node small { color: var(--muted); font-size: 13px; }
.arch-flow .to { align-self: center; color: var(--accent-2); font-weight: 700; }
@media (max-width: 760px) { .arch-flow { flex-direction: column; } .arch-flow .node { flex: none; } .arch-flow .to { transform: rotate(90deg); align-self: flex-start; margin-left: 18px; } }
#site-selection .section-head .badge { margin-bottom: 0; }
