:root {
  color-scheme: dark;
  --bg: #151f30;
  --panel: #1d2a40;
  --surface: #263752;
  --ink: #eff2f8;
  --muted: #b8c5da;
  --line: #43536b;
  --accent: #c77e88;
  --accent-fill: #923b4e;
  --accent-border: #b45d6f;
  --paper: #e7ecf3;
  --paper-card: #dae3ef;
  --paper-ink: #1c283c;
  --paper-muted: #42536a;
  --paper-line: #b0bdd0;
  --paper-accent: #742f42;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 4.75rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.6 var(--sans); }
a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, h4, figure { margin: 0; }
h1, h2, h3, h4 { line-height: 1.08; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
section[id], #tinker-vr, #studio-ai-title { scroll-margin-top: 1.75rem; }

.wrap { width: min(100% - 6rem, 77rem); margin-inline: auto; }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 2; padding: .5rem .8rem; transform: translateY(-200%); background: var(--accent-fill); color: var(--ink); }
.skip-link:focus { transform: none; }
.eyebrow { color: var(--muted); font: 600 .7rem/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.text-link { display: inline-flex; align-items: baseline; gap: .35em; width: fit-content; font-size: .875rem; font-weight: 650; text-decoration: none; }
.text-link span { color: var(--accent); }
.text-link:hover { text-decoration: underline; text-underline-offset: .25em; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .85rem; min-height: 2.9rem; padding: .64rem 1rem; border: 1px solid transparent; border-radius: .3rem; cursor: pointer; font-size: .875rem; font-weight: 700; text-decoration: none; transition: background .18s ease, border-color .18s ease; }
.button.primary { color: var(--ink); border-color: var(--accent-border); background: var(--accent-fill); }
.button.primary:hover { background: #a04759; }
.button.secondary { background: transparent; border-color: var(--line); color: var(--ink); }
.button.secondary:hover { border-color: var(--muted); background: var(--panel); }
.button.resume-cta { min-height: 3.7rem; padding: .9rem 1.45rem; font-size: 1.08rem; box-shadow: 0 .3rem 1.1rem #0c14224d; }

.site-header { position: sticky; top: 0; z-index: 1; border-bottom: 1px solid var(--line); background: var(--bg); }
.header-inner { display: flex; min-height: 4.65rem; align-items: center; justify-content: space-between; gap: 1.2rem; }
.wordmark { display: inline-flex; align-items: center; gap: .6rem; flex: 0 0 auto; font-size: .86rem; font-weight: 700; text-decoration: none; }
.mark { display: grid; width: 2.1rem; height: 2.1rem; place-items: center; background: var(--accent-fill); color: var(--ink); border-radius: .28rem; font: 800 .8rem/1 var(--mono); letter-spacing: -.05em; }
.site-header nav { display: flex; align-items: center; gap: clamp(.9rem, 3vw, 2.35rem); }
.site-header nav a { color: var(--muted); font-size: .86rem; font-weight: 600; text-decoration: none; }
.site-header nav a:hover { color: var(--ink); }
.header-contact { padding: .35rem 0; }

.hero { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(2.1rem, 5.3vw, 5.2rem); align-items: center; padding-block: clamp(3.5rem, 7vw, 7rem); }
.hero-role { display: flex; align-items: center; gap: .65rem; color: var(--accent); }
.status-dot { width: .42rem; height: .42rem; flex: 0 0 auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 .2rem #c77e8826; }
.hero h1 { margin: 1.05rem 0 1.25rem; font-size: clamp(3.65rem, 7.3vw, 7.1rem); font-weight: 800; line-height: .91; letter-spacing: -.077em; }
.hero h1 span, .section h2 span { color: var(--accent); }
.hero-intro { max-width: 32rem; color: var(--muted); font-size: clamp(1rem, 1.42vw, 1.2rem); }
.hero-results { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: .75rem; margin: 1.35rem 0 0; padding: 0; list-style: none; }
.hero-results a { display: block; height: 100%; padding-top: .5rem; border-top: 2px solid var(--accent-border); text-decoration: none; }
.hero-results strong { display: block; font-size: clamp(.9rem, 1.3vw, 1.12rem); line-height: 1.2; }
.hero-results a:hover strong { text-decoration: underline; text-underline-offset: .2em; }
.hero-results span { display: block; margin-top: .22rem; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem; }
.hero-startup-link { margin-top: .65rem; }
.hero-figure { overflow: hidden; border: 1px solid var(--line); border-radius: .55rem; background: var(--panel); }
.figure-top { display: flex; justify-content: space-between; align-items: center; min-height: 2.45rem; gap: 1rem; padding: .5rem .9rem; color: var(--muted); font: 600 .68rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.figure-top i { display: inline-block; width: .43rem; height: .43rem; margin-right: .4rem; background: var(--accent); }
.hero-image { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 48% 45%; }
.hero-figure figcaption { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .85rem .95rem; }
.hero-figure figcaption strong, .hero-figure figcaption div span { display: block; }
.hero-figure figcaption strong { font-size: .96rem; }
.hero-figure figcaption div span { color: var(--muted); font-size: .77rem; }

.section { padding-block: clamp(3.8rem, 6.7vw, 6.6rem); border-top: 1px solid var(--line); }
.studio, .lakan-section { background: var(--panel); }
.section-lead { display: grid; grid-template-columns: 1fr .76fr; gap: 2rem; align-items: end; margin-bottom: 2.65rem; }
.section-lead > p, .experience-intro > p:not(.eyebrow), .contact-inner p:not(.eyebrow) { max-width: 34rem; color: var(--muted); font-size: 1.075rem; }
.section-number { display: flex; align-items: center; gap: .6rem; color: var(--accent); margin-bottom: .75rem; }
.section-number span { width: 1.45rem; height: 1px; background: currentColor; opacity: .55; }
.section h2 { font-size: clamp(3.2rem, 6.4vw, 6rem); font-weight: 800; letter-spacing: -.072em; line-height: .98; }
.studio-highlight { display: grid; grid-template-columns: 1fr .76fr; align-items: center; gap: 1.5rem; margin-bottom: 1.75rem; padding: 1.25rem 1.4rem; border: 1px solid var(--line); border-left: .25rem solid var(--accent-border); border-radius: .45rem; background: var(--bg); }
.studio-highlight .eyebrow { color: var(--accent); }
.studio-highlight h3 { margin-top: .4rem; font-size: clamp(1.35rem, 2.4vw, 1.95rem); letter-spacing: -.035em; }
.studio-highlight-copy { max-width: 34rem; color: var(--muted); }
.studio-highlight-copy p + p { margin-top: .65rem; }
.studio-highlight-copy strong, .feature-body strong { color: var(--ink); }
.section-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-block: .8rem; }
.feature-grid, .startup-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.lakan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: .45rem; background: var(--bg); }
.feature-art { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface); }
.feature-art img { width: 100%; height: 100%; object-fit: cover; }
.feature-art iframe { display: block; width: 100%; height: 100%; border: 0; }
.feature-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: .65rem; padding: 1.1rem 1.15rem 1.2rem; }
.feature-body .eyebrow { color: var(--accent); }
.feature-body h3, .startup-grid h3 { font-size: clamp(1.35rem, 2.1vw, 1.9rem); letter-spacing: -.035em; }
.feature-body > p:not(.eyebrow) { color: var(--muted); font-size: .93rem; }
.link-row { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.05rem; margin-top: auto; padding-top: .45rem; }

.archive { margin-top: 1.35rem; }
.archive summary { width: fit-content; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: .3rem; cursor: pointer; font-weight: 700; }
.archive summary:hover { border-color: var(--muted); background: var(--bg); }
.archive summary::marker { color: var(--accent); }
.result-count { margin: 1rem 0 .5rem; color: var(--muted); font: 600 .75rem/1.6 var(--mono); }
.filters { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .9rem; }
.filters button { min-height: 2.4rem; padding: .45rem .73rem; border: 1px solid var(--line); border-radius: .23rem; background: transparent; color: var(--muted); cursor: pointer; font-size: .8rem; font-weight: 650; }
.filters button:hover { color: var(--ink); border-color: var(--muted); }
.filters button[aria-pressed="true"] { border-color: var(--accent-border); background: var(--accent-fill); color: var(--ink); }
.project-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.project-row { display: grid; grid-template-columns: 6.6rem 1fr auto; align-items: center; gap: .85rem 1.1rem; padding-block: .8rem; border-bottom: 1px solid var(--line); }
.project-thumb { overflow: hidden; aspect-ratio: 16 / 10; border-radius: .3rem; background: var(--surface); }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-summary h3 { margin: .14rem 0; font-size: 1.1rem; letter-spacing: -.015em; }
.project-summary p:not(.eyebrow) { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.project-row > .text-link { white-space: nowrap; }
.project-glyph { display: grid; width: 100%; height: 100%; place-items: center; background: var(--surface); color: var(--muted); }
.project-glyph.dino { background: #3d2b3b; color: var(--accent); }
.project-glyph svg { width: 2.2rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }

.startups-section { background: var(--paper); color: var(--paper-ink); }
.startups-section .section-lead > p, .startups-section .eyebrow { color: var(--paper-muted); }
.startups-section .section-number, .startups-section h2 span, .startup-project-link span { color: var(--paper-accent); }
.startups-section :focus-visible, .resume-page :focus-visible { outline-color: var(--paper-accent); }
.startup-grid article { padding: 1.05rem 1.15rem 1.15rem; border-top: 2px solid var(--paper-accent); background: var(--paper-card); }
.startup-grid h3, .startup-grid h4 { margin: .5rem 0; }
.startup-grid h4 { font-size: 1.15rem; letter-spacing: -.02em; }
.startup-grid article > p:not(.eyebrow) { color: var(--paper-muted); font-size: .94rem; }
.startup-grid .startup-role { margin-bottom: .5rem; font-weight: 700; }
.startup-project-link { margin-top: .6rem; }

.startup-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1rem; margin-bottom: 1rem; }
.startup-selectors { display: flex; flex-wrap: wrap; gap: .45rem; }
.startup-controls button { min-height: 2.7rem; padding: .5rem .85rem; border: 1px solid var(--paper-line); border-radius: .3rem; background: transparent; color: var(--paper-ink); font-size: .85rem; font-weight: 700; cursor: pointer; }
.startup-controls button:hover:not(:disabled) { border-color: var(--paper-accent); }
.startup-selectors button[aria-pressed="true"] { background: var(--paper-accent); border-color: var(--paper-accent); color: var(--ink); }
.startup-navigation { display: flex; align-items: center; gap: .65rem; }
.startup-navigation button { min-width: 2.7rem; padding-inline: .6rem; font-size: 1.1rem; }
.startup-navigation button:disabled { opacity: .4; cursor: default; }
.startup-status { min-width: 3.5rem; color: var(--paper-muted); text-align: center; font: 600 .75rem/1.5 var(--mono); }
.startup-slide { display: grid; grid-template-columns: .8fr 1.2fr; align-items: start; gap: 1.4rem 2.2rem; min-height: 19rem; padding: clamp(1.25rem, 3vw, 2.2rem); border: 1px solid var(--paper-line); border-top: .2rem solid var(--paper-accent); border-radius: .4rem; background: var(--paper-card); }
.startup-slide + .startup-slide { margin-top: 1rem; }
.startup-carousel.is-ready .startup-slide { margin-top: 0; }
.startup-meta h3 { margin: .7rem 0 .5rem; font-size: clamp(1.9rem, 3.4vw, 3rem); letter-spacing: -.045em; }
.startup-meta .startup-role { font-weight: 700; }
.startup-impact h4 { max-width: 29rem; margin-bottom: .8rem; font-size: clamp(1.65rem, 2.7vw, 2.25rem); letter-spacing: -.04em; }
.startup-impact > p { color: var(--paper-muted); }
.startup-consulting { margin-top: 2rem; padding-top: 1.1rem; border-top: 1px solid var(--paper-line); }
.startup-consulting > h3 { margin-bottom: .85rem; font-size: 1.25rem; letter-spacing: -.025em; }
.consulting-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.consulting-grid article { border-top: 0; }

.experience-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); }
.experience-intro > p:not(.eyebrow) { margin-top: .95rem; }
.experience-intro > a { margin-top: .9rem; }
.career-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.career-item[id] { scroll-margin-top: 1.75rem; }
.career-points { margin: .45rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .9rem; }
.career-points li + li { margin-top: .3rem; }
.earlier-experience { margin-top: 1.5rem; }
.earlier-experience summary { padding-block: .6rem; color: var(--muted); cursor: pointer; font-weight: 700; }
.career-item { display: grid; grid-template-columns: 8.1rem 1fr; gap: .65rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.career-item > .eyebrow { color: var(--accent); padding-top: .1rem; }
.career-item h3 { font-size: 1.24rem; letter-spacing: -.025em; }
.career-item div p { color: var(--muted); font-size: .9rem; }
.career-item div .career-role { margin: .2rem 0 .3rem; color: var(--ink); font-weight: 650; }

.skills-section { background: var(--paper); color: var(--paper-ink); }
.skills-section h2 span { color: var(--paper-accent); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}
.skills-grid li {
  padding-top: .9rem;
  border-top: 1px solid var(--paper-line);
}
.skills-grid h3 { font-size: clamp(1.12rem, 1.8vw, 1.4rem); letter-spacing: -.025em; }
.skills-grid p { margin-top: .45rem; color: var(--paper-muted); font-size: .95rem; }

.contact-section { background: var(--panel); }
.contact-inner { display: flex; align-items: end; justify-content: space-between; gap: 1.25rem; }
.contact-inner p:not(.eyebrow) { margin-top: .9rem; }
.contact-actions, .resume-toolbar-actions, .resume-links { display: flex; flex-wrap: wrap; gap: .5rem .7rem; }
.contact-actions { flex: 0 0 auto; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: .55rem 1rem; padding-block: 1.25rem; color: var(--muted); font-size: .8rem; }
.footer-inner a { white-space: nowrap; }

.resume-page { color-scheme: light; background: var(--paper); color: var(--paper-ink); }
.resume-paper { width: min(100% - 3rem, 49rem); margin: 2rem auto 3rem; padding: clamp(1.2rem, 4vw, 3rem); border: 1px solid var(--paper-line); background: #f3f6fa; }
.resume-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: 1.5rem; }
.resume-toolbar .button.secondary { color: var(--paper-ink); border-color: var(--paper-muted); }
.resume-toolbar .button.secondary:hover { background: var(--paper-card); }
.resume-header { border-bottom: 2px solid var(--paper-accent); padding-bottom: .9rem; }
.resume-header h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; letter-spacing: -.07em; }
.resume-header h1 span { color: var(--paper-accent); }
.resume-header p { margin-top: .25rem; font-weight: 700; }
.resume-links a { color: var(--paper-accent); font-size: .87rem; }
.resume-paper section { margin-top: 1.15rem; }
.resume-paper h2 { margin-bottom: .36rem; color: var(--paper-accent); font: 700 .82rem/1.5 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.resume-paper p { font-size: .92rem; line-height: 1.45; }
.resume-entry + .resume-entry { margin-top: .7rem; }
.resume-entry > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .15rem .75rem; }
.resume-entry h3 { font-size: 1.02rem; }
.resume-entry span { color: var(--paper-muted); font-size: .8rem; }
.resume-entry .resume-role { margin: .15rem 0; font-weight: 700; }
.resume-points { margin: .25rem 0 0; padding-left: 1.1rem; font-size: .92rem; line-height: 1.45; }
.resume-points li + li { margin-top: .2rem; }

@media (max-width: 65rem) {
  .wrap { width: min(100% - 4rem, 77rem); }
}

@media (max-width: 49rem) {
  html { scroll-padding-top: 6rem; }
  .wrap { width: calc(100% - 2.5rem); }
  .header-inner { flex-wrap: wrap; min-height: 3.85rem; gap: .55rem .85rem; padding-block: .65rem; }
  .site-header nav { order: 3; flex: 1 0 100%; justify-content: space-between; gap: .4rem; border-top: 1px solid var(--line); padding-top: .6rem; }
  .hero { grid-template-columns: 1fr; gap: 2rem; padding-block: 3.15rem 2.85rem; }
  .hero h1 { font-size: clamp(3.1rem, 11vw, 5.7rem); }
  .hero-image { aspect-ratio: 16 / 9; }
  .hero-actions .resume-cta { width: 100%; }
  .startup-slide { grid-template-columns: 1fr; min-height: 0; gap: 1.4rem; }
  .startup-controls { align-items: flex-start; }
  .section-lead, .experience-grid { grid-template-columns: 1fr; gap: .95rem; }
  .section-lead { margin-bottom: 1.75rem; }
  .studio-highlight { grid-template-columns: 1fr; gap: .65rem; padding: 1.1rem; }
  .section-lead > p, .experience-intro > p:not(.eyebrow), .contact-inner p:not(.eyebrow) { font-size: 1rem; }
  .feature-grid, .startup-grid { grid-template-columns: 1fr; }
  .feature-art { aspect-ratio: 2 / 1; }
  .lakan-grid .feature-art { aspect-ratio: 16 / 9; }
  .experience-intro { margin-bottom: .45rem; }
  .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; }
}

