:root {
  --ink: #0c0c0c;
  --paper: #d7e2ea;
  --white: #f4f5f3;
  --muted: #9aa7af;
  --line: rgba(215, 226, 234, 0.16);
  --dark-line: rgba(12, 12, 12, 0.16);
  --accent: #d54bc7;
  --gradient: linear-gradient(102deg, #646973 3%, #bbccd7 53%, #e2eff5 86%);
  --page-x: clamp(20px, 3vw, 48px);
  --radius-xl: clamp(28px, 4.2vw, 64px);
  --header-height: 76px;

  /* text scale on dark — all >= 4.5:1 against --ink */
  --text-1: #d7e2ea;
  --text-2: rgba(215, 226, 234, 0.78);
  --text-3: rgba(215, 226, 234, 0.64);
  --text-4: rgba(215, 226, 234, 0.56);
  /* text scale on light panels */
  --ink-2: rgba(12, 12, 12, 0.72);
  --ink-3: rgba(12, 12, 12, 0.6);

  /* motion */
  --dur-fast: 160ms;
  --dur: 240ms;
  --dur-slow: 640ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* layers */
  --z-canvas: 1;
  --z-raise: 5;
  --z-header: 100;
  --z-menu: 110;
  --z-skip: 200;

  --tap: 44px;
  --track-display: -0.015em;
  --track-label: 0.1em;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  color-scheme: dark;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--ink);
  color: var(--paper);
  font-family: "Kanit", -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--white);
}

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

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

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

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
figure,
ol,
ul {
  margin: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

p {
  text-wrap: pretty;
}

main {
  display: block;
}

[hidden] {
  display: none !important;
}

.nowrap {
  white-space: nowrap;
}

body.menu-open {
  overflow: hidden;
}

/* every anchor target clears the fixed header */
[id] {
  scroll-margin-top: calc(var(--header-height) + 28px);
}

.skip-link {
  position: fixed;
  z-index: var(--z-skip);
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: var(--white);
  color: var(--ink);
}

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

.gradient-heading {
  color: transparent;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
}

.site-header {
  position: fixed;
  z-index: var(--z-header);
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-x);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease);
}

