/* ==========================================================
   Olatomiwa Moses-Smith — portfolio
   Editorial / data-precise identity derived from B&W portraits:
   warm ivory paper, near-black ink, single deep-teal signal.
   ========================================================== */

:root {
  --paper: #F6F2EB;
  --paper-2: #FCFAF4;
  --tint: #EFE9DC;
  --ink: #17130E;
  --ink-soft: #443D32;
  --muted: #6E6455;
  --line: #DFD7C5;
  --night: #14100B;
  --night-2: #1C1610;
  --ivory: #F5EFE3;
  --ivory-dim: rgba(245, 239, 227, 0.72);
  --accent: #0E5A52;
  --accent-bright: #4FA39A;
  --green: #2F7D4E;
  --green-dark: #8FD3A8;
  --amber: #8A6220;
  --amber-dark: #D9B36A;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --header-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--accent-bright); color: var(--night); }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 18px; font-size: 0.85rem;
}
.skip-link:focus { left: 8px; top: 8px; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 22px; }

section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(20, 16, 11, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(245, 239, 227, 0.1);
  color: var(--ivory);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; }
.brand-mark i { width: 4px; background: var(--ivory); }
.brand-mark i:nth-child(1) { height: 8px; }
.brand-mark i:nth-child(2) { height: 12px; }
.brand-mark i:nth-child(3) { height: 16px; background: var(--accent-bright); }
.brand-text { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.brand-text b { color: var(--accent-bright); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav-link {
  text-decoration: none; font-size: 0.9rem; color: var(--ivory-dim);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--ivory); }
.nav-cta {
  text-decoration: none; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em;
  border: 1px solid rgba(245, 239, 227, 0.3); border-radius: 999px; padding: 0.5em 1.1em;
  color: var(--ivory); transition: background 0.2s, border-color 0.2s;
}
.nav-cta:hover { background: rgba(245, 239, 227, 0.1); border-color: rgba(245, 239, 227, 0.55); }

.menu-btn {
  display: none; background: none; border: 1px solid rgba(245, 239, 227, 0.28);
  border-radius: 8px; padding: 9px 10px; cursor: pointer;
}
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ivory); margin: 3.5px 0; transition: transform 0.25s, opacity 0.25s; }
.menu-btn.active span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-btn.active span:nth-child(2) { opacity: 0; }
.menu-btn.active span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- Shared bits ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.hero .eyebrow, .featured-card .eyebrow, .cs-hero .eyebrow { color: var(--accent-bright); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.01em;
  padding: 0.85em 1.5em; border-radius: 10px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn--light { background: var(--ivory); color: var(--ink); }
.btn--light:hover { background: #fff; transform: translateY(-2px); }
.btn--ghost-dark { border-color: rgba(245, 239, 227, 0.32); color: var(--ivory); }
.btn--ghost-dark:hover { background: rgba(245, 239, 227, 0.09); border-color: rgba(245, 239, 227, 0.55); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: #0b4943; transform: translateY(-2px); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: rgba(23, 19, 14, 0.06); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.chip {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em;
  border: 1px solid var(--line); border-radius: 999px; padding: 0.55em 1.05em;
  color: var(--ink-soft); background: var(--paper-2);
}

.status {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  padding: 0.5em 0.95em; border-radius: 999px;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--done { background: rgba(47, 125, 78, 0.14); color: var(--green); }
.status--progress { background: rgba(176, 125, 43, 0.16); color: var(--amber); }
.status--soon { background: rgba(90, 84, 70, 0.13); color: var(--muted); }
.status--plain { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.status--plain::before { display: none; }
/* dark surfaces */
.featured-card .status--done, .cs-hero .status--done { background: rgba(143, 211, 168, 0.13); color: var(--green-dark); }
.featured-card .status--progress, .cs-hero .status--progress { background: rgba(217, 179, 106, 0.13); color: var(--amber-dark); }
.cs-hero .status--plain { border-color: rgba(245, 239, 227, 0.25); color: var(--ivory-dim); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 18px; }
.tag {
  font-size: 0.78rem; font-weight: 500; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.42em 0.9em; background: var(--paper-2);
}
.featured-card .tag { border-color: rgba(245, 239, 227, 0.22); color: var(--ivory-dim); background: transparent; }

/* ---------- Hero ---------- */
.hero {
  background-color: var(--night);
  background-image:
    radial-gradient(900px 480px at 82% 12%, rgba(79, 163, 154, 0.14), transparent 62%),
    radial-gradient(rgba(245, 239, 227, 0.05) 1px, transparent 1.5px);
  background-size: auto, 26px 26px;
  color: var(--ivory);
  padding: clamp(52px, 7vw, 92px) 0 clamp(56px, 8vw, 96px);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(36px, 5vw, 72px); align-items: center; }

.display {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.3rem, 6vw, 3.9rem); line-height: 1.04; letter-spacing: -0.015em;
  margin-bottom: 22px;
}
.lede { font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.4; color: var(--ivory); max-width: 34ch; }
.hero-sub { color: var(--ivory-dim); font-size: 0.97rem; line-height: 1.72; max-width: 52ch; margin-top: 16px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 30px; }
.proof-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.proof-chips .chip { background: transparent; border-color: rgba(245, 239, 227, 0.2); color: var(--ivory-dim); }

.portrait-card { max-width: 460px; justify-self: end; width: 100%; }
.portrait-frame {
  border: 1px solid rgba(245, 239, 227, 0.16); border-radius: 18px; overflow: hidden;
  background: #000; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}
.portrait-caption {
  display: flex; align-items: center; margin-top: 14px;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ivory-dim);
}
.tick-row {
  flex: 1; height: 10px; margin: 0 14px;
  background: repeating-linear-gradient(90deg, rgba(245, 239, 227, 0.32) 0 1px, transparent 1px 9px);
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 108px) 0; }
.section--tint { background: var(--tint); }

.section-head {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  border-top: 2px solid var(--ink); padding-top: 22px;
  margin-bottom: clamp(36px, 5vw, 54px);
}
.section-index {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em;
  background: var(--ink); color: var(--paper); border-radius: 6px; padding: 0.4em 0.65em; margin-top: 6px;
}
.section-title { font-family: var(--serif); font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.12; }
.section-note { color: var(--muted); font-size: 0.95rem; max-width: 62ch; margin-top: 8px; }

/* ---------- Featured project ---------- */
.featured-card {
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(26px, 4vw, 52px);
  background-color: var(--night);
  background-image: radial-gradient(rgba(245, 239, 227, 0.04) 1px, transparent 1.5px);
  background-size: 24px 24px;
  color: var(--ivory); border-radius: 20px;
  padding: clamp(28px, 4.5vw, 56px);
  margin-bottom: clamp(40px, 6vw, 64px);
}
.featured-title { font-family: var(--serif); font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.14; margin-bottom: 10px; }
.featured-sub { font-family: var(--serif); font-style: italic; font-size: 0.92rem; color: var(--ivory-dim); line-height: 1.6; margin-bottom: 18px; }
.featured-text { color: rgba(245, 239, 227, 0.85); font-size: 0.96rem; line-height: 1.72; }
.status-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.featured-visual { display: flex; }
.visual-slot {
  flex: 1; align-self: stretch; min-height: 280px;
  border: 1.5px dashed rgba(245, 239, 227, 0.3); border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  text-align: center; padding: 28px;
}
.slot-label { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--ivory); }
.slot-label::before { content: "◌ "; color: var(--accent-bright); }
.slot-note { font-size: 0.82rem; color: var(--ivory-dim); max-width: 34ch; line-height: 1.6; }

/* ---------- Project grid ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.proj-card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px;
  padding: 26px; display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.proj-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(23, 19, 14, 0.35); }
.proj-top { display: flex; align-items: center; justify-content: space-between; }
.proj-num { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; color: var(--accent); }
.proj-title { font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; }
.proj-line { color: var(--muted); font-size: 0.91rem; line-height: 1.66; }
.proj-foot {
  margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line);
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.03em; color: var(--muted);
}
.proj-card--note { background: transparent; border-style: dashed; box-shadow: none; }
.proj-card--note:hover { transform: none; box-shadow: none; }

/* ---------- Timeline ---------- */
.timeline { border-bottom: 1px solid var(--line); }
.t-item {
  display: grid; grid-template-columns: 170px 1fr; gap: 28px;
  padding: 30px 0; border-top: 1px solid var(--line);
}
.t-item:first-child { border-top: 2px solid var(--ink); }
.t-period { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.t-role { font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; margin-bottom: 4px; }
.t-org { color: var(--muted); font-size: 0.9rem; margin-bottom: 12px; }
.t-bullets { margin: 0; padding-left: 1.15em; color: var(--ink-soft); font-size: 0.94rem; line-height: 1.68; }

/* ---------- Capabilities ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.cap-group { background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.cap-title {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--line);
}
.cap-list { list-style: none; display: grid; gap: 11px; }
.cap-list li { position: relative; padding-left: 20px; font-size: 0.94rem; color: var(--ink-soft); line-height: 1.5; }
.cap-list li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 9px; height: 2px; background: var(--accent); }
.cap-note { color: var(--muted); font-size: 0.78rem; }

/* ---------- Toolkit ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 14px; }
.tool-tile {
  background: var(--night); color: var(--ivory);
  border: 1px solid rgba(245, 239, 227, 0.1);
  border-radius: 14px; padding: 26px 14px; text-align: center;
  font-family: var(--serif); font-size: 1.06rem; font-weight: 600; letter-spacing: 0.01em;
  transition: border-color 0.25s, transform 0.25s;
}
.tool-tile:hover { border-color: var(--accent-bright); transform: translateY(-3px); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.4fr 0.6fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.about-photo img { border-radius: 18px; border: 1px solid var(--line); width: 100%; }
.about-body p { font-size: 1.01rem; line-height: 1.78; color: var(--ink-soft); margin-bottom: 1.1em; }
.about-body .section-head { margin-bottom: 26px; }
.mini-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin-top: 8px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 16px; }
.contact-card {
  display: block; text-decoration: none; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: 16px; padding: 24px;
  transition: transform 0.25s, border-color 0.25s;
}
a.contact-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.contact-label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.contact-value { display: block; font-weight: 700; font-size: 1.02rem; margin: 10px 0 6px; word-break: break-word; }
.contact-note { font-size: 0.84rem; color: var(--muted); }
.contact-card--disabled { background: transparent; border-style: dashed; }
.contact-card--disabled .contact-value { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--ivory-dim); padding: 56px 0 40px; }
.footer-brand { color: var(--ivory); font-weight: 600; font-size: 0.95rem; }
.honesty-line {
  font-family: var(--mono); font-size: 0.78rem; line-height: 1.6; color: rgba(245, 239, 227, 0.6);
  border-left: 3px solid var(--accent-bright); padding-left: 14px; margin: 16px 0 20px; max-width: 70ch;
}
.honesty-line code, .real-box code { background: rgba(245, 239, 227, 0.12); border-radius: 6px; padding: 1px 6px; font-size: 0.85em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 18px; }
.footer-nav a { color: var(--ivory-dim); text-decoration: none; font-size: 0.88rem; }
.footer-nav a:hover { color: var(--ivory); }
.footer-copy, .footer-copy code { font-size: 0.78rem; color: rgba(245, 239, 227, 0.5); }

/* ==========================================================
   CASE STUDY PAGE
   ========================================================== */
.cs-hero {
  background-color: var(--night);
  background-image:
    radial-gradient(800px 420px at 88% 0%, rgba(79, 163, 154, 0.13), transparent 60%),
    radial-gradient(rgba(245, 239, 227, 0.05) 1px, transparent 1.5px);
  background-size: auto, 26px 26px;
  color: var(--ivory);
  padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 56px);
}
.breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; font-family: var(--mono); font-size: 0.74rem; color: var(--ivory-dim); margin-bottom: 30px; }
.breadcrumb a { color: var(--ivory-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--ivory); }
.cs-title { font-family: var(--serif); font-size: clamp(1.9rem, 4.4vw, 3.1rem); line-height: 1.08; margin: 12px 0 14px; }
.cs-full-title { font-family: var(--serif); font-style: italic; color: var(--ivory-dim); line-height: 1.6; max-width: 72ch; margin-bottom: 24px; }
.cs-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }

