/* ============================================================
   Base
   ============================================================ */

:root {
  color-scheme: light;
  --bg: #f3f0e8;
  --bg-soft: #ebe7dd;
  --surface: #fbf9f4;
  --surface-strong: #ffffff;
  --ink: #191915;
  --ink-soft: #34342e;
  --muted: #706f66;
  --line: rgba(25, 25, 21, 0.14);
  --line-strong: rgba(25, 25, 21, 0.28);
  --accent: #ff5b35;
  --accent-soft: #ffb9a4;
  --acid: #d8ff68;
  --cobalt: #3458ff;
  --shadow: 0 24px 70px rgba(39, 34, 23, 0.13);
  --display: "Iowan Old Style", "Baskerville", "Times New Roman", "Songti SC",
    "STSong", serif;
  --sans: "Avenir Next", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", "Courier New", monospace;
  --header-height: 76px;
  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-lg: 34px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #151512;
  --bg-soft: #1c1c18;
  --surface: #20201c;
  --surface-strong: #282823;
  --ink: #f3f0e7;
  --ink-soft: #d8d4ca;
  --muted: #99978e;
  --line: rgba(243, 240, 231, 0.13);
  --line-strong: rgba(243, 240, 231, 0.26);
  --accent: #ff704d;
  --accent-soft: #7d3929;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 22px);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 82% 5%, rgba(255, 91, 53, 0.08), transparent 24rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition:
    background-color 250ms ease,
    color 250ms ease;
}

body.dialog-open {
  overflow: hidden;
}

::selection {
  color: #171712;
  background: var(--acid);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

img,
svg {
  display: block;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.container {
  width: min(1280px, calc(100% - 72px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-progress {
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  pointer-events: none;
}

.page-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.4;
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.52);
}

.serif-accent {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
}

.meta-label {
  display: block;
  margin: 0 0 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition:
    height 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    backdrop-filter 220ms ease;
}

.site-header.is-scrolled,
.site-header.menu-open {
  height: 66px;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(25, 25, 21, 0.04);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1280px, calc(100% - 72px));
  height: 100%;
  margin-inline: auto;
}

.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 11px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.brand-mark {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: #171712;
  background: var(--acid);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-real-name {
  margin-left: -4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 550;
  letter-spacing: 0.06em;
}

.footer-real-name::before {
  margin: 0 6px;
  content: "·";
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.site-nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 550;
  transition: color 150ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
}

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

.site-nav .nav-contact {
  padding: 8px 14px;
  color: var(--bg);
  background: var(--ink);
  border-radius: 999px;
}

.site-nav .nav-contact::after {
  display: none;
}

.site-nav .nav-contact:hover {
  color: var(--bg);
  background: var(--accent);
}

.header-actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  cursor: pointer;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.icon-button:hover {
  background: var(--surface);
  border-color: var(--line-strong);
  transform: rotate(8deg);
}

.theme-toggle .icon-moon,
[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  cursor: pointer;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  margin: 6px auto;
  background: var(--ink);
  transition: transform 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-height) + 58px) 0 72px;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-position: center;
  background-size: 100px 100px;
  content: "";
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), transparent 78%);
  opacity: 0.26;
}

.hero-glow {
  position: absolute;
  z-index: -1;
  top: 4%;
  right: 3%;
  width: 42vw;
  height: 42vw;
  background: rgba(255, 91, 53, 0.08);
  border-radius: 50%;
  filter: blur(70px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  align-items: center;
  gap: clamp(50px, 8vw, 110px);
  min-height: min(760px, calc(100vh - 100px));
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 30px 0 20px;
}

.hero-eyebrow {
  margin-bottom: 34px;
}

.status-dot {
  position: relative;
  width: 7px;
  height: 7px;
  background: #23a55a;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(35, 165, 90, 0.12);
}

.status-dot::after {
  position: absolute;
  inset: -4px;
  border: 1px solid #23a55a;
  border-radius: inherit;
  content: "";
  animation: status-pulse 2.4s ease-out infinite;
}

@keyframes status-pulse {
  0% {
    opacity: 0.7;
    transform: scale(0.55);
  }
  80%,
  100% {
    opacity: 0;
    transform: scale(1.65);
  }
}

.hero-title {
  max-width: 790px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4.6rem, 8.2vw, 8.4rem);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.92;
}

.hero-title-line {
  display: block;
  margin-top: 0.14em;
  white-space: nowrap;
}

.hero-title em {
  position: relative;
  color: var(--accent);
  font-weight: 400;
}

