:root {
  color-scheme: light only;
  --bg: #ffffff;
  --ink: #171717;
  --muted: #737373;
  --line: #ebebeb;
  --tile: #f7f7f7;
  --card: #ffffff;
  --pad: clamp(20px, 5.5vw, 80px);
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

::selection { background: var(--ink); color: #fff; }

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

.wrap {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.label {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0;
}

h2 {
  font-weight: 400;
  font-size: clamp(2.7rem, 5.4vw, 4.9rem);
  line-height: .95;
  letter-spacing: -0.055em;
}

/* Header */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: clamp(18px, 2.4vw, 32px);
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
}

.brand {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.nav { display: flex; gap: clamp(24px, 3.4vw, 48px); font-size: 15px; }

.nav a { position: relative; padding-block: 6px; }

.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}

.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.pill {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding-inline: 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: background .3s var(--ease), color .3s var(--ease);
}

.pill:hover { background: var(--ink); color: var(--bg); }

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  padding-top: 145px;
  padding-bottom: 96px;
}

.hero-title {
  font-weight: 400;
  font-size: clamp(4.4rem, 12.5vw, 11.25rem);
  line-height: .84;
  letter-spacing: -0.065em;
  margin-left: -0.045em;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: .16em;
  margin-bottom: -.16em;
}

.hero-title .line > span { display: block; }

.hero-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  width: 280px;
  min-height: clamp(520px, calc(100svh - 241px), 634px);
}

.portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 7 / 9;
  border-radius: 28px;
  background: #f4f4f2;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.portrait img {
  width: 92%;
  mix-blend-mode: multiply;
}

.hero-copy { width: 260px; text-align: right; font-size: 18px; line-height: 1.3; letter-spacing: -0.012em; }

.hero-role { font-size: 20px; font-weight: 500; letter-spacing: -0.025em; margin-bottom: 10px; }

/* Work */

.work { padding-block: clamp(56px, 7vw, 100px) clamp(90px, 13vw, 190px); }

.section-head h2 { margin-top: 10px; font-size: clamp(2.6rem, 4.6vw, 4rem); }

.lede {
  margin-top: 22px;
  max-width: 34em;
  color: var(--muted);
  font-size: 18px;
  letter-spacing: -0.012em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 6vw, 84px) 24px;
  margin-top: clamp(48px, 6.5vw, 92px);
}

.card { display: block; }

.card-media {
  aspect-ratio: 16 / 10;
  border-radius: 22px;
  overflow: hidden;
  background: var(--tile);
}

.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.card:hover .card-media img { transform: scale(1.035); }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}

.card h3 { font-size: 21px; font-weight: 500; letter-spacing: -0.03em; }

.arrow { width: 13px; height: 13px; flex: none; color: var(--muted); transition: transform .4s var(--ease), color .3s; }

.card:hover .arrow, .foot-right a:hover .arrow { transform: translate(3px, -3px); color: var(--ink); }

.card p { margin-top: 10px; max-width: 30em; color: var(--muted); letter-spacing: -0.012em; }


/* About */

.about {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px clamp(40px, 6vw, 110px);
  padding-bottom: clamp(90px, 13vw, 190px);
}

.about h2 { margin-top: 18px; }

.about-right { padding-top: 34px; max-width: 40em; }

.about-lead { font-size: clamp(1.25rem, 1.75vw, 1.6rem); letter-spacing: -0.025em; line-height: 1.25; margin-bottom: 34px; }

.about-right p + p { margin-top: 26px; }

.about-right p:not(.about-lead) { color: var(--muted); font-size: 18px; line-height: 1.6; letter-spacing: -0.012em; }

/* Stack */

.stack {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 48px clamp(32px, 4vw, 64px);
  padding-bottom: clamp(90px, 12vw, 170px);
}

.stack h2 { margin-top: 18px; font-size: clamp(2.5rem, 4.6vw, 4.2rem); }

.shipped-label { margin-top: clamp(40px, 5vw, 64px); }

.shipped { margin-top: 12px; border-top: 1px solid var(--line); }

.shipped li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}

.shipped-name { font-weight: 500; letter-spacing: -0.015em; }

.shipped-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 16px; font-size: 14px; color: var(--muted); }

.shipped-links a { border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }

.shipped-links a:hover { color: var(--ink); border-color: currentColor; }

.stack-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-content: start; }

.tech { padding: 28px; border: 1px solid var(--line); background: var(--card); }

.tech h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.025em; }

.tech p { margin-top: 8px; font-size: 14px; color: var(--muted); letter-spacing: -0.01em; }

.icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 24px; }

.icons span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--tile);
  border: 1px solid var(--line);
  transition: background .3s, color .3s, transform .4s var(--ease);
}