.site-header.is-scrolled,
body.menu-open .site-header {
  border-color: var(--line);
  background: rgba(12, 12, 12, 0.78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.wordmark {
  display: inline-flex;
  min-height: var(--tap);
  align-items: center;
  gap: 9px;
  transition: opacity var(--dur-fast) var(--ease);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.wordmark:hover {
  opacity: 0.72;
}

.brand-mark {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 48px);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.desktop-nav > a {
  position: relative;
  display: inline-flex;
  min-height: var(--tap);
  align-items: center;
  color: var(--text-2);
  transition: color var(--dur-fast) var(--ease);
}

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

.desktop-nav > a:hover,
.desktop-nav > a[aria-current="page"] {
  color: var(--paper);
}

.desktop-nav > a:hover::after,
.desktop-nav > a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.desktop-nav .nav-contact {
  min-height: var(--tap);
  padding: 0 18px;
  border: 1px solid rgba(215, 226, 234, 0.38);
  border-radius: 999px;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.desktop-nav .nav-contact:hover {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.desktop-nav .nav-contact:active {
  background: rgba(215, 226, 234, 0.82);
}

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

.menu-button {
  display: none;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  border: 0;
  background: none;
}

.menu-button span {
  display: block;
  width: 22px;
  height: 1px;
  margin: 5px auto;
  background: var(--paper);
  transition: transform var(--dur) var(--ease);
}

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

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

.mobile-menu {
  position: fixed;
  z-index: var(--z-menu);
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0 var(--page-x) 36px;
  border: 0;
  background: rgba(12, 12, 12, 0.98);
  color: var(--paper);
}

.mobile-menu[open] {
  animation: menu-in var(--dur) var(--ease) both;
}

.mobile-menu[data-closing] {
  animation: menu-out 180ms var(--ease) both;
}

.mobile-menu::backdrop {
  background: rgba(12, 12, 12, 0.72);
  animation: fade-in var(--dur) var(--ease) both;
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}

@keyframes menu-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mobile-menu-head {
  display: flex;
  height: var(--header-height);
  align-items: center;
  justify-content: space-between;
}

.menu-close {
  display: grid;
  width: var(--tap);
  height: var(--tap);
  place-items: center;
  border: 0;
  background: none;
  color: var(--paper);
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
  transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease);
}

.menu-close:hover {
  transform: rotate(90deg);
}

.menu-close:active {
  opacity: 0.6;
}

.mobile-menu nav {
  display: grid;
  padding-top: 8vh;
}

.mobile-menu nav a {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(30px, 9vw, 52px);
  font-weight: 400;
  line-height: 1.24;
  transition: color var(--dur-fast) var(--ease), transform var(--dur) var(--ease);
}

.mobile-menu[open] nav a {
  animation: menu-link-in 420ms var(--ease) both;
  animation-delay: calc(var(--i, 0) * 45ms + 60ms);
}

.mobile-menu nav a:active {
  transform: translateX(8px);
  color: var(--accent);
}

@keyframes menu-link-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.mobile-menu nav a[aria-current="page"] {
  color: var(--accent);
}

.page-kicker,
.hero-kicker,
.section-label,
.services-heading > p:first-child,
.projects-heading > p:first-child,
.mobile-section-head > p,
.tool-heading > p {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  min-height: var(--tap);
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: gap var(--dur) var(--ease);
}

.text-link span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: transform var(--dur) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.text-link:hover {
  gap: 16px;
}

.text-link:hover span {
  transform: rotate(45deg);
  background: currentColor;
  color: var(--ink);
}

.text-link:active span {
  transform: rotate(45deg) scale(0.92);
}

.gradient-button,
.outline-button,
.dark-button,
.outline-dark-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font-weight: 400;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease), filter var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.gradient-button {
  background: linear-gradient(100deg, #d244c4, #ea82d9 48%, #d1e3ec);
  color: #171117;
}

.gradient-button:hover,
.dark-button:hover,
.outline-button:hover,
.outline-dark-button:hover {
  transform: translateY(-2px);
}

.gradient-button:hover {
  filter: brightness(1.08);
}

.gradient-button:active,
.dark-button:active,
.outline-button:active,
.outline-dark-button:active {
  transform: translateY(0) scale(0.985);
  filter: brightness(0.94);
}

.outline-button:hover {
  border-color: var(--paper);
  background: rgba(215, 226, 234, 0.08);
}

.outline-dark-button:hover {
  border-color: var(--ink);
  background: rgba(12, 12, 12, 0.06);
}

.dark-button:hover {
  filter: brightness(1.35);
}

button[data-copy-state="done"],
button[data-copy-state="fail"] {
  transition: none;
}

button[data-copy-state="done"] {
  background: #2f7d5c;
  color: var(--white);
}

button[data-copy-state="fail"] {
  background: #8d3346;
  color: var(--white);
}

.outline-button {
  border: 1px solid rgba(215, 226, 234, 0.38);
  background: transparent;
  color: var(--paper);
}

.dark-button {
  background: var(--ink);
  color: var(--white);
}

.outline-dark-button {
  border: 1px solid rgba(12, 12, 12, 0.35);
  background: transparent;
  color: var(--ink);
}

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

.tag-list span {
  padding: 6px 11px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0.72;
}

.reveal-armed .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

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

.service-list li:nth-child(2),
.resource-list > .reveal:nth-child(2),
.radar-grid > .reveal:nth-child(2),
.principles-grid > .reveal:nth-child(2),
.timeline li:nth-child(2),
.works-list > .reveal:nth-child(2) { --reveal-delay: 70ms; }

.service-list li:nth-child(3),
.resource-list > .reveal:nth-child(3),
.radar-grid > .reveal:nth-child(3),
.principles-grid > .reveal:nth-child(3),
.timeline li:nth-child(3),
.works-list > .reveal:nth-child(3) { --reveal-delay: 140ms; }

.service-list li:nth-child(4),
.resource-list > .reveal:nth-child(4),
.principles-grid > .reveal:nth-child(4),
.timeline li:nth-child(4),
.works-list > .reveal:nth-child(4) { --reveal-delay: 210ms; }

.service-list li:nth-child(n + 5),
.resource-list > .reveal:nth-child(n + 5),
.timeline li:nth-child(n + 5) { --reveal-delay: 280ms; }

@keyframes row-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.resource-row[data-enter],
.radar-card[data-enter] {
  animation: row-in var(--dur) var(--ease) both;
  animation-delay: var(--reveal-delay, 0ms);
}

/* Home template */
.template-hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-height) + 24px) var(--page-x) 34px;
  overflow: hidden;
}

.template-hero-heading {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  padding-left: 0.8vw;
  color: var(--text-3);
}

.template-hero-title {
  margin-top: -0.4vw;
  font-size: clamp(78px, 12.6vw, 232px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

.template-hero-visual {
  position: absolute;
  z-index: var(--z-canvas);
  bottom: 0;
  left: 50%;
  width: min(43vw, 680px, 68svh);
  aspect-ratio: 1 / 1;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  transition: transform 520ms var(--ease);
  will-change: transform;
}

.template-hero-visual[data-tracking] {
  transition: none;
}

/* keeps the hero title readable where it crosses the portrait */
.template-hero-visual::before {
  position: absolute;
  z-index: 2;
  top: 0;
  right: -6%;
  left: -6%;
  height: 46%;
  background: linear-gradient(to bottom, rgba(12, 12, 12, 0.82), rgba(12, 12, 12, 0.34) 58%, transparent);
  content: "";
  pointer-events: none;
}

.template-hero-visual::after {
  position: absolute;
  z-index: -2;
  right: 10%;
  bottom: 3%;
  left: 10%;
  height: 12%;
  border-radius: 50%;
  background: #000;
  content: "";
  filter: blur(24px);
  opacity: 0.85;
}

.portrait-halo {
  position: absolute;
  z-index: -1;
  top: 20%;
  right: 11%;
  left: 11%;
  aspect-ratio: 1;
  border: 1px solid rgba(215, 226, 234, 0.12);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 48%, rgba(213, 75, 199, 0.17), rgba(129, 156, 173, 0.06) 44%, transparent 67%);
}

.template-hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: grayscale(0.08) contrast(1.05);
}

.template-hero-visual > p {
  position: absolute;
  z-index: -1;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(215, 226, 234, 0.09);
  font-size: clamp(42px, 6vw, 96px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.78;
  text-align: center;
  white-space: nowrap;
}

.template-hero-bar {
  position: absolute;
  z-index: 3;
  right: var(--page-x);
  bottom: 34px;
  left: var(--page-x);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
}

/* the rule is masked where the portrait crosses it */
.template-hero-bar::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--line);
  content: "";
  -webkit-mask-image: linear-gradient(to right, #000 0 30%, transparent 38% 62%, #000 70%);
  mask-image: linear-gradient(to right, #000 0 30%, transparent 38% 62%, #000 70%);
}

.template-hero-bar > p:not(.hero-scroll-label) {
  width: min(33vw, 470px);
  color: var(--text-2);
  font-size: clamp(13px, 1.05vw, 17px);
  line-height: 1.6;
}

.hero-scroll-label {
  display: flex;
  align-items: center;
  gap: 9px;
  align-self: flex-end;
  padding-bottom: 4px;
  color: var(--text-4);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.hero-scroll-label i {
  display: block;
  width: 1px;
  height: 26px;
  background: linear-gradient(to bottom, transparent, var(--text-4));
  animation: scroll-cue 1900ms var(--ease) infinite;
}

@keyframes scroll-cue {
  0% { transform: scaleY(0.2); transform-origin: top; opacity: 0.2; }
  45% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  46% { transform-origin: bottom; }
  100% { transform: scaleY(0.2); transform-origin: bottom; opacity: 0.2; }
}

.mobile-hero-actions,
.mobile-latest {
  display: none;
}

.template-marquee {
  position: relative;
  z-index: 4;
  padding: clamp(80px, 10vw, 160px) 0 clamp(120px, 15vw, 240px);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: clamp(14px, 2vw, 32px);
  margin-bottom: clamp(14px, 2vw, 32px);
  padding-left: 4vw;
}

.marquee-track-reverse {
  transform: translateX(-18vw);
}

.marquee-tile {
  position: relative;
  width: clamp(260px, 24vw, 460px);
  aspect-ratio: 1.62 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #121416;
}

.marquee-tile:nth-child(3n + 2) {
  width: clamp(210px, 19vw, 360px);
}

.marquee-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) brightness(0.7);
  transition: filter var(--dur) var(--ease), transform var(--dur-slow) var(--ease);
}

.marquee-tile:hover img {
  transform: scale(1.025);
  filter: grayscale(0) brightness(0.9);
}

.marquee-tile figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 26px 14px 12px;
  background: linear-gradient(to top, rgba(12, 12, 12, 0.82), transparent);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.template-about {
  position: relative;
  min-height: max(1000px, 135svh);
  padding: 64px var(--page-x) 220px;
  overflow: hidden;
}

.section-label {
  color: var(--text-4);
}

.about-statement {
  position: relative;
  z-index: 3;
  display: grid;
  width: min(1050px, 76vw);
  min-height: 80svh;
  margin: 6vh auto 0;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.about-statement > p {
  margin-bottom: 34px;
  color: var(--text-4);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
}

.about-statement h2 {
  font-size: clamp(46px, 6.6vw, 118px);
  font-weight: 400;
  letter-spacing: var(--track-display);
  line-height: 1.12;
  text-wrap: balance;
}

.about-statement h2 span {
  opacity: 0.16;
}

.about-statement .text-link {
  margin-top: 50px;
}

.about-atmosphere {
  position: absolute;
  z-index: 1;
  top: 11%;
  bottom: 8%;
  left: 50%;
  width: min(1460px, 108vw);
  overflow: hidden;
  transform: translateX(-50%);
  opacity: 0.58;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 78%, transparent);
}

.about-atmosphere img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.22) brightness(0.62) contrast(1.08);
}

