/* Peter Ishak — personal site
   Identity: π monogram (P.I.), Fraunces + Instrument Sans + IBM Plex Mono,
   warm drafting paper, ink, and one blueprint blue. */

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 300 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/plex-mono.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f2efe7;
  --paper-2: #e9e5da;
  --ink: #14140f;
  --soft: #4b4942;
  --muted: #827e74;
  --line: #d9d4c7;
  --line-strong: #bdb7a8;
  --blue: #2a3bdc;
  --grid-dot: rgba(20, 20, 15, 0.16);

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #10100e;
    --paper-2: #191916;
    --ink: #efebe0;
    --soft: #b9b5a9;
    --muted: #8a867b;
    --line: #2a2925;
    --line-strong: #45433c;
    --blue: #93a0ff;
    --grid-dot: rgba(239, 235, 224, 0.14);
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  body::before { mix-blend-mode: screen; opacity: 0.12; filter: invert(1); }
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
em { font-style: italic; }
::selection { background: var(--blue); color: #fff; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mono {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.mono b { font-weight: 400; color: var(--ink); }
.blue { color: var(--blue); }
.pi-glyph { font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 0; letter-spacing: 0; text-transform: none; color: var(--blue); }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: var(--gutter); top: 12px; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 8px 14px; border-radius: 999px;
}

/* underline link */
.link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.45em;
  padding-bottom: 3px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.45s var(--ease-out), color 0.25s var(--ease);
}
.link .arr { display: inline-block; transition: transform 0.35s var(--ease-out); }
.link:hover { background-size: 0 1px; background-position: 100% 100%; color: var(--blue); }
.link:hover .arr { transform: translate(3px, -3px); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border-bottom-color: var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand svg { width: 30px; height: 26px; color: var(--blue); transition: transform 0.5s var(--ease-out); }
.brand:hover svg { transform: rotate(-8deg); }
.brand span {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 450;
  letter-spacing: -0.02em;
}

.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 34px); }
.nav a { font-size: 15px; color: var(--soft); transition: color 0.2s var(--ease); }
.nav a sup {
  font-family: var(--mono);
  font-size: 9px;
  margin-left: 3px;
  color: var(--muted);
}
.nav a:hover { color: var(--ink); }
.nav .pill {
  color: var(--paper);
  background: var(--ink);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 500;
  transition: background-color 0.25s var(--ease);
}
.nav .pill:hover { color: var(--paper); background: var(--blue); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(92px, 12vh, 116px) 0 0;
  overflow: hidden;
}
.hero::before {
  /* drafting grid, faded out from the top right */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 82% 22%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 75% at 82% 22%, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(12px, 2vw, 24px);
}

.hero-meta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(18px, 3vh, 32px);
}

.name {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: end;
  position: relative;
  z-index: 2;
  pointer-events: none;
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(5rem, min(16.4vw, 31vh), 15rem);
  line-height: 0.83;
  letter-spacing: -0.055em;
}
.name .line { display: block; overflow: hidden; padding: 0.06em 0.08em 0.12em 0; margin-top: -0.06em; }
.name .line > span { display: inline-block; }
.name .l2 { padding-left: 23.5%; }
.name em { font-weight: 330; letter-spacing: -0.06em; }
.name .dot { color: var(--blue); font-style: normal; }

.name .line > span { animation: rise 1.25s var(--ease-out) 0.1s both; }
.name .l2 > span { animation-delay: 0.22s; }
@keyframes rise { from { transform: translateY(112%); } to { transform: none; } }