.hero-title em::after {
  position: absolute;
  right: 0.03em;
  bottom: -0.02em;
  left: 0.05em;
  height: 0.08em;
  background: url("data:image/svg+xml,%3Csvg width='280' height='14' viewBox='0 0 280 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 10C65 2 202 2 278 7' stroke='%23ff5b35' stroke-width='3' stroke-linecap='round' fill='none'/%3E%3C/svg%3E")
    center / 100% 100% no-repeat;
  content: "";
  opacity: 0.8;
  transform: rotate(-1deg);
}

.hero-intro {
  max-width: 550px;
  margin: 36px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 52px;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 620;
  border-radius: 999px;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.button-primary {
  color: var(--bg);
  background: var(--ink);
}

.button-primary:hover {
  color: #171712;
  background: var(--acid);
  transform: translateY(-2px);
}

.button-arrow {
  display: grid;
  width: 25px;
  height: 25px;
  color: var(--ink);
  background: var(--bg);
  border-radius: 50%;
  font-size: 13px;
  place-items: center;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid var(--line-strong);
}

.text-link span {
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.hero-meta {
  display: flex;
  gap: clamp(34px, 4.5vw, 68px);
  margin-top: 60px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 550;
}

.hero-art-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 0.92;
}

.art-grid {
  position: absolute;
  inset: 4% 0 7% 2%;
  border: 1px solid var(--line);
  border-radius: 46% 54% 52% 48% / 48% 43% 57% 52%;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.35;
  animation: organic-turn 26s linear infinite;
}

@keyframes organic-turn {
  0%,
  100% {
    border-radius: 46% 54% 52% 48% / 48% 43% 57% 52%;
    transform: rotate(0deg);
  }
  50% {
    border-radius: 54% 46% 44% 56% / 56% 55% 45% 44%;
    transform: rotate(7deg);
  }
}

.hero-card {
  position: absolute;
  z-index: 3;
  top: 12%;
  left: 13%;
  display: flex;
  width: 76%;
  aspect-ratio: 0.82;
  padding: clamp(22px, 3vw, 36px);
  flex-direction: column;
  justify-content: space-between;
  color: #1b1b17;
  background: #ff6c45;
  border: 1px solid rgba(25, 25, 21, 0.22);
  border-radius: 2px;
  box-shadow: 16px 20px 0 rgba(25, 25, 21, 0.09);
  transform: rotate(4deg);
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-art:hover .hero-card {
  transform: rotate(1.5deg) translateY(-8px);
}

.hero-card::before {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(25, 25, 21, 0.22);
  content: "";
  pointer-events: none;
}

.hero-card-top,
.hero-card-bottom {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.hero-card-center {
  position: relative;
  align-self: center;
  text-align: center;
}

.hero-card-center strong {
  position: relative;
  z-index: 2;
  display: block;
  font-family: var(--display);
  font-size: clamp(42px, 5.1vw, 68px);
  font-weight: 400;
  letter-spacing: -0.08em;
  line-height: 0.78;
}

.hero-card-center strong i {
  font-weight: 400;
}

.hero-card-number {
  position: absolute;
  top: 50%;
  left: 50%;
  color: rgba(25, 25, 21, 0.09);
  font-family: var(--display);
  font-size: clamp(160px, 20vw, 250px);
  line-height: 1;
  transform: translate(-50%, -50%);
}

.orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.orbit-one {
  top: 1%;
  left: 7%;
  width: 75%;
  aspect-ratio: 1;
}

.orbit-two {
  right: -2%;
  bottom: 13%;
  width: 60%;
  aspect-ratio: 1;
  border-style: dashed;
}

.orbit-dot {
  position: absolute;
  z-index: 4;
  width: 12px;
  height: 12px;
  background: var(--acid);
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.dot-one {
  top: 7%;
  right: 14%;
}

.dot-two {
  bottom: 17%;
  left: 6%;
  width: 8px;
  height: 8px;
  background: var(--cobalt);
}

.floating-note {
  position: absolute;
  z-index: 5;
  padding: 13px 15px;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.5;
  box-shadow: var(--shadow);
}

.note-top {
  top: 7%;
  right: 0;
  display: flex;
  gap: 18px;
  background: var(--acid);
  transform: rotate(-3deg);
}

.note-cross {
  font-size: 16px;
  line-height: 1;
}

.note-bottom {
  bottom: 9%;
  left: 0;
  min-width: 135px;
  color: #f5f1e7;
  background: #1b1b17;
  transform: rotate(2deg);
}

.note-mini {
  display: block;
  margin-bottom: 12px;
  color: #9c9b92;
}

.art-caption {
  position: absolute;
  right: 2%;
  bottom: -2%;
  left: 5%;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.09em;
}

/* ============================================================
   Ticker
   ============================================================ */

.ticker {
  overflow: hidden;
  color: var(--bg);
  background: var(--ink);
  transform: rotate(-1.5deg) scale(1.015);
}

.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  padding: 12px 0;
  animation: ticker-move 34s linear infinite;
}

.ticker-track span {
  padding-inline: 26px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.ticker-track i {
  color: var(--acid);
  font-size: 12px;
  font-style: normal;
}

@keyframes ticker-move {
  to {
    transform: translateX(-50%);
  }
}

/* ============================================================
   Shared sections
   ============================================================ */

.section {
  padding: clamp(92px, 10vw, 150px) 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 50px;
}

.section-heading h2 {
  margin: 14px 0 0;
  font-family: var(--display);
  font-size: clamp(3.5rem, 6.3vw, 6.6rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.heading-dot {
  color: var(--accent);
}

.section-note {
  width: min(360px, 34%);
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

/* ============================================================
   Projects
   ============================================================ */

.projects-section {
  position: relative;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.filter-button {
  padding: 8px 15px;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease;
}

.filter-button:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.filter-button.is-active {
  color: var(--bg);
  background: var(--ink);
  border-color: var(--ink);
}

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

.project-card {
  display: flex;
  overflow: hidden;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  flex-direction: column;
  transition:
    transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 300ms ease,
    border-color 300ms ease;
}

.project-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.project-card--featured {
  position: relative;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  border-radius: var(--radius-lg);
}

.project-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.38;
  background: var(--project-bg);
  isolation: isolate;
}

.project-card--featured .project-media {
  aspect-ratio: auto;
  min-height: 510px;
}

.project-media::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(25, 25, 21, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 25, 21, 0.13) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  opacity: 0.5;
  mask-image: linear-gradient(135deg, #000, transparent 76%);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-media-top {
  position: absolute;
  z-index: 5;
  top: 22px;
  right: 22px;
  left: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--project-ink);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-media-index {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.media-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--project-ink);
}

.media-word {
  position: relative;
  z-index: 2;
  font-family: var(--display);
  font-size: clamp(72px, 10vw, 150px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.08em;
  line-height: 0.8;
  text-align: center;
}

.media-subword {
  position: absolute;
  z-index: 3;
  bottom: 26px;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.media-shape {
  position: absolute;
  border: 1px solid currentColor;
}

.media-shape--one {
  width: 48%;
  aspect-ratio: 1;
  border-radius: 50%;
}

.media-shape--two {
  width: 66%;
  aspect-ratio: 1;
  border-radius: 50%;
  border-style: dashed;
  transform: rotate(35deg) scaleY(0.46);
}

.media-shape--three {
  width: 27%;
  aspect-ratio: 1;
  background: var(--project-accent);
  border-radius: 50%;
  transform: translate(64%, -45%);
}

.project-media[data-shape="type"] .media-word {
  font-family: var(--sans);
  font-size: clamp(120px, 18vw, 260px);
  font-style: normal;
  font-weight: 800;
  letter-spacing: -0.1em;
}

.project-media[data-shape="type"] .media-shape--one {
  width: 44%;
  background: var(--project-accent);
  border: 0;
  border-radius: 0;
  transform: translate(25%, -35%) rotate(12deg);
}

.project-media[data-shape="type"] .media-shape--two {
  width: 72%;
  border-radius: 0;
  transform: rotate(-8deg);
}

.project-media[data-shape="stack"] .media-stage {
  perspective: 800px;
}

.project-media[data-shape="stack"] .media-shape--one,
.project-media[data-shape="stack"] .media-shape--two,
.project-media[data-shape="stack"] .media-shape--three {
  width: 48%;
  aspect-ratio: 0.86;
  background: var(--project-accent);
  border: 1px solid currentColor;
  border-radius: 6px;
}

.project-media[data-shape="stack"] .media-shape--one {
  transform: translate(-18%, -10%) rotate(-10deg);
}

.project-media[data-shape="stack"] .media-shape--two {
  background: var(--project-bg);
  transform: translate(16%, -3%) rotate(8deg);
}

.project-media[data-shape="stack"] .media-shape--three {
  background: var(--acid);
  transform: translate(0, 10%) rotate(-2deg);
}

.project-media[data-shape="stack"] .media-word {
  z-index: 4;
  font-family: var(--sans);
  font-size: clamp(38px, 5vw, 76px);
  font-style: normal;
  font-weight: 650;
}

.project-card-body {
  display: flex;
  min-width: 0;
  padding: 28px;
  flex: 1;
  flex-direction: column;
}

.project-card--featured .project-card-body {
  justify-content: space-between;
  padding: clamp(30px, 4vw, 54px);
}

.project-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-year {
  flex: none;
}

.project-title-button {
  display: block;
  width: fit-content;
  margin: 25px 0 12px;
  padding: 0;
  cursor: pointer;
  text-align: left;
  background: transparent;
}

.project-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.1rem, 4vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1;
}

.project-card:not(.project-card--featured) .project-title {
  font-size: clamp(2rem, 3vw, 3rem);
}

.project-title-button:hover .project-title {
  color: var(--accent);
}

.project-summary {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 4px 9px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.project-open {
  display: grid;
  width: 42px;
  height: 42px;
  flex: none;
  cursor: pointer;
  place-items: center;
  background: var(--ink);
  border-radius: 50%;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    transform 200ms ease;
}

.project-open svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--bg);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.project-card:hover .project-open {
  color: #181815;
  background: var(--acid);
  transform: rotate(-35deg);
}

.project-card:hover .project-open svg {
  stroke: #181815;
}

.project-card--featured .project-summary {
  max-width: 390px;
  font-size: 14px;
}

.project-card--featured .project-title {
  max-width: 420px;
  margin-top: 28px;
}

.project-card--featured .project-card-footer {
  margin-top: 42px;
}

/* ============================================================
   Numbers
   ============================================================ */

.numbers-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.number-item {
  display: flex;
  min-height: 175px;
  padding: 36px clamp(20px, 3vw, 42px);
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
}

.number-item:first-child {
  padding-left: 0;
}

.number-item:last-child {
  padding-right: 0;
  border-right: 0;
}

.number-value {
  font-family: var(--display);
  font-size: clamp(3.2rem, 5vw, 5.2rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.number-value sup {
  top: -1.3em;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.number-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================================
   Notes
   ============================================================ */

.notes-section {
  background:
    linear-gradient(90deg, transparent 49.96%, var(--line) 50%, transparent 50.04%),
    var(--bg);
}

.notes-list {
  border-top: 1px solid var(--line-strong);
}

.note-card {
  position: relative;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 165px 42px;
  align-items: center;
  gap: 26px;
  width: 100%;
  padding: 27px 4px;
  cursor: pointer;
  text-align: left;
  background: transparent;
  border-bottom: 1px solid var(--line);
  transition:
    padding 220ms ease,
    background-color 220ms ease;
}

.note-card:hover {
  padding-right: 20px;
  padding-left: 20px;
  background: var(--surface);
}

.note-index {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
}

.note-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 20px;
}

.note-category {
  flex: none;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.note-title {
  overflow: hidden;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.6vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-meta {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-align: right;
}

.note-arrow {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    transform 200ms ease;
}

.note-card:hover .note-arrow {
  color: #171712;
  background: var(--acid);
  border-color: var(--acid);
  transform: rotate(-35deg);
}

/* ============================================================
   Demo lab
   ============================================================ */

.lab-section {
  position: relative;
  overflow: hidden;
  color: #f3f0e7;
  background: #191915;
}

.lab-section::before {
  position: absolute;
  top: -28%;
  right: -8%;
  width: 55vw;
  height: 55vw;
  background: rgba(255, 91, 53, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.lab-section::after {
  position: absolute;
  bottom: -22%;
  left: -15%;
  width: 45vw;
  height: 45vw;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.lab-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 55px;
}

.lab-top h2 {
  margin: 16px 0 0;
  font-family: var(--display);
  font-size: clamp(3.8rem, 7.5vw, 7.8rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.lab-top h2 span {
  color: var(--acid);
  font-style: italic;
}

.lab-intro {
  width: min(365px, 32%);
  padding-bottom: 7px;
}

.lab-intro p {
  margin: 0 0 26px;
  color: rgba(243, 240, 231, 0.6);
  font-size: 13px;
  line-height: 1.85;
}

.lab-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(243, 240, 231, 0.82);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.07em;
}

.lab-status i {
  width: 6px;
  height: 6px;
  background: #7ee786;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(126, 231, 134, 0.1);
}

.demos-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.demo-card {
  overflow: hidden;
  background: #22221e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  transition:
    border-color 220ms ease,
    transform 250ms ease;
}

.demo-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-4px);
}

.demo-window {
  position: relative;
  overflow: hidden;
  margin: 17px 17px 0;
  aspect-ratio: 1.75;
  background:
    radial-gradient(circle at 70% 20%, var(--demo-accent), transparent 36%),
    #efebe1;
  border-radius: 12px 12px 0 0;
}

.demo-window::before {
  position: absolute;
  top: 12px;
  right: 13px;
  left: 13px;
  height: 20px;
  background:
    radial-gradient(circle, #1a1a17 0 2px, transparent 2.5px) 0 50% / 13px 13px
      repeat-x;
  opacity: 0.3;
  content: "";
}

.demo-window::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: rgba(25, 25, 21, 0.17);
  content: "";
}

.demo-canvas {
  position: absolute;
  top: 22%;
  right: 8%;
  bottom: 8%;
  left: 8%;
  display: grid;
  place-items: center;
  color: #181815;
  background:
    linear-gradient(rgba(25, 25, 21, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 25, 21, 0.11) 1px, transparent 1px);
  background-size: 22px 22px;
  border: 1px solid rgba(25, 25, 21, 0.18);
  border-radius: 5px;
}

.demo-canvas-word {
  position: relative;
  z-index: 2;
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 86px);
  font-style: italic;
  letter-spacing: -0.07em;
  line-height: 1;
}

.demo-orbit {
  position: absolute;
  width: 44%;
  aspect-ratio: 1;
  background: var(--demo-accent);
  border: 1px solid currentColor;
  border-radius: 50%;
  transform: translate(25%, -18%);
  mix-blend-mode: multiply;
}

.demo-card[data-preview="grid"] .demo-canvas {
  background:
    conic-gradient(
      from 45deg,
      transparent 0 25%,
      var(--demo-accent) 0 50%,
      transparent 0 75%,
      #181815 0
    );
  background-size: 44px 44px;
}

.demo-card[data-preview="grid"] .demo-canvas-word {
  padding: 8px 12px;
  color: #181815;
  background: #f3f0e7;
  border: 1px solid #181815;
  font-family: var(--sans);
  font-size: clamp(24px, 4vw, 50px);
  font-style: normal;
  font-weight: 700;
}

.demo-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  padding: 24px;
}

.demo-type {
  margin: 0 0 8px;
  color: rgba(243, 240, 231, 0.42);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.demo-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.6vw, 2.55rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.demo-description {
  max-width: 440px;
  margin: 10px 0 0;
  color: rgba(243, 240, 231, 0.55);
  font-size: 12px;
  line-height: 1.7;
}

.demo-link {
  display: grid;
  width: 45px;
  height: 45px;
  flex: none;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.demo-link.is-soon {
  cursor: default;
  opacity: 0.55;
}

.demo-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.demo-link:not(.is-soon):hover {
  color: #181815;
  background: var(--acid);
  border-color: var(--acid);
}

/* ============================================================
   About
   ============================================================ */

.about-section {
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.34fr) minmax(0, 1fr);
  gap: clamp(60px, 10vw, 150px);
}

.about-sidebar {
  position: relative;
}

.about-sidebar::after {
  position: absolute;
  top: 34px;
  bottom: 0;
  left: -34px;
  width: 1px;
  background: var(--line);
  content: "";
}

.about-stamp {
  position: relative;
  display: grid;
  width: 205px;
  aspect-ratio: 1;
  margin-top: 65px;
  place-items: center;
  color: #171712;
  background: var(--accent);
  border-radius: 50%;
  transform: rotate(-6deg);
}

.about-stamp > span {
  font-family: var(--display);
  font-size: 72px;
  font-style: italic;
  letter-spacing: -0.08em;
}

.stamp-ring {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(23, 23, 18, 0.58);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: 1px solid rgba(23, 23, 18, 0.24);
  border-radius: 50%;
  overflow: hidden;
  white-space: nowrap;
}

.stamp-ring::before,
.stamp-ring::after {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #171712;
  border-radius: 50%;
  content: "";
}

.stamp-ring::before {
  top: 16px;
}

.stamp-ring::after {
  bottom: 16px;
}

.stamp-ring {
  text-indent: 3px;
}

.about-side-note {
  margin: 42px 0 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: 22px;
  font-style: italic;
  line-height: 1.45;
}

.about-title {
  max-width: 900px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.2rem, 5.9vw, 6.5rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 1.02;
}

.about-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 38px;
  max-width: 810px;
  margin-top: 50px;
}

.about-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.about-copy p:first-child {
  color: var(--ink-soft);
  font-size: 16px;
}

.about-details {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  margin-top: 74px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item:first-child {
  padding-top: 0;
}

.timeline-item:last-child {
  border-bottom: 0;
}

.timeline-year {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.timeline-role {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
}

.timeline-place {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.tool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-chip {
  padding: 7px 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
}

/* ============================================================
   Contact
   ============================================================ */

.contact-section {
  position: relative;
  overflow: hidden;
  padding: clamp(92px, 10vw, 140px) 0 34px;
  color: #f2efe5;
  background: #171713;
}

.contact-glow {
  position: absolute;
  top: -120px;
  right: -100px;
  width: 540px;
  height: 540px;
  background: var(--accent);
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
}

.contact-inner {
  position: relative;
  z-index: 1;
}

.contact-section .eyebrow {
  color: rgba(242, 239, 229, 0.48);
}

.contact-main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: 70px;
  margin-top: 28px;
}

.contact-main h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 8vw, 8.8rem);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.91;
}

.contact-main h2 span {
  color: var(--accent);
  font-style: italic;
}

.contact-side {
  padding-bottom: 15px;
}

.contact-side > p {
  max-width: 390px;
  margin: 0 0 30px;
  color: rgba(242, 239, 229, 0.55);
  font-size: 13px;
  line-height: 1.85;
}

.contact-email-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(242, 239, 229, 0.28);
}

.contact-email {
  overflow: hidden;
  flex: 1;
  font-family: var(--mono);
  font-size: clamp(12px, 1.4vw, 16px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-email:hover {
  color: var(--acid);
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  cursor: pointer;
  color: rgba(242, 239, 229, 0.55);
  background: transparent;
  font-size: 10px;
}

.copy-button:hover {
  color: var(--acid);
}

.copy-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.contact-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: clamp(90px, 12vw, 170px);
  padding-top: 28px;
  color: rgba(242, 239, 229, 0.38);
  border-top: 1px solid rgba(242, 239, 229, 0.15);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.social-links a {
  color: rgba(242, 239, 229, 0.62);
  transition: color 150ms ease;
}

.social-links a:hover {
  color: var(--acid);
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  color: rgba(242, 239, 229, 0.46);
  background: #171713;
  border-top: 1px solid rgba(242, 239, 229, 0.1);
}

.footer-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.footer-inner a {
  color: rgba(242, 239, 229, 0.72);
}

.footer-inner a:hover {
  color: var(--acid);
}

/* ============================================================
   Dialog
   ============================================================ */

.detail-dialog {
  width: min(980px, calc(100% - 40px));
  max-width: none;
  max-height: min(90vh, 920px);
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.35);
}

.detail-dialog[open] {
  animation: dialog-in 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.detail-dialog::backdrop {
  background: rgba(14, 14, 12, 0.72);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dialog-shell {
  position: relative;
  overflow: auto;
  max-height: min(90vh, 920px);
  overscroll-behavior: contain;
}

.dialog-close {
  position: sticky;
  z-index: 10;
  top: 18px;
  display: flex;
  width: 42px;
  height: 42px;
  margin: 18px 18px -60px auto;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.09);
}

.dialog-close span {
  position: absolute;
  width: 14px;
  height: 1.5px;
  background: currentColor;
}

.dialog-close span:first-child {
  transform: rotate(45deg);
}

.dialog-close span:last-child {
  transform: rotate(-45deg);
}

.dialog-close:hover {
  color: #171712;
  background: var(--acid);
  border-color: var(--acid);
}

.dialog-hero {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  padding: clamp(48px, 7vw, 84px);
  color: var(--project-ink, var(--ink));
  background: var(--project-bg, var(--bg-soft));
}

.dialog-hero::after {
  position: absolute;
  top: -160px;
  right: -100px;
  width: 460px;
  height: 460px;
  background: var(--project-accent, var(--accent));
  border-radius: 50%;
  content: "";
  opacity: 0.55;
  mix-blend-mode: multiply;
}

.dialog-kicker {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 10px;
  margin-bottom: 50px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dialog-title {
  position: relative;
  z-index: 2;
  max-width: 690px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.4rem, 7vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 0.93;
}

.dialog-subtitle {
  position: relative;
  z-index: 2;
  max-width: 580px;
  margin: 24px 0 0;
  color: currentColor;
  font-size: 14px;
  line-height: 1.8;
  opacity: 0.72;
}

.dialog-body {
  padding: clamp(34px, 6vw, 70px);
}

.dialog-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.dialog-meta-value {
  font-size: 13px;
  font-weight: 600;
}

.dialog-content-grid {
  display: grid;
  grid-template-columns: 0.35fr 0.65fr;
  gap: clamp(35px, 7vw, 90px);
  padding-top: 38px;
}

.dialog-content-label {
  margin: 0 0 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.dialog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.dialog-copy {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.95;
}

.dialog-highlights {
  display: grid;
  gap: 0;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.dialog-highlight {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.7;
}

.dialog-highlight span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.dialog-action {
  display: inline-flex;
  min-height: 46px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--bg);
  background: var(--ink);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
}

.dialog-action:hover {
  color: #171712;
  background: var(--acid);
}

.dialog-action--secondary {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-strong);
}

.dialog-action--disabled {
  color: var(--muted);
  cursor: default;
  background: transparent;
  border: 1px dashed var(--line-strong);
}

.article-dialog-body {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(66px, 8vw, 92px) clamp(30px, 8vw, 90px);
}

.article-dialog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 32px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.article-dialog-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 5.2vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.article-dialog-copy {
  margin-top: 42px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.article-dialog-copy p {
  margin: 0 0 26px;
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.9;
}

.article-dialog-copy blockquote {
  margin: 38px 0;
  padding: 24px 0 24px 28px;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  font-family: var(--display);
  font-size: 27px;
  font-style: italic;
  line-height: 1.55;
}

/* ============================================================
   Feedback & reveal
   ============================================================ */

.toast {
  position: fixed;
  z-index: 300;
  right: 24px;
  bottom: 24px;
  padding: 12px 18px;
  color: var(--bg);
  background: var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 11px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.noscript-message {
  position: fixed;
  z-index: 500;
  right: 20px;
  bottom: 20px;
  left: 20px;
  padding: 18px;
  color: #fff;
  background: #171713;
  border-radius: 12px;
  text-align: center;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
    gap: 38px;
  }

  .hero-title {
    font-size: clamp(4.2rem, 8vw, 7rem);
  }

  .project-card--featured {
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  }

  .project-card--featured .project-media {
    min-height: 470px;
  }

  .note-card {
    grid-template-columns: 55px minmax(0, 1fr) 120px 42px;
    gap: 18px;
  }

  .note-main {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 68px;
  }

  .container,
  .header-inner {
    width: min(100% - 40px, 760px);
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    position: fixed;
    z-index: 1;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    width: min(82vw, 380px);
    padding: 100px 34px 40px;
    align-items: flex-start;
    justify-content: flex-start;
    background: var(--surface);
    border-left: 1px solid var(--line);
    box-shadow: -30px 0 80px rgba(0, 0, 0, 0.16);
    flex-direction: column;
    gap: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
    transition:
      opacity 220ms ease,
      transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .site-nav a {
    width: 100%;
    padding: 18px 0;
    font-family: var(--display);
    font-size: 30px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .nav-contact {
    width: fit-content;
    margin-top: 30px;
    padding: 10px 24px;
    font-family: var(--sans);
    font-size: 13px;
  }

  .site-header.menu-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .site-header.menu-open::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background: rgba(14, 14, 12, 0.42);
    content: "";
    backdrop-filter: blur(3px);
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding-top: calc(var(--header-height) + 52px);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-title {
    font-size: clamp(4.6rem, 12vw, 7.7rem);
  }

  .hero-art-wrap {
    margin-top: 26px;
  }

  .hero-art {
    width: min(88vw, 530px);
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  .section-note {
    width: min(100%, 480px);
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card--featured {
    display: flex;
    grid-column: auto;
  }

  .project-card--featured .project-media {
    aspect-ratio: 1.35;
    min-height: auto;
  }

  .project-card--featured .project-card-body {
    padding: 30px;
  }

  .project-card--featured .project-summary {
    max-width: 600px;
  }

  .numbers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .number-item {
    min-height: 150px;
    border-bottom: 1px solid var(--line);
  }

  .number-item:nth-child(2) {
    border-right: 0;
  }

  .number-item:nth-child(3) {
    padding-left: 0;
  }

  .number-item:nth-child(n + 3) {
    border-bottom: 0;
  }

  .lab-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .lab-intro {
    width: min(100%, 500px);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .about-sidebar::after {
    display: none;
  }

  .about-stamp {
    position: absolute;
    top: -25px;
    right: 0;
    width: 160px;
    margin: 0;
  }

  .about-stamp > span {
    font-size: 56px;
  }

  .about-side-note {
    display: none;
  }

  .contact-main {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .contact-side {
    max-width: 570px;
  }

  .contact-footer {
    margin-top: 90px;
  }

  .dialog-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container,
  .header-inner {
    width: calc(100% - 32px);
  }

  .brand-real-name {
    display: none;
  }

  .hero {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 56px;
  }

  .hero-eyebrow {
    margin-bottom: 25px;
    font-size: 9px;
  }

  .hero-title {
    font-size: clamp(3rem, 13.8vw, 5.2rem);
    line-height: 0.96;
  }

  .hero-title-line {
    white-space: nowrap;
  }

  .hero-intro {
    margin-top: 26px;
    font-size: 14px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
    margin-top: 30px;
  }

  .hero-meta {
    margin-top: 45px;
    gap: 22px;
    flex-direction: column;
  }

  .hero-art {
    width: 100%;
  }

  .hero-card {
    left: 10%;
    width: 80%;
  }

  .hero-card-center strong {
    font-size: 44px;
  }

  .floating-note {
    font-size: 7px;
  }

  .note-top {
    right: -1%;
  }

  .note-bottom {
    bottom: 9%;
    left: -1%;
    min-width: 115px;
    padding: 10px;
  }

  .art-caption {
    font-size: 7px;
  }

  .ticker-track {
    padding: 9px 0;
  }

  .section {
    padding: 82px 0;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .section-heading h2 {
    font-size: 3.3rem;
  }

  .project-filters {
    flex-wrap: nowrap;
    width: calc(100% + 16px);
    margin-left: -16px;
    padding: 0 16px 5px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .project-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-button {
    flex: none;
  }

  .project-card--featured .project-media,
  .project-media {
    aspect-ratio: 1.12;
  }

  .project-card {
    border-radius: 18px;
  }

  .project-card-body,
  .project-card--featured .project-card-body {
    padding: 23px;
  }

  .project-card--featured .project-title {
    margin-top: 22px;
  }

  .project-card--featured .project-card-footer {
    margin-top: 26px;
  }

  .project-title {
    font-size: 2.4rem;
  }

  .project-card:not(.project-card--featured) .project-title {
    font-size: 2.4rem;
  }

  .project-card-footer {
    align-items: flex-end;
  }

  .media-word {
    font-size: 92px;
  }

  .project-media[data-shape="type"] .media-word {
    font-size: 150px;
  }

  .number-item {
    min-height: 132px;
    padding: 27px 15px;
  }

  .number-item:first-child,
  .number-item:nth-child(3) {
    padding-left: 0;
  }

  .number-item:last-child,
  .number-item:nth-child(2) {
    padding-right: 0;
  }

  .number-value {
    font-size: 3.1rem;
  }

  .number-label {
    font-size: 8px;
  }

  .notes-section {
    background: var(--bg);
  }

  .note-card {
    grid-template-columns: 36px minmax(0, 1fr) 32px;
    gap: 12px;
    padding: 23px 0;
  }

  .note-card:hover {
    padding-right: 8px;
    padding-left: 8px;
  }

  .note-main {
    gap: 7px;
  }

  .note-title {
    white-space: normal;
  }

  .note-meta {
    display: none;
  }

  .note-arrow {
    width: 32px;
    height: 32px;
  }

  .lab-top h2 {
    font-size: 3.8rem;
  }

  .demos-grid {
    grid-template-columns: 1fr;
  }

  .demo-window {
    margin: 12px 12px 0;
  }

  .demo-body {
    align-items: flex-start;
    padding: 20px;
  }

  .about-stamp {
    position: relative;
    top: auto;
    right: auto;
    width: 142px;
    margin-top: 34px;
  }

  .about-stamp > span {
    font-size: 48px;
  }

  .about-title {
    font-size: 2.75rem;
    text-wrap: balance;
  }

  .about-title br {
    display: none;
  }

  .about-copy {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 34px;
  }

  .about-copy p:first-child {
    font-size: 15px;
  }

  .about-details {
    grid-template-columns: 1fr;
    gap: 45px;
    margin-top: 50px;
  }

  .timeline-item {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .contact-main h2 {
    font-size: 2.75rem;
    text-wrap: balance;
  }

  .contact-footer {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 72px;
  }

  .footer-inner {
    min-height: 92px;
    padding: 22px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .footer-inner span:nth-child(2) {
    display: none;
  }

  .detail-dialog {
    width: calc(100% - 20px);
    max-height: 94vh;
    border-radius: 20px;
  }

  .dialog-shell {
    max-height: 94vh;
  }

  .dialog-hero {
    min-height: 320px;
    padding: 68px 25px 38px;
  }

  .dialog-hero::after {
    top: -210px;
    right: -210px;
  }

  .dialog-title {
    font-size: 3.5rem;
  }

  .dialog-body {
    padding: 28px 24px 40px;
  }

  .dialog-meta-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }

  .dialog-content-grid {
    padding-top: 28px;
  }

  .article-dialog-body {
    padding: 80px 24px 50px;
  }

  .article-dialog-title {
    font-size: 3rem;
  }

  .article-dialog-copy p {
    font-size: 17px;
  }

  .article-dialog-copy blockquote {
    font-size: 23px;
  }

  .toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