@media (max-width: 32rem) {
  .hero-role { font-size: .63rem; letter-spacing: .06em; }
  .figure-top, .hero-figure figcaption { padding-inline: .7rem; }
  .hero-figure figcaption .text-link { font-size: .79rem; }
  .hero-results { gap: .5rem; }
  .skills-grid { grid-template-columns: 1fr; margin-top: 1.65rem; }
  .project-row { grid-template-columns: 3.75rem minmax(0, 1fr); gap: .25rem .65rem; align-items: start; }
  .project-thumb { grid-row: 1 / span 2; }
  .project-row > .text-link { grid-column: 2; font-size: .82rem; white-space: normal; }
  .project-summary .eyebrow { font-size: .62rem; letter-spacing: .06em; }
  .career-item { grid-template-columns: 1fr; gap: .25rem; }
  .contact-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-wrap: wrap; }
  .footer-inner p:nth-child(2) { order: 3; flex: 1 0 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

@page { size: auto; margin: 13mm; }

@media print {
  .resume-page { background: white; color: #111; }
  .resume-paper { width: 100%; max-width: none; margin: 0; padding: 0; border: 0; background: white; }
  .resume-toolbar { display: none; }
  .resume-header h1 { font-size: 30pt; }
  .resume-paper h2 { font-size: 9pt; }
  .resume-paper p, .resume-paper a, .resume-points { font-size: 10pt; }
  .resume-entry { break-inside: avoid; }
}
