/* =========================================================
   林序 / LIN XU — Field Notes
   A hand-built, front-end-only personal site.
   ========================================================= */

:root {
  color-scheme: light;
  --paper: #f2efe5;
  --paper-2: #e9e5d8;
  --paper-3: #ded8c7;
  --surface: #faf7ee;
  --ink: #15150f;
  --ink-soft: #555349;
  --muted: #6e6c60;
  --line: rgba(21, 21, 15, 0.16);
  --line-strong: rgba(21, 21, 15, 0.38);
  --grid: rgba(21, 21, 15, 0.055);
  --acid: #d7ef4e;
  --acid-soft: #e8f79b;
  --blue: #2644ff;
  --blue-deep: #2039db;
  --coral: #ff6b45;
  --on-dark: #f6f2e6;
  --dark: #15150f;
  --logo-bg: #15150f;
  --logo-fg: #d7ef4e;
  --shadow-hard: 10px 10px 0 var(--ink);
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Songti SC", "STSong", "Noto Serif SC", "SimSun", Georgia, serif;
  --font-sans: "Segoe UI Variable Display", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "Cascadia Code", "SFMono-Regular", "SF Mono", Consolas, "Liberation Mono", monospace;
  --wrap: 1480px;
  --pad: clamp(20px, 4.4vw, 72px);
  --header: 84px;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="night"] {
  color-scheme: dark;
  --paper: #11120d;
  --paper-2: #181914;
  --paper-3: #20211a;
  --surface: #191a14;
  --ink: #f1eee2;
  --ink-soft: #b8b4a7;
  --muted: #949185;
  --line: rgba(241, 238, 226, 0.14);
  --line-strong: rgba(241, 238, 226, 0.34);
  --grid: rgba(241, 238, 226, 0.06);
  --acid: #d7ef4e;
  --acid-soft: #3a431d;
  --blue: #8c9dff;
  --blue-deep: #1b2cb8;
  --coral: #ff8664;
  --shadow-hard: 10px 10px 0 var(--ink);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 28px);
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s var(--ease-soft), color 0.35s var(--ease-soft);
}

body.menu-open,
body.dialog-open {
  overflow: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

[data-theme="night"] body::after {
  opacity: 0.065;
  mix-blend-mode: screen;
}

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

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

button {
  color: inherit;
  font: inherit;
}

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

button {
  border: 0;
  background: none;
  cursor: pointer;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

[hidden] {
  display: none !important;
}

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

.about :focus-visible,
.contact :focus-visible,
.reader :focus-visible,
.project-modal :focus-visible {
  outline-color: var(--acid);
}

.wrap {
  width: min(calc(100% - (var(--pad) * 2)), var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 11000;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--acid);
  color: #15150f;
  font-family: var(--font-mono);
  font-size: 12px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
}

main:focus {
  outline: none;
}

.mono {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  border: 1px solid currentColor;
  background: var(--acid);
  transform: rotate(45deg);
}

.eyebrow--light {
  color: rgba(246, 242, 230, 0.68);
}

.eyebrow--light::before {
  background: var(--acid);
  border-color: var(--acid);
}

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

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 1002;
  width: 0;
  height: 3px;
  background: var(--acid);
  transition: width 0.1s linear;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10001;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--acid);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), opacity 0.2s;
  mix-blend-mode: difference;
}

.cursor.is-visible {
  opacity: 1;
}

.cursor.is-hovering {
  width: 38px;
  height: 38px;
  background: var(--on-dark);
}

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0s);
}

html.js [data-reveal="left"] {
  transform: translateX(-22px);
}

html.js [data-reveal="scale"] {
  transform: scale(0.96) translateY(12px);
}

html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  height: var(--header);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease-soft), border-color 0.3s, backdrop-filter 0.3s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
}

.brand__mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--logo-bg);
  color: var(--logo-fg);
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1;
  transform: rotate(-3deg);
  transition: transform 0.35s var(--ease), background-color 0.3s;
}

.brand:hover .brand__mark {
  transform: rotate(5deg) scale(1.04);
  background: var(--blue);
  color: var(--on-dark);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

.brand__name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand__name em {
  margin-left: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.brand__sub {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

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

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

.nav-link sup {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0;
  transform: translateY(-3px);
}

.header-tools {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.availability__dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.availability__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--blue);
  border-radius: inherit;
  animation: pulse 2.6s ease-out infinite;
}

.theme-toggle,
.menu-toggle {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color 0.25s, color 0.25s, transform 0.25s;
}

.theme-toggle:hover,
.menu-toggle:hover {
  background: var(--ink);
  color: var(--paper);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
}

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

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

.menu-toggle {
  display: none;
  gap: 5px;
  align-content: center;
}

.menu-toggle span {
  display: block;
  width: 15px;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

body.menu-open .menu-toggle span:first-child {
  transform: translateY(3px) rotate(45deg);
}

body.menu-open .menu-toggle span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 880;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header) + 28px) var(--pad) 30px;
  overflow: auto;
  background: var(--paper);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-soft), visibility 0.35s;
}

body.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 58px 58px;
  pointer-events: none;
}

.mobile-menu__nav {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-top: 24px;
}

.mobile-menu__nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(2.6rem, 11vw, 5rem);
  font-weight: 750;
  letter-spacing: -0.06em;
  line-height: 1;
}

.mobile-menu__nav a span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.mobile-menu__nav a:active,
.mobile-menu__nav a:hover {
  color: var(--blue);
}

.mobile-menu__status {
  position: relative;
  max-width: 330px;
  margin-top: auto;
  padding: 22px 0 28px;
  border-top: 1px solid var(--line);
}

.mobile-menu__status .mono {
  color: var(--muted);
  font-size: 8px;
}

.mobile-menu__status p {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 6vw, 2.05rem);
  letter-spacing: -0.03em;
  line-height: 1.36;
}

.mobile-menu__status em {
  color: var(--blue);
  font-style: italic;
}

.mobile-menu__foot {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-menu__foot a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* =========================================================
   Common buttons
   ========================================================= */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 24px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  transition: color 0.35s var(--ease), border-color 0.35s;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--acid);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
}

.btn > span,
.btn > svg {
  position: relative;
  z-index: 1;
}

.btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.35s var(--ease);
}

