@font-face {
  font-family: "EB Garamond";
  src: url("assets/fonts/EBGaramond-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/CormorantGaramond-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --wall: #ECE6D8;
  --window-light: #F8F4EA;
  --deep-wall: #E2DACA;
  --ink: #2B2622;
  --soft-ink: #5A5249;
  --ultramarine: #27479B;
  --vermeer-yellow: #D8A62F;
  --frame: #35291F;
  --gilt: #B8913A;
  --paper: #DCD1BB;
  --floor-ivory: #F2EEE4;
  --hairline: rgba(43, 38, 34, .22);
  --serif: "EB Garamond", Georgia, serif;
  --display: "Cormorant Garamond", "Times New Roman", serif;
  --gutter: 48px;
  --max-width: 1440px;
  --section-space: clamp(58px, 7vw, 104px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font: 400 20px/1.6 var(--serif);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button, a { color: inherit; }
a { text-decoration-thickness: 1px; text-underline-offset: 5px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ultramarine); outline-offset: 4px; }
button { font: inherit; }

.skip-link { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { left: 20px; top: 20px; width: auto; height: auto; padding: 10px 14px; background: var(--window-light); z-index: 100; }
.section-wrap, .header-inner, .footer-inner { width: min(100%, var(--max-width)); margin-inline: auto; padding-inline: var(--gutter); }
.section-space { padding-block: var(--section-space); }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(236, 230, 216, .98); border-bottom: 1px solid var(--hairline); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.wordmark { font: 400 30px/1 var(--display); letter-spacing: .04em; color: var(--ink); white-space: nowrap; text-decoration: none; }
.primary-nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 34px); }
.primary-nav a { min-height: 44px; display: inline-flex; align-items: center; font: 400 17px/1 var(--display); letter-spacing: .025em; text-decoration: none; transition: color .18s ease; }
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--ultramarine); }
.language-switch { display: flex; align-items: center; gap: 8px; margin-left: clamp(6px, 1.6vw, 20px); padding-inline: 10px; min-height: 38px; border: 1px solid var(--hairline); color: var(--soft-ink); font: 400 14px/1 var(--display); letter-spacing: .08em; white-space: nowrap; }
.language-switch a { color: inherit; text-decoration: none; }
.language-switch a[aria-current="page"] { color: var(--ultramarine); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.language-switch a:hover { color: var(--ultramarine); }
.menu-toggle { display: none; min-height: 44px; padding: 8px 14px; border: 1px solid var(--hairline); background: transparent; color: var(--ink); }

.hero {
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(42px, 7.5vw, 108px);
  align-items: center;
  padding-block: 38px 44px;
  background: linear-gradient(90deg, var(--window-light) 0%, var(--wall) 82%);
}
.hero-copy { max-width: 610px; }
.eyebrow { margin: 0 0 18px; color: var(--ultramarine); font-size: 15px; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { max-width: 610px; margin: 0; font: 400 clamp(46px, 5.4vw, 80px)/1.02 var(--display); letter-spacing: -.018em; }
.hero h1 em { font-style: italic; }
.ultramarine { color: var(--ultramarine); }
.yellow-rule { width: 64px; height: 3px; background: var(--vermeer-yellow); }
.hero-copy .yellow-rule { margin: 26px 0 22px; }
.hero-lead { max-width: 520px; margin: 0 0 24px; font-size: 22px; line-height: 1.6; }
.text-link { min-height: 44px; display: inline-flex; align-items: center; color: var(--ultramarine); font-size: 15px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--ultramarine); transition: color .18s ease; }
.text-link:hover { color: var(--ink); }
.hero-artwork { width: min(100%, 460px); justify-self: end; margin: 0; }
.artwork-open { display: block; width: 100%; min-height: 44px; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.painting-frame { display: block; padding: 0; border: 0; background: transparent; box-shadow: 20px 26px 44px rgba(43, 38, 34, .30); }
.painting-frame img { width: 100%; height: min(68svh, 620px); object-fit: contain; object-position: center; background: transparent; }
.hero-artwork figcaption { margin-top: 16px; color: var(--soft-ink); font-size: 17px; line-height: 1.45; }
.image-request-note { display: block; margin-top: 8px; font-size: 15px; line-height: 1.4; }

.project-section { background: var(--wall); }
.project-layout { display: grid; grid-template-columns: minmax(220px, .65fr) minmax(0, 1fr); gap: clamp(42px, 7vw, 100px); align-items: start; }
h2 { margin: 0; font: 400 50px/1.05 var(--display); }
.project-layout h2 { max-width: 360px; color: var(--ultramarine); }
.project-layout h2 em { font-weight: 400; }
.project-content { max-width: 680px; }
.project-deck { margin: 0 0 22px; color: var(--soft-ink); font-size: 19px; line-height: 1.45; }
.project-deck em { font-style: italic; }
.project-copy { max-width: 680px; }
.project-copy p { margin: 0 0 23px; font-size: 20px; line-height: 1.6; }
.project-copy p:last-child { margin-bottom: 0; }
.close-look { margin-top: 64px; }
.close-look h3 { margin: 0 0 8px; color: var(--ultramarine); font: italic 400 32px/1.1 var(--display); }
.look-intro { max-width: 780px; margin: 0 0 26px; color: var(--soft-ink); font-size: 19px; line-height: 1.6; }
.look-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.look-item { padding-top: 12px; border-top: 1px solid var(--hairline); }
.look-item h4 { margin: 0 0 8px; color: var(--ultramarine); font-size: 15px; font-weight: 400; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase; }
.look-item p { margin: 0; color: var(--soft-ink); font-size: 18px; line-height: 1.55; }
.closing-thought { margin-top: 72px; }
.closing-thought p { max-width: 960px; margin: 18px 0 0; color: var(--ultramarine); font: italic 400 34px/1.3 var(--display); }

.technique-section { background: var(--deep-wall); }
.two-column { display: grid; grid-template-columns: .68fr 1fr; gap: clamp(42px, 7vw, 100px); align-items: start; }
.technique-section h2, .about-section h2, .contact-section h2, .drawings-section h2 { color: var(--ultramarine); }
.technique-copy { max-width: 680px; }
.technique-copy p { margin: 0 0 22px; font-size: 20px; line-height: 1.6; }
.technique-copy p:last-child { margin-bottom: 0; }

.drawings-section { background: var(--wall); }
.drawings-section h2 { margin-bottom: 12px; }
.drawings-intro { margin: 0 0 32px; font-size: 20px; }
.drawing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 4vw, 44px); align-items: start; }
.drawing-card { margin: 0; max-width: 380px; }
.drawing-card img { width: 100%; height: auto; box-shadow: 12px 16px 30px rgba(43, 38, 34, .22); }
.drawing-card figcaption { margin-top: 12px; color: var(--soft-ink); font-size: 17px; line-height: 1.45; }
.drawing-placeholder { width: min(100%, 380px); aspect-ratio: .86; display: grid; place-items: center; border: 1px dashed var(--soft-ink); background: var(--paper); color: var(--soft-ink); font-size: 16px; text-align: center; }