.template-services,
.light-panel {
  border-radius: var(--radius-xl);
  background: var(--white);
  color: var(--ink);
}

.template-services {
  position: relative;
  z-index: var(--z-raise);
  min-height: 100svh;
  padding: clamp(80px, 10vw, 160px) var(--page-x) clamp(64px, 8vw, 128px);
}

.services-heading {
  display: grid;
  grid-template-columns: 0.7fr 2fr 1fr;
  gap: 28px;
  align-items: end;
  padding-bottom: clamp(70px, 9vw, 140px);
}

.services-heading > p:first-child {
  align-self: start;
  color: var(--ink-3);
}

.services-heading h2 {
  font-size: clamp(72px, 10.4vw, 190px);
  font-weight: 400;
  letter-spacing: var(--track-display);
  line-height: 1.02;
}

.services-heading > p:last-child {
  max-width: 370px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.7;
}

.service-list {
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--dark-line);
}

.service-list li {
  display: grid;
  min-height: 114px;
  grid-template-columns: 0.7fr 2fr 1fr 60px;
  gap: 28px;
  align-items: center;
  border-bottom: 1px solid var(--dark-line);
}

.service-list li {
  transition: background var(--dur-fast) var(--ease);
}

.service-list li:hover {
  background: rgba(12, 12, 12, 0.035);
}

.service-list li > span {
  color: var(--ink-3);
  font-size: 12px;
}

.service-list h3 {
  font-size: clamp(26px, 2.4vw, 44px);
  font-weight: 400;
  letter-spacing: var(--track-display);
  line-height: 1.2;
}

.service-list p {
  max-width: 360px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
}

.service-list li > a {
  display: grid;
  width: var(--tap);
  height: var(--tap);
  place-items: center;
  border: 1px solid var(--dark-line);
  border-radius: 50%;
  transition: transform var(--dur) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.service-list li:hover > a {
  transform: rotate(45deg);
  background: var(--ink);
  color: var(--white);
}

.service-list li > a:active {
  transform: rotate(45deg) scale(0.92);
}

.template-projects {
  position: relative;
  z-index: calc(var(--z-raise) + 1);
  margin-top: -1px;
  padding: clamp(120px, 13vw, 220px) var(--page-x) clamp(90px, 11vw, 170px);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: var(--ink);
}

.projects-heading {
  display: grid;
  grid-template-columns: 1fr 2.3fr 1fr;
  align-items: end;
  padding-bottom: clamp(70px, 8vw, 130px);
}

.projects-heading > p {
  align-self: start;
  color: var(--text-4);
}

.projects-heading h2 {
  font-size: clamp(92px, 13.6vw, 244px);
  font-weight: 400;
  letter-spacing: var(--track-display);
  line-height: 1.02;
}

.projects-heading .text-link {
  justify-self: end;
}

.project-stack {
  position: relative;
}

.project-card {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  display: grid;
  min-height: calc(100svh - var(--header-height) - 40px);
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.7fr);
  gap: clamp(26px, 4vw, 72px);
  padding: clamp(26px, 3.2vw, 56px);
  overflow: hidden;
  border: 1px solid rgba(215, 226, 234, 0.2);
  border-radius: clamp(22px, 2.5vw, 40px);
  background: #101112;
  box-shadow: 0 -20px 70px rgba(0, 0, 0, 0.22);
  transform-origin: center top;
}

.project-gap {
  height: 62vh;
}

.project-card-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.project-index {
  color: var(--text-4);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.work-meta span {
  padding: 6px 11px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0.78;
}

.project-card h3 {
  margin-top: 20px;
  font-size: clamp(42px, 4.8vw, 86px);
  font-weight: 400;
  letter-spacing: var(--track-display);
  line-height: 1.06;
}

.project-card-copy > p:not(.project-index) {
  max-width: 430px;
  margin-top: 20px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.75;
}

.project-card .work-cta,
.work-showcase .work-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 28px;
}

.project-card .text-link {
  margin-top: 34px;
}

.work-media-grid {
  display: flex;
  min-width: 0;
  aspect-ratio: 16 / 10;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 1.4vw, 22px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #0b0c0d;
}

.work-media-grid img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.project-dots {
  display: none;
}

/* Shared page framing */
.library-hero,
.radar-hero,
.works-hero,
.about-hero,
.detail-hero,
.tool-heading,
.not-found {
  padding-right: var(--page-x);
  padding-left: var(--page-x);
}

.library-hero,
.radar-hero,
.works-hero,
.about-hero {
  position: relative;
  min-height: max(560px, 76svh);
  padding-top: calc(var(--header-height) + 36px);
}

.library-title,
.radar-hero > h1,
.works-hero > h1,
.about-hero > h1 {
  margin-top: 3.5vh;
  font-size: clamp(104px, 16vw, 296px);
  font-weight: 400;
  letter-spacing: var(--track-display);
  line-height: 1;
}