.real-box { border: 1px solid rgba(245, 239, 227, 0.18); border-radius: 16px; background: rgba(245, 239, 227, 0.045); padding: clamp(20px, 3vw, 32px); }
.real-title { font-family: var(--serif); font-size: 1.18rem; color: var(--ivory); margin-bottom: 18px; }
.real-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.real-cols h3 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-bright); margin-bottom: 10px; }
.real-cols ul { margin: 0; padding-left: 1.1em; font-size: 0.86rem; line-height: 1.65; color: rgba(245, 239, 227, 0.82); }
.real-cols li { margin-bottom: 6px; }

.subnav {
  position: sticky; top: var(--header-h); z-index: 50;
  background: rgba(246, 242, 235, 0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-block: 1px solid var(--line);
}
.subnav-scroll { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding-block: 8px; }
.subnav-scroll::-webkit-scrollbar { display: none; }
.subnav a {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; white-space: nowrap;
  padding: 0.55em 0.9em; border-radius: 999px; transition: color 0.2s, background 0.2s;
}
.subnav a:hover { color: var(--ink); background: var(--tint); }
.subnav a.active { background: var(--ink); color: var(--paper); }

.cs-body { padding: clamp(40px, 6vw, 72px) 0 20px; }
.cs-section { max-width: 860px; margin: 0 auto clamp(46px, 6vw, 66px); scroll-margin-top: 134px; }
.cs-section h2 {
  font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem);
  display: flex; align-items: center; gap: 14px;
  border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 20px;
}
.cs-num {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em;
  background: var(--ink); color: var(--paper); border-radius: 6px; padding: 0.4em 0.6em;
}
.cs-section > p { color: var(--ink-soft); font-size: 1rem; line-height: 1.75; margin-bottom: 6px; }