@media (max-width: 1200px) {
  .drawing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.about-section { background: var(--deep-wall); }
.about-layout { display: grid; grid-template-columns: .46fr 1.1fr .72fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.about-copy { max-width: 680px; }
.about-copy p { margin: 0 0 20px; font-size: 20px; line-height: 1.6; }
.about-copy .text-link { margin-top: 4px; }
.about-portrait { width: min(100%, 360px); aspect-ratio: 1187 / 1285; object-fit: cover; object-position: center; border: 1px solid var(--hairline); }

.contact-section { background: var(--wall); }
.contact-section .two-column { align-items: center; }
.contact-section p { max-width: 680px; margin: 0; font-size: 20px; line-height: 1.6; }
.email-link { color: var(--ultramarine); text-underline-offset: 5px; }

.site-footer { border-top: 1px solid var(--hairline); }
.footer-inner { min-height: 58px; display: flex; justify-content: space-between; align-items: center; gap: 24px; color: var(--soft-ink); font-size: 16px; }

.artwork-dialog { width: min(1100px, 96vw); max-width: none; max-height: 94vh; padding: 0; overflow: hidden; border: 1px solid rgba(242, 238, 228, .3); background: var(--ink); color: var(--floor-ivory); }
.artwork-dialog::backdrop { background: rgba(20, 18, 16, .84); }
.dialog-inner { min-height: min(80vh, 920px); max-height: 94vh; display: flex; flex-direction: column; gap: 9px; padding: 18px 24px 16px; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.dialog-header h2 { color: var(--floor-ivory); font-size: 32px; }
.dialog-close, .zoom-controls button { min-width: 44px; min-height: 44px; padding: 7px 14px; border: 1px solid rgba(242, 238, 228, .6); background: transparent; color: var(--floor-ivory); cursor: pointer; }
.dialog-close:hover, .zoom-controls button:hover:not(:disabled) { background: rgba(242, 238, 228, .12); }
.zoom-controls { display: flex; align-items: center; justify-content: center; gap: 8px; }
.zoom-controls button:disabled { opacity: .48; cursor: default; }
.zoom-controls output { min-width: 58px; color: var(--floor-ivory); font-size: 16px; text-align: center; font-variant-numeric: tabular-nums; }
.viewer-hint { margin: 0; color: rgba(242, 238, 228, .78); font-size: 15px; line-height: 1.4; text-align: center; }
.dialog-figure { min-height: 0; flex: 1 1 auto; margin: 0; display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.artwork-viewport { min-height: 220px; max-height: calc(94vh - 195px); flex: 1 1 auto; overflow: auto; overscroll-behavior: contain; border: 1px solid rgba(242, 238, 228, .2); background: #171513; touch-action: pan-x pan-y; scrollbar-color: rgba(242, 238, 228, .55) #171513; }
.artwork-viewport.is-zoomed { cursor: grab; }
.artwork-viewport.is-dragging { cursor: grabbing; user-select: none; }
.artwork-zoom-stage { width: max-content; min-width: 100%; min-height: 100%; display: flex; justify-content: center; align-items: center; margin-inline: auto; }
.artwork-zoom-stage img { display: block; flex: none; max-width: none; max-height: none; height: auto; user-select: none; -webkit-user-drag: none; }
.dialog-figure figcaption { padding-top: 4px; text-align: center; color: rgba(242, 238, 228, .9); font-size: 17px; line-height: 1.45; }

.cv-page { width: min(100%, 816px); margin: 0 auto; padding: 56px var(--gutter) 80px; }
.cv-heading { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; padding-bottom: 24px; border-bottom: 1px solid var(--hairline); }
.cv-heading-copy { min-width: 0; }
.cv-heading .eyebrow { margin-bottom: 10px; }
.cv-heading h1 { margin: 0 0 4px; color: var(--ultramarine); font: 400 54px/1.04 var(--display); }
.cv-role { margin: 0; font-size: 20px; line-height: 1.5; }
.cv-email { margin: 7px 0 18px; font-size: 18px; color: var(--soft-ink); }
.cv-download { min-height: 44px; display: inline-flex; align-items: center; color: var(--ultramarine); font-size: 15px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--ultramarine); transition: color .18s ease; }
.cv-download:hover { color: var(--ink); }
.cv-entry { padding: 22px 0; border-bottom: 1px solid var(--hairline); }
.cv-entry h2 { margin: 0 0 10px; color: var(--ultramarine); font: 400 18px/1.3 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.cv-entry p, .cv-entry li { margin: 0; font-size: 20px; line-height: 1.6; }
.cv-entry ul { margin: 0; padding-left: 24px; }
.cv-entry li + li { margin-top: 6px; }

@media (max-width: 1100px) {
  :root { --gutter: 36px; }
  .hero { gap: 44px; }
  .hero h1 { font-size: clamp(46px, 6vw, 66px); }
  .about-layout { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 900px) {
  .header-inner { min-height: 70px; gap: 12px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .language-switch { margin-left: 0; gap: 5px; padding-inline: 8px; min-height: 36px; font-size: 13px; }
  .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px var(--gutter) 16px; background: var(--wall); border-bottom: 1px solid var(--hairline); }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { width: 100%; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 38px; padding-block: 42px 58px; }
  .hero-copy { max-width: 720px; }
  .hero-artwork { justify-self: start; }
  .project-layout, .two-column { grid-template-columns: 1fr; gap: 24px; }
  .project-layout h2 { max-width: 620px; }
  .look-items { gap: 24px; }
  .about-layout { grid-template-columns: 1fr; gap: 22px; }
  .about-layout h2, .about-copy, .about-portrait { grid-column: 1; grid-row: auto; }
}

@media (max-width: 620px) {
  :root { --gutter: 20px; --section-space: 58px; }
  body { font-size: 20px; }
  .wordmark { font-size: 28px; }
  .hero { gap: 30px; padding-block: 34px 46px; }
  .eyebrow { font-size: 14px; }
  .hero h1 { font-size: clamp(46px, 11.8vw, 60px); line-height: 1.02; }
  .hero-copy .yellow-rule { margin: 21px 0 17px; }
  .hero-lead { font-size: 22px; }
  .painting-frame { padding: 0; border: 0; }
  .painting-frame img { height: min(64svh, 500px); }
  .hero-artwork figcaption { font-size: 17px; }
  .artwork-dialog { width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; }
  .dialog-inner { min-height: 0; height: 100%; max-height: 100dvh; padding: 12px; gap: 8px; }
  .dialog-header h2 { font-size: 27px; }
  .zoom-controls { gap: 6px; }
  .zoom-controls button { padding-inline: 11px; }
  .zoom-controls output { min-width: 48px; font-size: 15px; }
  .viewer-hint { max-width: 38rem; align-self: center; font-size: 14px; }
  .artwork-viewport { min-height: 0; max-height: none; }
  h2 { font-size: 50px; }
  .look-items { grid-template-columns: 1fr; gap: 22px; }
  .closing-thought p { font-size: 30px; }
  .drawing-grid { grid-template-columns: minmax(0, 380px); gap: 32px; }
  .drawing-card, .drawing-placeholder { width: min(100%, 380px); }
  .about-layout { grid-template-columns: 1fr; gap: 20px; }
  .about-portrait { max-width: 320px; }
  .footer-inner { min-height: 58px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 0; padding-block: 11px; font-size: 15px; }
  .cv-page { padding-top: 38px; padding-bottom: 56px; }
  .cv-heading { grid-template-columns: 1fr; gap: 20px; }
  .cv-heading h1 { font-size: 46px; }
  .cv-entry { padding-block: 18px; }
}

@media (max-width: 360px) {
  .wordmark { font-size: 24px; }
  .menu-toggle { padding-inline: 10px; }
  .language-switch { padding-inline: 6px; }
}

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