:root {
  --paper: #fff;
  --ink: #000;
  --rule: 1px solid var(--ink);
  --font-sans: Helvetica, "Helvetica Neue", Arial, "Apple SD Gothic Neo", sans-serif;
  --rail: clamp(9rem, 13vw, 12.5rem);
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-synthesis: none; scroll-behavior: smooth; }
body { margin: 0; min-width: 20rem; background: var(--paper); color: var(--ink); font-size: clamp(1rem, 1.15vw, 1.125rem); line-height: 1.45; -webkit-font-smoothing: antialiased; }
::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
button, a { -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }
.home-page { overflow-x: hidden; }
.dossier-home { min-height: 100svh; display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); }
.dossier-nav { position: sticky; top: 0; z-index: 2; display: flex; height: 100svh; flex-direction: column; justify-content: flex-start; border-right: var(--rule); background: var(--paper); }
.nav-links { display: contents; }
.nav-links a, .lang-toggle { display: flex; min-height: calc(100svh / 6); align-items: center; padding: 1rem clamp(1rem, 2vw, 1.75rem); border: 0; border-bottom: var(--rule); background: var(--paper); color: var(--ink); font: 700 clamp(1rem, 1.45vw, 1.4rem)/1 var(--font-sans); letter-spacing: -0.025em; text-align: left; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.nav-links a:hover, .lang-toggle:hover { background: var(--ink); color: var(--paper); }
.lang-toggle { border-bottom: 0; }
.dossier-field { min-width: 0; display: grid; grid-template-rows: 26svh 42svh auto; }
.dossier-void { background: var(--paper); }
.dossier-name { display: flex; align-items: center; margin: 0; overflow: hidden; padding: 0 1.5%; background: var(--ink); color: var(--paper); font-family: Helvetica, "Helvetica Neue", Arial, sans-serif; font-size: clamp(10rem, 24vw, 23rem); font-weight: 700; letter-spacing: -0.04em; line-height: 0.74; text-transform: uppercase; white-space: nowrap; }
.dossier-name span { display: block; width: 170%; transform: scaleX(.59); transform-origin: left center; }
.dossier-copy { display: flex; align-items: stretch; border-bottom: var(--rule); }
.language-panel { width: 100%; margin: 0; }
.dossier-copy-grid { display: grid; grid-template-columns: minmax(15rem, 42%) minmax(22rem, 58%); }
.dossier-copy p, .dossier-copy > p { margin: 0; padding: clamp(1.5rem, 2.5vw, 2.5rem); font-size: clamp(1.65rem, 2.65vw, 2.55rem); font-weight: 400; letter-spacing: -0.035em; line-height: 1.08; }
.dossier-copy-grid p:first-child { border-right: var(--rule); }
.dossier-copy-grid p:first-child { font-size: clamp(1.8rem, 3.1vw, 3rem); font-weight: 400; }
.dossier-copy-grid p:last-child { padding-right: 15%; }
.dossier-copy i { font-style: normal; font-weight: 700; }
.dossier-sections { grid-column: 2; min-width: 0; }
.dossier-section { border-top: var(--rule); scroll-margin-top: 0; }
.dossier-section:empty { display: none; }
.dossier-section > .window,
.dossier-section > .centered,
.dossier-section > .centered_col,
.dossier-section > .window_no_top_padding,
.dossier-section > .contact-field { width: 100%; min-height: auto; }
.dossier-section .window { padding-block: clamp(3rem, 7vw, 7rem); }
.dossier-section li { font-size: clamp(1rem, 1.25vw, 1.25rem); }
.dossier-section li > ul, .dossier-section li + ul { font-size: clamp(.95rem, 1.08vw, 1.08rem); line-height: 1.5; }
@media (prefers-reduced-motion: no-preference) {
  .dossier-name { animation: expose-name 650ms cubic-bezier(.16, 1, .3, 1) both; }
  .dossier-copy { animation: expose-copy 700ms 90ms cubic-bezier(.16, 1, .3, 1) both; }
}
@keyframes expose-name { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes expose-copy { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@media (max-width: 760px) {
  .dossier-home { display: block; }
  .dossier-nav { position: sticky; height: auto; min-height: auto; border-right: 0; border-bottom: var(--rule); }
  .nav-links { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .nav-links a, .lang-toggle { justify-content: center; min-height: 3.25rem; padding: 0.75rem 0.25rem; border-right: var(--rule); border-bottom: 0; font-size: clamp(0.66rem, 2.8vw, 0.8rem); text-align: center; }
  .nav-links a:last-child { border-right: 0; }
  .lang-toggle { width: 100%; border-top: var(--rule); border-right: 0; }
  .dossier-field { grid-template-rows: 16svh 31svh auto; }
  .dossier-name { padding: 0 0.75rem; font-size: clamp(4.35rem, 23.4vw, 8.4rem); line-height: 0.8; }
  .dossier-name span { width: 137%; transform: scaleX(.73); }
  .dossier-copy-grid { display: block; }
  .dossier-copy-grid p:first-child { border-right: 0; border-bottom: var(--rule); }
  .dossier-copy-grid p:last-child { padding-right: 1rem; }
  .dossier-copy p, .dossier-copy > p { padding: 1.25rem 1rem 1.5rem; font-size: clamp(1.55rem, 7.3vw, 2.25rem); line-height: 1.04; }
  .dossier-sections { grid-column: auto; }
  .dossier-section { scroll-margin-top: 7rem; }
}
@media (max-width: 390px) {
  .nav-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav-links a:nth-child(3) { border-right: 0; }
  .nav-links a:nth-child(-n+3) { border-bottom: var(--rule); }
  .nav-links a:nth-child(5) { border-right: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Interior dossier pages */
body:not(.home-page) > header,
head > header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto;
  border-bottom: var(--rule);
  background: var(--paper);
}

body:not(.home-page) > header .nav-links,
head > header .nav-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(6rem, 1fr));
}

body:not(.home-page) > header .nav-links a,
head > header .nav-links a,
body:not(.home-page) > header .lang-toggle,
head > header .lang-toggle {
  min-height: 4.25rem;
  justify-content: center;
  border-right: var(--rule);
  border-bottom: 0;
  padding: 1rem;
}

body:not(.home-page) > header .lang-toggle,
head > header .lang-toggle { min-width: 8rem; }

.window,
.centered,
.centered_col,
.window_no_top_padding {
  width: min(100%, 96rem);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 6rem) clamp(1rem, 4vw, 4rem);
}

.centered,
.centered_col {
  min-height: calc(100svh - 4.25rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.window > div,
.centered > p,
.centered_col > * { max-width: 70ch; }

.window > div:first-child,
.bio-copy,
.writing-primary,
.centered > p:first-child { font-size: clamp(1.35rem, 2.2vw, 2.25rem); line-height: 1.2; letter-spacing: -0.03em; }

h1, h2, h3, h4, h5, h6 { margin: 0; font: 700 inherit/1 var(--font-sans); letter-spacing: -0.035em; }
h3 { margin: clamp(3rem, 7vw, 7rem) 0 1.25rem; padding-bottom: 0.65rem; border-bottom: 2px solid var(--ink); font-size: clamp(2.5rem, 6vw, 6rem); text-transform: uppercase; }
ul { margin: 0; padding: 0; list-style: none; }
li { padding: 1rem 0; border-bottom: var(--rule); }
li > ul, li + ul { padding: 0.75rem 0 0 clamp(1rem, 5vw, 5rem); border: 0; font-size: 0.9em; }
pre { max-width: 80ch; white-space: pre-wrap; font: inherit; }
.foldable { margin-top: 1rem; }
.foldable button { border: var(--rule); background: var(--paper); color: var(--ink); padding: 0.6rem 0.8rem; font: 700 0.8rem/1 var(--font-sans); text-transform: uppercase; cursor: pointer; }
.foldable button:hover { background: var(--ink); color: var(--paper); }
.content { display: none; padding: 1rem 0; }
.content.open { display: block; }
img.portrait { max-width: 100%; filter: grayscale(1) contrast(1.08); }

/* Philosophy of Computation surface */
.poc-hero {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  min-height: 68svh;
  border-bottom: var(--rule);
}
.poc-rail {
  display: flex;
  align-items: flex-start;
  border-right: var(--rule);
  padding: clamp(1rem, 2vw, 1.5rem);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: clamp(1rem, 1.5vw, 1.5rem);
  text-transform: uppercase;
}
.poc-title {
  display: flex;
  align-items: flex-end;
  padding: clamp(1.5rem, 4vw, 4rem);
  background: var(--ink);
  color: var(--paper);
}
.poc-title h1 {
  max-width: 8ch;
  font-size: clamp(5rem, 14vw, 14rem);
  line-height: .72;
  text-transform: uppercase;
}
.poc-detail {
  display: grid;
  grid-template-columns: minmax(14rem, 32%) minmax(0, 1fr);
  border-bottom: var(--rule);
}
.poc-detail > * { padding: clamp(1.5rem, 4vw, 4rem); }
.poc-label {
  border-right: var(--rule);
  font-size: clamp(1.5rem, 3vw, 3rem);
  letter-spacing: -.04em;
  line-height: .96;
}
.poc-copy {
  max-width: 68ch;
  font-size: clamp(1.2rem, 1.8vw, 1.8rem);
}
.poc-copy p { margin: 0 0 2rem; }
.poc-links { display: flex; flex-wrap: wrap; gap: .75rem 2rem; }
.poc-links a { font-weight: 700; }

@media (max-width: 760px) {
  .poc-hero { grid-template-columns: 3rem minmax(0, 1fr); min-height: 56svh; }
  .poc-rail { padding: 1rem .75rem; }
  .poc-title { padding: 1.5rem 1rem; }
  .poc-title h1 { font-size: clamp(4rem, 18vw, 7rem); }
  .poc-detail { display: block; }
  .poc-label { border-right: 0; border-bottom: var(--rule); }
}

/* Contact surface */
.contact-field {
  min-height: calc(100svh - 4.25rem);
  display: grid;
  grid-template-rows: 24svh 38svh auto;
}
.contact-void { border-bottom: var(--rule); }
.contact-title {
  display: flex;
  align-items: center;
  margin: 0;
  overflow: hidden;
  padding: 0 clamp(1rem, 3vw, 3rem);
  background: var(--ink);
  color: var(--paper);
  font-size: clamp(8rem, 22vw, 21rem);
  letter-spacing: -0.06em;
  line-height: 0.72;
  text-transform: uppercase;
  white-space: nowrap;
}
.contact-address {
  display: flex;
  align-items: center;
  min-height: 22svh;
  padding: clamp(1.5rem, 4vw, 4rem) clamp(1rem, 4vw, 4rem);
  border-bottom: var(--rule);
}
.contact-address p {
  max-width: 70ch;
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 5rem);
  letter-spacing: -0.045em;
  line-height: 0.96;
}

@media (max-width: 760px) {
  body:not(.home-page) > header,
  head > header { position: relative; display: block; }
  body:not(.home-page) > header .nav-links,
  head > header .nav-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body:not(.home-page) > header .nav-links a,
  head > header .nav-links a { min-height: 3.25rem; padding: 0.75rem 0.25rem; font-size: 0.72rem; }
  body:not(.home-page) > header .lang-toggle,
  head > header .lang-toggle { width: 100%; min-height: 3.25rem; border-top: var(--rule); border-right: 0; }
  .window, .centered, .centered_col, .window_no_top_padding { padding: 2rem 1rem 4rem; }
  .window > div:first-child, .bio-copy, .writing-primary, .centered > p:first-child { font-size: clamp(1.3rem, 6vw, 1.75rem); }
  h3 { font-size: clamp(2.25rem, 14vw, 4.5rem); }
  .contact-field { min-height: calc(100svh - 7rem); grid-template-rows: 15svh 28svh auto; }
  .contact-title { padding: 0 1rem; font-size: clamp(5.25rem, 24vw, 8.5rem); letter-spacing: -0.075em; }
  .contact-address { min-height: 25svh; padding: 1.5rem 1rem 3rem; align-items: flex-start; }
  .contact-address p { font-size: clamp(2rem, 9.3vw, 3.4rem); line-height: 0.94; overflow-wrap: anywhere; }
}