.btn:hover {
  border-color: var(--ink);
  color: #15150f;
}

.btn:hover::before {
  transform: translateY(0);
}

.btn:hover svg {
  transform: translate(3px, -3px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
}

.btn--ghost::before {
  background: var(--ink);
}

.btn--ghost:hover {
  color: var(--paper);
}

.btn--small {
  min-height: 42px;
  padding-inline: 18px;
  font-size: 12px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 600;
  transition: gap 0.3s var(--ease), border-color 0.3s;
}

.text-link svg {
  width: 12px;
  height: 12px;
}

.text-link:hover {
  gap: 13px;
  border-color: var(--ink);
}

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

.hero {
  position: relative;
  overflow: clip;
  padding-top: calc(var(--header) + clamp(42px, 6vw, 78px));
  padding-bottom: clamp(38px, 4.8vw, 68px);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: clamp(54px, 5.6vw, 82px) clamp(54px, 5.6vw, 82px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 68%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 68%, transparent 100%);
  pointer-events: none;
}

.hero__vertical {
  position: absolute;
  top: 38%;
  right: 9px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
  text-transform: uppercase;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(340px, 0.84fr);
  align-items: center;
  gap: clamp(32px, 5vw, 82px);
}

.hero__copy {
  min-width: 0;
  padding-block: 12px;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 13px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__kicker .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 16%, transparent);
}