.library-summary,
.radar-hero-summary,
.about-hero-summary {
  position: absolute;
  right: var(--page-x);
  bottom: 5vh;
  left: var(--page-x);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.library-summary > p,
.radar-hero-summary > p,
.about-hero-summary > p,
.works-hero > p:last-child {
  width: min(440px, 34vw);
  color: var(--text-2);
  font-size: clamp(14px, 1.15vw, 18px);
  line-height: 1.65;
}

.library-summary strong {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: clamp(64px, 9vw, 152px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 0.82;
}

.library-summary strong span {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.resource-library,
.radar-archive,
.works-list,
.timeline-section {
  padding: clamp(70px, 8vw, 130px) var(--page-x);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-bar {
  position: relative;
}

.filter-bar button,
.date-rail button {
  min-height: var(--tap);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.filter-bar button:hover,
.date-rail button:hover {
  border-color: rgba(215, 226, 234, 0.5);
  background: rgba(215, 226, 234, 0.07);
  color: var(--paper);
}

.filter-bar button:active,
.date-rail button:active {
  transform: scale(0.97);
}

.filter-bar button {
  min-width: 94px;
  padding: 0 18px;
  font-size: 13px;
}

.filter-bar button[aria-selected="true"] {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.filter-bar button[aria-selected="true"]:hover {
  background: rgba(215, 226, 234, 0.86);
  color: var(--ink);
}

.filter-result {
  min-height: 18px;
  margin: 20px 0 54px;
  color: var(--text-4);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.filter-empty {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: clamp(56px, 8vw, 104px) 0;
  border-bottom: 1px solid var(--line);
}

.filter-empty h3 {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 400;
  letter-spacing: var(--track-display);
  line-height: 1.2;
}

.filter-empty p {
  max-width: 430px;
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.7;
}

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

.resource-list {
  counter-reset: resource;
}

.resource-row {
  display: grid;
  grid-template-columns: 0.45fr 1.5fr 0.8fr;
  gap: clamp(24px, 4vw, 70px);
  padding: clamp(48px, 6vw, 92px) 0;
  border-bottom: 1px solid var(--line);
  counter-increment: resource;
}

.resource-row-number {
  color: var(--text-4);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.resource-row-number::before {
  content: counter(resource, decimal-leading-zero);
}

.resource-row-copy {
  align-self: center;
}

.resource-row-meta {
  display: flex;
  gap: 16px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.resource-row h2 {
  margin-top: 18px;
  font-size: clamp(34px, 4vw, 68px);
  font-weight: 400;
  letter-spacing: var(--track-display);
  text-wrap: balance;
  line-height: 1.1;
}

.resource-row h2 a {
  transition: opacity var(--dur-fast) var(--ease);
}

.resource-row h2 a:hover {
  opacity: 0.62;
}

.resource-row-copy > p {
  max-width: 640px;
  margin-top: 20px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.75;
}

.resource-row .tag-list {
  margin-top: 26px;
}

.resource-row .text-link {
  margin-top: 34px;
}

.resource-row-media {
  align-self: start;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  padding: clamp(12px, 1.6vw, 24px);
  background: #0f1112;
}

.resource-row-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(0.08) brightness(0.9);
  transition: transform var(--dur-slow) var(--ease), filter var(--dur) var(--ease);
}

.resource-row:hover .resource-row-media img {
  transform: scale(1.015);
  filter: grayscale(0) brightness(1);
}

.page-cta {
  display: grid;
  min-height: 520px;
  margin: 0 var(--page-x) clamp(80px, 10vw, 160px);
  padding: clamp(55px, 7vw, 110px);
  align-content: center;
  justify-items: center;
  text-align: center;
}

.page-cta > p {
  margin-bottom: 24px;
  font-size: 11px;
  letter-spacing: 0.18em;
}

.page-cta h2 {
  max-width: 900px;
  font-size: clamp(46px, 6.6vw, 116px);
  font-weight: 400;
  letter-spacing: var(--track-display);
  line-height: 1.1;
}

.page-cta a {
  margin-top: 48px;
}

/* Resource detail */
.detail-hero {
  min-height: 96svh;
  padding-top: calc(var(--header-height) + 42px);
  padding-bottom: 70px;
}

.back-link {
  display: inline-flex;
  min-height: var(--tap);
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: color var(--dur-fast) var(--ease), gap var(--dur) var(--ease);
}

.back-link:hover {
  gap: 12px;
  color: var(--paper);
}

.detail-meta {
  display: flex;
  gap: 16px;
  margin-top: 11vh;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.detail-hero h1 {
  max-width: 1500px;
  margin-top: 20px;
  font-size: clamp(64px, 9.6vw, 176px);
  font-weight: 400;
  letter-spacing: var(--track-display);
  line-height: 1.04;
}

.detail-hero > p {
  max-width: 680px;
  margin-top: 34px;
  color: var(--text-2);
  font-size: clamp(16px, 1.35vw, 22px);
  line-height: 1.7;
}

.detail-hero .tag-list {
  margin-top: 30px;
}

.detail-body {
  padding: 0 var(--page-x) clamp(100px, 12vw, 200px);
}

.detail-section {
  display: grid;
  grid-template-columns: 0.55fr 2fr;
  gap: 40px;
  padding: clamp(70px, 8vw, 130px) 0;
  border-top: 1px solid var(--line);
}

.detail-section > p {
  color: var(--text-4);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.detail-section > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.detail-section h2 {
  font-size: clamp(34px, 3.6vw, 62px);
  font-weight: 400;
  letter-spacing: var(--track-display);
  line-height: 1.14;
}

.detail-section div > p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.85;
}

/* shares the .detail-section grid so the left edges line up */
.article-toc {
  display: grid;
  grid-template-columns: 0.55fr 2fr;
  gap: 40px;
  padding: 30px 0 80px;
}

.article-toc > p {
  color: var(--text-4);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.article-toc > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-toc a {
  display: inline-flex;
  min-height: var(--tap);
  align-items: center;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 12px;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.article-toc a:hover {
  border-color: rgba(215, 226, 234, 0.5);
  background: rgba(215, 226, 234, 0.07);
  color: var(--paper);
}

.document-panel {
  margin-top: 80px;
  padding: clamp(38px, 5vw, 80px);
}

.document-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.document-panel-head p {
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.document-panel-head h2 {
  margin-top: 8px;
  font-size: clamp(42px, 5.4vw, 88px);
  font-weight: 400;
  letter-spacing: var(--track-display);
  line-height: 1.06;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.document-content {
  position: relative;
  max-height: 720px;
  overflow: auto;
  padding: 28px;
  border-radius: 15px;
  background: #111314;
  color: var(--paper);
  font: 13px/1.75 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: pre-wrap;
  scrollbar-color: rgba(215, 226, 234, 0.3) transparent;
  scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 48px), transparent);
}

.detail-tool-action {
  display: flex;
  justify-content: flex-end;
  padding-top: 50px;
  border-top: 1px solid var(--line);
}

/* Radar */
.radar-hero-summary img,
.about-hero-summary img {
  width: min(25vw, 380px);
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: grayscale(0.35) brightness(0.72);
}

.about-hero-summary img {
  filter: brightness(0.84) contrast(1.05);
}

.date-rail {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 52px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 52px), transparent);
}

.date-rail::-webkit-scrollbar {
  display: none;
}

.date-rail button {
  flex: 0 0 auto;
  min-width: 122px;
  padding: 12px 18px;
  text-align: left;
}

.date-rail button {
  display: grid;
  align-content: center;
  gap: 3px;
}

.date-rail button span {
  display: block;
  font-size: 11px;
  opacity: 0.72;
}

.date-rail button[aria-selected="true"] {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.date-rail button[aria-selected="true"]:hover {
  background: rgba(215, 226, 234, 0.86);
  color: var(--ink);
}

.radar-current {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: clamp(60px, 7vw, 110px) 0 36px;
}

.radar-current > div > p,
.radar-how > p,
.about-profile > p,
.timeline-section header > p,
.principles-section header > p,
.contact-section > p {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.13em;
}

.radar-current h2 {
  margin-top: 6px;
  font-size: clamp(44px, 6.4vw, 104px);
  font-weight: 400;
  letter-spacing: var(--track-display);
  line-height: 1.06;
}

.radar-state {
  color: var(--text-2);
  font-size: 13px;
}

.radar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.radar-card {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 48px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.radar-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.radar-card-head > p,
.status {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.status {
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
}

.status-candidate {
  color: #e181d7;
}

.status-zero {
  color: var(--muted);
}

.status-incomplete {
  color: #e0a86d;
}

.radar-card h3 {
  margin-top: clamp(48px, 5vw, 88px);
  font-size: clamp(28px, 2.9vw, 50px);
  font-weight: 400;
  letter-spacing: var(--track-display);
  line-height: 1.14;
}

.radar-summary {
  margin-top: 22px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.75;
}

.review-count,
.radar-hidden {
  color: var(--text-4);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.review-count {
  margin-top: auto;
  padding-top: 28px;
}

.radar-hidden {
  margin-top: 6px;
}

.radar-how {
  margin: 0 var(--page-x) clamp(80px, 10vw, 160px);
  padding: clamp(58px, 7vw, 110px);
}

.radar-how h2 {
  margin-top: 20px;
  font-size: clamp(54px, 7vw, 124px);
  font-weight: 400;
  letter-spacing: var(--track-display);
  line-height: 1.08;
}

.radar-how > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  margin-top: 70px;
}

.radar-how > div p {
  padding-top: 18px;
  border-top: 1px solid var(--dark-line);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.75;
}

.radar-how strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

/* Works */
.works-hero > p:last-child {
  position: absolute;
  right: var(--page-x);
  bottom: 9vh;
}

.work-showcase {
  display: grid;
  grid-template-columns: minmax(260px, 0.63fr) minmax(0, 1.7fr);
  gap: clamp(30px, 5vw, 82px);
  padding: clamp(64px, 7vw, 116px) 0;
  border-top: 1px solid var(--line);
}

.work-showcase:last-child {
  border-bottom: 1px solid var(--line);
}

.work-showcase header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.work-showcase header > p:first-child {
  color: var(--text-4);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.work-showcase h2 {
  margin-top: 16px;
  font-size: clamp(46px, 5.2vw, 92px);
  font-weight: 400;
  letter-spacing: var(--track-display);
  line-height: 1.06;
}

.work-showcase header > p:nth-of-type(2) {
  max-width: 440px;
  margin-top: 22px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.8;
}

/* About */
.about-profile {
  display: grid;
  min-height: 0;
  grid-template-columns: 0.55fr 1.25fr 0.9fr;
  gap: 40px;
  margin: 0 var(--page-x) clamp(100px, 12vw, 190px);
  padding: clamp(60px, 8vw, 130px);
  align-items: center;
}

.about-profile h2 {
  font-size: clamp(46px, 6vw, 104px);
  font-weight: 400;
  letter-spacing: var(--track-display);
  text-wrap: balance;
  line-height: 1.1;
}

.about-profile > div p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.85;
}

.about-profile > div p + p {
  margin-top: 18px;
}

.timeline-section header,
.principles-section header {
  display: grid;
  grid-template-columns: 0.55fr 2fr;
  gap: 40px;
}

.timeline-section header h2,
.principles-section header h2 {
  font-size: clamp(72px, 10.8vw, 190px);
  font-weight: 400;
  letter-spacing: var(--track-display);
  line-height: 1.02;
}

.timeline {
  margin-top: clamp(80px, 10vw, 160px);
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.timeline li {
  display: grid;
  min-height: 160px;
  grid-template-columns: 0.55fr 2fr;
  gap: 40px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.timeline time {
  color: var(--text-3);
  font-size: 13px;
}

.timeline li > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.timeline h3 {
  font-size: clamp(25px, 2.5vw, 44px);
  font-weight: 400;
  letter-spacing: var(--track-display);
  line-height: 1.18;
}

.timeline li p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.75;
}

.principles-section {
  margin: clamp(80px, 10vw, 160px) var(--page-x);
  padding: clamp(70px, 8vw, 130px);
}

.principles-section header h2 {
  color: var(--ink);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(80px, 9vw, 140px);
  border-top: 1px solid var(--dark-line);
  border-left: 1px solid var(--dark-line);
}

.principles-grid article {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 48px);
  border-right: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
}

.principles-grid article > p:first-child {
  color: var(--ink-3);
  font-size: 12px;
}

.principles-grid h3 {
  margin-top: clamp(56px, 6vw, 104px);
  font-size: clamp(28px, 3vw, 50px);
  font-weight: 400;
  letter-spacing: var(--track-display);
  line-height: 1.14;
}

.principles-grid article > p:last-child {
  margin-top: 20px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.75;
}

.contact-section {
  min-height: 100svh;
  padding: clamp(100px, 12vw, 190px) var(--page-x);
}

.contact-section h2 {
  max-width: 15em;
  margin-top: 9vh;
  font-size: clamp(60px, 9vw, 164px);
  font-weight: 400;
  letter-spacing: var(--track-display);
  line-height: 1.08;
  text-wrap: balance;
}

.contact-section > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12vh;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contact-section > div > a {
  font-size: clamp(24px, 3.4vw, 58px);
  font-weight: 400;
  letter-spacing: -0.02em;
  transition: color var(--dur-fast) var(--ease);
}

.contact-section > div > a:hover {
  color: var(--accent);
}

/* Browser tool */
.tool-page {
  min-height: 100svh;
  padding: 0 0 120px;
}

.tool-heading {
  padding-top: calc(var(--header-height) + 42px);
  padding-bottom: 80px;
}

.tool-heading > .page-kicker {
  margin-top: 12vh;
}

.tool-heading h1 {
  max-width: 1500px;
  margin-top: 20px;
  font-size: clamp(60px, 8.6vw, 156px);
  font-weight: 400;
  letter-spacing: var(--track-display);
  line-height: 1.04;
}

.tool-heading > p:last-of-type {
  max-width: 650px;
  margin-top: 32px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.75;
}

.tool-workspace {
  display: grid;
  min-height: 650px;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 0 var(--page-x);
  padding: 0;
  overflow: hidden;
  background: rgba(12, 12, 12, 0.16);
}

.tool-pane {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(28px, 4vw, 60px);
  background: var(--white);
}

.tool-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-weight: 400;
}

.tool-pane h2 {
  font-size: 18px;
  font-weight: 400;
}

.text-button {
  min-width: var(--tap);
  min-height: var(--tap);
  padding: 6px 8px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: var(--ink-3);
  font-size: 13px;
  transition: color var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}

.text-button:hover:not(:disabled) {
  color: var(--ink);
}

.text-button:active:not(:disabled) {
  opacity: 0.6;
}

.text-button:disabled {
  opacity: 0.4;
  cursor: default;
}

.tool-pane textarea {
  width: 100%;
  min-height: 450px;
  flex: 1;
  margin-top: 30px;
  padding: 22px;
  resize: vertical;
  border: 1px solid var(--dark-line);
  border-radius: 12px;
  background: rgba(12, 12, 12, 0.035);
  color: var(--ink);
  font: 14px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace;
  transition: border-color var(--dur-fast) var(--ease);
}

.tool-pane textarea:hover {
  border-color: rgba(12, 12, 12, 0.3);
}

.tool-pane textarea:focus-visible {
  border-color: rgba(12, 12, 12, 0.65);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tool-count {
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 12px;
}

.tool-empty {
  display: grid;
  flex: 1;
  place-items: center;
  max-width: 26em;
  margin: 0 auto;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

.tool-results {
  margin-top: 30px;
  overflow: auto;
  color: var(--ink);
}

.tool-results h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: var(--track-display);
}

.tool-results ul {
  padding-left: 18px;
}

.tool-results li,
.tool-results p {
  font-size: 13px;
  line-height: 1.7;
}

/* run summary */
.tool-result-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 34px;
  background: var(--dark-line);
  border: 1px solid var(--dark-line);
}

.tool-result-summary > div {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  background: var(--white);
}

.tool-result-summary strong {
  font-size: 34px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
}

.tool-result-summary span {
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.keyword-group {
  padding: 20px 0;
  border-top: 1px solid var(--dark-line);
}

.keyword-group h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.keyword-group ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
  color: var(--ink-2);
}

.keyword-group li::marker {
  color: rgba(12, 12, 12, 0.35);
}

.tool-status {
  margin-top: 14px;
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.tool-runbar {
  display: flex;
  justify-content: flex-end;
  padding: 28px var(--page-x) 0;
}

/* Footer */
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
  padding: 34px var(--page-x) 44px;
  border-top: 1px solid var(--line);
  color: var(--text-4);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.footer-signature {
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer nav {
  display: flex;
  gap: 8px;
}

.site-footer nav a {
  display: inline-flex;
  min-height: var(--tap);
  align-items: center;
  padding: 0 12px;
  color: var(--text-3);
  transition: color var(--dur-fast) var(--ease);
}

.site-footer nav a:hover {
  color: var(--paper);
}

.site-footer > p:last-child {
  justify-self: end;
}

.not-found {
  display: grid;
  min-height: 100svh;
  padding-top: calc(var(--header-height) + 10vh);
  place-content: center;
  justify-items: center;
  text-align: center;
}

.not-found h1 {
  margin-top: 28px;
  font-size: clamp(58px, 9.4vw, 168px);
  font-weight: 400;
  letter-spacing: var(--track-display);
  line-height: 1.06;
}

.not-found > p:nth-of-type(2) {
  margin-top: 26px;
  color: var(--text-2);
}

.not-found .gradient-button {
  margin-top: 40px;
}

@media (max-width: 980px) {
  .template-hero-title {
    font-size: 12.6vw;
  }

  .template-hero-visual {
    width: min(56vw, 62svh);
  }

  .article-toc {
    grid-template-columns: 0.55fr 2fr;
  }

  .services-heading {
    grid-template-columns: 0.45fr 1.7fr;
  }

  .services-heading > p:last-child {
    grid-column: 2;
  }

  .service-list li {
    grid-template-columns: 0.45fr 1.7fr 1fr 50px;
  }

  .project-card,
  .work-showcase {
    grid-template-columns: 0.7fr 1.3fr;
  }

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

@media (max-width: 767px) {
  :root {
    --page-x: 20px;
    --header-height: 64px;
    --radius-xl: 28px;
  }

  .desktop-nav {
    display: none;
  }

  .brand-mark {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  .menu-button {
    display: block;
  }

  .site-header {
    border-bottom-color: var(--line);
    background: rgba(12, 12, 12, 0.72);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  .gradient-button,
  .outline-button,
  .dark-button,
  .outline-dark-button {
    min-height: 50px;
    padding: 0 22px;
    font-size: 13px;
  }

  .template-hero {
    display: flex;
    min-height: 0;
    flex-direction: column;
    padding-top: calc(var(--header-height) + 30px);
    padding-bottom: 54px;
  }

  .hero-kicker {
    padding: 0;
    font-size: 8px;
    line-height: 1.5;
  }

  .template-hero-title {
    margin-top: 16px;
    font-size: clamp(56px, 18vw, 78px);
    letter-spacing: -0.04em;
    line-height: 0.88;
    white-space: normal;
  }

  .template-hero-visual {
    position: relative;
    bottom: auto;
    left: auto;
    order: 3;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-top: 34px;
    overflow: hidden;
    transform: none !important;
    border: 1px solid var(--line);
    background: #111314;
  }

  .template-hero-visual img {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
  }

  /* decorative backdrop type does not fit the framed mobile crop */
  .template-hero-visual > p {
    display: none;
  }

  .template-hero-visual::before {
    display: none;
  }

  .portrait-halo {
    top: 17%;
  }

  .template-hero-bar {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    order: 2;
    display: block;
    margin-top: 24px;
    padding: 0;
  }

  .template-hero-bar::before {
    display: none;
  }

  .template-hero-bar > p:not(.hero-scroll-label) {
    width: auto;
    font-size: 13px;
    line-height: 1.6;
  }

  .template-hero-bar .gradient-button {
    display: none;
  }

  .mobile-hero-actions {
    display: grid;
    order: 4;
    gap: 10px;
    margin-top: 20px;
  }

  .hero-scroll-label,
  .template-marquee {
    display: none;
  }

  .site-footer nav a {
    min-width: var(--tap);
    justify-content: flex-end;
    padding: 0 0 0 12px;
  }

  .mobile-latest {
    display: block;
    padding: 70px var(--page-x) 100px;
  }

  .mobile-section-head h2 {
    margin-top: 14px;
    font-size: 54px;
    font-weight: 400;
    letter-spacing: -0.04em;
  }

  .latest-resource-list {
    margin: 38px 0 30px;
    border-top: 1px solid var(--line);
  }

  .latest-resource-card {
    position: relative;
    display: block;
    padding: 24px 42px 24px 0;
    border-bottom: 1px solid var(--line);
    transition: transform var(--dur) var(--ease), background var(--dur-fast) var(--ease);
  }

  .latest-resource-card:active {
    transform: translateX(10px);
    background: rgba(215, 226, 234, 0.05);
  }

  .latest-resource-card span {
    color: var(--text-3);
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .latest-resource-card h3 {
    margin-top: 10px;
    font-size: 26px;
    font-weight: 400;
    letter-spacing: var(--track-display);
    line-height: 1.24;
  }

  .latest-resource-card p {
    margin-top: 9px;
    color: var(--text-2);
    font-size: 13px;
    line-height: 1.65;
  }

  .latest-resource-card i {
    position: absolute;
    top: 50%;
    right: 0;
    color: var(--text-3);
    font-style: normal;
    transform: translateY(-50%);
  }

  .template-about {
    min-height: 700px;
    padding: 52px var(--page-x) 90px;
  }

  .about-statement {
    width: auto;
    min-height: 540px;
    margin: 0;
  }

  .about-statement > p {
    margin-bottom: 22px;
    font-size: 11px;
  }

  .about-statement h2 {
    font-size: 40px;
    line-height: 1.28;
  }

  .about-statement .text-link {
    margin-top: 34px;
  }

  .about-atmosphere {
    top: 10%;
    bottom: 6%;
    width: 155vw;
    opacity: 0.48;
  }

  .template-services {
    min-height: 0;
    padding: 70px var(--page-x) 50px;
  }

  .services-heading {
    display: block;
    padding-bottom: 48px;
  }

  .services-heading h2 {
    margin-top: 18px;
    font-size: 66px;
    line-height: 1.04;
  }

  .services-heading > p:last-child {
    margin-top: 26px;
    font-size: 13px;
  }

  .service-list li {
    min-height: 0;
    grid-template-columns: 30px 1fr var(--tap);
    gap: 10px;
    padding: 20px 0;
  }

  .service-list li > span {
    align-self: start;
    padding-top: 6px;
  }

  .service-list h3 {
    font-size: 24px;
    line-height: 1.24;
  }

  .service-list p {
    grid-column: 2;
    max-width: none;
    margin-top: 8px;
    font-size: 13px;
  }

  .service-list li > a {
    grid-row: 1 / 3;
    grid-column: 3;
    align-self: center;
    width: var(--tap);
    height: var(--tap);
  }

  .template-projects {
    padding: 92px 0 90px;
  }

  .projects-heading {
    display: block;
    padding: 0 var(--page-x) 50px;
  }

  .projects-heading h2 {
    margin-top: 24px;
    font-size: 92px;
    line-height: 1.02;
  }

  .projects-heading .text-link {
    margin-top: 34px;
  }

  .project-stack {
    display: flex;
    gap: 14px;
    padding: 0 var(--page-x);
    overflow-x: auto;
    scroll-padding-left: var(--page-x);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 34px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 34px), transparent);
  }

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

  .project-card {
    position: relative;
    top: auto;
    display: flex;
    min-width: calc(100vw - 40px);
    flex-direction: column;
    gap: 24px;
    padding: 24px;
    scroll-snap-align: start;
    transform: none !important;
  }

  .project-card .work-meta {
    margin-top: 16px;
  }

  .project-card h3 {
    font-size: 44px;
    line-height: 1.1;
  }

  .project-card-copy > p:not(.project-index) {
    margin-top: 16px;
    font-size: 12px;
  }

  .project-card .text-link {
    margin-top: 20px;
  }

  .project-card .work-media-grid {
    min-height: 290px;
    flex: 1;
    padding: 10px;
  }

  .project-gap {
    display: none;
  }

  .project-dots {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-top: 20px;
  }

  .project-dots button {
    display: grid;
    width: var(--tap);
    height: var(--tap);
    place-items: center;
    border: 0;
    background: none;
  }

  .project-dots button::before {
    width: 22px;
    height: 2px;
    background: rgba(215, 226, 234, 0.28);
    content: "";
    transition: background var(--dur-fast) var(--ease);
  }

  .project-dots button[aria-current="true"]::before {
    background: var(--paper);
  }

  .library-hero,
  .radar-hero,
  .works-hero,
  .about-hero {
    min-height: 580px;
    padding-top: calc(var(--header-height) + 34px);
  }

  .works-hero {
    min-height: 480px;
  }

  .about-hero {
    min-height: 560px;
  }

  .library-title,
  .radar-hero > h1,
  .works-hero > h1,
  .about-hero > h1 {
    margin-top: 26px;
    font-size: 20vw;
    line-height: 1.04;
  }

  .library-summary,
  .radar-hero-summary,
  .about-hero-summary {
    bottom: 38px;
    align-items: flex-start;
  }

  .library-summary > p,
  .radar-hero-summary > p,
  .about-hero-summary > p,
  .works-hero > p:last-child {
    width: 56%;
    font-size: 12px;
  }

  .library-summary strong {
    display: grid;
    justify-items: end;
    font-size: 58px;
    line-height: 1;
  }

  .library-summary strong span {
    font-size: 11px;
  }

  .radar-hero-summary img,
  .about-hero-summary img {
    width: 36%;
  }

  .resource-library,
  .radar-archive,
  .works-list,
  .timeline-section {
    padding: 70px var(--page-x);
  }

  .filter-bar {
    flex-wrap: nowrap;
    margin-right: calc(var(--page-x) * -1);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent);
  }

  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-bar button {
    min-width: auto;
    flex: 0 0 auto;
  }

  .filter-result {
    margin-bottom: 30px;
  }

  .resource-row {
    min-height: 0;
    grid-template-columns: 38px 1fr;
    gap: 10px;
    padding: 48px 0;
  }

  .resource-row h2 {
    font-size: 34px;
    line-height: 1.2;
  }

  .resource-row-media {
    grid-column: 2;
    aspect-ratio: 4 / 3;
    margin-top: 30px;
    padding: 12px;
  }

  .page-cta {
    min-height: 430px;
    margin-bottom: 80px;
    padding: 48px 24px;
  }

  .page-cta h2 {
    font-size: 44px;
    line-height: 1.2;
  }

  .detail-hero {
    min-height: 720px;
    padding-top: calc(var(--header-height) + 28px);
  }

  .detail-meta {
    margin-top: 100px;
  }

  .detail-hero h1 {
    font-size: 15vw;
    line-height: 1.16;
  }

  .detail-hero > p {
    margin-top: 28px;
    font-size: 14px;
  }

  .detail-section {
    grid-template-columns: 38px 1fr;
    gap: 10px;
    padding: 58px 0;
  }

  .detail-section > div {
    display: block;
  }

  .detail-section h2 {
    font-size: 32px;
    line-height: 1.24;
  }

  .detail-section div > p {
    margin-top: 24px;
    font-size: 13px;
  }

  .article-toc {
    display: block;
    padding: 0 0 44px;
  }

  .article-toc > div {
    margin-top: 14px;
  }

  .document-panel {
    margin-top: 44px;
    padding: 28px 20px;
  }

  .document-panel-head {
    display: block;
  }

  .document-panel-head h2 {
    font-size: 44px;
    line-height: 1.14;
  }

  .detail-actions,
  .document-panel-head > .dark-button {
    margin-top: 28px;
  }

  .document-content {
    max-height: none;
    overflow: visible;
    padding: 18px;
    font-size: 12px;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .radar-current {
    display: block;
    padding-top: 56px;
  }

  .radar-current h2 {
    font-size: 42px;
    line-height: 1.14;
  }

  .radar-state {
    margin-top: 14px;
  }

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

  .radar-card {
    min-height: 0;
    padding: 28px;
  }

  .radar-card h3 {
    margin-top: 40px;
    font-size: 32px;
    line-height: 1.2;
  }

  .radar-summary {
    margin-top: 20px;
  }

  .review-count,
  .radar-hidden {
    margin-top: 16px;
  }

  .radar-how {
    margin-bottom: 80px;
    padding: 52px 24px;
  }

  .radar-how h2 {
    font-size: 54px;
    line-height: 1.14;
  }

  .radar-how > div {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }

  .works-hero > p:last-child {
    bottom: 42px;
  }

  .work-showcase {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 38px;
    padding: 60px 0;
  }

  .work-showcase header {
    min-height: 0;
  }

  .work-showcase h2 {
    font-size: 46px;
    line-height: 1.14;
  }

  .work-showcase .work-media-grid {
    min-height: 280px;
    padding: 10px;
  }

  .about-profile {
    display: block;
    min-height: 0;
    margin-bottom: 90px;
    padding: 54px 24px;
  }

  .about-profile h2 {
    margin-top: 48px;
    font-size: 44px;
    line-height: 1.2;
  }

  .about-profile > div {
    margin-top: 48px;
  }

  .timeline-section header,
  .principles-section header {
    display: block;
  }

  .timeline-section header h2,
  .principles-section header h2 {
    margin-top: 26px;
    font-size: 78px;
    line-height: 1.04;
  }

  .timeline {
    margin-top: 70px;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 34px 0;
  }

  .timeline li > div {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .timeline h3 {
    font-size: 29px;
  }

  .principles-section {
    margin: 80px var(--page-x);
    padding: 54px 24px;
  }

  .principles-section header h2 {
    font-size: 62px;
  }

  .principles-grid {
    grid-template-columns: 1fr;
    margin-top: 58px;
  }

  .principles-grid h3 {
    margin-top: 64px;
    font-size: 32px;
    line-height: 1.2;
  }

  .contact-section {
    min-height: 720px;
    padding: 90px var(--page-x);
  }

  .contact-section h2 {
    margin-top: 64px;
    font-size: 13.5vw;
    line-height: 1.18;
  }

  .contact-section > div {
    display: block;
    margin-top: 80px;
  }

  .contact-section > div > a {
    display: flex;
    min-height: var(--tap);
    align-items: center;
    overflow-wrap: anywhere;
    font-size: 23px;
  }

  .contact-section .outline-button {
    margin-top: 26px;
  }

  .tool-heading > .page-kicker {
    margin-top: 80px;
  }

  .tool-heading h1 {
    font-size: 14vw;
    line-height: 1.14;
  }

  .tool-workspace {
    grid-template-columns: 1fr;
  }

  .tool-result-summary {
    grid-template-columns: 1fr;
  }

  .tool-pane textarea {
    min-height: 320px;
  }

  .tool-output-pane {
    min-height: 500px;
  }

  .tool-runbar .gradient-button {
    width: 100%;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .site-footer nav {
    display: grid;
    gap: 8px;
    justify-items: end;
  }

  .site-footer > p:last-child {
    grid-column: 1 / 3;
    justify-self: start;
    margin-top: 34px;
  }
}

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

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

  .reveal-armed .reveal {
    opacity: 1;
    transform: none;
  }

  /* the scroll-driven type reveal must not leave copy unreadable */
  .about-statement h2 span {
    opacity: 1 !important;
  }

  .hero-scroll-label i {
    animation: none;
  }

  .mobile-menu[open],
  .mobile-menu[open] nav a,
  .mobile-menu::backdrop {
    animation: none;
  }
}