.slot {
  border: 1.5px dashed #C7BBA3; border-radius: 12px; background: rgba(23, 19, 14, 0.02);
  font-family: var(--mono); font-size: 0.8rem; line-height: 1.65; color: #8A7F6A;
  padding: 18px 20px; margin: 14px 0;
}

.table-scroll { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2); }
.data-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 0.8rem; }
.data-table th {
  text-align: left; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--muted); padding: 12px 14px; border-bottom: 2px solid var(--ink); background: rgba(23, 19, 14, 0.03);
  white-space: nowrap;
}
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink-soft); vertical-align: top; }
.data-table tr:last-child td { border-bottom: none; }

.figure-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 8px; }
.figure-slot {
  border: 1.5px dashed #C7BBA3; border-radius: 12px; min-height: 190px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  text-align: center; padding: 18px;
  font-family: var(--mono); font-size: 0.78rem; color: #8A7F6A;
}
.figure-slot small { font-size: 0.68rem; color: var(--muted); }

.kpi-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 4px 0 20px; }
.kpi-slot {
  border: 1.5px dashed #C7BBA3; border-radius: 12px; background: var(--paper-2);
  padding: 22px 16px; text-align: center; font-family: var(--mono); font-size: 0.78rem; color: #8A7F6A;
}

.next-line {
  margin-top: 18px; padding: 14px 18px;
  border-left: 3px solid var(--accent); background: rgba(14, 90, 82, 0.06);
  font-size: 0.92rem; color: var(--ink-soft); line-height: 1.65;
}
.insight-list { list-style: none; display: grid; gap: 12px; }
.insight-list .slot { margin: 0; }

