/* ============================================
   zaidhingoro.com — v9 "OPERATOR" (PRD build)
   Editorial ops-console: deep ink navy, warm ivory,
   brass accent. Gloock display + Hanken Grotesk.
   ============================================ */

:root {
  --bg: #0c1421;
  --bg-deep: #091019;
  --card: #101b2c;
  --card-lift: #142238;
  --fg: #f3efe4;
  --muted: #a3a396;
  --muted-cool: #8b93a1;
  --accent: #c9a35c;
  --accent-bright: #dcb975;
  --accent-soft: rgba(201, 163, 92, 0.12);
  --line: rgba(243, 239, 228, 0.12);
  --line-soft: rgba(243, 239, 228, 0.07);
  --font-display: "Gloock", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  --max: 1280px;
  --pad: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: #0c1421; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.mono {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-cool);
}

/* ---------- nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(12, 20, 33, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line-soft); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  text-decoration: none;
}
.logo em { font-style: normal; color: var(--accent); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  position: relative;
  transition: color 0.15s;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]:not(.btn)::after { width: 100%; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a.btn, .nav a.btn:hover { color: #14100a; }

.menu-btn {
  display: none;
  background: none; border: 1px solid var(--line);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 6px; cursor: pointer;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #14100a;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 13px 28px;
  border-radius: 6px;
  border: 1px solid var(--accent);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease), box-shadow 0.25s;
}
.btn:hover { background: var(--accent-bright); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(201, 163, 92, 0.25); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { background: transparent; border-color: var(--accent); color: var(--accent-bright); box-shadow: none; }

/* ---------- section scaffolding ---------- */
section { padding: 104px 0; border-bottom: 1px solid var(--line-soft); position: relative; }
section:last-of-type { border-bottom: none; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 42px;
}
.section-head .num { color: var(--accent); }

h1, h2, .display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 6.8vw, 5.2rem); max-width: 1000px; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin-bottom: 18px; }
h1 em, h2 em { font-style: italic; color: var(--accent); }

.section-intro { color: var(--muted); max-width: 680px; margin-bottom: 48px; font-size: 1.1rem; }
h3 { font-weight: 700; font-size: 1.18rem; letter-spacing: -0.01em; }