.hero-photo {
  grid-column: 9 / -1;
  grid-row: 2;
  align-self: start;
  position: relative;
  z-index: 1;
}
.hero-photo .frame { overflow: hidden; border-radius: 4px; background: var(--paper-2); }
.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 52vh;
  object-fit: cover;
  object-position: 50% 22%;
  filter: grayscale(1) contrast(1.06) brightness(1.03);
}
.hero-photo .frame { animation: unveil 1.4s var(--ease-out) 0.3s both; }
.hero-photo img { animation: settle 1.8s var(--ease-out) 0.3s both; }
@keyframes unveil { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes settle { from { transform: scale(1.14); } to { transform: none; } }

/* registration marks */
.marks::before,
.marks::after {
  content: "";
  position: absolute;
  z-index: 3;
  width: 13px;
  height: 13px;
  pointer-events: none;
  background:
    linear-gradient(var(--blue), var(--blue)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(var(--blue), var(--blue)) 0 50% / 100% 1px no-repeat;
}
.marks::before { top: -7px; left: -7px; }
.marks::after { top: -7px; right: -7px; }

.hero-photo figcaption {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}

.hero-lede {
  grid-column: 1 / 7;
  grid-row: 3;
  margin-top: clamp(20px, 3.4vh, 40px);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--soft);
  max-width: 33rem;
}
.hero-lede em {
  font-family: var(--serif);
  font-weight: 340;
  font-size: 1.1em;
  color: var(--ink);
}

.hero-index {
  grid-column: 9 / -1;
  grid-row: 3;
  margin-top: clamp(20px, 3.4vh, 40px);
  align-self: start;
}
.hero-index li { border-top: 1px solid var(--line); }
.hero-index li:last-child { border-bottom: 1px solid var(--line); }
.hero-index a {
  display: grid;
  grid-template-columns: 2.4rem 1fr auto;
  align-items: baseline;
  padding: 6px 0;
  transition: padding 0.4s var(--ease-out), color 0.25s var(--ease);
}
.hero-index a span:nth-child(2) {
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.hero-index .arr { color: var(--muted); transition: transform 0.4s var(--ease-out), color 0.25s; }
.hero-index a:hover { padding-left: 10px; color: var(--blue); }
.hero-index a:hover .arr { transform: translateY(3px); color: var(--blue); }

/* ---------- Signal: analog → digital ---------- */

.signal {
  position: relative;
  margin-top: clamp(40px, 6vh, 72px);
  padding-bottom: clamp(40px, 7vh, 80px);
}
.signal svg {
  display: block;
  width: 100%;
  height: clamp(44px, 6vw, 76px);
  overflow: visible;
}
.signal path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 3s var(--ease) 0.7s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.ruler {
  height: 9px;
  margin-top: 14px;
  border-top: 1px solid var(--line-strong);
  background:
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 10%) 0 0 / 100% 9px no-repeat,
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 2%) 0 0 / 100% 4px no-repeat;
}
.signal-labels {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  margin-top: 12px;
}
.signal-labels span:last-child { text-align: right; }
.signal-labels i { font-style: normal; }

/* ---------- Section scaffolding ---------- */

.section { padding: clamp(72px, 12vh, 140px) 0; position: relative; }
.section-rule {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
  margin-bottom: clamp(40px, 7vh, 72px);
}

.display {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.display em { font-weight: 330; }

.work-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: end;
  margin-bottom: clamp(64px, 11vh, 120px);
}
.work-head .display { grid-column: 1 / 9; }
.work-head p { grid-column: 9 / -1; color: var(--soft); max-width: 22rem; }

/* ---------- Projects ---------- */

.project + .project { margin-top: clamp(96px, 16vh, 184px); }

.p-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: end;
  margin-bottom: clamp(20px, 3.5vh, 36px);
}
.p-num { grid-column: 1 / 2; align-self: start; padding-top: 0.9em; }
.p-head h3 {
  grid-column: 2 / 9;
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(2.9rem, 8.2vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}
.p-head h3 em { font-weight: 330; }
.p-kicker {
  grid-column: 9 / -1;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--soft);
  padding-bottom: 0.5em;
}

.plate {
  position: relative;
  display: block;
  aspect-ratio: 16 / 8.7;
  background: var(--tint);
  border-radius: 6px;
  overflow: hidden;
  isolation: isolate;
}
.plate::after {
  /* faint drafting grid inside the plate */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(var(--plate-dot, rgba(0, 0, 0, 0.14)) 1px, transparent 1.4px);
  background-size: 22px 22px;
}
.plate .tag {
  position: absolute;
  top: clamp(12px, 1.8vw, 22px);
  z-index: 3;
  color: var(--plate-ink, rgba(20, 20, 15, 0.7));
}
.plate .tag.l { left: clamp(14px, 2vw, 26px); }
.plate .tag.r { right: clamp(14px, 2vw, 26px); }

.screen,
.phone {
  position: absolute;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 40px 80px -30px rgba(10, 10, 5, 0.5),
    0 12px 28px -14px rgba(10, 10, 5, 0.3);
  will-change: transform;
}
.screen {
  left: 6%;
  top: 13%;
  width: 76%;
  border-radius: clamp(6px, 0.9vw, 12px);
  transform: translate3d(0, calc(var(--p, 0) * -14px), 0);
}
.screen img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease-out); }
.phone {
  right: 6.5%;
  top: 17%;
  width: 17.5%;
  border-radius: clamp(12px, 2vw, 28px);
  border: clamp(3px, 0.45vw, 6px) solid #0f0f0d;
  background: #0f0f0d;
  transform: translate3d(0, calc(var(--p, 0) * -64px), 0);
}
.phone img { width: 100%; aspect-ratio: 780 / 1688; object-fit: cover; border-radius: clamp(8px, 1.5vw, 21px); }

.project.flip .screen { left: auto; right: 6%; }
.project.flip .phone { right: auto; left: 6.5%; }