.hero__title {
  max-width: 11.5ch;
  margin: clamp(22px, 3vw, 38px) 0 clamp(24px, 2.8vw, 34px);
  font-size: clamp(3.7rem, 7.15vw, 7.8rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.99;
}

.hero__title > span {
  display: block;
}

.hero__title .serif {
  margin-right: 0.03em;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 0.98em;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.055em;
}

.hero__title .mark {
  position: relative;
  z-index: 0;
  display: inline-block;
}

.hero__title .mark::before {
  content: "";
  position: absolute;
  right: -0.08em;
  bottom: 0.02em;
  left: -0.05em;
  z-index: -1;
  height: 0.31em;
  background: var(--acid);
  transform: rotate(-1.1deg);
}

.hero__title .period {
  color: var(--coral);
}

.hero__lede {
  max-width: 45ch;
  color: var(--ink-soft);
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.9;
}

.hero__lede strong {
  color: var(--ink);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: clamp(28px, 3.4vw, 42px);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(22px, 4vw, 48px);
  margin-top: clamp(38px, 5vw, 64px);
  padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero__stat span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero__stat strong {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero__visual {
  position: relative;
  width: min(100%, 445px);
  justify-self: end;
  padding: 16px 20px 52px 0;
}

.specimen {
  position: relative;
  z-index: 1;
  padding: 18px 18px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #15150f;
  color: var(--on-dark);
  box-shadow: 14px 14px 0 var(--blue);
  transform: rotate(-1.4deg);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.hero__visual:hover .specimen {
  transform: rotate(0.2deg) translateY(-4px);
  box-shadow: 18px 20px 0 var(--blue);
}

.specimen__tape {
  position: absolute;
  top: -17px;
  left: 50%;
  z-index: 3;
  width: 108px;
  height: 30px;
  border: 1px solid rgba(21, 21, 15, 0.15);
  background: rgba(215, 239, 78, 0.72);
  transform: translateX(-50%) rotate(-2.5deg);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.specimen__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(246, 242, 230, 0.18);
  color: rgba(246, 242, 230, 0.56);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.12em;
}

.specimen__body {
  position: relative;
  height: clamp(300px, 28vw, 348px);
  overflow: hidden;
  border-bottom: 1px solid rgba(246, 242, 230, 0.18);
}

.specimen__botanical {
  position: absolute;
  top: 4%;
  left: -12%;
  width: 88%;
  height: 96%;
  opacity: 0.9;
}

.specimen__tag {
  position: absolute;
  top: 92px;
  right: -28px;
  z-index: 4;
  padding: 15px 8px;
  border: 1px solid #15150f;
  background: var(--blue);
  color: var(--on-dark);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.17em;
  line-height: 1;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  box-shadow: 4px 4px 0 #15150f;
}

.seal {
  position: absolute;
  top: 43px;
  right: 4px;
  display: grid;
  width: clamp(154px, 14vw, 190px);
  height: clamp(154px, 14vw, 190px);
  place-items: center;
  border: 1px solid #15150f;
  border-radius: 50%;
  background: var(--acid);
  color: #15150f;
  transform: rotate(6deg);
}

.seal::before,
.seal::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(21, 21, 15, 0.32);
  border-radius: 50%;
}

.seal::before {
  inset: 9px;
}

.seal::after {
  inset: 19px;
  border-style: dashed;
}

.seal__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 32s linear infinite;
}

.seal__ring text {
  fill: #15150f;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.17em;
}

.seal__mark {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(58px, 5.4vw, 76px);
  line-height: 1;
  transform: translateY(-2px);
}

.seal__year {
  position: absolute;
  bottom: 25px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.18em;
}

.specimen__scribble {
  position: absolute;
  bottom: 20px;
  left: 18px;
  color: rgba(246, 242, 230, 0.55);
  font-family: var(--font-display);
  font-size: 12px;
  font-style: italic;
  line-height: 1.5;
  transform: rotate(-2deg);
}

.specimen__coords {
  position: absolute;
  right: 16px;
  bottom: 19px;
  color: rgba(246, 242, 230, 0.46);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.11em;
  line-height: 1.7;
  text-align: right;
}

.specimen__foot {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 18px;
  padding-top: 12px;
  text-align: right;
}

.specimen__foot-label {
  display: block;
  margin-bottom: 3px;
  color: rgba(246, 242, 230, 0.46);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.specimen__foot strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.specimen__foot .mono {
  color: rgba(246, 242, 230, 0.46);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.sticky-note {
  position: absolute;
  bottom: 0;
  left: -36px;
  z-index: 2;
  width: 184px;
  padding: 16px 17px 13px;
  border: 1px solid #15150f;
  background: var(--acid);
  color: #15150f;
  box-shadow: 6px 6px 0 rgba(21, 21, 15, 0.3);
  transform: rotate(-5.5deg);
}

.sticky-note::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 107, 69, 0.25);
  transform: translateX(-50%);
}

.sticky-note__label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.15em;
}

.sticky-note p {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.sticky-note__date {
  display: block;
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

.hero__time {
  position: absolute;
  right: 22px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.hero__time .live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
  animation: blink 2s steps(2, end) infinite;
}

.hero__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(44px, 6vw, 84px);
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.hero__foot .mono {
  color: var(--muted);
  font-size: 8px;
}

.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-hint svg {
  width: 14px;
  height: 14px;
  animation: nudge 2.4s var(--ease) infinite;
}

/* =========================================================
   Marquee
   ========================================================= */

.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-bottom: 1px solid #15150f;
  background: var(--acid);
  color: #15150f;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__group {
  display: flex;
  align-items: center;
  flex: none;
  padding-block: 13px;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  white-space: nowrap;
  text-transform: uppercase;
}

.marquee__item::after {
  content: "✳";
  font-size: 12px;
  line-height: 1;
}

/* =========================================================
   Sections
   ========================================================= */

.section {
  position: relative;
  padding-block: clamp(76px, 9vw, 132px);
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section--tight {
  padding-block: clamp(56px, 7vw, 96px);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.58fr);
  align-items: end;
  gap: clamp(28px, 5vw, 80px);
  margin-bottom: clamp(42px, 6vw, 72px);
}

.section-head--center {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.section-title {
  margin-top: clamp(18px, 2.4vw, 28px);
  font-size: clamp(2.85rem, 5.5vw, 5.8rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.01;
}

.section-title em {
  color: var(--blue);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.section-head__side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 8px;
}

.section-head__side p {
  max-width: 36ch;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.85;
}

.section-head__side .mono {
  color: var(--muted);
}

.section-index {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

/* =========================================================
   Selected work
   ========================================================= */

.works {
  overflow: clip;
}

.works::after {
  content: "WORK";
  position: absolute;
  right: -0.08em;
  bottom: -0.26em;
  z-index: 0;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(12rem, 28vw, 31rem);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 1;
  opacity: 0.06;
  -webkit-text-stroke: 1px var(--ink);
  pointer-events: none;
}

.works > .wrap {
  position: relative;
  z-index: 1;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(28px, 3.2vw, 46px) clamp(20px, 2.6vw, 38px);
}

.work-card {
  position: relative;
  display: block;
  min-width: 0;
}

.work-card--feature {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: stretch;
  gap: clamp(24px, 3.2vw, 44px);
  padding-bottom: clamp(24px, 3vw, 38px);
  border-bottom: 1px solid var(--line);
}

.work-card--feature .work-card__cover {
  grid-row: 1;
  aspect-ratio: 16 / 9.7;
}

.work-card--feature .work-card__info {
  justify-content: center;
  gap: 14px;
  padding: 4px 0 4px clamp(22px, 2.8vw, 38px);
  border-left: 1px solid var(--line);
}

.work-card--feature .work-card__title {
  font-size: clamp(2rem, 2.9vw, 3.05rem);
}

.work-card--feature .work-card__desc {
  max-width: 40ch;
  font-size: 14px;
  line-height: 1.82;
}

.work-card--feature .work-card__foot {
  margin-top: 10px;
}

.work-card__cover {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-2);
  isolation: isolate;
}

.work-card--small .work-card__cover {
  aspect-ratio: 16 / 9.8;
}

.work-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(21, 21, 15, 0.18), transparent 28%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.work-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.02);
  transition: transform 1s var(--ease), filter 0.6s;
}

.work-card:hover .work-card__cover img {
  filter: saturate(1.04) contrast(1.03);
  transform: scale(1.025);
}

.work-card:hover .work-card__cover::after {
  opacity: 1;
}

.work-card__badge {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(21, 21, 15, 0.25);
  border-radius: 999px;
  background: rgba(250, 247, 238, 0.9);
  color: #15150f;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.work-card__badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
}

.work-card__view {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border: 1px solid #15150f;
  border-radius: 50%;
  background: var(--acid);
  color: #15150f;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-align: center;
  text-transform: uppercase;
  transform: scale(0) rotate(-24deg);
  transition: transform 0.45s var(--ease);
}

.work-card:hover .work-card__view,
.work-card:focus-visible .work-card__view {
  transform: scale(1) rotate(7deg);
}

.work-card__info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
}

.work-card__topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.work-card__title {
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.work-card__title span {
  display: inline-block;
  margin-left: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.12em;
  transform: translateY(-2px);
}

.work-card:hover .work-card__title {
  color: var(--blue);
}

.work-card__year {
  flex: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.work-card__desc {
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

.work-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 3px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.work-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-card__tags span + span::before {
  content: "/";
  margin-right: 12px;
  opacity: 0.5;
}

.work-card__arrow {
  display: grid;
  width: 28px;
  height: 28px;
  flex: none;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.work-card__arrow svg {
  width: 11px;
  height: 11px;
}

.work-card:hover .work-card__arrow {
  background: var(--ink);
  color: var(--paper);
  transform: rotate(45deg);
}

.works__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(38px, 4.8vw, 58px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.works__foot p {
  max-width: 46ch;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

/* =========================================================
   Journal preview
   ========================================================= */

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

[data-theme="night"] .journal-preview {
  background: #151610;
}

.journal-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.journal-aside {
  position: sticky;
  top: calc(var(--header) + 32px);
}

.now-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(246, 242, 230, 0.14);
  border-radius: var(--radius);
  background: var(--dark);
  color: var(--on-dark);
}

[data-theme="night"] .now-card {
  background: #1b1c16;
}

.now-card::after {
  content: "NOW";
  position: absolute;
  right: -8px;
  bottom: -26px;
  color: transparent;
  font-family: var(--font-display);
  font-size: 96px;
  font-style: italic;
  line-height: 1;
  opacity: 0.12;
  -webkit-text-stroke: 1px var(--on-dark);
}

.now-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(246, 242, 230, 0.18);
  color: rgba(246, 242, 230, 0.6);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.now-card__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--acid);
}

.now-card__live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--acid);
  animation: blink 2s steps(2, end) infinite;
}

.now-card h3 {
  max-width: 15ch;
  margin: 22px 0 8px;
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.32;
}

.now-card > p {
  max-width: 32ch;
  color: rgba(246, 242, 230, 0.62);
  font-size: 12px;
  line-height: 1.8;
}

.now-list {
  position: relative;
  z-index: 1;
  margin-top: 24px;
}

.now-list__row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(246, 242, 230, 0.14);
  font-size: 12px;
}

.now-list__row span {
  color: rgba(246, 242, 230, 0.46);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  line-height: 2;
  text-transform: uppercase;
}

.now-list__row strong {
  color: rgba(246, 242, 230, 0.9);
  font-weight: 500;
  line-height: 1.55;
}

.journal-aside__quote {
  margin-top: 24px;
  padding-left: 16px;
  border-left: 2px solid var(--acid);
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.7vw, 1.65rem);
  font-style: italic;
  line-height: 1.55;
}