/* ---------- hero ---------- */
.hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; top: -240px; right: -160px;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 163, 92, 0.09), transparent 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.hero-meta {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-bottom: 46px;
}
.avail { color: var(--accent-bright); }
.avail::before { content: "●"; margin-right: 8px; animation: blink 2.2s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.bio-text { font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.75; color: var(--muted); max-width: 980px; font-weight: 400; }
.bio-text em { color: var(--fg); font-style: italic; }
.bio-text strong { color: var(--accent-bright); font-weight: 500; }

.hero-links { margin-top: 30px; display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.hero-links a { color: var(--muted); text-decoration: none; font-size: 0.92rem; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color 0.15s, border-color 0.15s; }
.hero-links a:hover { color: var(--accent-bright); border-color: var(--accent); }

.hero-bottom { margin-top: 54px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* centered chapter-title heroes for subpages */
.hero-centered { text-align: center; }
.hero-centered .hero-meta { justify-content: center; gap: 28px; }
.hero-centered h1, .hero-centered .bio-text { margin-left: auto; margin-right: auto; }
.hero-scroll { display: inline-flex; align-items: center; gap: 10px; }
.hero-scroll .line { display: inline-block; width: 56px; height: 1px; background: var(--muted-cool); transform-origin: left; animation: stretch 1.8s ease-in-out infinite; }
@keyframes stretch { 0%, 100% { transform: scaleX(0.4); } 50% { transform: scaleX(1); } }

.hero .hero-meta, .hero h1, .hero .bio-text, .hero .hero-links, .hero .hero-bottom {
  opacity: 0; transform: translateY(22px);
  animation: rise 0.9s var(--ease) forwards;
}
.hero h1 { animation-delay: 0.08s; }
.hero .bio-text { animation-delay: 0.22s; }
.hero .hero-links { animation-delay: 0.36s; }
.hero .hero-bottom { animation-delay: 0.46s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); border-bottom: 1px solid var(--line-soft); }
.stat { padding: 56px var(--pad); border-right: 1px solid var(--line-soft); text-align: center; }
.stat:last-child { border-right: none; }
.stat-num { font-family: var(--font-display); font-size: clamp(2.4rem, 4.6vw, 3.6rem); color: var(--accent); display: block; line-height: 1.1; }
.stat-label { display: block; margin-top: 12px; }

/* ---------- marquee ---------- */
.marquee { border-bottom: 1px solid var(--line-soft); overflow: hidden; padding: 22px 0; white-space: nowrap; background: var(--bg-deep); }
.marquee .track { display: inline-block; animation: marquee 32s linear infinite; }
.marquee span { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.02em; margin-right: 20px; color: var(--muted); }
.marquee .dot { color: var(--accent); font-size: 0.75rem; vertical-align: middle; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee:hover .track { animation-play-state: paused; }

.divider-marquee span { color: var(--accent); font-style: italic; }
.divider-marquee span:nth-child(even) { color: var(--muted-cool); font-style: normal; }

/* ---------- what-i-do cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 34px;
  text-decoration: none;
  display: block;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.card:hover { border-color: var(--accent); transform: translateY(-4px); }
.card .n { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 14px; display: block; }
.card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* ---------- work grid / vault ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.chip {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  transition: all 0.2s;
}
.chip:hover { border-color: var(--accent); color: var(--fg); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #14100a; }

/* static chip rows (platform / brand lists — not filters) */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-row .chip { cursor: default; }
.chip-row .chip:hover { border-color: var(--line); color: var(--muted); }

/* account cards — brand tiles with creative art */
.acct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.acct {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
a.acct:hover { border-color: var(--accent); transform: translateY(-4px); }
.acct .art {
  aspect-ratio: 4 / 3;
  background: linear-gradient(130deg, #14213a, #0e1626);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
  color: var(--muted-cool); font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.acct .art img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.acct .body { padding: 18px 20px 20px; }
.acct h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; margin-bottom: 6px; }
.acct .vert { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 8px; }
.acct p { color: var(--muted); font-size: 0.86rem; line-height: 1.55; }

.vault { columns: 3; column-gap: 18px; }
@media (max-width: 1000px) { .vault { columns: 2; } }
@media (max-width: 620px) { .vault { columns: 1; } }
.vault-item {
  break-inside: avoid;
  margin-bottom: 18px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color 0.25s, transform 0.25s var(--ease), opacity 0.3s;
}
.vault-item:hover { border-color: var(--accent); transform: translateY(-3px); }
.vault-item.hidden { display: none; }
.vault-item img { width: 100%; background: var(--card-lift); min-height: 120px; }
.vault-item img.missing { min-height: 220px; object-fit: contain; }
.vault-item .cap { padding: 14px 18px; }
.vault-item .cap .tag { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 4px; }
.vault-item .cap p { font-size: 0.9rem; color: var(--muted); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(9, 16, 25, 0.94);
  display: none;
  align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(92vw, 1000px); max-height: 84vh; border-radius: 10px; }
.lightbox-close {
  position: absolute; top: 22px; right: 26px;
  background: none; border: 1px solid var(--line);
  color: var(--fg); font-family: var(--font-mono); font-size: 0.78rem;
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
}
.lightbox-close:hover { border-color: var(--accent); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; }
.step { padding: 36px 30px; background: var(--card); }
.step .n { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; display: block; }
.step h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; }
.step p { color: var(--muted); font-size: 0.95rem; margin-top: 10px; }

/* ---------- rules ---------- */
.rules-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; counter-reset: rule; }
.rule { display: flex; align-items: baseline; gap: 18px; padding: 26px 30px; background: var(--card); transition: background 0.2s; }
.rule:hover { background: var(--card-lift); }
.rule .mono { color: var(--accent); }
.rule h3 { font-size: 1.08rem; font-weight: 600; }

/* ---------- service blocks ---------- */
.svc { border-top: 1px solid var(--line-soft); padding: 44px 0; display: grid; grid-template-columns: 90px 340px 1fr; gap: 30px; align-items: baseline; }
.svc:last-of-type { border-bottom: 1px solid var(--line-soft); }
.svc .n { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); letter-spacing: 0.1em; }
.svc h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; }
.svc .sub { color: var(--muted-cool); font-size: 0.88rem; margin-top: 6px; font-family: var(--font-mono); letter-spacing: 0.04em; }
.svc ul { list-style: none; display: grid; gap: 9px; }
.svc li { color: var(--muted); padding-left: 22px; position: relative; font-size: 0.98rem; }
.svc li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }
@media (max-width: 900px) { .svc { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- case cards ---------- */
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }
.case {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.case:hover { border-color: var(--accent); transform: translateY(-4px); }
.case .thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(130deg, #14213a, #0e1626);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-cool); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.case .thumb img { width: 100%; height: 100%; object-fit: cover; }
.case .body { padding: 28px; }
.case .tagline { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 10px; }
.case h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; margin-bottom: 12px; }
.case p { color: var(--muted); font-size: 0.95rem; }
.case .metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.case .metrics .m { text-align: center; }
.case .metrics .v { font-family: var(--font-display); font-size: 1.5rem; color: var(--accent); display: block; }
.case .metrics .l { font-size: 0.72rem; color: var(--muted-cool); font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- article (field notes essays) ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article .article-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 34px; }
.article h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 54px 0 16px; }
.article h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; margin: 38px 0 12px; }
.article p { color: var(--muted); margin-bottom: 20px; font-size: 1.05rem; line-height: 1.85; }
.article strong { color: var(--fg); }
.article ul, .article ol { margin: 0 0 22px 22px; color: var(--muted); display: grid; gap: 10px; }
.article li::marker { color: var(--accent); }
.article blockquote {
  border-left: 2px solid var(--accent);
  padding: 6px 0 6px 24px;
  margin: 30px 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--fg);
}
.article .aside {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--accent);
  border-radius: 10px;
  padding: 22px 26px;
  margin: 30px 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.article .aside .tag { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 8px; }

