/* Editorial identity: paper, ink, copper, and the geometry of a working drawing. */
:root {
  --font-display: 'Hanken Grotesk', Arial, sans-serif;
  --font-body: 'Hanken Grotesk', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-editorial: 'Bodoni Moda', Georgia, serif;
  --bg: #20221e;
  --bg-elevated: #282b25;
  --bg-soft: #30332c;
  --bg-hover: #3c4036;
  --text: #f4f1e9;
  --text-secondary: #c2c3b7;
  --text-muted: #a3a697;
  --accent: #ed9b6f;
  --accent-strong: #f3b28e;
  --accent-soft: #ed9b6f12;
  --teal: #bac594;
  --violet: #c9b99c;
  --magenta: #ed9b6f;
  --line: #d9d7c526;
  --line-strong: #d9d7c54d;
  --header-bg: #20221ef5;
  --shadow: none;
  --shadow-soft: none;
  --radius-sm: 2px;
  --radius-md: 2px;
  --radius-lg: 2px;
  --shell: 1240px;
}

:root[data-theme='light'] {
  --bg: #f4f1e9;
  --bg-elevated: #eeeae0;
  --bg-soft: #e7e3d8;
  --bg-hover: #ded9cd;
  --text: #252820;
  --text-secondary: #52574b;
  --text-muted: #686d60;
  --accent: #a34520;
  --accent-strong: #8c3518;
  --accent-soft: #a345200c;
  --teal: #52613e;
  --violet: #766343;
  --magenta: #a34520;
  --line: #33382a26;
  --line-strong: #33382a4d;
  --header-bg: #f4f1e9f5;
  --shadow: none;
  --shadow-soft: none;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #f4f1e9;
    --bg-elevated: #eeeae0;
    --bg-soft: #e7e3d8;
    --bg-hover: #ded9cd;
    --text: #252820;
    --text-secondary: #52574b;
    --text-muted: #686d60;
    --accent: #a34520;
    --accent-strong: #8c3518;
    --accent-soft: #a345200c;
    --teal: #52613e;
    --violet: #766343;
    --magenta: #a34520;
    --line: #33382a26;
    --line-strong: #33382a4d;
    --header-bg: #f4f1e9f5;
    --shadow: none;
    --shadow-soft: none;
  }
}

