@font-face {
  font-family: "Instrument Sans";
  src: url("assets/instrument-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ground: #161715;
  --ink: #f1f0e9;
  --body: #c0c0b7;
  --muted: #a5a69c;
  --rule: #41423c;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-family: "Instrument Sans", Arial, sans-serif;
  background: var(--ground);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
body { min-width: 0; }
::selection { color: var(--ground); background: var(--ink); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
a:hover { text-decoration: underline; text-underline-offset: 0.24em; }
[id] { scroll-margin-top: 32px; }

.shell {
  width: min(calc(100% - clamp(40px, 10vw, 152px)), 1240px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 1;
  left: 1rem;
  top: 1rem;
  padding: .75rem 1rem;
  background: var(--ink);
  color: var(--ground);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.masthead, nav, .hero-actions, .links, .section-heading {
  display: flex;
  align-items: center;
}
.masthead {
  min-height: 77px;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
}
.wordmark { font-size: 18px; font-weight: 600; letter-spacing: -.045em; }
nav { gap: clamp(16px, 3.2vw, 42px); }
nav a, .quiet-link { color: var(--body); font-size: .875rem; }
nav a { padding-block: 12px; }

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2%;
  padding-block: clamp(28px, 3.4vw, 54px) clamp(46px, 4.4vw, 70px);
}
.hero-copy { min-width: 0; }
h1 {
  font-size: clamp(65px, 7.6vw, 112px);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.062em;
}
.hero-copy > p {
  max-width: 435px;
  margin-top: 28px;
  color: var(--body);
  font-size: clamp(1.02rem, 1.28vw, 1.17rem);
  line-height: 1.55;
}
.hero-actions { flex-wrap: wrap; gap: 16px 26px; margin-top: 30px; }
.button, .links a, .outbound {
  display: inline-flex;
  align-items: baseline;
  gap: .48em;
}
.hero-actions a { align-items: center; font-size: .875rem; font-weight: 550; }
.button {
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 3px;
  gap: 17px;
  background: var(--ink);
  color: var(--ground);
}
.button:hover { background: #d7d8ce; text-decoration: none; }
.glyph { font-family: Arial, sans-serif; font-size: 1.08em; }
.outbound::after {
  content: "";
  display: inline-block;
  flex: none;
  width: .75em;
  height: .75em;
  align-self: center;
  background: currentColor;
  clip-path: polygon(18% 6%, 94% 6%, 94% 82%, 81% 82%, 81% 29%, 13% 97%, 3% 87%, 71% 19%, 18% 19%);
}
.hero-portrait {
  position: relative;
  justify-self: center;
  width: min(100%, 41vw, 540px);
  aspect-ratio: 320 / 384;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.hero-portrait img, .hero-portrait canvas {
  /* Frame the subject inside the original 984px-wide transparent export. */
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: calc(100% * 984 / 320);
  height: auto;
  transform: translate(-50%, -51.6%);
}
.hero-portrait canvas { pointer-events: none; }
.hero-portrait.is-scattering img { opacity: 0; }

h2 { font-weight: 500; font-size: clamp(32px, 3.1vw, 46px); letter-spacing: -.055em; line-height: 1.06; }
.section-heading { justify-content: space-between; gap: 12px; padding-bottom: 24px; }
.project, .about {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 74px);
  border-top: 1px solid var(--rule);
}
.project { padding-block: 32px 35px; }
.category {
  font: 400 .7rem/1.45 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.project h3 { margin-top: 8px; font-size: clamp(27px, 2.4vw, 37px); line-height: 1.1; letter-spacing: -.045em; font-weight: 500; }
.project-detail, .about-copy { max-width: 630px; }
.project-detail p, .about-copy p { font-size: 1.03rem; line-height: 1.55; color: var(--body); text-wrap: pretty; }
.links { flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; }
.links a { font-size: .875rem; font-weight: 550; padding-block: 4px; }

.about { padding-block: clamp(46px, 6.5vw, 90px); }
.about-copy .category { margin-top: 26px; margin-bottom: 7px; }
.about-copy a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--muted); text-underline-offset: .19em; }
.about-copy a:hover { text-decoration-color: currentColor; }

.footer {
  overflow: hidden;
  background: #141315;
  border-top: 1px solid var(--rule);
  color: #cfceca;
  padding-top: clamp(44px, 5.5vw, 90px);
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  padding-inline: max(24px, 3.6vw);
}
.footer h2 { font-size: clamp(21px, 2.1vw, 34px); letter-spacing: -.035em; }
.footer .email { margin-top: 12px; }
.footer-links, .footer-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.footer-links { justify-self: end; }
.footer-nav { align-items: center; }
.footer-nav a { font: 400 .79rem/1.2 var(--mono); text-transform: uppercase; padding-block: 7px; }
.footer-links a, .footer .email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--body);
  font-size: clamp(.95rem, 1.22vw, 1.18rem);
  min-height: 30px;
  text-decoration: underline;
  text-decoration-color: #71716d;
  text-underline-offset: 4px;
}
.footer a:hover { color: var(--ink); text-decoration-color: currentColor; }
.footer-scene { position: relative; margin-block: clamp(28px, 4.5vw, 76px) 0; }
.footer-art {
  position: relative;
  width: 100%;
  aspect-ratio: 3.8;
  pointer-events: none;
  filter: grayscale(1) sepia(.08) brightness(1.65);
}
.footer-art picture, .footer-art img, .footer-art canvas { display: block; width: 100%; height: 100%; }
.footer-art canvas { position: absolute; inset: 0; }
.footer-credit {
  position: absolute;
  inset: 43% 0 auto;
  text-align: center;
  font-size: clamp(.76rem, 1.12vw, 1.06rem);
  line-height: 1.5;
  color: var(--muted);
}
.footer-signature {
  margin-inline: 2.2vw;
  text-align: center;
  color: #333134;
  font-size: 18.2vw;
  font-weight: 620;
  letter-spacing: -.08em;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
}
.footer-signature i {
  display: inline-block;
  font-style: normal;
  transform: skewX(-7deg);
  transform-origin: 50% 65%;
}

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; gap: 20px; padding-block: 54px 48px; }
  h1 { font-size: clamp(62px, 13vw, 88px); }
  .hero-copy > p { margin-top: 20px; }
  .hero-actions { margin-top: 22px; }
  .hero-portrait { width: min(calc(100% + 24px), 460px); margin-top: 10px; }
  .masthead { min-height: 64px; }
  .project, .about { grid-template-columns: 1fr; gap: 17px; }
  .project { padding-block: 24px 26px; }
  .about { gap: 24px; }
  .footer-main { grid-template-columns: 1fr; gap: 24px; padding-inline: 5vw; }
  .footer-nav { align-items: flex-start; }
  .footer-links { justify-self: start; }
  .footer-art { aspect-ratio: 2.4; }
  .footer-credit { position: static; margin-block: 8px 16px; }
}
@media (max-width: 420px) {
  .wordmark { font-size: 16px; }
  nav { gap: 14px; }
  nav a { font-size: .8125rem; }
  .section-heading { padding-bottom: 18px; }
}