/* video testimonial */
.video-embed { max-width: 820px; margin: 0 auto; }
.video-embed .frame { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.video-embed iframe { width: 100%; height: 100%; border: 0; }
.video-facade {
  position: relative; display: block; width: 100%;
  padding: 0; background: #000; cursor: pointer;
  transition: border-color 0.25s;
}
.video-facade:hover { border-color: var(--accent); }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.video-facade .play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--accent); color: #14100a;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; padding-left: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  transition: background 0.2s, transform 0.2s var(--ease);
}
.video-facade:hover .play-btn { background: var(--accent-bright); transform: translate(-50%, -50%) scale(1.07); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-bottom: 60px; }
.faq-item h3 { margin-bottom: 12px; font-size: 1.14rem; }
.faq-item h3::before { content: "→ "; color: var(--accent); }
.faq-item p { color: var(--muted); font-size: 0.97rem; }

/* ---------- contact band ---------- */
.contact-band { background: var(--bg-deep); }
.contact-band h2 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); }
.contact-links { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 34px 0 40px; }
.contact-links a { font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.05em; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: color 0.15s, border-color 0.15s; }
.contact-links a:hover { color: var(--accent-bright); border-color: var(--accent); }
.big-mail {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  color: var(--fg);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  transition: color 0.2s, letter-spacing 0.3s var(--ease);
}
.big-mail:hover { color: var(--accent-bright); letter-spacing: 0.02em; }

/* ---------- writing ---------- */
.post-list { display: grid; gap: 16px; max-width: 820px; }
.post {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 30px 34px;
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.post:hover { border-color: var(--accent); transform: translateY(-3px); }
.post .meta { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-cool); margin-bottom: 8px; display: flex; gap: 18px; }
.post h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; margin-bottom: 8px; }
.post p { color: var(--muted); font-size: 0.96rem; }