.callout {
  margin-top: 16px; padding: 18px 20px; border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 10px; background: var(--paper-2); font-size: 0.9rem; color: var(--ink-soft); line-height: 1.68;
}

.cs-back { max-width: 860px; margin: 0 auto; padding: 6px 0 34px; }

/* ---------- Reveal animation (JS-gated) ---------- */
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .portrait-card { justify-self: start; max-width: 420px; }
  .featured-card { grid-template-columns: 1fr; }
  .visual-slot { min-height: 240px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 380px; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--night-2); border-bottom: 1px solid rgba(245, 239, 227, 0.14);
    padding: 16px 22px 22px;
    transform: translateY(-130%); transition: transform 0.28s ease;
  }
  .nav { visibility: hidden; }
  .nav.open { transform: none; visibility: visible; }
  .nav-link { padding: 12px 4px; font-size: 1rem; border-bottom: 1px solid rgba(245, 239, 227, 0.08); }
  .nav-cta { text-align: center; margin-top: 12px; padding: 0.8em; }
  .menu-btn { display: block; }
  .t-item { grid-template-columns: 1fr; gap: 6px; padding: 26px 0; }
  .cta-row .btn { flex: 1 1 44%; }
}

@media (max-width: 420px) {
  .cta-row .btn { flex: 1 1 100%; }
  .section-head { gap: 12px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .proj-card, .tool-tile, .contact-card, .btn { transition: none; }
}

/* ---------- Real-media variants (populate slots with live charts) ---------- */
.figure-slot--set {
  border: 1px solid var(--line); background: var(--paper-2); border-radius: 12px;
  min-height: 0; display: block; text-align: left; padding: 14px; font-family: var(--sans); color: var(--ink-soft);
}
.figure-slot--set img { width: 100%; height: auto; display: block; border-radius: 8px; }
.figure-slot--set figcaption { font-size: 0.8rem; line-height: 1.6; color: var(--ink-soft); margin-top: 10px; }
.figure-slot--set figcaption b { color: var(--ink); font-weight: 600; }
.sowhat { display: block; margin-top: 8px; padding: 10px 12px; border-left: 3px solid var(--accent);
  background: rgba(14, 90, 82, 0.05); border-radius: 0 8px 8px 0; font-size: 0.78rem; line-height: 1.6; color: var(--ink-soft); }
.sowhat b { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; color: var(--accent); text-transform: uppercase; display: block; margin-bottom: 3px; }
.kpi-slots--set .kpi-slot { border: 1px solid var(--line); border-style: solid; color: var(--muted); padding: 16px 14px; }
.kpi-slot .big { display: block; font-family: var(--serif); font-size: 1.45rem; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.kpi-slot em { display: block; font-style: normal; font-size: 0.68rem; color: var(--muted); font-family: var(--mono); letter-spacing: 0.04em; }
.dash-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.dash-tile { border: 1px solid var(--line); background: var(--paper-2); border-radius: 12px; padding: 14px; }
.dash-tile .big { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.dash-tile em { display: block; font-style: normal; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.05em; color: var(--muted); margin-top: 2px; }

/* ---------- Project card links ---------- */
.proj-card a { color: inherit; text-decoration: none; }
.proj-card a:hover .proj-title, .proj-card .proj-title a:hover { color: var(--accent); }
.proj-links { display: flex; gap: 16px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; }
.proj-links a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.proj-links a:hover { border-color: var(--accent); }

/* ===== Recruiter pass — 2026-10-24 ===== */
html, body { overflow-x: clip; }
img { max-width: 100%; height: auto; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; border-radius: 12px; }
.table-wrap table { min-width: 620px; width: 100%; }
.tap-safe, nav a, .footer-nav a, .proj-links a { min-height: 44px; display: inline-flex; align-items: center; }
.btn { min-height: 44px; }
.tool-name { display: block; font-weight: 800; }
.tool-proof { display: block; margin-top: .35rem; font-size: .8rem; line-height: 1.45; opacity: .72; }
.tool-familiar { margin-top: 1rem; }
.proj-card--flagship { border: 1.5px solid rgba(31,27,22,.22); }
.proj-line--note { font-size: .9rem; opacity: .8; }
.pipeline { grid-column: 1 / -1; }
.plain-en { border: 1.5px solid rgba(31,27,22,.16); background: #fff; color: var(--ink); border-radius: 14px; padding: 1.15rem 1.25rem; margin: 1.8rem 0; }
.plain-en h2, .plain-en b { color: var(--ink); }
.plain-en h2 { font-size: 1.05rem; margin: .1rem 0 .6rem; }
.plain-en p { margin: .5rem 0; font-size: .98rem; line-height: 1.62; }
.plain-en__transfer { border-top: 1px dashed rgba(31,27,22,.25); padding-top: .6rem; }
/* mobile fix: keep section subnav reachable on narrow screens */
@media (max-width: 640px) {
  .subnav-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; flex-wrap: nowrap; padding-bottom: 4px; }
  .subnav-scroll a { flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center; }
}

/* two-minute structured summary (task 9) */
.headline-result { font-size: 1.04rem; line-height: 1.65; background: rgba(79,163,154,.09); border-left: 4px solid #4FA39A; padding: .9rem 1.05rem; border-radius: 0 12px 12px 0; margin: 0 0 1rem; }
.tm-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin: 0; }
.tm-item { background: #fff; border: 1px solid rgba(31,27,22,.12); border-radius: 12px; padding: .85rem 1rem; }
.tm-item dt { font-weight: 800; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; opacity: .65; margin-bottom: .3rem; }
.tm-item dd { margin: 0; font-size: .94rem; line-height: 1.55; }
@media (max-width: 620px) { .tm-grid { grid-template-columns: 1fr; } }

/* tap-target hardening (phase-4 QA) */
.skip-link { min-height: 44px; display: inline-flex; align-items: center; box-sizing: border-box; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.menu-btn { min-width: 44px; min-height: 44px; }

/* ==========================================================
   CRITIC PASS (2026-10-24): classes that shipped with pages but
   had no rules — ratified with house-token styling.
   ========================================================== */
.hero-copy { max-width: 62ch; }
.featured-body, .t-body { min-width: 0; }
.t-meta { margin-bottom: .35rem; color: var(--muted); font-size: .85rem; }
.footer-inner { display: grid; gap: .35rem; }
.cs-steps { margin: .2rem 0 0; padding-left: 1.2rem; display: grid; gap: .5rem; }
.cs-steps li::marker { color: var(--accent); font-weight: 700; }
.cs-list { margin: .35rem 0 0; padding-left: 1.1rem; display: grid; gap: .45rem; }
.cs-list li::marker { color: var(--accent); }
.cs-next { margin-top: .95rem; padding: .8rem 1rem; background: rgba(79,163,154,.08); border: 1px dashed rgba(14,90,82,.4); border-radius: 12px; }
.walkthrough[hidden] { display: none; }
.walkthrough { border: 1px solid var(--line); border-radius: 12px; padding: 1rem; background: #fff; }
.dash-tile .k { display: block; font: 800 1.3rem/1.15 var(--serif); color: var(--ink); }
.dash-tile .v { display: block; margin-top: .25rem; font-size: .82rem; line-height: 1.4; color: var(--muted); }

/* ==========================================================
   DESIGN PASS (2026-10-24) — recruiter-first hierarchy, more air.
   Appended last so these rules win same-specificity ties.
   ========================================================== */

/* --- name, stated boldly --- */
.display {
  font-weight: 800;
  font-size: clamp(2.9rem, 7.8vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.022em;
  margin-bottom: 26px;
}
.display .hl { color: var(--accent-bright); font-family: var(--serif); }

/* --- hero breathing room + tighter value prop --- */
.hero { padding: clamp(76px, 10vw, 128px) 0 clamp(72px, 10vw, 132px); }
.lede { max-width: 40ch; line-height: 1.42; }
.hero-sub { margin-top: 18px; margin-bottom: 22px; }
.proof-chips { margin-bottom: 26px; }
.cta-row { margin: 0 0 30px; }

/* --- hero proof strip (numbers recruiters can quote back) --- */
.statstrip {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
  border-top: 1px solid rgba(245, 239, 227, 0.18);
  padding-top: 22px; max-width: 560px;
}
.statstrip .stat .n {
  display: block; font-family: var(--serif); font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--ivory); line-height: 1.1;
}
.statstrip .stat .c { display: block; margin-top: 5px; font-size: 0.78rem; color: var(--ivory-dim); line-height: 1.45; }

/* --- sections: stop the compaction --- */
.section { padding: clamp(88px, 12vw, 136px) 0; }
.section-head { margin-bottom: 46px; }
.proj-grid { gap: 26px; }
.proj-card { padding: 30px; }
.featured-card { padding: clamp(34px, 5vw, 64px); }
.kpi-slots { gap: 14px; }
.kpi-slot { padding: 18px; }
.figure-slot { margin: 34px 0 46px; }
.cs-section { margin-bottom: 56px; }

/* --- skills, correctly grouped --- */
.skills-groups {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px;
}
.skill-group {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px 26px 22px;
}
.skill-group__title {
  font-family: var(--serif); font-size: 1.06rem; color: var(--accent);
  padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line);
}
.skill-group__list { list-style: none; display: grid; gap: 14px; }
.skill-group__list li { display: grid; gap: 3px; padding-left: 14px; position: relative; }
.skill-group__list li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent-bright);
}
.skill-group__list b { font-size: 0.98rem; }
.skill-group__list span { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }

/* --- portrait: warm frame to match the color grade --- */
.portrait-frame { border-color: rgba(217, 179, 106, 0.28); }

@media (max-width: 860px) {
  .skills-groups { grid-template-columns: 1fr; }
  .statstrip { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
}
@media (max-width: 620px) {
  .statstrip { grid-template-columns: 1fr; }
  .display { font-size: clamp(2.5rem, 13vw, 3.6rem); }
}

/* --- DESIGN PASS fix: ghost buttons on light surfaces need ink borders (were ivory-on-ivory) --- */
.section .btn--ghost-dark,
.cs-body .btn--ghost-dark,
.proj-card .btn--ghost-dark,
.table-wrap ~ .btn-row .btn--ghost-dark {
  border-color: rgba(23, 19, 14, 0.38);
  color: var(--ink);
}
.section .btn--ghost-dark:hover,
.cs-body .btn--ghost-dark:hover,
.proj-card .btn--ghost-dark:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(79, 163, 154, 0.07);
}

/* --- Stack strip: recognizable tool marks under the proof-grouped skills (2026-10-24) --- */
.stack-strip{ margin-top:56px; padding-top:32px; border-top:1px solid rgba(23,19,14,.12); }
.stack-strip-title{ font-size:.78rem; letter-spacing:.16em; text-transform:uppercase; color:rgba(23,19,14,.55); margin:0 0 20px; }
.stack-row{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:18px 30px; align-items:center; }
.stack-item{ display:flex; align-items:center; gap:10px; }
.stack-item svg{ flex:none; display:block; filter:drop-shadow(0 2px 3px rgba(23,19,14,.12)); transition:transform .18s ease; }
.stack-item:hover svg{ transform:translateY(-2px); }
.stack-item span{ font-size:.92rem; font-weight:600; color:rgba(23,19,14,.8); }
@media (max-width:640px){ .stack-strip{ margin-top:40px; } .stack-row{ gap:14px 20px; } }

/* ================================================================
   AUDIT PASS (2026-10-24) — layout, a11y, prefs, print
   ================================================================ */

/* B4: tap targets ≥44px, sane measures */
.btn{ min-height:44px; }
.nav-link,.nav-cta,.footer-nav a{ min-height:44px; display:inline-flex; align-items:center; }
.prose p, .featured-text, .proj-line{ max-width:68ch; }

/* B5: back-to-work top link */
.backtop{ margin:0; padding:76px 0 0; font-size:.92rem; }
.backtop a{ color:var(--ink-soft); text-decoration:none; border-bottom:1px dotted rgba(23,19,14,.4); }
.backtop a:hover{ color:var(--accent); border-color:var(--accent); }

/* B5: collapsible TOC on mobile for long case pages */
.subnav-m{ display:none; }
@media (max-width:860px){
  .subnav{ display:none; }
  .subnav-m{ display:block; position:sticky; top:56px; z-index:40; background:var(--night); border-bottom:1px solid rgba(246,242,235,.14); }
  .subnav-m summary{ list-style:none; cursor:pointer; padding:12px 20px; color:#F6F2EB; font-family:var(--mono,monospace); font-size:.78rem; letter-spacing:.14em; text-transform:uppercase; min-height:44px; display:flex; align-items:center; gap:10px; }
  .subnav-m summary::before{ content:"☰"; font-size:.95rem; }
  .subnav-m summary::-webkit-details-marker{ display:none; }
  .subnav-m .subnav-m-links{ display:flex; flex-direction:column; padding:0 20px 14px; gap:2px; }
  .subnav-m .subnav-m-links a{ color:rgba(246,242,235,.8); text-decoration:none; padding:9px 0; border-top:1px solid rgba(246,242,235,.08); min-height:40px; display:flex; align-items:center; }
  .subnav-m .subnav-m-links a:hover{ color:var(--accent-bright); }
}

/* B1: mobile above the fold — name, role, one proof chip, primary pair */
@media (max-width:640px){
  .hero{ padding-top:64px; padding-bottom:84px; }
  .hero .display{ font-size:clamp(2.4rem, 11.5vw, 3.1rem); line-height:1.04; }
  .hero .hero-sub{ font-size:1rem; }
  .proof-chips li:nth-child(n+2){ display:none; }      /* one proof point above the fold */
  .hero .btn-row{ gap:10px; margin-top:18px; }
  .hero .btn-row .btn{ width:100%; justify-content:center; text-align:center; }
  .hero .btn-row .btn--ghost-dark{ order:9; }            /* secondary CTAs drop below the primaries */
  .statstrip{ gap:18px; }
  .statstrip .stat .n{ font-size:1.5rem; }
  .statstrip .stat .c{ font-size:.68rem; line-height:1.4; }
}

/* B7: prefers-reduced-motion — kill transitions/reveals */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{ animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
  .reveal{ opacity:1 !important; transform:none !important; }
  html{ scroll-behavior:auto; }
}

/* B7: prefers-color-scheme — dark surfaces via token swap (hero/night unchanged) */
@media (prefers-color-scheme: dark){
  :root{
    --paper:#1B1712; --paper-2:#231E18;
    --ink:#F0EBE1; --ink-soft:#C9C1B2;
    --accent:#5FB8AF; --accent-bright:#7FD1C8;
  }
  body{ background:var(--paper); color:var(--ink); }
  .section--tint,.proj-card,.skill-group,.contact-card,.stack-strip,.table-wrap,
  details.check, .cs-panel{ background:var(--paper-2) !important; border-color:rgba(240,235,225,.14) !important; color:var(--ink); }
  .stack-strip-title{ color:rgba(240,235,225,.6); }
  .stack-item span,.section .btn--ghost-dark,.cs-body .btn--ghost-dark,.proj-card .btn--ghost-dark{ color:var(--ink); border-color:rgba(240,235,225,.38); }
  .section .btn--ghost-dark:hover{ color:var(--accent-bright); border-color:var(--accent-bright); }
  img{ opacity:.94; }
}

/* C14: print / save-as-PDF */
@media print{
  .site-header,.subnav,.subnav-m,.menu-btn,.backtop,.btn-row,.site-footer .footer-nav{ display:none !important; }
  body{ background:#fff; color:#111; font-size:11pt; }
  .section,.cs-section,.hero{ padding:14px 0 !important; }
  .hero::after{ display:none; }
  a[href^="http"]::after{ content:" (" attr(href) ")"; font-size:.8em; color:#555; }
  .reveal{ opacity:1 !important; transform:none !important; }
  table{ font-size:9pt; }
  figure, img{ page-break-inside:avoid; }
}
.plain-en .slot-note { color: rgba(23,19,14,.66); }

/* B1 refinement: on small screens the CV download leads the CTA stack */
@media (max-width:640px){ .hero .btn-row a[href$=".pdf"]{ order:-1; } }

/* ---------- FOLLOW-UP FIX PASS (2026-10-24) ---------- */

/* (5) card body text contrast: #6E6455 -> #443D32 (10.27:1 on paper-2) */
.proj-line { color: #443D32; }
.contact-card .contact-note { color: rgba(23, 19, 14, 0.78); }

/* (6) portrait: smaller in hero, cleaner caption row */
.portrait-card { max-width: 300px; }
.portrait-caption { display: flex; justify-content: center; text-align: center; }
@media (max-width: 860px) { .portrait-card { max-width: 250px; } }

/* (3) About row-total note */
.row-total { margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--accent); background: rgba(15, 122, 112, 0.06); border-radius: 8px; font-size: 0.95rem; line-height: 1.6; color: var(--ink); }

/* (1)(5) dark-scheme legibility corrections — tokens flipped; components need explicit ink */
@media (prefers-color-scheme: dark) {
  .btn--light { color: #17130E; background: #F5EFE3; }
  .btn--light:hover, .btn--light:focus-visible { color: #17130E; background: #fff; }
  .plain-en, .plain-en b, .plain-en h2 { color: #17130E; }
  .row-total { color: #F0EBE1; background: rgba(95, 184, 175, 0.10); }
}

/* follow-up fix: keep accent-button pairing readable in dark scheme too */
@media (prefers-color-scheme: dark) {
  .btn--accent { background: #0E5A52; color: #fff; }
  .btn--accent:hover { background: #0b4943; color: #fff; }
  .section .btn--light { color: #17130E; background: #F5EFE3; }
  .proj-line, .contact-card .contact-note { color: #C9C1B2; }
  .row-total { color: #F0EBE1; }
}

/* (1)(explicit) .btn--light pinned ink-on-ivory in the base scheme too */
.btn--light { color: #17130E; }
.btn--light:hover, .btn--light:focus-visible { color: #17130E; }

/* (1)(per instruction) dark-mode accent button: near-black text */
@media (prefers-color-scheme: dark) {
  .btn--accent { background: #5FB8AF; color: #0B1F1D; }
  .btn--accent:hover { background: #6FC4BB; color: #0B1F1D; }
}

.portrait-edit-note { display: block; margin-top: 4px; font-size: .68rem; letter-spacing: .04em; opacity: .72; font-style: italic; }

.cs-subtitle { color: var(--ivory-dim); font-size: 1.02rem; max-width: 62ch; line-height: 1.65; margin-top: -6px; }
.repo-note { margin-top: 26px; }
@media (prefers-color-scheme: dark){ .repo-note { color: var(--ivory-dim); } }

/* (13) build stamp */
.build-stamp { margin: 10px 0 0; font-size: .68rem; letter-spacing: .05em; text-align: center; color: rgba(240,235,225,.78); }
.build-stamp a { color: inherit; }

/* (14) mobile hero/nav tidy */
@media (max-width: 420px) {
  .header-inner { height: var(--header-h); }
  .brand { gap: 8px; }
  .brand-text { font-size: .72rem; letter-spacing: .04em; }
  .hero-sub { max-width: 34ch; }
}

/* (A1-final, Lighthouse-found) repo/slot note must adapt to scheme: muted ink on paper, soft ivory on night */
.slot-note { color: #5A5347; }
.slot-note code { color: #3E382F; background: rgba(23,19,14,.06); }
@media (prefers-color-scheme: dark) {
  .slot-note { color: rgba(240,235,225,.78); }
  .slot-note code { color: #E9E2D3; background: rgba(245,240,229,.08); }
}