.plate:hover .screen img { transform: scale(1.025); }

.js .plate { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease-out); }
.js .plate.in { clip-path: inset(0); }

.p-foot {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  margin-top: clamp(20px, 3.5vh, 36px);
  align-items: start;
}
.p-desc {
  grid-column: 2 / 7;
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  line-height: 1.55;
  color: var(--soft);
}
.p-facts {
  grid-column: 8 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  border-top: 1px solid var(--line);
}
.p-facts div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.p-facts dt { margin-bottom: 2px; }
.p-facts dd { font-size: 15px; color: var(--ink); }
.p-facts .visit { grid-column: 1 / -1; border-bottom: 0; padding-top: 16px; }
.p-facts .visit a { font-family: var(--serif); font-size: 1.35rem; letter-spacing: -0.02em; }

.next {
  margin-top: clamp(88px, 14vh, 160px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: center;
  padding: clamp(28px, 5vh, 48px) 0;
  border-top: 1px dashed var(--line-strong);
  border-bottom: 1px dashed var(--line-strong);
}
.next .mono { grid-column: 1 / 2; }
.next p {
  grid-column: 2 / -1;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  letter-spacing: -0.03em;
  color: var(--muted);
}

/* ---------- About ---------- */

.about { background: var(--paper-2); }

.statement {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(1.9rem, 4.5vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  max-width: 20em;
  text-wrap: balance;
}
.statement em { color: var(--blue); font-weight: 330; }

.about-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  margin-top: clamp(56px, 10vh, 112px);
  align-items: start;
}

.portrait {
  grid-column: 1 / 6;
  position: sticky;
  top: 100px;
}
.portrait .frame { overflow: hidden; border-radius: 4px; background: var(--line); }
.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.9s var(--ease), transform 1.4s var(--ease-out);
}
.portrait:hover img { filter: grayscale(0.15) contrast(1); transform: scale(1.02); }
.portrait figcaption { display: flex; justify-content: space-between; margin-top: 12px; }

.about-body { grid-column: 7 / -1; }
.about-body > p {
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.62;
  color: var(--soft);
  max-width: 36rem;
}
.about-body > p + p { margin-top: 1.1em; }

.quote {
  margin: clamp(40px, 7vh, 72px) 0;
  padding-left: clamp(18px, 2.4vw, 32px);
  border-left: 1px solid var(--blue);
  max-width: 36rem;
}
.quote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 340;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
}
.quote cite { display: block; margin-top: 16px; font-style: normal; }

.loop { margin-top: clamp(40px, 7vh, 72px); max-width: 36rem; }
.loop svg { display: block; width: 100%; height: auto; overflow: visible; }
.loop .s { fill: none; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.loop .b { fill: var(--paper); stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.loop .f { fill: none; stroke: var(--blue); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; animation: flow 1.6s linear infinite; }
.loop .ah { fill: var(--ink); }
.loop .ahb { fill: var(--blue); }
.loop text { font-family: var(--serif); font-size: 17px; fill: var(--ink); letter-spacing: -0.01em; }
.loop text.m { font-family: var(--mono); font-size: 10px; letter-spacing: 0.09em; fill: var(--muted); text-transform: uppercase; }
.loop text.mb { fill: var(--blue); }
@keyframes flow { to { stroke-dashoffset: -16; } }
.loop figcaption { margin-top: 14px; }

.principles {
  margin-top: clamp(40px, 7vh, 72px);
  max-width: 36rem;
  border-top: 1px solid var(--line-strong);
  counter-reset: p;
}
.principles li {
  counter-increment: p;
  display: grid;
  grid-template-columns: 2.4rem 10rem 1fr;
  gap: 8px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-strong);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--soft);
  align-items: baseline;
}
.principles li::before {
  content: "0" counter(p);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--blue);
}
.principles b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ---------- Contact + Footer ---------- */

.contact { padding-bottom: clamp(48px, 8vh, 96px); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: end;
}
.contact h2 {
  grid-column: 1 / 10;
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(3.4rem, 12.5vw, 11rem);
  line-height: 0.86;
  letter-spacing: -0.055em;
}
.contact h2 em { font-weight: 330; color: var(--blue); }
.contact-side { grid-column: 10 / -1; padding-bottom: 1.2rem; }
.contact-side .avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--paper-2);
}
.contact-side .avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter 0.6s var(--ease); }
.contact-side:hover .avatar img { filter: none; }
.contact-side p { color: var(--soft); font-size: 16px; line-height: 1.5; }