/* ---------- anatomy overlay ---------- */
.anatomy-btn {
  position: fixed; bottom: 20px; left: 20px; z-index: 90;
  background: var(--card-lift);
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 16px; border-radius: 999px; cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.anatomy-btn:hover { border-color: var(--accent); color: var(--fg); }

.anatomy {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(9, 16, 25, 0.96);
  display: none;
  overflow-y: auto;
  padding: 60px 24px;
}
.anatomy.open { display: block; }
.anatomy .inner { max-width: 760px; margin: 0 auto; }
.anatomy-close { position: absolute; top: 22px; right: 26px; background: none; border: 1px solid var(--line); color: var(--fg); font-family: var(--font-mono); font-size: 0.78rem; padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.anatomy-close:hover { border-color: var(--accent); }
.anatomy h2 { margin-bottom: 8px; }
.anatomy .lead { color: var(--muted); margin-bottom: 40px; }

.pack-card {
  background: #fdfdfb;
  color: #1a1a1a;
  border-radius: 12px;
  padding: 22px 26px;
  font-family: Arial, sans-serif;
  max-width: 480px;
  margin: 0 auto 44px;
  position: relative;
}
.pack-card .pc-name { font-size: 1.15rem; font-weight: 700; color: #1a0dab; }
.pack-card .pc-stars { color: #e7711b; font-size: 0.95rem; margin: 4px 0; }
.pack-card .pc-stars b { color: #444; font-weight: 400; }
.pack-card .pc-meta { color: #555; font-size: 0.9rem; }
.pack-card .pc-open { color: #188038; font-size: 0.9rem; margin-top: 4px; }

.anatomy-notes { list-style: none; display: grid; gap: 16px; counter-reset: an; }
.anatomy-notes li { padding-left: 46px; position: relative; color: var(--muted); }
.anatomy-notes li strong { color: var(--fg); }
.anatomy-notes li::before {
  counter-increment: an;
  content: counter(an, decimal-leading-zero);
  position: absolute; left: 0; top: 2px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 2px 7px;
}

/* ---------- misc ---------- */
.todo {
  border: 1px dashed rgba(201, 163, 92, 0.5);
  background: var(--accent-soft);
  color: var(--accent-bright);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 10px 16px;
  border-radius: 8px;
  margin: 12px 0;
}

.about-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; max-width: 1020px; }
.about-cols p { color: var(--muted); font-size: 1.08rem; }
.about-cols strong { color: var(--fg); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- added: experience timeline + certs ---------- */
.timeline { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; margin-bottom: 56px; }
.tl-item { display: grid; grid-template-columns: 150px 1fr auto; gap: 26px; align-items: start; padding: 26px 30px; background: var(--card); transition: background 0.2s; }
.tl-item:hover { background: var(--card-lift); }
.tl-when { color: var(--accent); padding-top: 2px; white-space: nowrap; }
.tl-body h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; }
.tl-role { display: block; color: var(--accent-bright); margin: 5px 0 9px; font-size: 0.7rem; }
.tl-body p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.tl-tag { align-self: start; color: var(--muted-cool); font-size: 0.64rem; border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 760px) { .tl-item { grid-template-columns: 1fr; gap: 8px; } .tl-tag { justify-self: start; } }
.sub-h { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; letter-spacing: 0.005em; margin: 8px 0 22px; }

/* ---------- added: start-a-project contact form ---------- */
.contact-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; gap: 30px; } }
.contact-detail { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; }
.cd-row { background: var(--card); padding: 20px 24px; display: grid; grid-template-columns: 104px 1fr; gap: 16px; align-items: baseline; }
.cd-k { color: var(--muted-cool); }
.cd-row a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; font-family: var(--font-mono); font-size: 0.88rem; transition: color 0.15s, border-color 0.15s; }
.cd-row a:hover { color: var(--accent-bright); border-color: var(--accent); }
.cd-row > span:not(.cd-k) { color: var(--muted); font-size: 0.95rem; }
.contact-detail .avail { font-size: 0.9rem; }

.cform { background: var(--card); border: 1px solid var(--line-soft); border-radius: 12px; padding: 32px; display: grid; gap: 18px; }
.cf-field { display: grid; gap: 8px; }
.cf-field label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-cool); }
.cf-field .opt { color: var(--muted); text-transform: none; letter-spacing: 0; }
.cform input, .cform select, .cform textarea {
  width: 100%; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 8px;
  color: var(--fg); font-family: var(--font-body); font-size: 1rem; padding: 12px 14px;
  transition: border-color 0.15s;
}
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: none; border-color: var(--accent); }
.cform textarea { resize: vertical; min-height: 110px; }
.cform .btn { justify-self: start; cursor: pointer; }
.cf-note { color: var(--muted-cool); margin-top: -2px; }

/* ---------- added: hero CTA row ---------- */
.hero-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .hero-cta { opacity: 0; transform: translateY(22px); animation: rise 0.9s var(--ease) 0.3s forwards; }
@media (prefers-reduced-motion: reduce) { .hero .hero-cta { animation: none; opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .hero .hero-meta, .hero h1, .hero .bio-text, .hero .hero-links, .hero .hero-bottom { animation: none; opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee .track { animation: none; }
  .hero-scroll .line { animation: none; }
  .avail::before { animation: none; }
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); padding: 46px 0; background: var(--bg-deep); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }
.site-footer p { color: var(--muted-cool); font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; }
.site-footer .links { display: flex; gap: 22px; }
.site-footer .links a { color: var(--muted-cool); text-decoration: none; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; transition: color 0.15s; }
.site-footer .links a:hover { color: var(--accent-bright); }

/* ---------- responsive ---------- */
/* nav collapses earlier now that it holds seven items */
@media (max-width: 1060px) {
  .nav {
    display: none;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px var(--pad) 26px;
    gap: 18px;
  }
  .nav.open { display: flex; }
  .menu-btn { display: block; }
}
@media (max-width: 860px) {
  .hero { min-height: auto; padding: 60px 0 50px; }
  section { padding: 66px 0; }
  .stat { border-right: none; border-bottom: 1px solid var(--line-soft); padding: 36px var(--pad); }
  .stat:last-child { border-bottom: none; }
}

/* small phones: keep display headings from eating the fold */
@media (max-width: 640px) {
  h1 { font-size: clamp(2.1rem, 9vw, 2.6rem); }
  h2 { font-size: clamp(1.55rem, 6.6vw, 2rem); }
  .bio-text { font-size: 1.12rem; line-height: 1.7; }
}