.journal-aside__quote cite {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.log-item {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 34px;
  gap: 20px;
  align-items: start;
  padding: 24px 10px 24px 0;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
  transition: padding 0.35s var(--ease), background-color 0.35s;
}

.log-item::before {
  content: "";
  position: absolute;
  inset: 0 -10px;
  z-index: -1;
  background: var(--acid);
  opacity: 0;
  transform: scaleY(0.7);
  transition: opacity 0.3s, transform 0.4s var(--ease);
}

.log-item:hover::before {
  opacity: 0.18;
  transform: scaleY(1);
}

.log-item:hover {
  padding-left: 12px;
}

.log-item__date {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.log-item__date strong {
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
}

.log-item__body {
  min-width: 0;
}

.log-item__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.log-item__read {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.06em;
}

.log-item h3 {
  font-size: clamp(1.12rem, 1.65vw, 1.42rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.38;
  transition: color 0.25s;
}

.log-item:hover h3 {
  color: var(--blue);
}

.log-item p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.log-item__arrow {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  margin-top: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color 0.3s, color 0.3s, transform 0.35s;
}

.log-item__arrow svg {
  width: 11px;
  height: 11px;
}

.log-item:hover .log-item__arrow {
  background: var(--ink);
  color: var(--paper);
  transform: rotate(45deg);
}

.journal-more {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

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

.about {
  overflow: clip;
  background: var(--blue-deep);
  color: var(--on-dark);
}

.about::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(246, 242, 230, 0.075) 1px, transparent 1px), linear-gradient(90deg, rgba(246, 242, 230, 0.075) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 20%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 20%, #000, transparent 70%);
  pointer-events: none;
}

.about::after {
  content: "ABOUT";
  position: absolute;
  right: -0.04em;
  bottom: -0.22em;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(13rem, 28vw, 33rem);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 1;
  opacity: 0.1;
  -webkit-text-stroke: 1px var(--on-dark);
  pointer-events: none;
}

.about > .wrap {
  position: relative;
  z-index: 1;
}

.about .eyebrow {
  color: rgba(246, 242, 230, 0.64);
}

.about .eyebrow::before {
  border-color: var(--acid);
  background: var(--acid);
}

.about .section-title {
  max-width: 13ch;
  color: var(--on-dark);
}

.about .section-title em {
  color: var(--acid);
}

.about .section-head__side p,
.about .section-head__side .mono {
  color: rgba(246, 242, 230, 0.6);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.about-quote {
  max-width: none;
  margin-bottom: clamp(30px, 4vw, 46px);
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.6vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.24;
}

.about-quote em {
  color: var(--acid);
  font-style: italic;
}

.about-copy {
  display: grid;
  max-width: 53ch;
  gap: 16px;
  color: rgba(246, 242, 230, 0.7);
  font-size: 14px;
  line-height: 1.9;
}

.about-copy strong {
  color: var(--on-dark);
  font-weight: 500;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid rgba(246, 242, 230, 0.25);
}

.value {
  padding: 22px 20px 0 0;
}

.value + .value {
  padding-left: 22px;
  border-left: 1px solid rgba(246, 242, 230, 0.2);
}

.value__num {
  display: block;
  margin-bottom: 12px;
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.value h3 {
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.value p {
  color: rgba(246, 242, 230, 0.58);
  font-size: 11px;
  line-height: 1.7;
}

.profile-card {
  --paper: #f2efe5;
  --surface: #faf7ee;
  --ink: #15150f;
  --ink-soft: #555349;
  --muted: #6e6c60;
  --line: rgba(21, 21, 15, 0.16);
  --line-strong: rgba(21, 21, 15, 0.38);
  position: relative;
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 14px 14px 0 var(--acid);
  transform: rotate(1.2deg);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.profile-card:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 18px 20px 0 var(--acid);
}

.profile-card__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-card__identity {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 0;
}

.profile-card__monogram {
  display: grid;
  width: 76px;
  height: 76px;
  flex: none;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--acid);
  color: #15150f;
  font-family: var(--font-display);
  font-size: 39px;
  line-height: 1;
  transform: rotate(-6deg);
}

.profile-card__identity h3 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.profile-card__identity p {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

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

.facts__row {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.55;
}

.facts__row dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  line-height: 2;
  text-transform: uppercase;
}

.facts__row dd {
  margin: 0;
  color: var(--ink);
}

.profile-card__tools {
  margin-top: 20px;
}

.profile-card__tools > span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.tool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tool-chips span {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.04em;
}

.profile-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 6.8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-card__footer .available {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
}

.profile-card__footer .available::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1d7a4a;
}

/* =========================================================
   Contact + footer
   ========================================================= */

.contact {
  position: relative;
  overflow: hidden;
  padding-block: clamp(84px, 11vw, 150px) 0;
  background: var(--dark);
  color: var(--on-dark);
}

.contact .site-footer__inner {
  margin-top: clamp(58px, 7.5vw, 96px);
}

.contact::before {
  content: "HELLO";
  position: absolute;
  bottom: -0.26em;
  left: -0.03em;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(14rem, 38vw, 40rem);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.09em;
  line-height: 1;
  opacity: 0.14;
  -webkit-text-stroke: 1px var(--on-dark);
  pointer-events: none;
}

.contact::after {
  content: "";
  position: absolute;
  top: 12%;
  right: 7%;
  width: clamp(190px, 25vw, 340px);
  aspect-ratio: 1;
  border: 1px solid rgba(246, 242, 230, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 32px rgba(246, 242, 230, 0.025), 0 0 0 64px rgba(246, 242, 230, 0.02);
  pointer-events: none;
}

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

.contact__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(38px, 5vw, 64px);
}

.contact__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(246, 242, 230, 0.56);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact__status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 4px rgba(215, 239, 78, 0.12);
}

.contact__title {
  max-width: 11ch;
  margin-bottom: clamp(28px, 4vw, 42px);
  font-size: clamp(3.3rem, 8.2vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.97;
}

.contact__title em {
  color: var(--acid);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.055em;
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: end;
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid rgba(246, 242, 230, 0.2);
}

.contact__lead {
  max-width: 43ch;
  color: rgba(246, 242, 230, 0.6);
  font-size: 13px;
  line-height: 1.85;
}

.email-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.email-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(246, 242, 230, 0.4);
  color: var(--on-dark);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.7vw, 2.15rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  transition: color 0.3s, border-color 0.3s;
}

.email-link svg {
  width: 17px;
  height: 17px;
  transition: transform 0.35s var(--ease);
}

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

.email-link:hover svg {
  transform: translate(3px, -3px);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(246, 242, 230, 0.26);
  border-radius: 999px;
  color: rgba(246, 242, 230, 0.65);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.copy-btn:hover {
  border-color: var(--acid);
  background: var(--acid);
  color: #15150f;
}

.copy-btn.is-copied {
  background: var(--acid);
  color: #15150f;
  border-color: var(--acid);
}

.contact__side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.socials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid rgba(246, 242, 230, 0.18);
}

.social {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px 11px 0;
  border-bottom: 1px solid rgba(246, 242, 230, 0.18);
  color: rgba(246, 242, 230, 0.72);
  font-size: 11px;
  transition: color 0.25s, padding 0.3s;
}

.social:nth-child(even) {
  padding-left: 14px;
  border-left: 1px solid rgba(246, 242, 230, 0.18);
}

.social:hover {
  padding-left: 8px;
  color: var(--acid);
}

.social:nth-child(even):hover {
  padding-left: 22px;
}

.social svg {
  width: 11px;
  height: 11px;
  flex: none;
}

.contact__note {
  color: rgba(246, 242, 230, 0.4);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  line-height: 1.7;
  text-transform: uppercase;
}

.site-footer {
  position: relative;
  z-index: 1;
  background: var(--dark);
  color: var(--on-dark);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 24px;
  border-top: 1px solid rgba(246, 242, 230, 0.18);
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}

.site-footer__mark {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(246, 242, 230, 0.25);
  border-radius: 6px;
  color: var(--acid);
  font-family: var(--font-display);
  font-size: 14px;
}

.site-footer__copy {
  color: rgba(246, 242, 230, 0.38);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.site-footer__icp-row {
  display: flex;
  flex: 0 0 100%;
  width: 100%;
  justify-content: center;
  padding-top: 4px;
}

.site-footer__icp {
  color: rgba(246, 242, 230, 0.7);
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: rgba(246, 242, 230, 0.32);
  text-underline-offset: 4px;
  transition: color 0.25s, text-decoration-color 0.25s;
}

.site-footer__icp:hover {
  color: var(--acid);
  text-decoration-color: var(--acid);
}

.site-footer__links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(246, 242, 230, 0.55);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.site-footer__links a:hover {
  color: var(--acid);
}

/* =========================================================
   Page heroes
   ========================================================= */

.page-hero {
  position: relative;
  overflow: clip;
  padding-top: calc(var(--header) + clamp(52px, 7vw, 104px));
  padding-bottom: clamp(48px, 6.4vw, 84px);
  border-bottom: 1px solid var(--line);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: clamp(50px, 5.2vw, 76px) clamp(50px, 5.2vw, 76px);
  -webkit-mask-image: radial-gradient(ellipse at 70% 15%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 15%, #000, transparent 70%);
  pointer-events: none;
}

.page-hero > .wrap {
  position: relative;
  z-index: 1;
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: clamp(28px, 4vw, 44px);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-hero__meta .status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.page-hero__meta .status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
}

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  align-items: end;
  gap: clamp(30px, 6vw, 100px);
}

.page-title {
  margin-left: -0.06em;
  font-size: clamp(4rem, 10.7vw, 11.2rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.87;
}

.page-title > span {
  display: block;
}

.page-title .outline {
  color: transparent;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.065em;
  -webkit-text-stroke: 1.5px var(--ink);
}

.page-title .accent {
  color: var(--coral);
}

.page-hero__aside {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-bottom: 10px;
}

.page-hero__aside p {
  max-width: 34ch;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.85;
}

.page-hero__counts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.page-hero__counts div {
  padding: 10px 12px 0 0;
}

.page-hero__counts div + div {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.page-hero__counts strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
}

.page-hero__counts span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero__foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-hero__grid--journal {
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  align-items: center;
}

.page-hero__grid--journal .page-hero__aside {
  gap: 18px;
}

.page-hero__grid--journal .growth-chart {
  transform: rotate(0.8deg);
}

/* =========================================================
   Page call-to-action + acid button
   ========================================================= */

.page-cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(58px, 8vw, 100px);
  background: var(--dark);
  color: var(--on-dark);
}

.page-cta::before {
  content: "NEXT";
  position: absolute;
  right: -0.03em;
  bottom: -0.3em;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(11rem, 25vw, 27rem);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 1;
  opacity: 0.12;
  -webkit-text-stroke: 1px var(--on-dark);
  pointer-events: none;
}

.page-cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: clamp(28px, 5vw, 64px);
}

.page-cta h2 {
  margin-top: 16px;
  font-size: clamp(2.5rem, 5.2vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.01;
}

.page-cta h2 em {
  color: var(--acid);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.page-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 360px;
  padding-bottom: 8px;
}

.page-cta__actions p {
  color: rgba(246, 242, 230, 0.56);
  font-size: 12px;
  line-height: 1.8;
}

.btn--acid {
  border-color: var(--acid);
  background: var(--acid);
  color: #15150f;
}

.btn--acid::before {
  background: var(--on-dark);
}

.btn--acid:hover {
  color: #15150f;
}

/* =========================================================
   Works archive
   ========================================================= */

.work-archive {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(34px, 4.8vw, 68px) clamp(20px, 3vw, 44px);
}

.work-archive .work-card__cover {
  aspect-ratio: 4 / 3;
}

.work-archive .work-card__info {
  padding-top: 18px;
}

.filter-bar {
  position: sticky;
  top: var(--header);
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(36px, 4.5vw, 54px);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-btn {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}

.filter-btn span {
  margin-left: 4px;
  opacity: 0.55;
}

.filter-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

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

.filter-count {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.incubator {
  padding-top: clamp(52px, 6vw, 80px);
}

.incubator__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.incubator__head h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

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

.incubator-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 100px;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.incubator-item__num {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.incubator-item h3 {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.incubator-item p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.incubator-item__state {
  justify-self: end;
  padding: 4px 9px;
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* =========================================================
   Journal page
   ========================================================= */

.growth-chart {
  padding: 18px 18px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 8px 8px 0 var(--acid);
  transform: rotate(1deg);
}

.growth-chart__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.growth-chart svg {
  width: 100%;
  height: auto;
  margin-top: 8px;
  overflow: visible;
}

.growth-chart__path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
}

.growth-chart.is-in .growth-chart__path {
  animation: draw 2.4s var(--ease) 0.2s forwards;
}

.growth-chart__area {
  opacity: 0.8;
}

.growth-chart__dot {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 1.4;
}

.growth-chart__dot--now {
  fill: var(--acid);
  stroke: var(--ink);
}

.growth-chart__label {
  fill: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.06em;
}

.growth-chart__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 13px;
  font-style: italic;
}

.growth-chart__caption span:last-child {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 6.5px;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.featured-post {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr);
  gap: clamp(26px, 4vw, 56px);
  padding: clamp(26px, 4vw, 48px);
  border-radius: var(--radius);
  background: var(--acid);
  color: #15150f;
  text-align: left;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}

.featured-post:hover {
  box-shadow: 10px 10px 0 #15150f;
  transform: translate(-3px, -3px);
}

.featured-post::before {
  content: "✳";
  position: absolute;
  top: -0.24em;
  right: 0.02em;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(10rem, 22vw, 22rem);
  line-height: 1;
  opacity: 0.22;
  -webkit-text-stroke: 1px #15150f;
  pointer-events: none;
}

.featured-post__meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
}

.featured-post__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid rgba(21, 21, 15, 0.4);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-post__label::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #15150f;
}

.featured-post__date {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  line-height: 1.7;
  text-transform: uppercase;
}

.featured-post__date strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0;
}

.featured-post__content {
  position: relative;
  z-index: 1;
}

.featured-post h2 {
  max-width: none;
  font-size: clamp(1.8rem, 3.3vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.14;
  text-wrap: balance;
}

.featured-post p {
  max-width: 53ch;
  margin-top: 14px;
  color: rgba(21, 21, 15, 0.7);
  font-size: 13px;
  line-height: 1.8;
}

.featured-post__cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(21, 21, 15, 0.55);
  font-size: 11px;
  font-weight: 600;
  transition: gap 0.3s;
}

.featured-post__cta svg {
  width: 12px;
  height: 12px;
}

.featured-post__cta:hover {
  gap: 14px;
}

.journal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: clamp(42px, 5vw, 64px) 0 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
}

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

.post-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 76px;
  gap: clamp(18px, 3vw, 36px);
  align-items: start;
  padding: clamp(22px, 3vw, 32px) 8px clamp(22px, 3vw, 32px) 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s, padding 0.35s var(--ease);
}

.post-row:hover {
  padding-left: 12px;
  background: color-mix(in srgb, var(--acid) 12%, transparent);
}

.post-row__date {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  line-height: 1.7;
  text-transform: uppercase;
}

.post-row__date strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
}

.post-row__main {
  min-width: 0;
}

.post-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
}