.contact-links {
  margin-top: clamp(40px, 7vh, 72px);
  border-top: 1px solid var(--ink);
}
.contact-links a {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: baseline;
  padding: clamp(16px, 2.6vh, 24px) 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.25s var(--ease), padding 0.45s var(--ease-out);
}
.contact-links .mono { grid-column: 1 / 3; }
.contact-links .v {
  grid-column: 3 / 11;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.contact-links .arr {
  grid-column: 11 / -1;
  justify-self: end;
  font-size: 1.4rem;
  transition: transform 0.45s var(--ease-out);
}
.contact-links a:hover { color: var(--blue); padding-left: 12px; }
.contact-links a:hover .arr { transform: translate(4px, -4px); }

.site-footer { position: relative; overflow: hidden; padding-top: clamp(40px, 7vh, 72px); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 32px;
}
.footer-brand { grid-column: 1 / 6; }
.footer-brand svg { width: 44px; height: 38px; color: var(--blue); margin-bottom: 16px; }
.footer-brand p { color: var(--soft); max-width: 20rem; font-size: 15px; }
.footer-col { grid-column: span 2; }
.footer-col.first { grid-column: 7 / 9; }
.footer-col h4 { margin: 0 0 12px; }
.footer-col li + li { margin-top: 6px; }
.footer-col a { font-size: 15px; color: var(--soft); transition: color 0.2s; }
.footer-col a:hover { color: var(--blue); }

.wordmark {
  margin-top: clamp(40px, 7vh, 80px);
  font-family: var(--serif);
  font-weight: 340;
  font-size: 21.5vw;
  line-height: 0.8;
  letter-spacing: -0.06em;
  white-space: nowrap;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  user-select: none;
}
.wordmark em { font-weight: 320; }
.footer-base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 28px;
  padding: 16px 0 22px;
  border-top: 1px solid var(--line);
}

/* ---------- Motion ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .name .line > span, .hero-photo .frame, .hero-photo img { animation: none; }
  .js .plate { clip-path: none; transition: none; }
  .signal path { animation: none; stroke-dashoffset: 0; }
  .loop .f { animation: none; }
  .screen, .phone { transform: none !important; }
}

/* ---------- Tablet / mobile ---------- */

@media (max-width: 900px) {
  .nav a sup { display: none; }
  .hero-photo { grid-column: 8 / -1; }
  .hero-index { grid-column: 8 / -1; }
  .work-head .display { grid-column: 1 / -1; }
  .work-head p { grid-column: 1 / -1; margin-top: 20px; }
  .p-kicker { grid-column: 2 / -1; padding-top: 10px; }
  .p-head h3 { grid-column: 2 / -1; }
  .p-desc { grid-column: 1 / -1; }
  .p-facts { grid-column: 1 / -1; margin-top: 24px; }
  .portrait { grid-column: 1 / -1; position: relative; top: 0; max-width: 420px; margin-bottom: 40px; }
  .about-body { grid-column: 1 / -1; }
  .contact h2 { grid-column: 1 / -1; }
  .contact-side { grid-column: 1 / -1; margin-top: 32px; display: flex; gap: 18px; align-items: center; padding: 0; }
  .contact-side .avatar { margin: 0; flex: none; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col, .footer-col.first { grid-column: span 6; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header .wrap { height: 60px; }
  .nav a:not(.pill) { display: none; }
  .hero { padding-top: 92px; }
  .hero-meta span:nth-child(2) { display: none; }
  .hero-meta { white-space: nowrap; font-size: 10.5px; }
  .signal-labels i { display: none; }
  .name { font-size: 31vw; }
  .name .l2 { padding-left: 0; text-align: right; }
  .hero-photo { grid-column: 1 / -1; grid-row: 3; margin-top: 28px; }
  .hero-photo img { aspect-ratio: 1 / 1; max-height: none; object-position: 50% 18%; }
  .hero-lede { grid-column: 1 / -1; grid-row: 4; }
  .hero-index { grid-column: 1 / -1; grid-row: 5; }
  .signal-labels { grid-template-columns: 1fr 1fr; }
  .signal-labels span:nth-child(2) { display: none; }

  .p-head { display: block; }
  .p-num { display: block; padding: 0 0 10px; }
  .plate { aspect-ratio: 4 / 4.6; }
  .screen, .project.flip .screen { left: 7%; right: auto; top: 11%; width: 128%; }
  .phone, .project.flip .phone { left: auto; right: 7%; top: auto; bottom: -9%; width: 40%; }
  .plate .tag.r { display: none; }
  .next { display: block; }
  .next p { margin-top: 8px; }
  .principles li { grid-template-columns: 2.4rem 1fr; }
  .principles li span { grid-column: 2; }
  .contact-links a { grid-template-columns: 1fr auto; row-gap: 4px; }
  .contact-links .mono { grid-column: 1 / -1; }
  .contact-links .v { grid-column: 1; }
  .contact-links .arr { grid-column: 2; }
}
