:root {
  --bg: #08141f;
  --bg-deep: #050d14;
  --surface: #0e1d29;
  --surface-2: #122636;
  --ink: #f4f2e9;
  --muted: #9babb7;
  --line: rgba(244, 242, 233, 0.13);
  --accent: #9dd6c6;
  --accent-2: #d7eb89;
  --max: 1180px;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(0,0,0,.24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: var(--bg-deep); }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
}
.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 120px 0; }
.section-muted { background: rgba(255,255,255,.025); border-block: 1px solid var(--line); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px);
  transition: border-color .2s ease, background .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg-deep) 90%, transparent); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 760; letter-spacing: -.02em; }
.brand-mark { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 650; transition: color .2s ease; }
.nav a:hover, .nav a:focus-visible { color: var(--ink); }
.nav .nav-cta { color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px; }
.nav-toggle { display: none; }

.hero { position: relative; overflow: hidden; padding-top: 130px; padding-bottom: 105px; }
.hero::before {
  content: "";
  position: absolute;
  width: 760px;
  height: 760px;
  right: -260px;
  top: -260px;
  border: 1px solid rgba(157,214,198,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 100px rgba(157,214,198,.018), 0 0 0 220px rgba(157,214,198,.012);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.22fr .78fr; gap: clamp(50px, 8vw, 110px); align-items: center; }
.eyebrow { margin: 0 0 20px; text-transform: uppercase; letter-spacing: .17em; font-size: 12px; font-weight: 800; color: var(--accent); }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 5px rgba(215,235,137,.08); }
h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -.045em; }
h1 { margin-bottom: 26px; max-width: 820px; font-size: clamp(50px, 6.4vw, 82px); font-weight: 760; }
h1 span { color: var(--accent); }
h2 { margin-bottom: 22px; font-size: clamp(36px, 5vw, 62px); font-weight: 730; }
h3 { font-size: 26px; }
.hero-lead { max-width: 730px; margin: 0; color: #bfccd4; font-size: clamp(19px, 2vw, 23px); line-height: 1.58; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 780; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: var(--bg-deep); }
.button-primary:hover { background: #b2e2d5; }
.button-ghost { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,.02); }
.button-ghost:hover { border-color: rgba(244,242,233,.3); background: rgba(255,255,255,.045); }

.button-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  color: currentColor;
}

