@font-face {
  font-family: "Lab Serif";
  src: local("Baskerville"), local("Times New Roman");
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --ink: #000;
  --paper: #fff;
  --muted: #595959;
  --line: #d5d5d5;
  --field-filter: none;
  --serif: "Lab Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #fff; --paper: #000; --muted: #b8b8b8; --line: #383838;
    --field-filter: invert(1);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #fff; --paper: #000; --muted: #b8b8b8; --line: #383838;
  --field-filter: invert(1);
}
:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height, 92px) + 24px); }
body { margin: 0; padding-top: var(--header-height, 92px); }
::selection { color: var(--paper); background: var(--ink); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
p, h1, h2, h3, figure { margin: 0; }
.page { max-width: 1600px; margin-inline: auto; padding-inline: clamp(24px, 5.4vw, 88px); }
.skip-link { position: fixed; top: -100px; left: 24px; z-index: 50; padding: 16px; background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 12px; }
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 30; padding-inline: max(24px, calc((100vw - 1424px) / 2)); background: var(--paper); min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; align-items: baseline; white-space: nowrap; font-size: 24px; font-weight: 500; letter-spacing: -1.25px; line-height: 1.15; }
.wordmark-n { color: var(--paper); background: var(--ink); padding: 1px 2px 2px; margin-inline: 1px 0; letter-spacing: -1px; }
.wordmark-rest { margin-left: 0; }
nav { order: 2; display: flex; align-items: center; gap: 30px; font-size: 14px; }
nav a { padding-block: 14px; }
nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
nav span { margin-left: 5px; }
.hero { display: flex; align-items: center; min-height: calc(100svh - var(--header-height, 92px)); padding-block: 65px 75px; }
.hero-copy { position: relative; z-index: 3; width: 54%; padding-block: 28px; }
.eyebrow { font-family: var(--mono); font-size: 12px; line-height: 1.6; letter-spacing: .085em; text-transform: uppercase; }
h1 { font-family: var(--serif); font-size: clamp(68px, 7.25vw, 110px); line-height: .99; letter-spacing: -.045em; font-weight: 400; margin-block: 39px 32px; }
h1 em { font-weight: 400; }
.intro { max-width: 445px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 36px; font-size: 14px; padding-block: 10px; border-bottom: 1px solid var(--ink); transition: gap .2s ease; }
.text-link:hover { gap: 46px; }
.hero-link { margin-top: 34px; }
.field { position: absolute; z-index: 2; inset: var(--header-height, 92px) 0 auto; height: calc(100svh - var(--header-height, 92px)); pointer-events: none; overflow: hidden; }
.field.is-ready { position: fixed; }
.grains-canvas { position: fixed; z-index: 21; top: var(--header-height, 92px); left: 0; pointer-events: none; }
.field canvas { display: block; visibility: hidden; }
.field.is-ready canvas { visibility: visible; }
.field-fallback { filter: var(--field-filter); position: absolute; right: -1%; top: -6%; height: 112%; width: 50%; object-fit: fill; }
.field.is-ready .field-fallback { display: none; }
.field[data-pinned="true"] { z-index: 20; background: var(--paper); }
.icon-button { width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; font: 17px var(--sans); display: grid; place-items: center; flex-shrink: 0; }
.icon-button[hidden] { display: none; }
.icon-button:hover { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.icon-button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.theme-toggle { order: 3; }
.theme-toggle[hidden] { display: none; }
.theme-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.header > .wordmark { margin-right: auto; }
.section { position: relative; z-index: 1; background: var(--paper); display: grid; grid-template-columns: 1fr 2fr; gap: 44px; padding-block: 75px 85px; border-top: 1px solid var(--ink); }
.section-label { display: flex; align-items: baseline; gap: 23px; padding-top: 8px; }
.section-label h2 { font-size: 14px; font-weight: 400; }
.index { font-family: var(--mono); color: var(--muted); font-size: 12px; }
.section-heading { font-family: var(--serif); font-size: clamp(40px, 4vw, 58px); line-height: 1.05; letter-spacing: -.025em; margin-bottom: 45px; }
.inquiry { border-top: 1px solid var(--line); display: grid; grid-template-columns: .86fr 1.2fr; gap: 28px; padding-block: 25px 27px; }
.inquiry:last-child { padding-bottom: 0; }
.inquiry h3 { font-size: 17px; font-weight: 500; line-height: 1.55; letter-spacing: -.02em; }
.inquiry p { font-size: 16px; line-height: 1.65; color: var(--muted); }
.practice-intro { max-width: 480px; font-size: 22px; line-height: 1.5; letter-spacing: -.025em; margin-bottom: 44px; }
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.writing { margin-top: 56px; }
.writing > p { max-width: 550px; }
.project { border-top: 1px solid var(--line); padding-top: 23px; display: flex; align-items: flex-start; flex-direction: column; }
.project .eyebrow { font-size: 11px; color: var(--muted); }
.project h3 { display: flex; align-items: center; justify-content: space-between; width: 100%; font-family: var(--serif); font-weight: 400; font-size: 39px; line-height: 1.2; letter-spacing: -.025em; margin-block: 17px 13px; }
.project h3 > span[aria-hidden] { font-family: var(--sans); font-size: 24px; margin-right: 3px; transition: transform .2s ease; }
.project:hover h3 > span[aria-hidden] { transform: translate(3px,-3px); }
.project > p:not(.eyebrow) { font-size: 16px; line-height: 1.65; color: var(--muted); margin-bottom: 26px; }
.project-link { font-size: 14px; margin-top: auto; padding-bottom: 6px; border-bottom: 1px solid var(--ink); }
.project-link span { display: none; }
.contact { padding-block: 69px 80px; }
.contact-body { display: flex; align-items: flex-start; flex-direction: column; gap: 29px; }
.contact-heading { font-family: var(--serif); font-weight: 400; font-size: clamp(39px, 4vw, 58px); line-height: 1.05; letter-spacing: -.025em; }
.footer { position: relative; z-index: 1; background: var(--paper); border-top: 1px solid var(--ink); min-height: 120px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.footer .wordmark { font-size: 20px; }
.footer p, .copyright { font-family: var(--mono); font-size: 11px; color: var(--muted); }


@media (max-width: 1050px) {
  .page { padding-inline: 36px; }
  .header { padding-inline: 36px; }
  h1 { font-size: clamp(60px, 7.6vw, 82px); }
  .intro { max-width: 350px; font-size: 17px; }

  .section { grid-template-columns: .7fr 2fr; gap: 34px; }
  .inquiry { grid-template-columns: 1fr; gap: 10px; }
  .projects { gap: 30px; }
}
@media (max-width: 720px) {

  .page { padding-inline: 24px; }
  .header { min-height: 112px; padding-inline: 24px; align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 22px 17px; gap: 19px; }
  .wordmark { font-size: 23px; }
  nav { width: 100%; gap: 16px; font-size: 13px; }
  nav a { padding-block: 5px; white-space: nowrap; }
  nav a:nth-child(3) { margin-left: auto; }
  .hero { align-items: flex-start; min-height: calc(100svh - var(--header-height, 112px)); padding-block: 32px 220px; }
  .hero-copy { width: 100%; padding-block: 0; }
  .eyebrow { font-size: 10px; letter-spacing: .065em; }
  h1 { font-size: clamp(56px, 11.6vw, 82px); margin-block: 28px 24px; }
  .intro { max-width: 390px; font-size: 17px; }
  .hero-link { margin-top: 22px; }
  .field-fallback { width: min(60vw, 220px); height: auto; top: auto; bottom: 0; right: 0; }
  .theme-toggle { position: absolute; top: 20px; right: 24px; }
  .motion-toggle { position: absolute; top: 20px; right: 62px; }
  .icon-button { width: 30px; height: 30px; flex-shrink: 0; font-size: 15px; }
  .section { grid-template-columns: 1fr; gap: 33px; padding-block: 37px 48px; }
  .section-label { gap: 17px; padding-top: 0; }
  .section-heading { font-size: 43px; margin-bottom: 31px; }
  .inquiry { padding-block: 22px; }
  .inquiry h3 { font-size: 18px; }
  .practice-intro { font-size: 21px; margin-bottom: 31px; }
  .projects { grid-template-columns: 1fr; gap: 34px; }
  .writing { margin-top: 34px; }
  .project { padding-top: 20px; }
  .project h3 { margin-block: 13px 12px; }
  .project > p:not(.eyebrow) { margin-bottom: 20px; }
  .contact-heading { font-size: 43px; }
  .contact-body { gap: 24px; }
  .contact .text-link { max-width: 100%; gap: 22px; font-size: 14px; }
  .footer { flex-wrap: wrap; padding-block: 29px; gap: 25px 15px; min-height: auto; }

}
@media (max-width: 720px) and (max-height: 700px) {
  .hero { padding-block: 16px 140px; }
  h1 { font-size: clamp(48px, 10.6vw, 70px); margin-block: 14px 18px; }
  .intro { font-size: 16px; line-height: 1.5; }
  .hero-link { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.project-title { font: inherit; }
.project-title em { font-family: Georgia, serif; font-style: italic; font-weight: 400; }

.theme-toggle svg { display: none; }
.theme-toggle[data-preference="auto"] [data-mode="auto"] { display: block; }
.theme-toggle[data-preference="light"] [data-mode="light"] { display: block; }
.theme-toggle[data-preference="dark"] [data-mode="dark"] { display: block; }

.motion-toggle svg { display: none; }
.motion-toggle[data-paused="false"] [data-icon="pause"],
.motion-toggle[data-paused="true"] [data-icon="play"] { display: block; }