.post-row h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.35;
  text-wrap: balance;
  transition: color 0.25s;
}

.post-row:hover h3 {
  color: var(--blue);
}

.post-row p {
  max-width: 66ch;
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.75;
}

.post-row__end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.post-row__time {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-transform: uppercase;
}

.post-row__arrow {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color 0.3s, color 0.3s, transform 0.35s;
}

.post-row__arrow svg {
  width: 11px;
  height: 11px;
}

.post-row:hover .post-row__arrow {
  background: var(--ink);
  color: var(--paper);
  transform: rotate(45deg);
}

.journal-end {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(56px, 7vw, 92px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.journal-end h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 4rem);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.journal-end p {
  max-width: 30ch;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.75;
}

/* =========================================================
   Dialogs
   ========================================================= */

dialog {
  width: min(960px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(12, 12, 9, 0.74);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

.dialog-shell {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.32);
}

.dialog-scroll {
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #15150f;
  border-radius: 50%;
  background: var(--acid);
  color: #15150f;
  transition: transform 0.3s var(--ease), background-color 0.25s;
}

.dialog-close:hover {
  background: var(--on-dark);
  transform: rotate(90deg);
}

.dialog-close svg {
  width: 15px;
  height: 15px;
}

.project-modal {
  width: min(1000px, calc(100vw - 32px));
}

.project-modal__cover {
  position: relative;
  aspect-ratio: 3 / 1.25;
  overflow: hidden;
  border-bottom: 1px solid var(--line-strong);
  background: var(--paper-2);
}

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

.project-modal__content {
  padding: clamp(24px, 4vw, 48px);
}

.project-modal__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.project-modal__meta span + span::before {
  content: "/";
  margin-right: 10px;
  opacity: 0.45;
}

.project-modal h2 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.98;
}

.project-modal h2 span {
  display: inline-block;
  margin-left: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  transform: translateY(-8px);
}

.project-modal__tagline {
  max-width: 48ch;
  margin-top: 14px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-style: italic;
  line-height: 1.45;
}

.project-modal__specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 30px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.project-modal__spec {
  padding: 12px 14px 12px 0;
}

.project-modal__spec + .project-modal__spec {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.project-modal__spec span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-modal__spec strong {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
}

.project-modal__body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
  gap: clamp(24px, 4vw, 54px);
}

.project-modal__desc {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.85;
}

.project-modal__desc p + p {
  margin-top: 14px;
}

.project-modal__list {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.project-modal__list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.65;
}

.project-modal__list li span:first-child {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
  line-height: 2.1;
}

.project-modal__side {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.project-modal__lesson {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.project-modal__lesson > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-modal__lesson p {
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  line-height: 1.45;
}

.palette {
  display: flex;
  gap: 7px;
}

.palette span {
  width: 25px;
  height: 25px;
  border: 1px solid rgba(21, 21, 15, 0.22);
  border-radius: 50%;
}

.project-modal__side .mono {
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.project-modal__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}

.project-modal__status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.project-modal__status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
}

.reader {
  width: min(820px, calc(100vw - 32px));
}

.reader__head {
  position: relative;
  padding: clamp(28px, 5vw, 52px) clamp(24px, 5vw, 62px) clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--line-strong);
  background: var(--acid);
  color: #15150f;
}

.reader__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: rgba(21, 21, 15, 0.62);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reader__meta span + span::before {
  content: "/";
  margin-right: 10px;
  opacity: 0.45;
}

.reader__head h2 {
  max-width: none;
  margin-top: 18px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.12;
  text-wrap: balance;
}

.reader__excerpt {
  max-width: 54ch;
  margin-top: 14px;
  color: rgba(21, 21, 15, 0.68);
  font-family: var(--font-display);
  font-size: 17px;
  font-style: italic;
  line-height: 1.6;
}

.reader__body {
  padding: clamp(26px, 4vw, 48px) clamp(24px, 5vw, 62px) clamp(34px, 5vw, 56px);
}

.reader__body > p,
.reader__body #reader-content > p {
  max-width: 64ch;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 2;
}

