@font-face {
  font-family: Inter;
  src: url('../assets/fonts/Inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../assets/fonts/BricolageGrotesque.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: Instrument;
  src: url('../assets/fonts/InstrumentSerif-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Geist;
  src: url('../assets/fonts/Geist-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: GeistMono;
  src: url('../assets/fonts/GeistMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #fafafa;
  --white: #FAFAFA;
  --ink: #424242;
  --ink-2: #666;
  --line: #e6e6e6;
  --img-line: #0000001f;
  --font-body: Inter, sans-serif;
  --font-heading: 'Bricolage Grotesque', Inter, sans-serif;
  --font-serif: Instrument;
  --font-geist-mono: GeistMono;
  --sidebar: 240px;
  --page-gap: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 40px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
.skip-link:focus { position: fixed; z-index: 10; left: 16px; top: 16px; padding: 12px; background: #FAFAFA; }

.sidebar {
  position: fixed;
  top: 40px;
  left: max(32px, calc((100vw - 1600px)/2 + 32px));
  width: var(--sidebar);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.identity {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  background: var(--white);
  padding: 24px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.wordmark { font-size: 28px; font-weight: 500; line-height: 1.3; letter-spacing: normal; }
.identity-role { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.navigation {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
}
.navigation a { text-align: center; font-size: 14px; font-weight: 400; line-height: 1.5; padding: 14px 10px; border-radius: 9px; transition: background .18s; }
.navigation a:hover { background: #f6f6f6; }
.navigation a.active { background: #eeeeef; font-weight: 500; }
.sidebar-note { padding: 18px 12px; text-align: center; font-size: 14px; color: var(--ink-2); }
.sidebar-note a:hover { text-decoration: underline; text-underline-offset: 4px; }

main {
  max-width: 1280px;
  margin-left: calc(max(32px, (100vw - 1600px)/2 + 32px) + var(--sidebar) + var(--page-gap));
  margin-right: 48px;
  padding-top: 64px;
}
h1 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -.035em;
  max-width: 656px;
}
.intro { padding-bottom: 48px; }
.intro-layout { display: grid; grid-template-columns: minmax(0, 656px) 128px; gap: 48px; align-items: center; }
.greeting { font-size: 15px; line-height: 1.6; margin-bottom: 20px; }
.intro-copy { font-size: 16px; font-weight: 400; line-height: 1.65; max-width: 656px; margin-top: 24px; }
.current { font-size: 14px; line-height: 1.6; color: var(--ink-2); margin-top: 28px; }
.current span { color: var(--ink); font-weight: 500; }
.intro .portrait img { width: 128px; height: 160px; object-fit: cover; border-radius: 72px 72px 12px 12px; filter: grayscale(1); }
.intro .portrait figcaption { font-size: 11px; line-height: 1.5; margin-top: 12px; color: var(--ink-2); text-align: center; }
.work-jump { display: inline-block; margin-top: 28px; font-size: 14px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 5px; }
.work-jump:hover { color: var(--ink); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-head h2 { font-family: var(--font-heading); font-weight: 500; font-size: 28px; line-height: 1.24; letter-spacing: -.035em; }
.section-head > p { font-family: var(--font-body); font-size: 14px; font-weight: 400; line-height: 1.65; color: var(--ink-2); }
.work { padding-top: 32px; border-top: 1px solid var(--line); }
.work .section-head { align-items: flex-end; margin-bottom: 36px; }
.work .section-head h2 { font-size: 64px; font-weight: 800; line-height: .98; letter-spacing: -.055em; }
.work .section-head > p { max-width: 30ch; padding-bottom: 4px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 26px; }
.project { min-width: 0; }
.project-image { position: relative; aspect-ratio: 1.42; overflow: hidden; border-radius: 10px; background: #eee; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.project:hover img { transform: scale(1.025); }
.project-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 20px; }
.project-title h3 { font-family: var(--font-heading); font-size: 20px; font-weight: 500; line-height: 1.2; letter-spacing: -.03em; }
.project-title > span { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.project > p { font-size: 14px; font-weight: 400; line-height: 1.75; margin-top: 10px; max-width: 60ch; }
.in-progress { font-size: 11px; white-space: nowrap; display: inline-block; padding: 1px 5px; border: 1px solid var(--line); border-radius: 4px; margin-left: 4px; }

/* Typography inside the approved testimonial cards stays independent. */
.testimonials { font-family: Geist, sans-serif; margin-top: 80px; border-top: 1px solid var(--line); }
.site-footer { margin-top: 64px; padding: 28px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.about-intro h1 { margin-bottom: 32px; }
.about-layout { display: grid; grid-template-columns: minmax(0, 656px) 220px; align-items: start; gap: 48px; }
.about-copy { font-size: 16px; line-height: 1.65; max-width: 656px; }
.about-copy p + p { margin-top: 20px; }
.text-link { display: inline-block; font-size: 14px; font-weight: 500; margin-top: 28px; text-decoration: underline; text-underline-offset: 5px; }
.about-photo { width: 220px; height: 290px; object-fit: cover; object-position: center 35%; border-radius: 12px; }
.background, .gallery { border-top: 1px solid var(--line); margin-top: 64px; padding-top: 32px; }
.experience { display: flex; flex-direction: column; }
.experience > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.experience > div > span { color: var(--ink-2); }
.experience p { font-size: 16px; }
.experience strong { font-size: 14px; font-weight: 400; color: var(--ink-2); display: block; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.gallery-grid img { width: 100%; height: 240px; object-fit: contain; }
.gallery-grid figcaption { margin-top: 14px; font-size: 13px; color: var(--ink-2); }

@media (min-width: 1600px) { main { margin-right: auto; } }
@media (max-width: 1199px) {
  :root { --sidebar: 196px; --page-gap: 40px; }
  .sidebar { left: 24px; top: 28px; }
  main { margin-left: 260px; margin-right: 32px; padding-top: 48px; }
  .intro-layout { grid-template-columns: minmax(0, 656px) 116px; gap: 28px; }
  .intro .portrait img { width: 116px; height: 152px; }
  .project-title { align-items: flex-start; flex-direction: column; gap: 6px; }
  .work .section-head h2 { font-size: 56px; }
}
@media (max-width: 1050px) {
  .about-layout { grid-template-columns: 1fr; gap: 28px; }
  .about-photo { width: 180px; height: 240px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --sidebar: 160px; --page-gap: 28px; }
  .sidebar { left: 20px; top: 24px; }
  .identity { padding: 24px 12px 18px; }
  .wordmark { font-size: 24px; }
  .identity-role { font-size: 13px; }
  .navigation { padding: 8px; }
  main { margin-left: 208px; margin-right: 24px; padding-top: 40px; }
  .intro-layout { grid-template-columns: minmax(0, 656px); }
  .intro .portrait { display: none; }
  .project-grid { gap: 32px 20px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 14px; }
  .work .section-head { align-items: flex-start; }
}
@media (max-width: 599px) {
  html { scroll-padding-top: 120px; }
  .sidebar { position: sticky; top: 0; left: 0; width: auto; margin: 0; background: #fafafaf5; padding: 14px 18px 10px; gap: 10px; border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
  .identity { border: 0; border-radius: 0; padding: 0; background: none; flex-direction: row; justify-content: space-between; text-align: left; }
  .wordmark { font-size: 22px; line-height: 1.4; }
  .identity-role { margin-top: 0; font-size: 12px; }
  .navigation { flex-direction: row; border-radius: 10px; padding: 4px; gap: 4px; }
  .navigation a { flex: 1; padding: 8px; font-size: 14px; border-radius: 6px; }
  .sidebar-note { display: none; }
  main { margin: 0 20px; padding-top: 36px; }
  h1 { font-size: 26px; line-height: 1.3; }
  .intro { padding-bottom: 36px; }
  .greeting { margin-bottom: 16px; }
  .intro-copy { margin-top: 20px; }
  .current { margin-top: 24px; }
  .work-jump { margin-top: 24px; }
  .work { padding-top: 28px; }
  .section-head { margin-bottom: 24px; }
  .section-head h2 { font-size: 26px; }
  .work .section-head h2 { font-size: 46px; }
  .work .section-head { margin-bottom: 28px; }
  .project-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .project-title { flex-direction: row; align-items: baseline; gap: 10px; margin-top: 18px; }
  .project-title > span { font-size: 12px; }
  .testimonials { margin-top: 52px; }
  .site-footer { flex-direction: column; gap: 18px; margin-top: 40px; }
  .about-intro h1 { margin-bottom: 24px; }
  .background, .gallery { margin-top: 40px; padding-top: 24px; }
  .experience > div { grid-template-columns: 82px minmax(0, 1fr); gap: 16px; font-size: 12px; }
  .experience p { font-size: 14px; }
  .experience strong { font-size: 13px; }
  .gallery-grid { gap: 28px 18px; }
  .gallery-grid img { height: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .project:hover img { transform: none; }
}