html { overflow-x: clip; }
body { font-size: 17px; }
.shell { width: min(var(--shell), calc(100% - 80px)); }
h1, h2, h3 { font-weight: 500; }
.site-header { background: var(--header-bg); border-bottom: 1px solid var(--line); }
.nav { gap: 16px; }
.brand { gap: 12px; }
.brand-mark { border: 0; background: var(--accent); color: var(--bg); border-radius: 50%; font: 500 1.1rem var(--font-editorial); }
.brand-mark::before, .brand-mark::after { content: none; }
.brand-name { font-size: 0.9rem; font-weight: 600; }
.nav-link { font-family: var(--font-body); font-size: 0.88rem; }
.nav-resume, .theme-toggle, .language-switch, .nav-toggle { border-radius: 2px; background: transparent; }
.nav-resume { color: var(--text); border-color: var(--line-strong); }
.nav-scroll-progress > span { background: var(--accent); box-shadow: none; }
.site-network.network-ready .site-network-canvas { opacity: 0.44; }
.site-network::after, .hero-glow { display: none; }
.site-network::before { background-size: 80px 80px; }
.hero { padding: 132px 0 58px; min-height: auto; background: transparent; }
.hero::after { background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 72%, transparent), transparent); }
.hero-grid { align-items: start; gap: 60px; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr); }
.hero-copy { min-width: 0; }
.eyebrow { display: flex; flex-direction: column; align-items: start; gap: 12px; font-size: 0.72rem; letter-spacing: 0.025em; text-transform: none; }
.editorial-kicker { color: var(--accent); font-family: var(--font-editorial); font-size: 1.15rem; font-style: italic; }
.hero h1.editorial-title { margin-top: 30px; font-size: clamp(4rem, 7.5vw, 7rem); font-weight: 600; line-height: 0.98; letter-spacing: -0.065em; text-shadow: none; }
.editorial-title em { color: var(--accent); font-family: var(--font-editorial); font-weight: 500; letter-spacing: -0.075em; }
.hero-direction { margin-top: 32px; color: var(--text); font-size: 1.03rem; font-weight: 600; letter-spacing: 0; }
.hero-summary { max-width: 460px; margin-top: 12px; font-size: 1.08rem; line-height: 1.75; }
.hero-actions { margin-top: 26px; gap: 18px; align-items: center; }
.button { min-height: 48px; border-radius: 2px; font: 600 0.9rem var(--font-body); padding: 0 20px; }
.button-primary, .button-primary:hover { background: var(--text); color: var(--bg); box-shadow: none; }
.button-secondary { border: 0; border-bottom: 1px solid var(--line-strong); padding-inline: 0; background: transparent; }
.button .icon { width: 16px; }
.hero-socials { margin-top: 24px; font-size: 0.7rem; }
.hero-socials a { border: 0; border-radius: 0; width: 30px; }
.hero-visual { min-width: 0; margin-top: 12px; padding-left: 28px; border-left: 1px solid var(--line); }
.portrait-label { margin-bottom: 18px; color: var(--text-muted); font: 0.68rem var(--font-mono); }
.portrait-card { width: 100%; max-width: 360px; margin: 0; }
.portrait-card::before, .portrait-card::after, .portrait-frame::before, .portrait-frame::after { display: none; }
.portrait-frame { aspect-ratio: 1 / 1.08; border: 0; border-radius: 0; box-shadow: 10px 10px 0 var(--bg-soft); }
.portrait-frame img { filter: grayscale(1); object-position: 50% 24%; }
.portrait-card figcaption { flex-wrap: wrap; gap: 6px 12px; padding-top: 24px; font-size: 0.74rem; }
.portrait-card figcaption strong { font-weight: 500; }
.portrait-card figcaption strong::before { display: none; }
.motion-ready .portrait-card { opacity: 1; animation: none; }
.infrastructure { margin-top: 34px; border-radius: 0; border: 0; border-top: 1px solid var(--line-strong); background: transparent; padding: 12px 0 0; }
.infrastructure-heading { font-size: 0.6rem; text-transform: none; letter-spacing: 0; }
.infrastructure-heading i { display: none; }
.infrastructure-labels { font-size: 0.67rem; }
.infrastructure-labels small { font-size: 0.59rem; }
.scroll-cue { display: none; }
.expertise-marquee { position: relative; height: auto; margin-top: 56px; padding: 20px 0; background: transparent; backdrop-filter: none; }
.expertise-marquee-track { animation-duration: 70s; }
.expertise-marquee-group span { font: 500 0.8rem var(--font-mono); letter-spacing: 0; text-transform: none; color: var(--text-secondary); }
.expertise-marquee-group span::after { content: '/'; color: var(--accent); text-shadow: none; }
.expertise-marquee::before, .expertise-marquee::after { width: 40px; }
.expertise-marquee-viewport { transform: none; }
.section { padding: 90px 0; background: color-mix(in srgb, var(--bg) 80%, transparent); }
.section-heading { grid-template-columns: minmax(130px, 0.28fr) 1fr; gap: 32px; margin-bottom: 48px; }
.section-index { font-size: 0.75rem; letter-spacing: 0; text-transform: none; }
.section-index::before { content: '↳'; margin-right: 12px; }
.section-heading h2, .contact-heading h2 { font-family: var(--font-editorial); font-weight: 500; font-size: clamp(2.5rem, 5vw, 4.6rem); line-height: 1.14; letter-spacing: -0.04em; }
.section-heading p:not(.section-index) { max-width: 540px; font-size: 1rem; }
.about-copy p { font-size: 1.12rem; line-height: 1.8; }
.profile-details dt { font-size: 0.72rem; text-transform: none; letter-spacing: 0; }
.featured-projects { gap: 0; }
.project-card { border: 0; border-top: 1px solid var(--line-strong); border-radius: 0; padding: 32px 0; background: transparent; overflow: visible; }
.project-card::before, .project-card::after, .contact-panel::before, .contact-panel::after { display: none; }
.project-card:hover, .project-card:focus-within { transform: none; box-shadow: none; }
.project-card-feature { gap: 36px; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.project-card-feature .project-media { border: 1px solid var(--line); aspect-ratio: 16 / 10; align-self: start; height: auto; }
.project-body { padding: 12px 0; }
.project-body h3 { font-family: var(--font-body); font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 600; letter-spacing: -0.045em; }
.project-meta { font-size: 0.68rem; letter-spacing: 0; text-transform: none; }
.project-meta > span:first-child { font-family: var(--font-editorial); font-style: italic; font-size: 1.6rem; }
.project-lead { font-size: 1rem; }
.project-links { padding-top: 20px; }
.tech-list { gap: 8px 14px; }
.tech-list li { padding: 0; border: 0; border-radius: 0; background: transparent; font-size: 0.7rem; }
.media-action { border-radius: 0; background: var(--text); color: var(--bg); }
.supporting-projects { gap: 40px; }
.experience-section, .skills-section { background: color-mix(in srgb, var(--bg-elevated) 88%, transparent); }
.technology-logos { gap: 0; border-top: 1px solid var(--line); }
.technology-logos li { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 16px 20px 16px 0; min-width: 105px; }
.technology-logos i { color: var(--text-secondary); font-size: 1.2rem; }
.technology-logos li:nth-child(n) i { color: var(--text-secondary); }
.skill-row h3 { font-weight: 600; }
.skill-row h3 span { font-family: var(--font-editorial); font-style: italic; font-size: 1.25rem; }
.learning-note { border-left: 0; border-top: 1px solid var(--line-strong); padding: 24px 0 0; background: transparent; }
.learning-note > span { text-transform: none; letter-spacing: 0; }
.contact-heading { max-width: 850px; margin-left: 0; text-align: left; }
.contact-heading > p:last-child { margin-left: 0; max-width: 580px; }
.contact-panel { max-width: none; border: 0; border-top: 1px solid var(--line-strong); border-radius: 0; padding: 32px 0 0; background: transparent; box-shadow: none; }
.contact-field input, .contact-field textarea { border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; background: var(--bg-elevated); font-family: var(--font-body); }
.contact-method { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding-inline: 0; }
.contact-field > span, .contact-form-status, .contact-method { font-size: 0.76rem; }
.outro-marquee { background: var(--accent); padding-block: 55px; border: 0; }
.outro-marquee-group span, .outro-marquee-group span:nth-child(even) { color: var(--bg); font-family: var(--font-editorial); font-size: clamp(3rem, 8vw, 8rem); font-weight: 500; text-transform: none; -webkit-text-stroke: 0; text-shadow: none; }
.outro-marquee-group span:nth-child(even) { font-style: italic; }
.outro-marquee-group span::after { content: '/'; color: var(--bg); text-shadow: none; font-size: 0.7em; }
.outro-marquee::before, .outro-marquee::after { display: none; }
.outro-marquee-track { animation-duration: 65s; }
.site-footer { background: var(--bg); }
.footer-inner { font-size: 0.65rem; }

@media (max-width: 1000px) and (min-width: 820px) {
  .hero-grid { gap: 30px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
  .hero-visual { padding-left: 20px; }
  .infrastructure-heading { flex-wrap: wrap; }
}

@media (max-width: 919px) {
  .nav-panel { background: var(--bg-elevated); border-radius: 2px; }
}

@media (max-width: 819px) {
  .shell { width: calc(100% - 40px); }
  .hero { padding-top: 116px; padding-bottom: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero h1.editorial-title { font-size: clamp(3.7rem, 12vw, 6rem); }
  .hero-summary { max-width: 530px; }
  .hero-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 30px; padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .portrait-label { grid-column: 1 / -1; margin: 0; }
  .infrastructure { align-self: center; margin: 0; }
  .infrastructure-heading { flex-wrap: wrap; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .section { padding: 64px 0; }
  .project-card-feature { display: grid; grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 540px) {
  .hero h1.editorial-title { font-size: clamp(3.2rem, 13.4vw, 4.5rem); }
  .hero-direction { font-size: 0.94rem; }
  .hero-summary { font-size: 1rem; }
  .eyebrow { font-size: 0.65rem; }
  .editorial-kicker { font-size: 1.05rem; }
  .hero-actions { gap: 12px; }
  .hero-actions .button { width: auto; min-height: 48px; font-size: 0.83rem; }
  .hero-visual { display: block; }
  .portrait-label { margin-bottom: 18px; }
  .portrait-card { max-width: 100%; }
  .portrait-frame { aspect-ratio: 1.1; }
  .infrastructure { margin-top: 28px; }
  .infrastructure-heading { flex-wrap: nowrap; }
  .expertise-marquee { margin-top: 36px; }
  .project-meta { flex-direction: row; align-items: center; gap: 16px; }
  .section-heading h2, .contact-heading h2 { font-size: 2.7rem; }
  .contact-panel { padding-inline: 0; }
  .outro-marquee { padding-block: 38px; }
  .footer-inner { padding-bottom: 48px; }
}