.terminal-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(18,38,54,.9), rgba(7,18,28,.95)); box-shadow: var(--shadow); overflow: hidden; transform: rotate(1deg); }
.terminal-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.03), transparent 65%); pointer-events: none; }
.terminal-bar { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--muted); font: 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.terminal-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(244,242,233,.26); }
.terminal-bar strong { margin-left: 8px; font-weight: 500; }
.terminal-card pre { margin: 0; padding: 28px 26px 32px; overflow: auto; color: #ccd7dd; font: 13.5px/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.terminal-card .key { color: #85aee6; }
.terminal-card .value { color: #e3d397; }
.terminal-card .accent { color: var(--accent); }

.metrics { border-block: 1px solid var(--line); background: rgba(0,0,0,.12); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.metrics-grid > div { padding: 28px 24px; border-left: 1px solid var(--line); }
.metrics-grid > div:first-child { border-left: 0; }
.metrics strong { display: block; font-size: 22px; letter-spacing: -.035em; }
.metrics span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.4; }

.two-col { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(50px, 9vw, 130px); align-items: start; }
.section-heading { max-width: 600px; }
.section-heading-wide { max-width: 780px; margin-bottom: 64px; }
.section-heading-wide > p:last-child { color: var(--muted); max-width: 700px; }
.prose { max-width: 720px; }
.prose p { margin: 0 0 24px; color: #c2ced5; font-size: 18px; }
.prose p:first-child { color: var(--ink); font-size: 22px; }

.timeline { border-top: 1px solid var(--line); }
.role { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.role-meta { display: flex; flex-direction: column; gap: 8px; color: var(--muted); font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-transform: uppercase; letter-spacing: .08em; }
.role-body { max-width: 760px; }
.role-body h3 { margin-bottom: 13px; }
.role-body h3 small { display: inline; color: var(--muted); font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.role-body h3 small::before { content: " / "; color: var(--accent); }
.role-body p { margin: 0 0 20px; color: #b7c5ce; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: #aebcc5; font-size: 11px; font-weight: 700; letter-spacing: .025em; }

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.project-card { position: relative; min-height: 340px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(18,38,54,.55), rgba(8,20,31,.45)); overflow: hidden; }
.project-card.featured { grid-column: 1 / -1; min-height: 410px; display: grid; grid-template-columns: 1fr .7fr; gap: 50px; align-items: end; }
.project-index { position: absolute; top: 24px; right: 28px; color: rgba(244,242,233,.22); font: 13px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.project-content { position: relative; z-index: 2; align-self: end; max-width: 650px; }
.project-type { margin: 0 0 14px; color: var(--accent); text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.project-card h3 { margin-bottom: 16px; font-size: 32px; }
.project-card p:not(.project-type) { color: #b9c7cf; }
.project-card .tags { margin-top: 22px; }
.text-link { display: inline-flex; gap: 8px; margin-top: 26px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 800; }
.text-link:hover { color: var(--accent); }
.code-visual { min-height: 275px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; align-content: center; transform: rotate(-3deg); }
.code-visual span { min-height: 88px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: rgba(5,13,20,.6); color: var(--muted); font: 700 13px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.code-visual span:first-child { color: var(--accent); font-size: 28px; }

.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 54px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.skill-group { min-height: 260px; padding: 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.skill-no { color: var(--accent); font: 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.skill-group h3 { margin: 50px 0 14px; }
.skill-group p { margin: 0; color: var(--muted); }

.contact { padding-block: 130px; border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr .8fr; gap: clamp(40px, 10vw, 140px); align-items: start; }
.contact-copy { padding-top: 48px; }
.contact-copy > p { color: #bcc9d1; font-size: 18px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.contact-placeholder { padding: 14px 16px; border-left: 2px solid var(--accent); background: rgba(157,214,198,.05); font-size: 13px !important; }

.site-footer { border-top: 1px solid var(--line); padding: 30px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; align-items: end; }
.site-footer p { margin: 0; color: var(--muted); font-size: 12px; }
.site-footer strong { color: var(--ink); font-size: 14px; }
.footer-right { text-align: right; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Recipe and miniature project archives */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
}
.archive-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(18,38,54,.5), rgba(8,20,31,.38));
  color: inherit;
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.archive-card:hover {
  transform: translateY(-4px);
  border-color: rgba(157,214,198,.4);
  background: linear-gradient(145deg, rgba(23,47,64,.7), rgba(8,20,31,.5));
}
.archive-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(157,214,198,.04);
}
.archive-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease;
}
.archive-card:hover .archive-media img { transform: scale(1.025); }
.archive-card-copy { padding: 26px 28px 28px; }
.archive-meta {
  margin: 0 0 12px;
  color: var(--accent);
  font: 800 11px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.archive-card h3 { margin: 0 0 12px; font-size: clamp(28px, 3vw, 38px); }
.archive-card-copy > p:not(.archive-meta) { margin: 0; color: var(--muted); }
.archive-link {
  display: inline-flex;
  gap: 8px;
  margin-top: 22px;
  font-size: 13px;
  font-weight: 800;
}
.archive-card:hover .archive-link { color: var(--accent); }

/* Compact recipe archive */
.recipe-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.recipe-grid .archive-media {
  aspect-ratio: 4 / 3;
}
.recipe-grid .archive-card-copy {
  padding: 20px 22px 22px;
}
.recipe-grid .archive-card h3 {
  margin-bottom: 10px;
  font-size: clamp(23px, 2vw, 29px);
  line-height: 1.08;
}
.recipe-grid .archive-card-copy > p:not(.archive-meta) {
  font-size: 15px;
  line-height: 1.6;
}
.recipe-grid .archive-link {
  margin-top: 17px;
}

.collection-empty {
  grid-column: 1 / -1;
  min-height: 190px;
  display: grid;
  place-items: center;
  padding: 30px;
  border: 1px dashed rgba(157,214,198,.22);
  border-radius: var(--radius);
  background: rgba(157,214,198,.025);
  color: var(--muted);
  text-align: center;
  font: 700 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (max-width: 900px) {
  .contact-copy { padding-top: 0; }
  .section { padding: 90px 0; }
  .hero { padding-top: 90px; }
  .hero-grid, .two-col, .contact-grid { grid-template-columns: 1fr; }
  .terminal-card { max-width: 650px; transform: none; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .metrics-grid > div:nth-child(4) { border-top: 1px solid var(--line); }
  .role { grid-template-columns: 170px 1fr; }
  .project-card.featured { grid-template-columns: 1fr; }
  .code-visual { display: none; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .nav-toggle { position: relative; display: block; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 9px; background: transparent; }
  .nav-toggle span:not(.sr-only) { position: absolute; left: 12px; width: 17px; height: 1px; background: var(--ink); transition: transform .2s ease, top .2s ease; }
  .nav-toggle span:nth-of-type(2) { top: 16px; }
  .nav-toggle span:nth-of-type(3) { top: 24px; }
  .nav-toggle[aria-expanded="true"] span:nth-of-type(2) { top: 20px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-of-type(3) { top: 20px; transform: rotate(-45deg); }
  .nav { position: absolute; top: 76px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); background: var(--bg-deep); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 4px; }
  .nav .nav-cta { margin-top: 8px; text-align: center; }
  h1 { font-size: clamp(45px, 14vw, 68px); }
  h2 { font-size: clamp(35px, 10vw, 48px); }
  .metrics-grid { grid-template-columns: 1fr; }
  .metrics-grid > div { border-left: 0; border-top: 1px solid var(--line); padding-inline: 0; }
  .metrics-grid > div:first-child { border-top: 0; }
  .role { grid-template-columns: 1fr; gap: 18px; }
  .role-meta { flex-direction: row; justify-content: space-between; }
  .project-grid, .skills-grid { grid-template-columns: 1fr; }
  .project-card.featured { min-height: 380px; }
  .project-card { min-height: 320px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-right { text-align: left; }
}

/* Expandable experience scope */
.timeline-hint {
  margin: -34px 0 22px;
  color: var(--muted);
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .035em;
}
.role {
  display: block;
  padding: 0;
}
.role-summary {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  padding: 40px 0;
  cursor: pointer;
  list-style: none;
}
.role-summary::-webkit-details-marker { display: none; }
.role-summary::marker { display: none; content: ""; }
.role-summary:hover .role-body h3 { color: var(--accent); }
.role-summary:hover .role-toggle { border-color: rgba(157,214,198,.55); color: var(--accent); }
.role-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.role-title-row h3 { transition: color .2s ease; }
.role-toggle {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  margin-top: -3px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font: 18px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  transition: transform .25s ease, color .2s ease, border-color .2s ease;
}
.role[open] .role-toggle { transform: rotate(45deg); color: var(--accent); border-color: rgba(157,214,198,.55); }
.role[open] .role-summary { padding-bottom: 26px; }
.role-details {
  margin-left: 280px;
  max-width: 760px;
  padding: 0 0 42px;
  animation: role-open .25s ease;
}
.role-details-label {
  margin: 0 0 16px;
  color: var(--accent);
  font: 800 11px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.role-details ul { margin: 0; padding: 0; list-style: none; }
.role-details li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-top: 1px solid rgba(255,255,255,.055);
  color: #b7c5ce;
  line-height: 1.55;
}
.role-details li:first-child { border-top: 0; }
.role-details li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@keyframes role-open {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .role-summary { grid-template-columns: 170px 1fr; }
  .role-details { margin-left: 210px; }
}

@media (max-width: 680px) {
  .timeline-hint { margin-top: -38px; }
  .role-summary { grid-template-columns: 1fr; gap: 18px; padding: 34px 0; }
  .role-details { margin-left: 0; padding-bottom: 36px; }
  .role-title-row { gap: 12px; }
  .role-toggle { width: 28px; height: 28px; }
}

/* Outside QA */
.outside-qa {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 28%, rgba(157,214,198,.055), transparent 28%),
    var(--bg);
}
.outside-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.outside-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(18,38,54,.52), rgba(8,20,31,.36));
  text-decoration: none;
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.outside-card:hover {
  transform: translateY(-4px);
  border-color: rgba(157,214,198,.4);
  background: linear-gradient(145deg, rgba(23,47,64,.7), rgba(8,20,31,.5));
}
.outside-copy h3 { margin: 0 0 15px; font-size: 31px; }
.outside-copy > p:not(.project-type) { margin: 0; color: #b9c7cf; }
.outside-link {
  display: inline-flex;
  gap: 8px;
  margin-top: 24px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}
.outside-card:hover .outside-link { color: var(--accent); }

/* Off-duty detail pages */
.subpage-main { min-height: calc(100vh - 164px); }
.subpage-hero { padding-top: 110px; padding-bottom: 80px; }
.subpage-back {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 34px;
  color: var(--muted);
  text-decoration: none;
  font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.subpage-back:hover { color: var(--accent); }
.subpage-title { max-width: 900px; }
.subpage-title h1 { font-size: clamp(50px, 8vw, 94px); }
.subpage-title > p:last-child { max-width: 760px; color: #bfccd4; font-size: clamp(19px, 2vw, 23px); }
.subpage-section { padding: 75px 0 110px; border-top: 1px solid var(--line); }
.compact-archive-section, .compact-detail-section { padding-top: 58px; }
.cooking-archive { padding-top: 58px; }
.subpage-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 44px; }
.archive-grid-direct, .subpage-grid-direct { margin-top: 0; }
.subpage-panel {
  min-height: 270px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(18,38,54,.5), rgba(8,20,31,.38));
}
.subpage-panel h2 { margin-top: 32px; font-size: clamp(30px, 4vw, 44px); }
.subpage-panel p { color: var(--muted); }
.subpage-panel .skill-no { display: block; }
.subpage-note {
  max-width: 760px;
  margin-top: 32px;
  padding: 18px 20px;
  border-left: 2px solid var(--accent);
  background: rgba(157,214,198,.045);
  color: #b9c7cf;
}

@media (max-width: 900px) {
  .outside-grid { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
  .recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .outside-card { min-height: 270px; }
}
@media (max-width: 680px) {
  .outside-card { min-height: 250px; padding: 25px; }
  .recipe-grid { grid-template-columns: 1fr; }
  .subpage-grid { grid-template-columns: 1fr; }
  .subpage-hero { padding-top: 80px; }
}


/* Recipe detail */
.recipe-hero { padding-top: 110px; padding-bottom: 70px; }
.recipe-hero-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(42px, 7vw, 90px);
  align-items: center;
}
.recipe-title h1 { font-size: clamp(45px, 6.2vw, 78px); }
.recipe-title > p:not(.eyebrow) { max-width: 620px; margin: 0; color: #bfccd4; font-size: 19px; }
.recipe-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.recipe-facts span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font: 700 12px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.recipe-facts strong { color: var(--ink); }
.recipe-hero-image {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(157,214,198,.03);
  box-shadow: var(--shadow);
}
.recipe-hero-image img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.recipe-content-section { padding: 30px 0 120px; }
.recipe-layout {
  display: grid;
  grid-template-columns: minmax(270px, .62fr) minmax(0, 1.38fr);
  gap: clamp(45px, 8vw, 110px);
  align-items: start;
}
.recipe-ingredients {
  position: sticky;
  top: 110px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(18,38,54,.52), rgba(8,20,31,.36));
}
.recipe-ingredients h2, .recipe-method h2 { font-size: clamp(31px, 4vw, 46px); }
.recipe-ingredients ul { margin: 28px 0 0; padding: 0; list-style: none; }
.recipe-ingredients li {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(170,194,209,.1);
  color: #c3ced5;
}
.recipe-ingredients li:first-child { border-top: 0; }
.recipe-ingredients li span {
  color: var(--accent);
  font: 700 11px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.recipe-method ol { margin: 34px 0 0; padding: 0; list-style: none; }
.recipe-method li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.recipe-method li:last-child { border-bottom: 1px solid var(--line); }
.recipe-method li p { margin: 0; color: #c2ced5; font-size: 17px; line-height: 1.78; }
.step-no { color: var(--accent); font: 800 12px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; }
.recipe-enjoy { margin: 34px 0 0; color: var(--accent); font-size: 28px; font-weight: 760; letter-spacing: -.03em; }

@media (max-width: 900px) {
  .recipe-hero-grid, .recipe-layout { grid-template-columns: 1fr; }
  .recipe-hero-image { max-width: 720px; }
  .recipe-ingredients { position: static; }
}
@media (max-width: 680px) {
  .recipe-hero { padding-top: 92px; padding-bottom: 50px; }
  .recipe-content-section { padding-bottom: 90px; }
  .recipe-ingredients { padding: 24px; }
  .recipe-ingredients li { grid-template-columns: 72px 1fr; }
  .recipe-method li { grid-template-columns: 36px 1fr; gap: 14px; padding: 25px 0; }
  .recipe-method li p { font-size: 16px; }
}


/* v16 — project portfolio and a one-way introduction to Gabdrango */
#work .section-heading-wide { max-width: 830px; }
#work .section-heading-wide > p:last-child { max-width: 790px; }
.project-card.featured { align-items: center; }
.project-card-compact { min-height: 410px; display: flex; flex-direction: column; justify-content: space-between; }
.project-card-compact .project-content { align-self: stretch; }
.project-card-compact h3 { margin-bottom: 12px; }
.project-card-compact .tags { margin-top: 20px; }
.project-note { margin-top: 22px; font-size: 12px; color: var(--muted) !important; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.project-accent { display: flex; align-items: center; gap: 17px; margin-top: 32px; width: fit-content; color: rgba(157,214,198,.75); font: 800 clamp(18px, 2.6vw, 32px)/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: -.06em; }
.project-accent span:nth-child(2) { font-size: 16px; color: var(--muted); }
.project-accent-quiz { gap: 8px; }
.project-accent-quiz span { display: grid; place-items: center; border: 1px solid var(--line); width: 60px; height: 46px; border-radius: 8px; }
.project-accent-quiz span:nth-child(2) { width: auto; border: 0; }
.portfolio-visual { display: flex; justify-content: center; align-items: center; min-width: 0; padding: 25px 0; }
.mini-browser { width: min(100%, 450px); border: 1px solid rgba(244,242,233,.21); border-radius: 12px; overflow: hidden; background: #e7e3dd; color: #242020; transform: rotate(-3deg); box-shadow: 0 28px 80px rgba(0,0,0,.25); }
.mini-browser-bar { height: 37px; display: flex; align-items: center; gap: 6px; padding: 0 13px; border-bottom: 1px solid #d0c6c0; background: #f0ebe5; }
.mini-browser-bar > span { width: 7px; height: 7px; border-radius: 50%; background: #bdb5ac; }
.mini-browser-bar small { margin-left: 10px; font: 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #746f69; }
.mini-browser-content { padding: 20px 21px 25px; }
.mini-browser-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .09em; }
.mini-browser-head span { font-size: 9px; font-weight: 600; }
.art-tiles { display: grid; grid-template-columns: 1fr 1.08fr .8fr; gap: 9px; height: 145px; margin-top: 23px; }
.art-tiles i { border-radius: 2px; background: linear-gradient(142deg, #4b5b56 0 40%, #b1aca0 40% 59%, #686555 59%); }
.art-tiles i:nth-child(2) { background: linear-gradient(155deg, #b49073 0 35%, #453f3c 35% 54%, #c4b39b 54%); }
.art-tiles i:nth-child(3) { background: linear-gradient(33deg, #6b726b 0 45%, #d0c0a6 45% 65%, #666969 65%); }
.mini-browser-lines { display: flex; flex-direction: column; gap: 7px; margin-top: 18px; }
.mini-browser-lines b { height: 5px; width: 65%; border-radius: 99px; background: #bfb9b2; }
.mini-browser-lines b:last-child { width: 39%; }
.beyond-work { position: relative; border-top: 1px solid var(--line); background: radial-gradient(circle at 75% 47%, rgba(191,105,76,.065), transparent 35%), #0a141d; }
.beyond-grid { display: grid; grid-template-columns: 1fr 0.9fr; align-items: center; gap: clamp(45px, 8vw, 115px); }
.beyond-copy { max-width: 570px; }
.beyond-copy h2 { max-width: 570px; }
.beyond-copy h2 em { font-style: normal; color: #d9a28e; }
.beyond-copy > p:not(.eyebrow) { max-width: 540px; color: #bfccd4; font-size: 18px; }
.beyond-actions { margin-top: 30px; }
.button-beyond { background: #d8a38f; color: #241815; }
.button-beyond:hover { background: #e9b9a4; }
.beyond-pending { display: inline-flex; align-items: center; gap: 12px; padding: 12px 17px; border: 1px solid rgba(216,163,143,.3); border-radius: 10px; color: #d8a38f; font: 750 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.beyond-poster { position: relative; isolation: isolate; min-height: 390px; display: flex; flex-direction: column; justify-content: space-between; padding: 26px; border: 1px solid #5b433b; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #2c2220, #181a1a); box-shadow: 0 20px 65px rgba(0,0,0,.18); }
.beyond-poster:before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .25; background: repeating-linear-gradient(0deg, transparent 0 19px, #bb7761 20px 21px); }
.poster-meta, .poster-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #d7ad9b; font: 700 10px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; }
.poster-meta { border-bottom: 1px solid rgba(232,189,169,.22); padding-bottom: 16px; }
.poster-bottom { border-top: 1px solid rgba(232,189,169,.22); padding-top: 15px; }
.poster-title { position: relative; z-index: 1; color: #eee3d8; font-size: clamp(50px, 5.5vw, 82px); font-weight: 900; line-height: .96; letter-spacing: -.065em; }
.poster-title span { color: #d7795b; }
.poster-pixel { position: absolute; top: 30%; right: 5%; width: 85px; height: 85px; transform: rotate(15deg); background: repeating-conic-gradient(#cf8066 0% 25%, transparent 0% 50%) 50% / 17px 17px; opacity: .2; }
@media (max-width: 900px) {
  .beyond-grid { grid-template-columns: 1fr; }
  .beyond-poster { max-width: 650px; }
  .project-card.featured { gap: 20px; }
  .portfolio-visual { padding: 10px 0 0; }
}
@media (max-width: 680px) {
  .project-card.featured { min-height: 0; }
  .project-card-compact { min-height: 0; padding-bottom: 26px; }
  .project-accent { margin-top: 23px; }
  .portfolio-visual { padding: 20px 0 7px; }
  .mini-browser { transform: none; }
  .beyond-copy > p:not(.eyebrow) { font-size: 16px; }
  .beyond-poster { min-height: 315px; padding: 17px; }
  .poster-title { font-size: clamp(50px, 13vw, 69px); }
  .poster-meta, .poster-bottom { font-size: 8px; }
  .poster-pixel { width: 60px; height: 60px; background-size: 12px 12px; }
}

/* Respect native hidden attributes even when components set display. */
[hidden] { display: none !important; }