.icons svg { width: 26px; height: 26px; fill: currentColor; }

.icons span:hover { background: var(--ink); color: var(--bg); transform: translateY(-3px); }

/* Footer */

.foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-block: 48px 64px;
  position: relative;
}

.foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--pad); right: var(--pad);
  height: 1px;
  background: var(--line);
}

.foot-name { color: var(--muted); font-size: 15px; }

.foot-line { margin-top: 12px; max-width: 24em; letter-spacing: -0.012em; }

.foot-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-size: 15px; }

.foot-right a { display: inline-flex; align-items: center; gap: 8px; }

.foot-right .arrow { width: 9px; height: 9px; color: currentColor; }

.foot-place { margin-top: 14px; color: var(--muted); }

/* Motion */

.js .hero-title .line > span { transform: translateY(112%); transition: transform 1.25s var(--ease); }
.js .hero-title .line:nth-child(2) > span { transition-delay: .09s; }
.js .hero-side, .js .top { opacity: 0; transition: opacity 1s ease .45s; }
.js .ready .hero-title .line > span { transform: none; }
.js .ready .hero-side, .js .ready .top { opacity: 1; }

.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform 1.1s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .grid .card:nth-child(even), .js .stack-grid .tech:nth-child(even) { transition-delay: .1s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero-title .line > span, .js .hero-side, .js .top, .js [data-reveal] {
    opacity: 1; transform: none; transition: none;
  }
  .card-media img { transition: none; }
}

/* Responsive */

@media (max-width: 1000px) {
  .stack { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-right { padding-top: 0; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .pill { height: 42px; padding-inline: 18px; }

  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 36px;
    padding-top: 112px;
    padding-bottom: 56px;
  }

  .hero-side {
    order: -1;
    width: 100%;
    min-height: 0;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 20px;
  }

  .portrait { width: 132px; flex: none; border-radius: 18px; aspect-ratio: 1; }
  .hero-copy { width: auto; text-align: left; font-size: 16px; }
  .hero-role { font-size: 17px; }
  .hero-title { font-size: clamp(3.9rem, 21vw, 7rem); }

  .grid { grid-template-columns: 1fr; gap: 52px; }
  .card-media { border-radius: 16px; }
  .stack-grid { grid-template-columns: 1fr; gap: 16px; }
  .tech { padding: 22px; }

  .foot { flex-direction: column; }
  .foot-right { align-items: flex-start; }
}

/* Cursor */

.cursor-on, .cursor-on * { cursor: none !important; }

.cur-dot, .cur-ring {
  position: fixed;
  left: 0; top: 0;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  will-change: transform;
}

.cur-dot {
  z-index: 10000;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  background: #000;
  transition: opacity .25s;
}

.cur-ring {
  z-index: 9999;
  width: 28px; height: 28px;
  margin: -14px 0 0 -14px;
  border: 1px solid rgba(0, 0, 0, .7);
  transition: opacity .25s, width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease);
}

.cursor-on.cursor-in .cur-dot { opacity: 1; }
.cursor-on.cursor-in .cur-ring { opacity: .55; }
.cursor-hover .cur-ring { width: 42px; height: 42px; margin: -21px 0 0 -21px; }

/* Page transition */

.wipe { position: fixed; inset: 0; z-index: 9000; clip-path: circle(0 at 0 0); will-change: clip-path; }

/* Project pages */

html.dark {
  color-scheme: dark;
  --bg: #000000;
  --ink: #ffffff;
  --muted: #8a8a8a;
  --line: #1f1f1f;
  --tile: #0d0d0d;
  --card: #0a0a0a;
}

