:root {
  --canvas: #f7f8fa;
  --surface: #ffffff;
  --ink: #17212b;
  --muted: #52606d;
  --hairline: #dbe1e8;
  --blue: #155fca;
  --blue-dark: #0e4ca9;
  --dark: #17212b;
  --radius: 8px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.container { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.skip-link { position: fixed; left: 16px; top: -72px; z-index: 4; padding: 10px 14px; background: var(--ink); color: white; border-radius: var(--radius); }
.skip-link:focus { top: 16px; }

.site-header { border-bottom: 1px solid var(--hairline); background: color-mix(in srgb, var(--canvas) 94%, transparent); position: sticky; top: 0; z-index: 2; backdrop-filter: blur(10px); }
.nav { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { font-weight: 700; font-size: 17px; letter-spacing: 0.03em; }
.nav-links { display: flex; gap: 28px; margin-left: auto; color: var(--muted); font-size: 15px; }
.nav-links a:hover, .footer a:hover { color: var(--blue); }
.nav-cv { font-size: 14px; font-weight: 700; border: 1px solid var(--hairline); padding: 6px 12px; border-radius: var(--radius); }
.nav-cv:hover { border-color: var(--blue); color: var(--blue); }

.hero { min-height: min(680px, calc(100dvh - 68px)); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr); align-items: center; gap: clamp(48px, 9vw, 130px); padding-top: 64px; padding-bottom: 64px; }
.eyebrow { margin: 0 0 18px; color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: 0; }
h1 { max-width: 680px; margin-bottom: 22px; font-size: clamp(3.3rem, 7vw, 5.9rem); line-height: 0.98; }
.hero-intro { max-width: 540px; margin-bottom: 30px; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.55; }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; border-radius: var(--radius); padding: 11px 18px; font-weight: 700; font-size: 15px; transition: background-color 160ms ease, transform 160ms ease; }
.button:active { transform: translateY(1px); }
.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover { background: var(--blue-dark); }
.text-link { color: var(--ink); font-weight: 700; font-size: 15px; }
.text-link:hover { color: var(--blue); }
.text-link span { display: inline-block; margin-left: 2px; }
.portrait-wrap { justify-self: end; width: min(100%, 390px); aspect-ratio: 1; position: relative; }
.portrait-wrap::before { content: ''; position: absolute; inset: 9% -7% -7% 9%; border: 1px solid var(--blue); border-radius: var(--radius); }
.portrait { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); filter: grayscale(100%); background: #d9dde3; }

.availability { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: var(--surface); }
.availability-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.availability span { padding: 22px 12px; text-align: center; font-size: 14px; font-weight: 700; color: var(--muted); }
.availability span + span { border-left: 1px solid var(--hairline); }

.work { padding-top: 132px; padding-bottom: 132px; }
.section-heading { max-width: 700px; margin-bottom: 52px; }
h2 { margin-bottom: 0; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.04; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.project { min-height: 420px; overflow: hidden; border-radius: var(--radius); }
.project-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 0.8fr; background: var(--surface); border: 1px solid var(--hairline); }
.project-image-link { min-height: 380px; overflow: hidden; background: #e9edf1; }
.project-image-link img { display: block; height: 100%; width: 100%; object-fit: cover; transition: transform 260ms ease; }
.project-image-link:hover img { transform: scale(1.025); }
.project-copy { padding: 36px; display: flex; flex-direction: column; align-items: flex-start; }
.project-featured .project-copy { justify-content: center; }
.project-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; color: var(--muted); font-size: 13px; }
.project-meta span + span::before { content: '/'; color: var(--blue); margin-right: 12px; }
h3 { margin-bottom: 12px; font-family: var(--serif); font-size: clamp(2rem, 3.2vw, 3.15rem); font-weight: 400; line-height: 1.05; }
.project p { max-width: 430px; margin-bottom: 28px; color: var(--muted); font-size: 16px; }
.project-dark { position: relative; min-height: 450px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--dark); color: #f7f8fa; }
.project-dark::before { content: ''; position: absolute; right: -70px; top: -70px; width: 330px; height: 330px; border: 1px solid rgba(255,255,255,0.25); border-radius: 50%; }
.project-dark::after { content: ''; position: absolute; right: 42px; top: 50px; width: 110px; height: 110px; border: 1px solid var(--blue); border-radius: 50%; }
.project-dark .project-copy { position: relative; z-index: 1; }
.project-label { position: absolute; top: 34px; left: 36px; z-index: 1; color: #bcc7d2; font-size: 13px; font-weight: 700; }
.project-dark .project-meta, .project-dark p { color: #c5cdd6; }
.text-link-light { color: #fff; }
.project-light { min-height: 450px; display: flex; flex-direction: column; justify-content: flex-end; background: #dfeafa; }
.project-light .project-label { color: var(--blue-dark); }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr); gap: clamp(48px, 12vw, 160px); padding-top: 120px; padding-bottom: 120px; border-top: 1px solid var(--hairline); }
.about-intro h2 { max-width: 510px; font-size: clamp(2.4rem, 4.3vw, 4rem); }
.about-detail { align-self: end; }
.about-detail p { margin-bottom: 26px; color: var(--muted); font-size: 18px; line-height: 1.65; }

.contact { background: var(--surface); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.contact-inner { padding-top: 110px; padding-bottom: 112px; }
.contact h2 { max-width: 700px; margin-bottom: 18px; }
.contact-inner > p:not(.eyebrow) { max-width: 540px; margin-bottom: 30px; color: var(--muted); font-size: 18px; }
.footer { padding-top: 28px; padding-bottom: 28px; display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 14px; }
.footer p { margin-bottom: 0; }
.footer div { display: flex; gap: 20px; }

@media (max-width: 720px) {
  .container { width: min(100% - 32px, 1120px); }
  .nav { height: 60px; }
  .nav-links { gap: 16px; font-size: 14px; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 48px; padding-top: 72px; padding-bottom: 72px; }
  h1 { font-size: clamp(3.1rem, 14vw, 4.7rem); }
  .portrait-wrap { justify-self: start; width: min(280px, 78vw); }
  .availability-inner { grid-template-columns: repeat(2, 1fr); }
  .availability span:nth-child(3) { border-left: 0; border-top: 1px solid var(--hairline); }
  .availability span:nth-child(4) { border-top: 1px solid var(--hairline); }
  .work { padding-top: 86px; padding-bottom: 86px; }
  .section-heading { margin-bottom: 36px; }
  .project-grid { grid-template-columns: 1fr; }
  .project, .project-dark, .project-light { min-height: 390px; }
  .project-featured { grid-column: auto; grid-template-columns: 1fr; }
  .project-image-link { min-height: 215px; }
  .project-copy { padding: 26px; }
  .project-featured .project-copy { min-height: 340px; }
  .project-label { top: 26px; left: 26px; }
  .project-meta { margin-bottom: 28px; }
  .about { grid-template-columns: 1fr; gap: 36px; padding-top: 82px; padding-bottom: 82px; }
  .about-detail p { font-size: 17px; }
  .contact-inner { padding-top: 82px; padding-bottom: 84px; }
  .footer { flex-direction: column; gap: 10px; }
}

@media (max-width: 430px) {
  .nav-links { display: none; }
  .nav-cv { margin-left: auto; }
  .availability span { padding: 16px 8px; font-size: 13px; }
}

@media (prefers-color-scheme: dark) {
  :root { --canvas: #111820; --surface: #17212b; --ink: #f2f5f8; --muted: #b5c0cb; --hairline: #33404d; --dark: #0e141b; }
  .portrait { background: #26313c; }
  .project-featured { background: #17212b; }
  .project-image-link { background: #26313c; }
  .project-light { background: #1b385c; }
  .project-light .project-label { color: #8fbaff; }
}

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