.reader__body > p + p,
.reader__body #reader-content > p + p {
  margin-top: 18px;
}

.reader__body > p:first-of-type::first-letter,
.reader__body #reader-content > p:first-of-type::first-letter {
  float: left;
  margin: 7px 8px 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 58px;
  line-height: 0.78;
}

.reader__quote {
  max-width: 54ch;
  margin: 32px 0;
  padding: 16px 0 16px 22px;
  border-left: 3px solid var(--blue);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.reader__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.reader__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* Toast */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 1200;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 0.3s, transform 0.35s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* =========================================================
   Keyframes
   ========================================================= */

@keyframes pulse {
  0% {
    opacity: 0.7;
    transform: scale(0.7);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.7);
  }
}

@keyframes blink {
  50% {
    opacity: 0.2;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes nudge {
  0%,
  100% {
    transform: translateY(-2px);
  }
  50% {
    transform: translateY(3px);
  }
}

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

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

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

@media (max-width: 1180px) {
  .site-nav {
    gap: 18px;
  }

  .availability {
    display: none;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 36px;
  }

  .hero__title {
    font-size: clamp(3.6rem, 7.1vw, 6.6rem);
  }

  .sticky-note {
    left: -22px;
  }

  .specimen__foot .mono {
    display: none;
  }

  .profile-card {
    box-shadow: 10px 10px 0 var(--acid);
  }
}

@media (max-width: 980px) {
  :root {
    --header: 76px;
  }

  .site-nav {
    display: none;
  }

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

  .menu-toggle {
    display: grid;
  }

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

  .hero__grid {
    grid-template-columns: 1fr;
    gap: clamp(38px, 7vw, 64px);
  }

  .hero__copy {
    max-width: 760px;
  }

  .hero__title {
    max-width: 10ch;
    font-size: clamp(3.8rem, 10.5vw, 7rem);
  }

  .hero__visual {
    justify-self: center;
    width: min(100%, 500px);
    margin-left: 0;
  }

  .hero__vertical {
    display: none;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .section-head__side {
    max-width: 560px;
    padding-bottom: 0;
  }

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

  .work-card--feature {
    display: block;
    grid-column: auto;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .work-card--feature .work-card__cover {
    aspect-ratio: 4 / 3;
  }

  .work-card--feature .work-card__info {
    gap: 10px;
    justify-content: flex-start;
    padding: 16px 0 0;
    border-left: 0;
  }

  .work-card--feature .work-card__title {
    font-size: clamp(1.6rem, 5vw, 2.4rem);
  }

  .work-card--feature .work-card__desc {
    font-size: 13px;
  }

  .work-card--small .work-card__cover {
    aspect-ratio: 4 / 3;
  }

  .journal-layout {
    grid-template-columns: 1fr;
  }

  .journal-aside {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }

  .journal-aside__quote {
    margin-top: 0;
  }

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

  .about-quote {
    max-width: 22ch;
  }

  .profile-card {
    max-width: 560px;
  }

  .page-hero__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .page-hero__aside {
    max-width: 580px;
  }

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

  .contact__side {
    max-width: 560px;
  }

  .work-archive {
    gap: 38px 24px;
  }

  .featured-post {
    grid-template-columns: 1fr;
  }

  .featured-post__meta {
    flex-direction: row;
    align-items: end;
  }

  .page-cta__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-cta__actions {
    max-width: 500px;
  }

  .post-row {
    grid-template-columns: 92px minmax(0, 1fr) 34px;
  }
}

@media (max-width: 760px) {
  :root {
    --pad: 20px;
    --radius: 14px;
  }

  .brand__sub {
    display: none;
  }

  .hero {
    padding-bottom: 42px;
  }

  .hero__kicker {
    font-size: 8px;
  }

  .hero__title {
    max-width: none;
    font-size: clamp(3.2rem, 13.4vw, 5.2rem);
    letter-spacing: -0.075em;
  }

  .hero__lede {
    font-size: 14px;
    line-height: 1.85;
  }

  .hero__actions {
    align-items: stretch;
  }

  .hero__actions .btn {
    flex: 1 1 150px;
  }

  .hero__stats {
    gap: 16px 24px;
  }

  .hero__stat {
    flex: 1 1 30%;
  }

  .hero__visual {
    width: 100%;
    margin-left: 0;
    padding: 18px 10px 64px 0;
  }

  .specimen {
    padding: 14px 14px 13px;
    box-shadow: 9px 9px 0 var(--blue);
  }

  .specimen__head {
    font-size: 6.5px;
  }

  .specimen__body {
    height: 290px;
  }

  .seal {
    top: 50px;
    right: 4px;
    width: 146px;
    height: 146px;
  }

  .specimen__tag {
    right: -20px;
    font-size: 6.5px;
  }

  .sticky-note {
    bottom: 0;
    left: 0;
    width: 164px;
    padding: 13px 14px 11px;
  }

  .sticky-note p {
    font-size: 18px;
  }

  .hero__time {
    right: 2px;
    bottom: 5px;
    font-size: 7px;
  }

  .hero__foot {
    margin-top: 38px;
  }

  .hero__foot .mono:last-child {
    display: none;
  }

  .section {
    padding-block: 68px;
  }

  .section-title {
    font-size: clamp(2.3rem, 10.6vw, 4rem);
  }

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

  .work-card__view {
    width: 68px;
    height: 68px;
    font-size: 7px;
  }

  .work-card__desc {
    font-size: 12.5px;
  }

  .journal-aside {
    grid-template-columns: 1fr;
  }

  .journal-aside__quote {
    font-size: 1.3rem;
  }

  .log-item {
    grid-template-columns: 1fr 32px;
    gap: 12px;
    padding-block: 20px;
  }

  .log-item__date {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding-top: 0;
  }

  .log-item__date strong {
    font-size: 10px;
  }

  .log-item__date span::before {
    content: "·";
    margin-right: 8px;
  }

  .log-item:hover {
    padding-left: 0;
  }

  .log-item p {
    -webkit-line-clamp: 2;
  }

  .about-quote {
    font-size: clamp(1.9rem, 8.5vw, 2.8rem);
  }

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

  .value {
    padding: 16px 0;
  }

  .value + .value {
    padding-left: 0;
    border-top: 1px solid rgba(246, 242, 230, 0.2);
    border-left: 0;
  }

  .contact__top {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .contact__title {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .contact::after {
    top: 8%;
    right: -20%;
  }

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

  .social:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .social:nth-child(even):hover {
    padding-left: 8px;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer__brand {
    order: 1;
  }

  .site-footer__links {
    order: 2;
  }

  .site-footer__copy {
    order: 3;
  }

  .site-footer__icp-row {
    order: 4;
    flex: 0 0 auto;
    width: 100%;
    justify-content: center;
  }

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

  .page-title {
    font-size: clamp(3.6rem, 15vw, 7rem);
    line-height: 0.9;
  }

  .page-hero__meta {
    font-size: 7.5px;
  }

  .filter-bar {
    top: var(--header);
  }

  .work-archive {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .work-archive .work-card__cover {
    aspect-ratio: 4 / 3;
  }

  .incubator-item {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 14px;
  }

  .incubator-item__state {
    grid-column: 2;
    justify-self: start;
  }

  .featured-post {
    padding: 24px;
  }

  .featured-post h2 {
    font-size: clamp(1.65rem, 7.4vw, 2.4rem);
  }

  .featured-post__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .post-row {
    grid-template-columns: 1fr 32px;
    gap: 12px;
    padding-block: 22px;
  }

  .post-row__date {
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    gap: 8px;
  }

  .post-row__date strong {
    font-size: 24px;
  }

  .post-row__end {
    align-self: center;
  }

  .post-row__time {
    display: none;
  }

  .post-row:hover {
    padding-left: 0;
  }

  .journal-toolbar .filter-count {
    display: none;
  }

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

  .project-modal__spec:nth-child(3) {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .project-modal__spec:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .project-modal__body {
    grid-template-columns: 1fr;
  }

  .project-modal__cover {
    aspect-ratio: 16 / 9;
  }

  .project-modal h2 span {
    display: block;
    margin: 8px 0 0;
    transform: none;
  }

  .reader__head {
    padding-top: 54px;
  }

  .dialog-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
  }

  .reader__head h2 {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }

  .reader__body > p,
  .reader__body #reader-content > p {
    font-size: 14px;
  }

  .dialog-shell {
    max-height: calc(100dvh - 16px);
  }

  dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }
}

@media (max-width: 480px) {
  .header-inner {
    gap: 12px;
  }

  .brand__name em {
    display: none;
  }

  .theme-toggle,
  .menu-toggle {
    width: 36px;
    height: 36px;
  }

  .hero__grid {
    gap: 32px;
  }

  .hero__title {
    margin-top: 18px;
    font-size: clamp(2.9rem, 14vw, 4rem);
  }

  .hero__stats {
    margin-top: 32px;
  }

  .specimen__body {
    height: 260px;
  }

  .seal {
    width: 128px;
    height: 128px;
  }

  .seal__mark {
    font-size: 51px;
  }

  .seal__year {
    bottom: 19px;
  }

  .specimen__scribble {
    font-size: 10px;
  }

  .hero__time {
    display: none;
  }

  .sticky-note {
    width: 150px;
  }

  .sticky-note p {
    font-size: 17px;
  }

  .section-title {
    font-size: clamp(2.15rem, 10.2vw, 3.2rem);
  }

  .work-card__badge {
    font-size: 6.5px;
  }

  .work-card__view {
    width: 60px;
    height: 60px;
  }

  .work-card__title span {
    display: none;
  }

  .about .section-title {
    max-width: none;
  }

  .profile-card {
    box-shadow: 8px 8px 0 var(--acid);
  }

  .profile-card__identity {
    gap: 13px;
  }

  .profile-card__monogram {
    width: 62px;
    height: 62px;
    font-size: 32px;
  }

  .profile-card__identity h3 {
    font-size: 27px;
  }

  .email-link {
    font-size: 1.22rem;
  }

  .page-hero__counts strong {
    font-size: 24px;
  }

  .featured-post {
    padding: 20px;
  }

  .post-row__meta .pill:nth-of-type(2) {
    display: none;
  }
}

/* =========================================================
   Motion, print, progressive enhancements
   ========================================================= */

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

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

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .cursor {
    display: none;
  }

  .growth-chart__path {
    stroke-dashoffset: 0;
  }
}

@media (pointer: coarse) {
  .cursor {
    display: none;
  }
}

@supports (view-transition-name: none) {
  @view-transition {
    navigation: auto;
  }
}

@media print {
  .site-header,
  .mobile-menu,
  .cursor,
  .scroll-progress,
  .marquee,
  .hero__visual,
  .contact::after {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  body::after {
    display: none;
  }

  .section {
    padding-block: 32px;
    break-inside: avoid;
  }

  .about,
  .contact {
    background: #fff;
    color: #000;
  }
}