.dark ::selection { background: #fff; color: #000; }

.dark .cur-dot, .wipe-dark .cur-dot { background: #fff; }
.dark .cur-ring, .wipe-dark .cur-ring { border-color: rgba(255, 255, 255, .75); }
.wipe-light .cur-dot { background: #000; }
.wipe-light .cur-ring { border-color: rgba(0, 0, 0, .7); }

.p-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: clamp(18px, 2.4vw, 32px);
}

.p-back { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; padding-block: 8px; }
.p-back svg { width: 14px; height: 12px; transition: transform .4s var(--ease); }
.p-back:hover svg { transform: translateX(-4px); }

.p-actions { display: flex; gap: 12px; }

.p-actions .pill { height: 38px; padding-inline: 18px; gap: 10px; font-size: 15px; font-weight: 400; }
.pill-ghost { border-color: #2e2e2e; }
.pill-ghost:hover { background: #fff; color: #000; border-color: #fff; }
.pill-solid { background: #fff; color: #000; border-color: #fff; }
.pill-solid:hover { background: transparent; color: #fff; }
.pill-solid .arrow { width: 10px; height: 10px; color: currentColor; }

.p-shell {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(0, 860px) minmax(0, 1fr);
  gap: 0 clamp(24px, 4vw, 80px);
  align-items: start;
}

.p-side {
  position: sticky;
  top: 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 40px;
  font-size: 15px;
  color: var(--muted);
}

.p-side a { width: fit-content; transition: color .3s; }
.p-side a:hover, .p-side a.on { color: var(--ink); }

.p-hero { text-align: center; padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 96px); }

.p-hero h1 {
  font-weight: 400;
  font-size: clamp(3.2rem, 6.4vw, 5.75rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.p-hero p { margin: 18px auto 0; max-width: 24em; color: var(--muted); font-size: 17px; }

.p-cover { margin: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--tile); }
.p-cover img { width: 100%; }

.p-block { scroll-margin-top: 40px; }
.p-block:first-of-type { padding-top: clamp(40px, 6vw, 80px); }

.p-sec {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 12px 36px;
  padding-block: clamp(48px, 7vw, 92px) clamp(28px, 4vw, 48px);
}

.p-label { color: var(--muted); font-size: 14px; padding-top: 9px; }

.p-lead { font-size: clamp(1.25rem, 1.75vw, 1.56rem); line-height: 1.5; letter-spacing: -0.01em; color: #ededed; }

.p-body p:not(.p-lead) { margin-top: 26px; color: var(--muted); font-size: 17px; line-height: 1.6; }

.p-phones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding-bottom: 32px; }

.p-phones figure { margin: 0; }
.p-phones img { width: 100%; border-radius: 22px; border: 1px solid #262626; }
.p-phones figcaption { margin-top: 16px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.p-phones strong { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 400; font-size: 16px; }

.p-rows { margin: 0 0 32px; border-top: 1px solid var(--line); }

.p-rows > div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 4px 36px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}

.p-rows dt { color: var(--muted); font-size: 14px; padding-top: 2px; }
.p-rows dd { margin: 0; font-size: 17px; letter-spacing: -0.005em; color: #e2e2e2; }

.p-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; padding-bottom: 32px; }

.p-node { position: relative; padding: 26px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.p-node strong { display: block; font-weight: 400; font-size: 18px; letter-spacing: -0.012em; }
.p-node span { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }

.p-node + .p-node::before {
  content: "";
  position: absolute;
  left: -44px; top: 50%;
  width: 44px; height: 1px;
  background: linear-gradient(90deg, #2a2a2a, #6a6a6a);
}

.p-swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding-bottom: 40px; }
.p-swatches i { display: block; aspect-ratio: 1; border-radius: 14px; border: 1px solid #262626; }
.p-swatches strong { display: block; margin-top: 12px; font-weight: 400; font-size: 15px; }
.p-swatches span { color: var(--muted); font-size: 13px; }

.p-links { border-top: 1px solid var(--line); margin-top: clamp(32px, 5vw, 64px); }

.p-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  letter-spacing: -0.012em;
}

.p-links a:hover .arrow { transform: translate(3px, -3px); color: var(--ink); }

.p-next {
  display: block;
  margin-top: clamp(80px, 11vw, 150px);
  padding-block: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
}

.p-next span { display: block; color: var(--muted); font-size: 14px; }

.p-next strong {
  display: inline-block;
  margin-top: 10px;
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.055em;
  transition: transform .6s var(--ease);
}

.p-next:hover strong { transform: translateX(14px); }

.dark .foot { margin-top: 24px; }

.js .p-top, .js .p-side, .js .p-hero, .js .p-cover { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform 1.1s var(--ease); }
.js .p-top, .js .p-side { transform: none; }
.js .p-hero { transition-delay: .08s; }
.js .p-cover { transition-delay: .2s; }
.js .p-side { transition-delay: .3s; }
.js .ready .p-top, .js .ready .p-side, .js .ready .p-hero, .js .ready .p-cover { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .p-top, .js .p-side, .js .p-hero, .js .p-cover { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 1100px) {
  .p-shell { grid-template-columns: minmax(0, 1fr); }
  .p-side { display: none; }
  .p-main { max-width: 860px; margin-inline: auto; width: 100%; }
}

@media (max-width: 760px) {
  .p-actions .pill { height: 36px; padding-inline: 14px; font-size: 14px; }
  .p-cover { border-radius: 14px; }
  .p-sec, .p-rows > div { grid-template-columns: minmax(0, 1fr); }
  .p-label { padding-top: 0; }
  .p-phones { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .p-flow { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .p-node + .p-node::before { left: 50%; top: -28px; width: 1px; height: 28px; background: #3a3a3a; }
  .p-swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
