:root {
  --paper: #f5f1ea;
  --paper-soft: #ebe6dd;
  --ink: #1d1d1a;
  --ink-soft: #6f6c64;
  --line: #d5d0c6;
  --acid: #d6ff57;
  --white: #fffdf9;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Noto Sans SC", sans-serif;
  --mono: "DM Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); transition: background .3s ease, color .3s ease; }
body.dark { --paper: #20211e; --paper-soft: #2b2c28; --ink: #f5f1ea; --ink-soft: #aca99f; --line: #484942; --white: #2a2b27; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
.site-shell { overflow: hidden; }
.topbar, .section-grid, .content-section, .footer { width: min(1180px, calc(100% - 64px)); margin: 0 auto; }
.topbar { height: 84px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; letter-spacing: .01em; }
.brand-mark { display: grid; width: 27px; height: 27px; place-items: center; background: var(--ink); color: var(--paper); font-family: var(--serif); font-style: italic; font-size: 17px; }
.muted { color: var(--ink-soft); }
.main-nav { display: flex; align-items: center; gap: 34px; margin-left: 70px; }
.nav-link { position: relative; color: var(--ink-soft); font-size: 13px; transition: color .2s ease; }
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link.active::after { position: absolute; content: ""; left: 0; right: 0; bottom: -11px; height: 2px; background: var(--ink); }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.icon-button, .menu-button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; background: transparent; cursor: pointer; }
.icon-button svg, .menu-button svg { width: 16px; height: 16px; stroke-width: 1.8; }
.theme-icon-dark { display: none; }
body.dark .theme-icon-light { display: none; }
body.dark .theme-icon-dark { display: block; }
.topbar-contact { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.topbar-contact svg, .text-link svg, .contact-email svg, .footer svg { width: 14px; height: 14px; stroke-width: 1.8; }
.menu-button { display: none; }
.hero-section { min-height: 660px; display: grid; grid-template-columns: 1fr .86fr; align-items: center; gap: clamp(48px, 8vw, 120px); padding: 84px 0 105px; }
.eyebrow { margin: 0 0 26px; color: var(--ink-soft); font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #68ae51; box-shadow: 0 0 0 3px rgba(104, 174, 81, .15); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 620px; margin-bottom: 30px; font-size: clamp(56px, 7.2vw, 104px); line-height: .96; letter-spacing: -.055em; font-weight: 800; }
h1 em, h2 em { color: var(--ink-soft); font-family: var(--serif); font-weight: 400; letter-spacing: -.06em; }
.hero-intro { max-width: 420px; margin-bottom: 36px; color: var(--ink-soft); font-size: 15px; line-height: 1.85; }
.hero-actions { display: flex; align-items: center; gap: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 48px; padding: 0 20px; font-size: 12px; font-weight: 700; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: var(--paper); }
.button svg { width: 15px; height: 15px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 5px; border-bottom: 1px solid var(--ink); font-size: 12px; font-weight: 700; }
.text-link:hover { border-color: var(--ink-soft); color: var(--ink-soft); }
.hero-meta { display: flex; gap: 34px; margin-top: 88px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink); font-family: var(--mono); font-size: 10px; }
.hero-meta div { display: flex; flex-direction: column; gap: 8px; }
.meta-label { color: var(--ink-soft); text-transform: uppercase; }
.hero-visual { position: relative; }
.portrait-frame { position: relative; width: 100%; max-width: 490px; margin-left: auto; background: var(--paper-soft); }
.portrait-frame::before { content: ""; position: absolute; z-index: -1; inset: 16px -16px -16px 16px; border: 1px solid var(--line); }
.portrait-frame img { width: 100%; aspect-ratio: .85; object-fit: cover; filter: grayscale(100%); mix-blend-mode: multiply; }
body.dark .portrait-frame img { mix-blend-mode: normal; opacity: .76; }
.portrait-caption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 17px 19px; background: rgba(29, 29, 26, .82); color: #f5f1ea; font-family: var(--mono); font-size: 9px; letter-spacing: .03em; }
.floating-note { position: absolute; right: -33px; top: 35%; display: flex; align-items: center; gap: 10px; padding: 13px 16px; background: var(--acid); color: var(--ink); font-size: 11px; font-weight: 700; line-height: 1.35; transform: rotate(5deg); box-shadow: 5px 5px 0 rgba(29,29,26,.12); }
.note-icon { font-size: 18px; }
.visual-index { position: absolute; left: -28px; bottom: 14px; display: flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 11px; }
.visual-index span { color: var(--ink-soft); }
.marquee-band { overflow: hidden; padding: 17px 0 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--acid); color: var(--ink); }
.marquee-track { display: flex; width: max-content; align-items: center; gap: 27px; animation: marquee 32s linear infinite; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; }
.marquee-track b { font-size: 14px; font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }
.content-section { padding: 125px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 48px; }
.section-heading .eyebrow { margin-bottom: 17px; }
h2 { margin-bottom: 0; font-size: clamp(35px, 4.5vw, 63px); line-height: .98; letter-spacing: -.055em; font-weight: 800; }
.section-summary { max-width: 280px; margin-bottom: 3px; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.project-grid { display: grid; grid-template-columns: 1.16fr .84fr; gap: 54px 26px; }
.project-card { display: block; }
.project-card-featured { grid-row: span 2; }
.project-image { position: relative; overflow: hidden; background: var(--paper-soft); }
.project-card-featured .project-image { aspect-ratio: 1.28; }
.project-card:not(.project-card-featured) .project-image { aspect-ratio: 1.42; }
.project-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75); transition: transform .5s ease, filter .5s ease; }
.project-card:hover .project-image img { transform: scale(1.04); filter: saturate(1); }
.project-arrow { position: absolute; right: 16px; top: 16px; display: grid; width: 40px; height: 40px; place-items: center; background: var(--acid); color: var(--ink); opacity: 0; transform: translateY(5px); transition: opacity .2s ease, transform .2s ease; }
.project-arrow svg { width: 18px; height: 18px; }
.project-card:hover .project-arrow { opacity: 1; transform: translateY(0); }
.project-info { display: flex; justify-content: space-between; gap: 24px; padding-top: 18px; }
.project-type { color: var(--ink-soft); font-family: var(--mono); font-size: 9px; letter-spacing: .04em; }
h3 { margin: 8px 0 0; font-size: 26px; letter-spacing: -.04em; }
.project-info p { max-width: 205px; margin-bottom: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.55; text-align: right; }
.about-section { display: grid; grid-template-columns: .85fr 1.15fr; padding: 110px 0 132px; border-top: 1px solid var(--line); }
.about-symbol { margin-top: 80px; color: var(--ink-soft); font-family: var(--serif); font-size: 72px; }
.about-copy { max-width: 640px; }
.about-copy h2 { margin-bottom: 42px; }
.about-copy h2 span { color: var(--ink-soft); font-family: var(--serif); font-weight: 400; }
.about-copy p { max-width: 470px; color: var(--ink-soft); font-size: 15px; line-height: 1.95; }
.about-copy .text-link { margin-top: 15px; }
.notes-section { padding-top: 0; }
.notes-section .section-heading { margin-bottom: 25px; }
.notes-list { border-top: 1px solid var(--line); }
.note-row { display: grid; grid-template-columns: 155px 1fr 18px; align-items: center; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); transition: padding .2s ease, color .2s ease; }
.note-row:hover { padding-left: 10px; color: var(--ink-soft); }
.note-date { color: var(--ink-soft); font-family: var(--mono); font-size: 10px; }
.note-title { font-size: 14px; font-weight: 600; }
.note-row svg { width: 15px; height: 15px; }
.contact-section { padding: 114px 32px 108px; background: var(--ink); color: var(--paper); }
.contact-inner { width: min(1116px, 100%); margin: auto; }
.contact-section .eyebrow { color: #a7a59b; }
.contact-section h2 { font-size: clamp(50px, 8vw, 112px); }
.contact-section h2 em { color: #a7a59b; }
.contact-email { display: inline-flex; align-items: center; gap: 10px; margin-top: 50px; padding-bottom: 10px; border-bottom: 1px solid var(--paper); font-family: var(--mono); font-size: 14px; }
.social-links { display: flex; gap: 25px; margin-top: 90px; color: #a7a59b; font-family: var(--mono); font-size: 10px; }
.social-links a:hover { color: var(--acid); }
.footer { display: flex; align-items: center; justify-content: space-between; min-height: 75px; color: var(--ink-soft); font-family: var(--mono); font-size: 9px; letter-spacing: .02em; }
.footer a { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); }
.footer a:hover { color: var(--ink-soft); }

@media (max-width: 780px) {
  .topbar, .section-grid, .content-section, .footer { width: min(100% - 40px, 600px); }
  .topbar { height: 72px; }
  .main-nav { position: absolute; z-index: 5; left: 20px; right: 20px; top: 68px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 18px; border: 1px solid var(--line); background: var(--paper); box-shadow: 4px 4px 0 var(--line); }
  .main-nav.open { display: flex; }
  .nav-link { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-link:last-child { border-bottom: 0; }
  .nav-link.active::after { display: none; }
  .topbar-contact { display: none; }
  .menu-button { display: grid; }
  .hero-section { display: flex; flex-direction: column; align-items: stretch; gap: 65px; padding: 72px 0 90px; }
  h1 { font-size: clamp(58px, 16vw, 92px); }
  .hero-intro { font-size: 14px; }
  .hero-meta { margin-top: 65px; }
  .hero-visual { width: calc(100% - 20px); margin-left: 4px; }
  .floating-note { right: -18px; }
  .visual-index { left: -3px; bottom: -28px; }
  .content-section { padding: 88px 0; }
  .section-heading { align-items: start; flex-direction: column; margin-bottom: 32px; }
  .section-summary { max-width: 340px; }
  .project-grid { display: block; }
  .project-card { margin-bottom: 48px; }
  .project-card-featured .project-image { aspect-ratio: 1.1; }
  .project-card:not(.project-card-featured) .project-image { aspect-ratio: 1.25; }
  .project-info p { max-width: 170px; }
  .about-section { display: block; padding: 80px 0 90px; }
  .about-symbol { display: none; }
  .about-copy { margin-top: 50px; }
  .about-copy h2 { margin-bottom: 30px; }
  .notes-section { padding-top: 0; }
  .note-row { grid-template-columns: 83px 1fr 15px; gap: 10px; padding: 19px 0; }
  .note-title { font-size: 12px; line-height: 1.55; }
  .contact-section { padding: 86px 20px 75px; }
  .contact-section h2 { font-size: clamp(50px, 14vw, 82px); }
  .social-links { flex-wrap: wrap; margin-top: 65px; }
  .footer { min-height: 95px; flex-wrap: wrap; gap: 12px; padding: 18px 0; }
}

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