:root {
  color-scheme: dark;
  --page: #101113;
  --surface: #17191d;
  --card: #1a1c20;
  --line: #2b2e33;
  --ink: #f5f4f2;
  --muted: #a5a5aa;
  --accent: #ff673f;
  --accent-hover: #ff815f;
  --header-bg: rgba(16, 17, 19, .94);
  --font: Arial, Helvetica, sans-serif;
  --container: 1120px;
}
:root[data-color-scheme="light"] {
  color-scheme: light;
  --page: #ffffff;
  --surface: #f5f5f5;
  --card: #ffffff;
  --line: #e4e4e7;
  --ink: #18181b;
  --muted: #71717a;
  --accent: #d9552b;
  --accent-hover: #b9431d;
  --header-bg: rgba(255, 255, 255, .95);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; background: var(--page); }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; transition: background-color .2s, color .2s; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font: inherit; }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.site-header { position: fixed; inset: 0 0 auto; z-index: 20; color: var(--ink); transition: background .2s, box-shadow .2s, border-color .2s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: var(--header-bg); backdrop-filter: blur(12px); border-color: var(--line); box-shadow: 0 2px 18px #0000000c; }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { color: var(--ink); font-size: 19px; line-height: 1; font-weight: 700; letter-spacing: -.04em; white-space: nowrap; }
.brand:hover { color: var(--accent); }
.custom-logo { max-height: 46px; width: auto; }
.primary-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; justify-content: flex-end; gap: clamp(14px, 2vw, 28px); margin: 0; padding: 0; list-style: none; font-size: 13px; }
.primary-nav a { color: var(--muted); transition: color .2s; }
.primary-nav a:hover, .primary-nav .current-menu-item a { color: var(--ink); }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; background: transparent; color: var(--ink); font-size: 12px; cursor: pointer; white-space: nowrap; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle-icon { font-size: 16px; line-height: 1; }
.button, .nk-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 999px; padding: 12px 19px; background: var(--accent); color: #fff; font-size: 13px; line-height: 1.2; font-weight: 700; transition: background .2s, transform .2s; }
.button:hover, .nk-button:hover { color: #fff; background: var(--accent-hover); transform: translateY(-1px); }
.button-small { padding: 10px 16px; }
.button-outline { border: 1px solid var(--line); background: transparent; color: var(--ink); }
.button-outline:hover { background: var(--surface); color: var(--ink); }
.menu-toggle { display: none; border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 50%; width: 42px; height: 42px; }
.nav-cta { display: inline-flex; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hero { min-height: min(760px, 100svh); padding: 145px 0 86px; display: flex; align-items: center; overflow: hidden; position: relative; }
.hero:before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -190px; top: 6%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 15%, transparent), transparent 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 72px; position: relative; }
.hero h1, .section-title, .content-page h1 { font: 700 clamp(42px, 5.7vw, 68px)/1.04 var(--font); letter-spacing: -.055em; margin: 0 0 22px; }
.hero h1 span { color: var(--accent); }
.hero-copy { max-width: 530px; color: var(--muted); font-size: clamp(16px, 1.7vw, 18px); line-height: 1.7; margin: 0 0 26px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-photo { aspect-ratio: 4/4.3; border-radius: 18px; overflow: hidden; background: var(--surface); max-width: 430px; justify-self: end; width: 100%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.section { padding: 88px 0; }
.section-soft { background: var(--surface); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-heading .section-title { font-size: clamp(32px, 4.2vw, 46px); margin: 0; }
.section-intro { color: var(--muted); max-width: 520px; margin: 13px 0 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 14px 35px #00000012; }
.card-body { padding: 21px; }
.card-body h3, .card-body h2 { font-size: 18px; line-height: 1.3; margin: 0 0 8px; }
.card-body p { margin: 0; color: var(--muted); }
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; }
.about-grid .section-title { font-size: clamp(34px, 4.5vw, 50px); }
.prose { color: var(--muted); }
.prose p:first-child { margin-top: 0; }
.experience-list { border-top: 1px solid var(--line); }
.experience-item { display: grid; grid-template-columns: 190px 1fr; gap: 36px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.experience-date { color: var(--muted); font-size: 13px; }
.experience-item h3 { margin: 0 0 4px; font-size: 19px; line-height: 1.3; }
.experience-company { font-weight: 600; }
.experience-description { color: var(--muted); margin: 8px 0 0; }
.article-grid .card-image { aspect-ratio: 1.7; }
.card-image { display: block; aspect-ratio: 1.65; overflow: hidden; background: var(--surface); }
.card-image img, .project-image-placeholder { width: 100%; height: 100%; object-fit: cover; }
.project-image-placeholder { display: block; background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--accent) 24%, var(--surface))); }
.project-card-link { display: inline-flex; gap: 7px; margin-top: 14px; color: var(--ink); font-size: 12px; font-weight: 700; }
.project-card-link:hover { color: var(--accent); }
.project-summary { margin: 24px 0; color: var(--muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.6; }
.project-live-link { margin: 28px 0; }
.project-media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.project-media-item { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.project-media-item img, .project-media-item video { width: 100%; height: auto; max-height: 680px; object-fit: contain; background: #08090a; }
.project-media-item figcaption { padding: 10px 14px; color: var(--muted); font-size: 12px; }
.project-pdf-link { display: flex; min-height: 120px; align-items: center; gap: 15px; padding: 22px; font-weight: 700; }
.project-pdf-link > span:first-child { display: grid; width: 48px; height: 56px; place-items: center; border-radius: 8px; background: var(--accent); color: white; font-size: 12px; }
.project-pdf-link > span:nth-child(2) { flex: 1; }
.contact-panel { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: clamp(28px, 5vw, 58px); display: grid; grid-template-columns: 1fr 1.1fr; gap: 42px; align-items: start; }
.contact-panel h2 { font: 700 clamp(32px, 4.5vw, 48px)/1.06 var(--font); letter-spacing: -.045em; margin: 0 0 14px; }
.contact-panel p { color: var(--muted); margin-top: 0; }
.content-page { padding-top: 145px; padding-bottom: 100px; min-height: 72vh; }
.content-page h1 { font-size: clamp(40px, 5.5vw, 64px); }
.content-entry { max-width: 850px; margin-inline: auto; }
.entry-image { margin: 28px 0; border-radius: 14px; overflow: hidden; background: var(--surface); }
.entry-image img { width: 100%; }
.content-entry .prose { font-size: 17px; line-height: 1.8; }
.site-footer { background: var(--page); border-top: 1px solid var(--line); padding: 22px 0; color: var(--muted); font-size: 12px; }
.footer-wrap { display: flex; justify-content: space-between; gap: 20px; }
.footer-wrap p { margin: 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; }

@media(max-width:900px) {
  .hero-grid { gap: 42px; }
  .about-grid { gap: 42px; }
}
@media(max-width:720px) {
  .container { width: min(var(--container), calc(100% - 36px)); }
  .nav-wrap { min-height: 68px; gap: 12px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; order: 3; }
  .nav-cta { display: none; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; align-items: stretch; flex-direction: column; gap: 14px; background: var(--page); border-top: 1px solid var(--line); padding: 12px 18px 20px; }
  .primary-nav.is-open { display: flex; }
  .primary-nav ul { display: flex; align-items: stretch; flex-direction: column; gap: 0; }
  .primary-nav li a { display: block; padding: 10px 4px; }
  .theme-toggle { align-self: flex-start; }
  .hero { min-height: auto; padding: 110px 0 62px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-photo { justify-self: start; max-width: 360px; grid-row: 1; }
  .hero h1 { font-size: clamp(42px, 11vw, 60px); }
  .section { padding: 68px 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .card-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 20px; }
  .experience-item { grid-template-columns: 1fr; gap: 6px; }
  .contact-panel { grid-template-columns: 1fr; gap: 24px; }
  .project-media-grid { grid-template-columns: 1fr; }
  .footer-wrap { flex-direction: column; }
}
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
