@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #050605;
  --bg-soft: #0a0c08;
  --bg-card: #0d0f0b;
  --paper: #f1f1e9;
  --paper-deep: #e7e7dc;
  --ink: #090a08;
  --text: #f3f3ed;
  --text-dim: #c2c5ba;
  --muted: #8b9185;
  --accent: #b8ff3d;
  --accent-soft: #d8ff9f;
  --accent-ink: #4b6b00;
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.08);
  --line-dark: rgba(9, 10, 8, 0.16);
  --font-sans: "Archivo", "Helvetica Neue", "PingFang SC", "Noto Sans SC",
    "Microsoft YaHei", sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", "Baskerville",
    "Songti SC", serif;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section-y: clamp(5.5rem, 11vw, 10rem);
  --header-h: 5.25rem;
  --radius: 0.35rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  overflow-x: clip;
  scrollbar-gutter: stable;
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 18rem;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open,
body.modal-open,
body.is-loading {
  overflow: hidden;
}

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

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

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

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

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

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

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

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

.section--paper :focus-visible {
  outline-color: var(--accent-ink);
}

[hidden] {
  display: none !important;
}

.container {
  width: min(100% - (var(--gutter) * 2), 92rem);
  margin-inline: auto;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  border: 0 !important;
  margin: -1px !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  opacity: 0.18;
  pointer-events: none;
  mix-blend-mode: soft-light;
  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='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E");
}

.pointer-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

body.has-pointer .pointer-layer {
  opacity: 1;
}

.pointer-glow {
  position: absolute;
  top: var(--pointer-y, 50vh);
  left: var(--pointer-x, 50vw);
  width: min(36rem, 76vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(184, 255, 61, 0.09),
    rgba(100, 155, 28, 0.035) 38%,
    transparent 68%
  );
  filter: blur(18px);
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}

.pointer-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(184, 255, 61, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 255, 61, 0.18) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem;
  opacity: 0.5;
  mask-image: radial-gradient(
    circle min(22rem, 72vw) at var(--pointer-x, 50vw) var(--pointer-y, 50vh),
    #000 0,
    rgba(0, 0, 0, 0.5) 45%,
    transparent 78%
  );
  -webkit-mask-image: radial-gradient(
    circle min(22rem, 72vw) at var(--pointer-x, 50vw) var(--pointer-y, 50vh),
    #000 0,
    rgba(0, 0, 0, 0.5) 45%,
    transparent 78%
  );
  mix-blend-mode: screen;
}

.skip-link {
  position: fixed;
  top: -100%;
  left: var(--gutter);
  z-index: 1000;
  padding: 0.8rem 1.2rem;
  background: var(--accent);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.skip-link:focus {
  top: 1rem;
}

#main:focus {
  outline: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.35rem;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0.65;
}

.section--paper .eyebrow {
  color: var(--accent-ink);
}

.section--paper .section-intro {
  color: #4f534a;
}

.section--paper .section-count {
  border-color: rgba(9, 10, 8, 0.26);
  color: #4f534a;
}

/* --------------------------------------------------------------------------
   Entry gate
   -------------------------------------------------------------------------- */

.entry-loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  transform: translateY(0);
  transition: transform 0.8s var(--ease-out);
  will-change: transform;
}

.entry-loader.is-leaving {
  transform: translateY(-100%);
}

.entry-environment {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.entry-glow {
  position: absolute;
  right: -8%;
  bottom: -35%;
  width: min(68vw, 65rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(184, 255, 61, 0.18),
    rgba(54, 92, 16, 0.07) 35%,
    transparent 68%
  );
  filter: blur(28px);
}

.entry-grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: clamp(4rem, 7vw, 7rem) clamp(4rem, 7vw, 7rem);
  mask-image: radial-gradient(circle at 52% 64%, #000 0, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 52% 64%, #000 0, transparent 72%);
}

.entry-inner {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100% - (var(--gutter) * 2), 96rem);
  height: 100svh;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  margin-inline: auto;
  text-align: center;
}

.entry-center {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

.entry-wordmark {
  margin-top: 1rem;
  color: transparent;
  font-size: clamp(6.5rem, 30vw, 24rem);
  font-weight: 600;
  line-height: 0.72;
  letter-spacing: -0.11em;
  -webkit-text-stroke: 1px rgba(184, 255, 61, 0.62);
}

.entry-name {
  margin-top: 1.8rem;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.entry-role {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.entry-bottom {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  width: min(34rem, 60vw);
  transform: translateX(-50%);
}

.entry-load-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--text-dim);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.entry-percent {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.entry-progress-track {
  display: block;
  width: 100%;
  height: 1px;
  overflow: hidden;
  margin-top: 0.7rem;
  background: var(--line);
}

.entry-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 0.12s linear;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-header::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 6, 5, 0.74), transparent);
  content: "";
  pointer-events: none;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line-soft);
  background: rgba(5, 6, 5, 0.78);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.site-header.is-scrolled::before {
  opacity: 0;
}

.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(100% - (var(--gutter) * 2), 96rem);
  height: 100%;
  margin-inline: auto;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  width: max-content;
}

.brand-mark {
  display: flex;
  width: 1.45rem;
  height: 1.45rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.18rem;
  border: 1px solid rgba(184, 255, 61, 0.4);
  border-radius: 50%;
  transition: transform 0.4s var(--ease-out);
}

.brand-mark span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--accent);
}

.brand-mark span:nth-child(2) {
  width: 62%;
}

.brand:hover .brand-mark {
  transform: rotate(90deg);
}

.brand-type {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
}

.brand-sup {
  position: relative;
  top: -0.45em;
  margin-left: 0.1rem;
  color: var(--accent);
  font-size: 0.36rem;
  font-weight: 500;
  letter-spacing: 0;
}

.brand-role {
  color: var(--muted);
  font-size: 0.45rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html[lang="zh-Hans"] .brand-role {
  display: none;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: clamp(1rem, 2.2vw, 2.2rem);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.6rem 0;
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  transition: color 0.25s ease;
}

.nav-index {
  color: var(--muted);
  font-size: 0.42rem;
  letter-spacing: 0.05em;
  transition: color 0.25s ease;
}

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

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
}

.nav-link:hover .nav-index,
.nav-link.is-active .nav-index {
  color: var(--accent);
}

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

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.language-switcher {
  position: relative;
}

.language-trigger {
  display: inline-flex;
  height: 2.35rem;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
  transition: border-color 0.25s ease, color 0.25s ease,
    background 0.25s ease;
}

.language-trigger:hover,
.language-trigger[aria-expanded="true"] {
  border-color: rgba(184, 255, 61, 0.55);
  background: rgba(184, 255, 61, 0.06);
  color: var(--text);
}

.language-code {
  min-width: 1.4rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
}

.language-trigger .icon {
  width: 0.7rem;
  height: 0.7rem;
  transition: transform 0.25s ease;
}

.language-trigger[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  width: 10.5rem;
  overflow: hidden;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0e100c;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.language-option {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.7rem;
  border-radius: 0.2rem;
  color: var(--text-dim);
  font-size: 0.72rem;
  text-align: left;
  transition: background 0.2s ease, color 0.2s ease;
}

.language-option:hover,
.language-option[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.language-option-code {
  color: var(--muted);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
}

.language-option[aria-selected="true"] .language-option-code {
  color: var(--accent);
}

.header-contact {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  transition: transform 0.3s var(--ease-out), background 0.25s ease;
}

.header-contact:hover {
  transform: rotate(45deg);
  background: var(--accent-soft);
}

.header-contact .icon {
  width: 0.88rem;
  height: 0.88rem;
  stroke-width: 2;
}

.music-toggle {
  position: relative;
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-dim);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.music-toggle:hover {
  border-color: rgba(184, 255, 61, 0.55);
  color: var(--accent);
}

.music-toggle[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.music-toggle .icon {
  width: 0.9rem;
  height: 0.9rem;
  stroke-width: 1.8;
}

.music-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.music-toggle:disabled::after {
  display: none;
}

.music-toggle[aria-pressed="true"]::after {
  position: absolute;
  inset: -0.22rem;
  border: 1px solid rgba(184, 255, 61, 0.3);
  border-radius: 50%;
  content: "";
  animation: music-pulse 2.4s ease-out infinite;
}

@keyframes music-pulse {
  0% {
    opacity: 0.7;
    transform: scale(0.85);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}

.menu-toggle {
  display: none;
  height: 2.35rem;
  align-items: center;
  gap: 0.6rem;
  padding: 0 0.2rem 0 0.65rem;
  border-left: 1px solid var(--line);
  color: var(--text);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.menu-toggle-icon {
  position: relative;
  display: flex;
  width: 2.35rem;
  height: 2.35rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.menu-toggle-icon span {
  width: 0.85rem;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out);
}

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

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

/* --------------------------------------------------------------------------
   Mobile navigation
   -------------------------------------------------------------------------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow-y: auto;
  background:
    radial-gradient(circle at 88% 10%, rgba(184, 255, 61, 0.12), transparent 25rem),
    #070806;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-soft), visibility 0.4s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-inner {
  display: flex;
  width: min(100% - (var(--gutter) * 2), 48rem);
  min-height: 100svh;
  flex-direction: column;
  margin-inline: auto;
  padding-top: calc(var(--header-h) + 2.5rem);
  padding-bottom: 2rem;
}

.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line-soft);
}

.mobile-menu-index {
  color: var(--muted);
  font-size: 0.5rem;
  letter-spacing: 0.14em;
}

.mobile-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin-top: 1.2rem;
}

.mobile-nav a {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: clamp(2rem, 9vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  transition: color 0.25s ease, padding 0.3s var(--ease-out);
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  padding-left: 0.5rem;
  color: var(--accent);
}

.mobile-nav-index {
  color: var(--muted);
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.mobile-nav .icon {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--muted);
}

.mobile-menu-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.mobile-lang-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.mobile-lang-button {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 0.65rem;
}

.mobile-lang-button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.mobile-contact {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
}

.mobile-contact a {
  color: var(--text-dim);
  font-size: 0.7rem;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 0.25rem;
}

.mobile-contact a:hover {
  color: var(--accent);
}

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

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: center;
  overflow: hidden;
  padding-top: calc(var(--header-h) + 1.5rem);
  padding-bottom: 2.5rem;
  isolation: isolate;
}

.hero-environment {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: 8%;
  right: 3%;
  width: min(56vw, 56rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(184, 255, 61, 0.17) 0%,
    rgba(112, 166, 28, 0.08) 32%,
    transparent 68%
  );
  filter: blur(28px);
  transform: translate3d(0, calc(var(--hero-scroll, 0) * 7rem), 0);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background-image: linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: clamp(4rem, 7vw, 7rem) clamp(4rem, 7vw, 7rem);
  mask-image: radial-gradient(circle at 68% 48%, #000 0, transparent 68%);
  -webkit-mask-image: radial-gradient(circle at 68% 48%, #000 0, transparent 68%);
}

.hero-horizon {
  position: absolute;
  right: 0;
  bottom: 15%;
  width: 58%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 255, 61, 0.45));
  opacity: 0.55;
}

.hero-horizon::after {
  position: absolute;
  top: -0.22rem;
  right: 12%;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 1.2rem var(--accent);
  content: "";
}

.hero-container {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(19rem, 0.75fr);
  align-items: center;
  gap: clamp(2rem, 4.5vw, 5rem);
}

.hero-copy {
  position: relative;
  z-index: 2;
  transform: translate3d(0, calc(var(--hero-scroll, 0) * -1.4rem), 0);
}

.hero-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 40rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.46rem 0.72rem;
  border: 1px solid rgba(184, 255, 61, 0.3);
  border-radius: 999px;
  background: rgba(184, 255, 61, 0.04);
  color: var(--accent-soft);
  font-size: 0.65rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.045em;
}

.status-dot {
  position: relative;
  display: inline-block;
  width: 0.38rem;
  height: 0.38rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0.7rem rgba(184, 255, 61, 0.5);
}

.status-dot::after {
  position: absolute;
  inset: -0.25rem;
  border: 1px solid rgba(184, 255, 61, 0.4);
  border-radius: 50%;
  content: "";
  animation: status-pulse 2.8s ease-out infinite;
}

@keyframes status-pulse {
  0% {
    opacity: 0.8;
    transform: scale(0.5);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}

.hero-index {
  color: var(--muted);
  font-size: 0.54rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-role-label {
  margin-top: clamp(2rem, 4.5vw, 4rem);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hero-title {
  position: relative;
  margin: 0.55rem 0 1.7rem;
  font-size: clamp(3.25rem, 8.2vw, 8.6rem);
  font-weight: 600;
  line-height: 0.79;
  letter-spacing: -0.078em;
  text-transform: uppercase;
}

.hero-line {
  display: block;
  overflow: hidden;
  padding-right: 0.08em;
  padding-bottom: 0.06em;
  white-space: nowrap;
}

.hero-line > span {
  display: block;
  transform: translateY(118%) rotate(4deg);
  transform-origin: left bottom;
  transition: transform 1.2s var(--ease-out);
  will-change: transform;
}

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

.hero-intro {
  max-width: 34rem;
  color: var(--text-dim);
  font-size: clamp(0.88rem, 1.1vw, 1.02rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.8rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.015em;
  transition: background 0.25s ease, color 0.25s ease,
    border-color 0.25s ease, transform 0.3s var(--ease-out);
}

.button:hover {
  transform: translateY(-2px);
}

.button .icon {
  width: 0.88rem;
  height: 0.88rem;
  stroke-width: 1.8;
  transition: transform 0.3s var(--ease-out);
}

.button:hover .icon {
  transform: translate(2px, -2px);
}

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

.button--accent:hover {
  background: var(--accent-soft);
}

.button--ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
}

.button--ghost:hover {
  border-color: rgba(184, 255, 61, 0.48);
  background: rgba(184, 255, 61, 0.07);
}

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

.button--dark:hover {
  background: #1c2118;
}

.hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: clamp(2.5rem, 6vh, 5rem);
  color: var(--muted);
  font-size: 0.57rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-location .icon {
  width: 0.8rem;
  height: 0.8rem;
  color: var(--accent);
}

.hero-scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.scroll-line {
  position: relative;
  display: block;
  width: 3.2rem;
  height: 1px;
  overflow: hidden;
  background: var(--line);
}

.scroll-line::after {
  position: absolute;
  inset: 0;
  background: var(--accent);
  content: "";
  animation: scroll-line 2.4s var(--ease-soft) infinite;
}

@keyframes scroll-line {
  0% {
    transform: translateX(-100%);
  }
  55%,
  100% {
    transform: translateX(100%);
  }
}

/* Hero visual */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 90rem;
}

.portrait-stage {
  --tilt-x: 4deg;
  --tilt-y: -10deg;
  --scroll-tilt: 0deg;
  position: relative;
  width: min(29vw, 25rem);
  transform-style: preserve-3d;
  transform: translate3d(
      var(--pointer-shift-x, 0),
      calc(var(--hero-scroll, 0) * 1.4rem + var(--pointer-shift-y, 0)),
      0
    )
    rotateX(calc(var(--tilt-x) - var(--hero-scroll, 0) * 2.5deg))
    rotateY(calc(var(--tilt-y) + var(--hero-scroll, 0) * 4deg))
    rotateZ(calc(1.2deg - var(--hero-scroll, 0) * 3deg))
    scale(calc(1 - var(--hero-scroll, 0) * 0.04));
  transition: transform 0.18s ease-out;
}

.portrait-card {
  position: relative;
  z-index: 2;
  padding: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #0c0e0a;
  box-shadow: 0 2.5rem 5rem rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(184, 255, 61, 0.04) inset;
  transform: translateZ(2.5rem);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.portrait-stage.is-glowing .portrait-card {
  border-color: rgba(184, 255, 61, 0.62);
  box-shadow: 0 2.5rem 5rem rgba(0, 0, 0, 0.55),
    0 0 2.8rem rgba(184, 255, 61, 0.18),
    0 0 0 1px rgba(184, 255, 61, 0.25) inset;
}

.portrait-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.1rem 0.6rem;
  color: var(--muted);
  font-size: 0.42rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #11140e;
}

.portrait-frame::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(
    circle at var(--photo-glow-x, 50%) var(--photo-glow-y, 50%),
    rgba(184, 255, 61, 0.28),
    transparent 42%
  );
  content: "";
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  transition: opacity 0.3s ease;
}

.portrait-stage.is-glowing .portrait-frame::before {
  opacity: 0.95;
}

.portrait-frame::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.08);
  content: "";
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.03);
  transition: transform 1.2s var(--ease-out), filter 0.4s ease;
}

.portrait-stage.is-glowing .portrait-frame img {
  filter: grayscale(1) contrast(1.06) brightness(1.025);
}

.portrait-card:hover .portrait-frame img {
  transform: scale(1.025);
}

.portrait-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.1rem 0.05rem;
}

.portrait-name {
  color: var(--text-dim);
  font-size: 0.52rem;
  letter-spacing: 0.035em;
}

.portrait-year {
  color: var(--accent);
  font-size: 0.46rem;
  letter-spacing: 0.1em;
}

.portrait-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(184, 255, 61, 0.2);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) translateZ(-4rem);
}

.portrait-orbit--outer {
  width: 138%;
  aspect-ratio: 1;
  border-style: dashed;
  opacity: 0.6;
  animation: orbit-spin 54s linear infinite;
}

.portrait-orbit--inner {
  width: 111%;
  aspect-ratio: 1;
  border-color: rgba(255, 255, 255, 0.09);
  animation: orbit-spin-reverse 38s linear infinite;
}

@keyframes orbit-spin {
  to {
    transform: translate(-50%, -50%) translateZ(-4rem) rotate(360deg);
  }
}

@keyframes orbit-spin-reverse {
  to {
    transform: translate(-50%, -50%) translateZ(-4rem) rotate(-360deg);
  }
}

.portrait-crosshair {
  position: absolute;
  inset: 0;
  transform: translateZ(3.5rem);
  pointer-events: none;
}

.portrait-crosshair span {
  position: absolute;
  background: var(--accent);
  opacity: 0.55;
}

.portrait-crosshair span:first-child {
  top: -0.7rem;
  left: 50%;
  width: 1px;
  height: 1.3rem;
}

.portrait-crosshair span:last-child {
  top: 50%;
  right: -0.7rem;
  width: 1.3rem;
  height: 1px;
}

.floating-card {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  padding: 0.62rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: rgba(10, 12, 8, 0.7);
  color: var(--text-dim);
  font-size: 0.47rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.08em;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform-style: preserve-3d;
}

.floating-card--top {
  top: 12%;
  left: -3.5rem;
  transform: translateZ(5rem) rotate(-2deg);
  animation: float-a 7s ease-in-out infinite;
}

.floating-card--bottom {
  right: -2.8rem;
  bottom: 14%;
  flex-direction: row;
  align-items: center;
  transform: translateZ(4rem) rotate(2deg);
  animation: float-b 8s ease-in-out infinite;
}

.floating-card--bottom > span:last-child {
  max-width: 5.2rem;
  line-height: 1.4;
}

.floating-card-label {
  color: var(--accent);
  font-size: 0.4rem;
  letter-spacing: 0.14em;
}

.floating-dot {
  width: 0.36rem;
  height: 0.36rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
}

@keyframes float-a {
  0%,
  100% {
    transform: translateZ(5rem) translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateZ(5rem) translateY(-0.6rem) rotate(-1deg);
  }
}

@keyframes float-b {
  0%,
  100% {
    transform: translateZ(4rem) translateY(0) rotate(2deg);
  }
  50% {
    transform: translateZ(4rem) translateY(0.5rem) rotate(1deg);
  }
}

.hero-stamp {
  position: absolute;
  right: -1rem;
  bottom: -10%;
  z-index: -1;
  color: transparent;
  font-size: clamp(7rem, 17vw, 16rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.08em;
  opacity: 0.6;
  pointer-events: none;
  -webkit-text-stroke: 1px rgba(184, 255, 61, 0.2);
  transform: rotate(90deg);
  transform-origin: bottom right;
}

/* Header and hero entrance */

.enter-1,
.enter-2,
.enter-3,
.enter-4,
.enter-5,
.enter-portrait {
  opacity: 0;
  transform: translateY(1.2rem);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.is-ready .enter-1 {
  opacity: 1;
  transform: none;
  transition-delay: 0.1s;
}

.is-ready .enter-2 {
  opacity: 1;
  transform: none;
  transition-delay: 0.18s;
}

.is-ready .enter-3 {
  opacity: 1;
  transform: none;
  transition-delay: 0.34s;
}

.is-ready .enter-4 {
  opacity: 1;
  transform: none;
  transition-delay: 0.44s;
}

.is-ready .enter-5 {
  opacity: 1;
  transform: none;
  transition-delay: 0.54s;
}

.is-ready .enter-portrait {
  opacity: 1;
  transform: none;
  transition-delay: 0.2s;
}

.is-ready .hero-line > span {
  transform: translateY(0) rotate(0);
}

.hero-line:nth-child(1) > span {
  transition-delay: 0.22s;
}

.hero-line:nth-child(2) > span {
  transition-delay: 0.31s;
}

.hero-line:nth-child(3) > span {
  transition-delay: 0.4s;
}

body:not(.is-ready) .portrait-card {
  opacity: 0;
  transform: translateZ(2.5rem) translateY(1.2rem) scale(0.96);
}

body.is-ready .portrait-card {
  opacity: 1;
  transform: translateZ(2.5rem) translateY(0) scale(1);
  transition: transform 1.1s var(--ease-out) 0.28s,
    opacity 0.9s ease 0.28s;
}

/* --------------------------------------------------------------------------
   Ticker
   -------------------------------------------------------------------------- */

.ticker {
  position: relative;
  z-index: 3;
  width: 104%;
  overflow: hidden;
  margin-left: -2%;
  border-top: 1px solid rgba(9, 10, 8, 0.2);
  border-bottom: 1px solid rgba(9, 10, 8, 0.2);
  background: var(--accent);
  color: var(--ink);
  transform: rotate(-1.1deg);
}

.ticker-track {
  display: flex;
  width: max-content;
  padding: 0.72rem 0;
  animation: ticker-move 32s linear infinite;
  will-change: transform;
}

.ticker-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding-right: 1.5rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.ticker-item::after {
  display: inline-block;
  width: 0.36rem;
  height: 0.36rem;
  border: 1px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

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

/* --------------------------------------------------------------------------
   Project portal transition
   -------------------------------------------------------------------------- */

.work {
  position: relative;
  background: var(--bg);
}

.portal {
  position: relative;
  height: 165vh;
  background: #050605;
}

.portal-sticky {
  position: sticky;
  top: 0;
  display: grid;
  height: 100svh;
  place-items: center;
  overflow: hidden;
  perspective: 75rem;
}

.portal-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(70vw, 60rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(184, 255, 61, 0.13),
    rgba(84, 122, 22, 0.04) 38%,
    transparent 68%
  );
  filter: blur(20px);
  transform: translate(-50%, -50%) scale(calc(0.8 + var(--portal, 0) * 0.45));
  opacity: calc(0.5 + var(--portal, 0) * 0.5);
}

.portal-frames {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.portal-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border: 1px solid rgba(184, 255, 61, 0.28);
  color: rgba(184, 255, 61, 0.65);
  font-size: 0.45rem;
  letter-spacing: 0.16em;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.portal-frame::before,
.portal-frame::after {
  position: absolute;
  width: 0.55rem;
  height: 0.55rem;
  border-color: var(--accent);
  border-style: solid;
  content: "";
}

.portal-frame::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}

.portal-frame::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 1px 1px 0;
}

.portal-frame--1 {
  width: min(34vw, 26rem);
  aspect-ratio: 16 / 10;
  padding: 0.7rem;
  opacity: calc(0.15 + var(--portal, 0) * 0.85);
  transform: translate(-50%, -50%)
    translateZ(calc(-32rem + var(--portal, 0) * 43rem))
    rotateX(calc(-8deg + var(--portal, 0) * 8deg))
    rotateY(calc(-7deg + var(--portal, 0) * 7deg));
}

.portal-frame--2 {
  width: min(57vw, 44rem);
  aspect-ratio: 16 / 9;
  padding: 0.9rem;
  opacity: calc(0.08 + var(--portal, 0) * 0.7);
  transform: translate(-50%, -50%)
    translateZ(calc(-46rem + var(--portal, 0) * 45rem))
    rotateX(calc(-11deg + var(--portal, 0) * 11deg))
    rotateY(calc(6deg - var(--portal, 0) * 6deg));
}

.portal-frame--3 {
  width: min(82vw, 66rem);
  aspect-ratio: 16 / 8;
  padding: 1.1rem;
  opacity: calc(0.04 + var(--portal, 0) * 0.52);
  transform: translate(-50%, -50%)
    translateZ(calc(-58rem + var(--portal, 0) * 46rem))
    rotateX(calc(-14deg + var(--portal, 0) * 14deg))
    rotateY(calc(-3deg + var(--portal, 0) * 3deg));
}

.portal-frame--2 span:nth-child(1),
.portal-frame--3 span:nth-child(1) {
  margin-right: auto;
}

.portal-frame--2 span:nth-child(2),
.portal-frame--3 span:nth-child(2) {
  margin-left: 1.5rem;
}

.portal-frame--3 span:nth-child(2) {
  margin-left: auto;
  margin-right: 1.5rem;
}

.portal-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  transform: translate3d(
      0,
      calc(var(--portal, 0) * -2.5rem),
      calc(var(--portal, 0) * 1.4rem)
    )
    rotateX(calc(var(--portal, 0) * -1.6deg))
    scale(calc(1 - var(--portal, 0) * 0.05));
  opacity: calc(1 - var(--portal, 0) * 0.25);
  transform-style: preserve-3d;
  will-change: transform;
}

.portal-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.16em;
  margin-top: 1.1rem;
  font-size: clamp(4.5rem, 12vw, 12rem);
  font-weight: 500;
  line-height: 0.78;
  letter-spacing: -0.08em;
}

.portal-title em {
  color: var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.045em;
}

.portal-word {
  display: block;
  overflow: hidden;
  padding-bottom: 0.2em;
  margin-bottom: -0.2em;
}

.portal-word-inner {
  display: block;
  transform-origin: 0 100%;
}

.portal-motion-ready .portal-word-inner {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(115%) rotate(2.2deg);
}

.portal-motion-ready.is-entered .portal-word--lead .portal-word-inner {
  animation: portal-word-in 1.15s var(--ease-out) 0.08s both;
}

.portal-motion-ready.is-entered .portal-word--accent .portal-word-inner {
  animation: portal-word-in 1.2s var(--ease-out) 0.2s both;
}

.portal-motion-ready .portal-content .eyebrow {
  opacity: 0;
  transform: translateY(0.7rem);
}

.portal-motion-ready .portal-content .eyebrow::before {
  transform: scaleX(0);
  transform-origin: left;
}

.portal-motion-ready.is-entered .portal-content .eyebrow {
  animation: portal-copy-in 0.8s var(--ease-out) 0.12s both;
}

.portal-motion-ready.is-entered .portal-content .eyebrow::before {
  animation: portal-line-in 0.9s var(--ease-out) 0.08s both;
}

.portal-motion-ready .portal-sub {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(0.8rem);
}

.portal-motion-ready.is-entered .portal-sub {
  animation: portal-copy-in 0.9s var(--ease-out) 0.6s both;
}

.portal-motion-ready .portal-progress {
  opacity: 0;
  transform: translateY(0.6rem);
}

.portal-motion-ready.is-entered .portal-progress {
  animation: portal-copy-in 0.8s var(--ease-out) 0.78s both;
}

.portal-motion-ready .portal-frames {
  opacity: 0;
  transform: translateY(1.5rem) scale(0.97);
}

.portal-motion-ready.is-entered .portal-frames {
  animation: portal-frames-in 1.5s var(--ease-out) 0.14s both;
}

.portal-motion-ready .portal-cue {
  opacity: 0;
}

.portal-motion-ready.is-entered .portal-cue {
  animation: portal-copy-in 0.8s var(--ease-out) 0.95s both;
}

@keyframes portal-word-in {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(115%) rotate(2.2deg);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) rotate(0);
  }
}

@keyframes portal-copy-in {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(0.7rem);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes portal-line-in {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes portal-frames-in {
  from {
    opacity: 0;
    transform: translateY(1.5rem) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-word-inner,
  .portal-content .eyebrow,
  .portal-sub,
  .portal-progress,
  .portal-frames,
  .portal-cue {
    opacity: 1;
    filter: none;
    transform: none;
    animation: none;
  }

  .portal-content .eyebrow::before {
    transform: scaleX(1);
    animation: none;
  }
}

.portal-sub {
  max-width: 28rem;
  margin-top: 1.7rem;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

.portal-progress {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.45rem;
  letter-spacing: 0.12em;
}

.portal-progress-track {
  position: relative;
  display: block;
  width: 8rem;
  height: 1px;
  overflow: hidden;
  background: var(--line);
}

.portal-progress-track span {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(var(--portal, 0));
  transform-origin: left;
}

.portal-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 2.4rem;
  left: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.52rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.portal-cue:hover {
  color: var(--accent);
}

.portal-cue .icon {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--accent);
}

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

.work-body {
  position: relative;
  padding: 4rem 0 var(--section-y);
  background: linear-gradient(180deg, #050605, #070806 70%, #050605);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(17rem, 0.85fr);
  align-items: end;
  gap: 3rem;
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
}

.section-title {
  margin-top: 1.15rem;
  font-size: clamp(3rem, 7.2vw, 7.4rem);
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: -0.068em;
}

.section-title span,
.section-title em {
  display: block;
}

.section-title em {
  color: var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.section--paper .section-title {
  color: var(--ink);
}

.section--paper .section-title em {
  color: var(--accent-ink);
}

.section-head-aside {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 1.4rem;
  padding-bottom: 0.55rem;
}

.section-intro {
  max-width: 28rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.7;
}

.section-count {
  display: inline-flex;
  padding: 0.38rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.8rem, 5vw, 5.5rem) clamp(1.25rem, 2.2vw, 2.2rem);
  perspective: 1400px;
}

.project-card {
  grid-column: span 1;
  min-width: 0;
  perspective: 75rem;
  transform: translate3d(0, var(--parallax-y, 0), 0)
    rotateX(var(--parallax-rx, 0));
  transform-style: preserve-3d;
}

.project-card--featured,
.project-card--wide {
  grid-column: span 2;
}

.project-device-stage {
  --stage-glow: rgba(184, 255, 61, 0.15);
  position: relative;
  display: flex;
  width: 100%;
  aspect-ratio: 4 / 3;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line-soft);
  background: radial-gradient(
      circle at 50% 42%,
      var(--stage-glow),
      transparent 56%
    ),
    #080a08;
  color: inherit;
  text-align: left;
  isolation: isolate;
  transform-style: preserve-3d;
  transition: border-color 0.35s ease, background 0.35s ease;
}

.project-device-stage[data-doc-preview] {
  cursor: pointer;
}

.project-device-stage[data-visual="water"] {
  --stage-glow: rgba(92, 191, 245, 0.23);
}

.project-device-stage[data-visual="grid"] {
  --stage-glow: rgba(73, 139, 255, 0.2);
}

.project-device-stage[data-visual="cards"] {
  --stage-glow: rgba(255, 111, 67, 0.2);
}

.project-device-stage[data-visual="pixel"] {
  --stage-glow: rgba(94, 219, 94, 0.18);
}

.project-device-stage[data-visual="geo"] {
  --stage-glow: rgba(132, 211, 255, 0.2);
}

.project-device-stage::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.42;
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 2.3rem 2.3rem;
  content: "";
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 78%);
}

.project-device-stage::after {
  position: absolute;
  right: 12%;
  bottom: 8%;
  left: 12%;
  z-index: 1;
  height: 12%;
  border-top: 1px solid rgba(184, 255, 61, 0.15);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(184, 255, 61, 0.08), transparent 68%);
  content: "";
  filter: blur(8px);
  pointer-events: none;
}

.project-card:hover .project-device-stage,
.project-card:focus-within .project-device-stage {
  border-color: rgba(184, 255, 61, 0.4);
}

.device-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 6;
  color: var(--muted);
  font-size: 0.47rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stage-hint {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.stage-hint .icon {
  width: 0.8rem;
  height: 0.8rem;
}

.device-scene {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 1rem 1.4rem;
  perspective: 1200px;
  pointer-events: none;
}

.device-shadow {
  position: absolute;
  bottom: 10%;
  left: 50%;
  width: 42%;
  height: 8%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  filter: blur(15px);
  transform: translateX(-50%) rotateX(68deg);
}

.device-3d {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--device-rx, 4deg) + var(--card-rx, 0deg)))
    rotateY(calc(var(--device-ry, -12deg) + var(--card-ry, 0deg)));
  transition: transform 0.5s var(--ease-out);
}

.project-card.is-tilting .device-3d {
  transition-duration: 0.14s;
}

.device-3d--iphone {
  --device-rx: 4deg;
  --device-ry: -12deg;
  width: min(28%, 11rem);
  aspect-ratio: 9 / 19.5;
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2.25rem;
  background: linear-gradient(145deg, #30342d, #030403 68%);
  box-shadow: 0 1.6rem 3rem rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(184, 255, 61, 0.05) inset;
}

.device-3d--iphone::before {
  position: absolute;
  top: 0.23rem;
  left: 50%;
  z-index: 4;
  width: 32%;
  height: 0.58rem;
  border-radius: 999px;
  background: #050605;
  content: "";
  transform: translateX(-50%);
}

.device-3d--iphone::after {
  position: absolute;
  top: 24%;
  right: -2px;
  width: 2px;
  height: 15%;
  border-radius: 0 2px 2px 0;
  background: #4a4f45;
  content: "";
}

.device-3d--laptop {
  --device-rx: 2deg;
  --device-ry: -5deg;
  width: min(86%, 30rem);
  aspect-ratio: 16 / 10;
  padding: 0.6rem 0.7rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.6rem;
  background: linear-gradient(145deg, #2c3029, #030403 70%);
  box-shadow: 0 1.6rem 3rem rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(184, 255, 61, 0.05) inset;
}

.device-3d--laptop::before {
  position: absolute;
  top: 0.2rem;
  left: 50%;
  z-index: 4;
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 50%;
  background: #080a07;
  content: "";
  transform: translateX(-50%);
}

.device-3d--laptop::after {
  position: absolute;
  bottom: -0.85rem;
  left: 50%;
  z-index: 0;
  width: 112%;
  height: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0 0 0.95rem 0.95rem;
  background: linear-gradient(180deg, #2b2f28, #0b0d0a);
  content: "";
  transform: translateX(-50%);
}

.device-3d--laptop .device-screen {
  inset: 0.6rem 0.7rem 1.15rem;
  border-radius: 0.3rem;
}

.device-3d--laptop .device-screen img {
  object-fit: contain;
}

.device-3d--ipad {
  --device-rx: 3deg;
  --device-ry: -9deg;
  width: min(46%, 18rem);
  aspect-ratio: 3 / 4;
  padding: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.5rem;
  background: linear-gradient(145deg, #30342d, #030403 68%);
  box-shadow: 0 1.6rem 3rem rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(184, 255, 61, 0.05) inset;
}

.device-3d--ipad::before {
  position: absolute;
  top: 0.2rem;
  left: 50%;
  z-index: 4;
  width: 0.33rem;
  height: 0.33rem;
  border-radius: 50%;
  background: #080a07;
  content: "";
  transform: translateX(-50%);
}

.device-3d--tv {
  --device-rx: 2deg;
  --device-ry: -5deg;
  width: min(82%, 27rem);
  aspect-ratio: 16 / 9;
  padding: 0.55rem 0.65rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.55rem;
  background: linear-gradient(145deg, #2c3029, #030403 70%);
  box-shadow: 0 1.6rem 3rem rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(184, 255, 61, 0.05) inset;
}

.device-3d--tv::after {
  position: absolute;
  bottom: -0.95rem;
  left: 50%;
  z-index: 0;
  width: 30%;
  height: 0.9rem;
  border-radius: 0 0 0.35rem 0.35rem;
  background: linear-gradient(180deg, #2c3029, #0a0c08);
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
  content: "";
  transform: translateX(-50%);
}

.device-screen {
  position: absolute;
  inset: 0.55rem;
  z-index: 1;
  overflow: hidden;
  border-radius: 1.7rem;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09) inset;
}

.device-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.device-screen::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    132deg,
    rgba(255, 255, 255, 0.13),
    transparent 26%,
    transparent 72%,
    rgba(255, 255, 255, 0.035)
  );
  content: "";
  pointer-events: none;
}

.device-3d--ipad .device-screen {
  inset: 0.65rem;
  border-radius: 1.1rem;
}

.device-3d--ipad .device-screen img {
  object-fit: contain;
}

.device-3d--tv .device-screen {
  inset: 0.55rem 0.65rem 0.8rem;
  border-radius: 0.3rem;
}

.device-3d--tv .device-screen img {
  object-fit: contain;
}

.device-missing {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--muted);
  font-size: 0.55rem;
  text-align: center;
}

/* Horizontal 3D project carousel */
.project-carousel {
  position: relative;
}

.carousel-stage {
  position: relative;
  height: clamp(27rem, 50vw, 42rem);
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: radial-gradient(
      circle at 50% 48%,
      rgba(184, 255, 61, 0.08),
      transparent 55%
    ),
    #080a07;
  isolation: isolate;
  perspective: 1600px;
  perspective-origin: 50% 47%;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
}

.carousel-stage.is-dragging {
  cursor: grabbing;
}

.carousel-stage::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.36;
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 3rem 3rem;
  content: "";
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 76%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 76%);
}

.carousel-stage::after {
  position: absolute;
  right: 12%;
  bottom: 15%;
  left: 12%;
  z-index: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(184, 255, 61, 0.3),
    transparent
  );
  box-shadow: 0 1rem 4rem rgba(184, 255, 61, 0.1);
  content: "";
}

.carousel-track {
  position: absolute;
  inset: 0;
  z-index: 1;
  transform-style: preserve-3d;
}

.carousel-item {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  transform-style: preserve-3d;
  transform-origin: center;
  will-change: transform, opacity;
}

button.carousel-item {
  cursor: pointer;
}

.carousel-stage.is-dragging .carousel-item {
  cursor: grabbing;
}

.carousel-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0.9rem;
}

.carousel-item .device-3d {
  display: block;
  transform: none;
  transition: none;
}

.project-carousel .device-3d--iphone {
  width: clamp(7.5rem, 15vw, 12.5rem);
}

.project-carousel .device-3d--ipad {
  width: clamp(12rem, 25vw, 20rem);
}

.project-carousel .device-3d--tv {
  width: clamp(16rem, 35vw, 29rem);
}

.project-carousel .device-3d--laptop {
  width: clamp(18rem, 40vw, 32rem);
}

.carousel-item.is-active .device-screen {
  box-shadow: 0 0 2.6rem rgba(184, 255, 61, 0.17),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.carousel-item.is-active .device-3d {
  filter: drop-shadow(0 0 2rem rgba(184, 255, 61, 0.12));
}

.carousel-hud {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1.5rem;
}

.carousel-caption {
  display: grid;
  gap: 0.25rem;
}

.carousel-index {
  color: var(--accent);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
}

.carousel-name {
  position: relative;
  width: fit-content;
  font-size: clamp(2rem, 4vw, 4.2rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.carousel-name::after {
  position: absolute;
  right: 0;
  left: 0;
  top: 0;
  z-index: 2;
  height: max(1px, 0.035em);
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 0.8em var(--accent);
  content: "";
  opacity: 0;
  pointer-events: none;
}

.carousel-name.is-scanning::after {
  animation: carousel-name-scan 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.carousel-type {
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
}

.carousel-summary {
  display: -webkit-box;
  max-width: 32rem;
  margin-top: 0.4rem;
  overflow: hidden;
  color: #8b9185;
  font-size: 0.72rem;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.carousel-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem 1.1rem;
}

.carousel-nav {
  display: flex;
  gap: 0.5rem;
}

.carousel-arrow {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  color: var(--text-dim);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.carousel-arrow:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.carousel-arrow .icon {
  width: 0.95rem;
  height: 0.95rem;
}

.carousel-repo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line-soft);
  color: var(--text-dim);
  font-size: 0.55rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.carousel-repo:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.carousel-repo[hidden] {
  display: none;
}

.carousel-repo .icon {
  width: 0.78rem;
  height: 0.78rem;
}

.carousel-open {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.82rem 1.1rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--ink);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.carousel-open:hover {
  border-color: var(--accent-soft);
  background: var(--accent-soft);
}

.carousel-open[hidden] {
  display: none;
}

.carousel-open .icon {
  width: 0.85rem;
  height: 0.85rem;
}

.carousel-hint {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.53rem;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .carousel-hud {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.1rem;
  }

  .carousel-actions {
    width: 100%;
    justify-content: space-between;
  }

  .carousel-repo {
    order: 3;
  }

  .carousel-hint {
    text-align: left;
  }
}

.project-card-inner {
  display: flex;
  flex-direction: column;
}

.project-visual {
  position: relative;
  display: flex;
  aspect-ratio: 16 / 10;
  align-items: flex-end;
  overflow: hidden;
  padding: 1.1rem;
  border: 1px solid var(--line-soft);
  background: #0a0c08;
  isolation: isolate;
  transform: rotateX(var(--card-rx, 0deg)) rotateY(var(--card-ry, 0deg));
  transform-style: preserve-3d;
  transition: border-color 0.4s ease, transform 0.5s var(--ease-out);
}

.project-card--featured .project-visual {
  aspect-ratio: 16 / 7.8;
}

.project-card--wide .project-visual {
  aspect-ratio: 16 / 7.8;
}

.project-card:hover .project-visual {
  border-color: rgba(184, 255, 61, 0.4);
}

.project-card.is-tilting .project-visual {
  transition: border-color 0.4s ease, transform 0.16s ease-out;
}

.project-pointer-glow {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(
    circle at var(--spot-x, 50%) var(--spot-y, 50%),
    rgba(184, 255, 61, 0.2),
    transparent 42%
  );
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  transition: opacity 0.3s ease;
}

.project-card.is-tilting .project-pointer-glow {
  opacity: 1;
}

.project-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out), filter 0.4s ease;
}

.project-card:hover .project-media {
  transform: scale(1.025);
}

.project-visual--has-media::after {
  z-index: 2;
  opacity: 1;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 6, 5, 0.66));
  mask-image: none;
  -webkit-mask-image: none;
}

.project-visual--has-media .project-placeholder-chip {
  display: none;
}

.project-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.project-visual::before {
  position: absolute;
  inset: -15%;
  z-index: -2;
  background: radial-gradient(
    circle at 58% 42%,
    rgba(184, 255, 61, 0.15),
    transparent 47%
  );
  content: "";
  transition: transform 1s var(--ease-out);
}

.project-card:hover .project-visual::before {
  transform: scale(1.08);
}

.project-visual::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.28;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 2.6rem 2.6rem;
  content: "";
  mask-image: linear-gradient(180deg, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
}

.project-placeholder-chip {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.32rem 0.48rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 6, 5, 0.6);
  color: var(--muted);
  font-size: 0.52rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.project-placeholder-chip::before {
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.project-index {
  position: absolute;
  top: 0.6rem;
  right: 1rem;
  z-index: 5;
  color: rgba(255, 255, 255, 0.24);
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.08em;
}

.project-visual-name {
  position: relative;
  z-index: 4;
  color: var(--text);
  font-size: clamp(1.8rem, 3.1vw, 3.6rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.project-visual-name span {
  display: block;
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 0.45em;
  font-style: italic;
  letter-spacing: -0.01em;
}

.project-monogram {
  position: absolute;
  top: 50%;
  right: 7%;
  z-index: 3;
  color: transparent;
  font-size: clamp(4.5rem, 10vw, 11rem);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.08em;
  opacity: 0.45;
  pointer-events: none;
  transform: translateY(-50%);
  -webkit-text-stroke: 1px rgba(184, 255, 61, 0.55);
  transition: transform 0.8s var(--ease-out), opacity 0.5s ease;
}

.project-card:hover .project-monogram {
  opacity: 0.7;
  transform: translateY(-50%) translateX(-0.25rem);
}

.visual-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.visual-art span {
  position: absolute;
  display: block;
}

/* Water */
.project-visual--water .visual-art span:nth-child(1) {
  top: 50%;
  left: 62%;
  width: min(48%, 17rem);
  aspect-ratio: 1;
  border: 1px solid rgba(184, 255, 61, 0.32);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.project-visual--water .visual-art span:nth-child(2) {
  top: 50%;
  left: 62%;
  width: min(33%, 11.5rem);
  aspect-ratio: 1;
  border: 1px solid rgba(184, 255, 61, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 3rem rgba(184, 255, 61, 0.08) inset;
}

.project-visual--water .visual-art span:nth-child(3) {
  top: calc(50% - min(12%, 4.5rem));
  left: 62%;
  width: min(23%, 8rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 30%,
    rgba(216, 255, 159, 0.55),
    rgba(66, 94, 20, 0.14) 48%,
    transparent 70%
  );
  filter: blur(0.3rem);
  transform: translate(-50%, -50%);
}

.project-visual--water .visual-art span:nth-child(4) {
  top: 0;
  left: 62%;
  width: 1px;
  height: 100%;
  background: linear-gradient(transparent, rgba(184, 255, 61, 0.3), transparent);
}

/* Grid */
.project-visual--grid {
  background: #080b08;
}

.project-visual--grid::after {
  opacity: 0.5;
  background-size: 1.8rem 1.8rem;
  mask-image: none;
  -webkit-mask-image: none;
}

.project-visual--grid .visual-art span:nth-child(1) {
  top: 18%;
  right: 9%;
  width: 1px;
  height: 64%;
  background: rgba(184, 255, 61, 0.55);
}

.project-visual--grid .visual-art span:nth-child(2) {
  top: 18%;
  right: 9%;
  width: 42%;
  height: 1px;
  background: rgba(184, 255, 61, 0.55);
}

.project-visual--grid .visual-art span:nth-child(3) {
  top: 26%;
  right: 17%;
  width: 11rem;
  max-width: 38%;
  aspect-ratio: 1;
  border: 1px solid rgba(184, 255, 61, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 1.4rem rgba(184, 255, 61, 0.025),
    0 0 0 2.8rem rgba(184, 255, 61, 0.018);
}

.project-visual--grid .visual-art span:nth-child(4) {
  right: 22%;
  bottom: 22%;
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
}

/* Cards */
.project-visual--cards {
  background: #0a0b08;
}

.project-visual--cards .visual-art span {
  width: 36%;
  height: 52%;
  border: 1px solid rgba(184, 255, 61, 0.22);
  background: rgba(255, 255, 255, 0.015);
  transform: rotate(-9deg);
}

.project-visual--cards .visual-art span:nth-child(1) {
  top: 18%;
  right: 10%;
}

.project-visual--cards .visual-art span:nth-child(2) {
  top: 23%;
  right: 18%;
  border-color: rgba(184, 255, 61, 0.34);
  transform: rotate(-3deg);
}

.project-visual--cards .visual-art span:nth-child(3) {
  top: 28%;
  right: 26%;
  border-color: rgba(184, 255, 61, 0.5);
  background: rgba(184, 255, 61, 0.03);
  transform: rotate(4deg);
}

.project-visual--cards .visual-art span:nth-child(4) {
  top: 36%;
  right: 34%;
  width: 0.5rem;
  height: 0.5rem;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  transform: none;
}

/* Pixel */
.project-visual--pixel {
  background: #080908;
}

.project-visual--pixel .visual-art span {
  width: 0.85rem;
  height: 0.85rem;
  background: rgba(184, 255, 61, 0.18);
}

.project-visual--pixel .visual-art span:nth-child(1) {
  top: 23%;
  right: 17%;
}

.project-visual--pixel .visual-art span:nth-child(2) {
  top: 23%;
  right: 21.5%;
  background: var(--accent);
}

.project-visual--pixel .visual-art span:nth-child(3) {
  top: 27.5%;
  right: 21.5%;
}

.project-visual--pixel .visual-art span:nth-child(4) {
  top: 32%;
  right: 26%;
  width: 12%;
  height: 8%;
  background: rgba(184, 255, 61, 0.08);
}

.project-visual--pixel .visual-art span:nth-child(5) {
  top: 32%;
  right: 26%;
  width: 4%;
  height: 8%;
  background: var(--accent);
  opacity: 0.6;
}

/* Geo */
.project-visual--geo .visual-art span:nth-child(1) {
  top: 50%;
  right: 14%;
  width: 38%;
  aspect-ratio: 1;
  border: 1px solid rgba(184, 255, 61, 0.28);
  border-radius: 50%;
  transform: translateY(-50%);
}

.project-visual--geo .visual-art span:nth-child(2) {
  top: 50%;
  right: 21%;
  width: 24%;
  aspect-ratio: 1;
  border: 1px dashed rgba(184, 255, 61, 0.36);
  border-radius: 50%;
  transform: translateY(-50%);
}

.project-visual--geo .visual-art span:nth-child(3) {
  top: 50%;
  right: 31.5%;
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: rgba(5, 6, 5, 0.8);
  transform: translateY(-50%);
}

.project-visual--geo .visual-art span:nth-child(4) {
  top: 50%;
  right: 12%;
  width: 42%;
  height: 1px;
  background: rgba(184, 255, 61, 0.14);
}

.project-visual--geo .visual-art span:nth-child(5) {
  top: 22%;
  right: 32%;
  width: 1px;
  height: 56%;
  background: rgba(184, 255, 61, 0.14);
}

.project-info {
  padding-top: 1.1rem;
}

.project-title-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.project-title-line h3 {
  font-size: clamp(1.4rem, 2.2vw, 2.15rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.045em;
  transition: color 0.25s ease;
}

.project-card:hover .project-title-line h3 {
  color: var(--accent);
}

.project-type {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-summary {
  max-width: 38rem;
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.65;
}

.project-summary.is-placeholder {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: #737a6e;
}

.project-summary.is-placeholder::before {
  flex: 0 0 auto;
  width: 0.3rem;
  height: 0.3rem;
  margin-top: 0.42rem;
  border: 1px solid var(--accent);
  border-radius: 50%;
  content: "";
  opacity: 0.6;
}

.project-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line-soft);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
}

.tech-chip {
  padding: 0.24rem 0.44rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 0.58rem;
  letter-spacing: 0.03em;
}

.tech-pending {
  color: #8b9185;
  font-size: 0.55rem;
  letter-spacing: 0.03em;
}

.project-pending-label {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  color: #8b9185;
  font-size: 0.55rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.project-pending-label::before {
  width: 0.24rem;
  height: 0.24rem;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 500;
}

.project-link .icon {
  width: 0.7rem;
  height: 0.7rem;
}

.work-note {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  max-width: 56rem;
  margin-top: 4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-soft);
  color: #8b9185;
  font-size: 0.7rem;
  line-height: 1.6;
}

.note-mark {
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1;
}

.work-note p {
  flex: 1;
}

.work-note .text-link {
  flex: 0 0 auto;
  color: var(--text-dim);
}

.text-link {
  display: inline-flex;
  padding: 0;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.text-link .icon {
  width: 0.8rem;
  height: 0.8rem;
  transition: transform 0.25s var(--ease-out);
}

.text-link:hover {
  color: var(--accent);
}

.text-link:hover .icon {
  transform: translate(2px, -2px);
}

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

.section {
  position: relative;
  padding: var(--section-y) 0;
}

.section--paper {
  background: var(--paper);
  color: var(--ink);
}

.section--paper::before {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: linear-gradient(rgba(9, 10, 8, 0.04) 1px, transparent 1px);
  background-size: 100% 5rem;
  content: "";
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent,
    #000 20%,
    #000 80%,
    transparent
  );
}

.about {
  overflow: hidden;
}

.about-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.86fr);
  gap: clamp(3rem, 8vw, 9rem);
}

.about-head {
  align-self: start;
}

.about-head .section-title {
  margin-top: 1.3rem;
  font-size: clamp(3.2rem, 7.6vw, 7.8rem);
}

.about-pull {
  max-width: 23rem;
  margin-top: clamp(2.5rem, 6vw, 5rem);
  padding-left: 1.2rem;
  border-left: 1px solid var(--accent-ink);
  color: var(--accent-ink);
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.3vw, 2.1rem);
  font-style: italic;
  line-height: 1.15;
}

.about-body {
  padding-top: clamp(2rem, 4vw, 4rem);
}

.about-body > p {
  max-width: 35rem;
  color: #4f534a;
  font-size: 0.88rem;
  line-height: 1.8;
}

.about-body > p + p {
  margin-top: 1.2rem;
}

.about-body .about-lead {
  color: #22251f;
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
  line-height: 1.6;
  letter-spacing: -0.015em;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 3rem;
  border-top: 1px solid var(--line-dark);
}

.about-stat {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line-dark);
}

.about-stat:nth-child(odd) {
  padding-right: 1.5rem;
}

.about-stat:nth-child(even) {
  padding-left: 1.5rem;
  border-left: 1px solid var(--line-dark);
}

.about-stat dt {
  color: #5d6257;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-stat dd {
  margin-top: 0.35rem;
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
}

.about-stat dd.is-location {
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  letter-spacing: -0.02em;
}

.text-link--dark {
  margin-top: 2rem;
  color: var(--ink);
}

.text-link--dark:hover {
  color: var(--accent-ink);
}

/* --------------------------------------------------------------------------
   Experience
   -------------------------------------------------------------------------- */

.experience {
  overflow: hidden;
  background: var(--bg);
}

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

.experience-item {
  display: grid;
  grid-template-columns: minmax(12rem, 0.8fr) minmax(0, 2.2fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(2.2rem, 5vw, 4.2rem) 0;
  border-bottom: 1px solid var(--line);
}

.experience-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.experience-program {
  color: var(--accent);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.experience-company {
  margin-top: 0.7rem;
  font-size: clamp(1.2rem, 1.8vw, 1.65rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.experience-location {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.62rem;
}

.experience-period {
  margin-top: 1.3rem;
  color: var(--text-dim);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.experience-body {
  min-width: 0;
}

.experience-role {
  color: var(--text);
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.experience-highlights {
  margin-top: 1.2rem;
  border-top: 1px solid var(--line-soft);
}

.experience-highlights li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-dim);
  font-size: 0.8rem;
  line-height: 1.65;
}

.highlight-index {
  color: var(--accent);
  font-size: 0.52rem;
  line-height: 2.3;
  letter-spacing: 0.04em;
}

.experience-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.experience-stack .tech-chip {
  font-size: 0.58rem;
}

.education-skills {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(3rem, 8vw, 8rem);
  margin-top: clamp(5rem, 10vw, 9rem);
}

.subhead {
  padding-bottom: 1.5rem;
}

.subhead-title {
  margin-top: 0.8rem;
  font-size: clamp(2rem, 3.7vw, 3.6rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.subhead-title span,
.subhead-title em {
  display: block;
}

.subhead-title em {
  color: var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.subhead-intro {
  max-width: 22rem;
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.65;
}

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

.education-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.education-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.education-school {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.education-score {
  flex: 0 0 auto;
  text-align: right;
}

.education-score strong {
  display: block;
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.education-score span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.education-degree {
  margin-top: 0.35rem;
  color: var(--text-dim);
  font-size: 0.72rem;
}

.education-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.skill-card {
  display: flex;
  min-height: 12rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.15rem;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.skill-card:hover {
  border-color: rgba(184, 255, 61, 0.32);
  background: rgba(184, 255, 61, 0.035);
}

.skill-card-label {
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem 0.5rem;
  margin-top: 1.4rem;
}

.skill-list li {
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.55;
}

.skill-list li:not(:last-child)::after {
  margin-left: 0.5rem;
  color: #4a5046;
  content: "/";
}

/* --------------------------------------------------------------------------
   Credentials
   -------------------------------------------------------------------------- */

.credentials {
  overflow: hidden;
}

.credentials-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.credential-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line-dark);
}

.credential-count {
  color: #5d6257;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}

.certification-list,
.training-list {
  border-bottom: 1px solid var(--line-dark);
}

.certification-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line-dark);
}

.certification-item:last-child,
.training-item:last-child {
  border-bottom: 0;
}

.certification-name {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.certification-issuer {
  margin-top: 0.3rem;
  color: #555a50;
  font-size: 0.65rem;
}

.certification-date {
  align-self: flex-start;
  padding: 0.28rem 0.45rem;
  border: 1px solid rgba(9, 10, 8, 0.26);
  border-radius: 999px;
  color: #555a50;
  font-size: 0.55rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.certification-side {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 0.45rem;
}

.doc-view {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.3rem 0.52rem;
  border: 1px solid rgba(9, 10, 8, 0.24);
  border-radius: 999px;
  color: #3e4d24;
  font-size: 0.55rem;
  font-weight: 500;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.doc-view .icon {
  width: 0.75rem;
  height: 0.75rem;
}

.doc-view:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--accent);
}

.date-note {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 1.2rem;
  color: #555a50;
  font-size: 0.64rem;
  line-height: 1.65;
}

.date-note .icon {
  width: 0.8rem;
  height: 0.8rem;
  margin-top: 0.1rem;
  color: var(--accent-ink);
}

.training-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line-dark);
}

.training-name {
  max-width: 26rem;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.training-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.45rem;
}

.training-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0;
  color: #555a50;
  font-size: 0.62rem;
}

.training-meta span + span::before {
  margin-right: 0.55rem;
  content: "·";
}

.cv-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(3.5rem, 8vw, 7rem);
  padding: clamp(1.4rem, 3vw, 2.5rem);
  background: var(--ink);
  color: var(--text);
}

.cv-card-head {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.cv-file-icon {
  display: grid;
  width: 3.6rem;
  height: 4.5rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(184, 255, 61, 0.4);
  background: rgba(184, 255, 61, 0.04);
}

.cv-file-icon span {
  color: var(--accent);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
}

.cv-card .eyebrow {
  color: var(--accent);
}

.cv-description {
  max-width: 20rem;
  margin-top: 0.45rem;
  color: var(--text-dim);
  font-size: 0.7rem;
  line-height: 1.55;
}

.cv-card-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cv-meta {
  color: var(--muted);
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cv-card .button--dark {
  background: var(--accent);
  color: var(--ink);
}

.cv-card .button--dark:hover {
  background: var(--accent-soft);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact {
  overflow: hidden;
  padding: var(--section-y) 0 calc(var(--section-y) * 0.75);
  background: var(--accent);
  color: var(--ink);
}

.contact-glow {
  position: absolute;
  top: -35%;
  right: -12%;
  width: 55rem;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(9, 10, 8, 0.12);
  box-shadow: 0 0 0 6rem rgba(9, 10, 8, 0.025),
    0 0 0 12rem rgba(9, 10, 8, 0.018);
  pointer-events: none;
}

.contact-container {
  position: relative;
}

.contact-head {
  max-width: 60rem;
}

.contact .eyebrow {
  color: var(--ink);
}

.contact-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.12em;
  margin-top: 1rem;
  font-size: clamp(4.6rem, 12vw, 12rem);
  font-weight: 500;
  line-height: 0.78;
  letter-spacing: -0.085em;
}

.contact-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.contact-body {
  max-width: 27rem;
  margin-top: 1.6rem;
  color: rgba(9, 10, 8, 0.7);
  font-size: 0.82rem;
  line-height: 1.7;
}

.contact-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.42rem 0.68rem;
  border: 1px solid rgba(9, 10, 8, 0.25);
  border-radius: 999px;
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.contact-status .status-dot {
  background: var(--ink);
  box-shadow: none;
}

.contact-status .status-dot::after {
  border-color: rgba(9, 10, 8, 0.45);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.9fr);
  gap: clamp(3rem, 9vw, 9rem);
  margin-top: clamp(3rem, 7vw, 6rem);
  padding-top: 1.3rem;
  border-top: 1px solid rgba(9, 10, 8, 0.28);
}

.contact-primary {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.contact-primary .eyebrow {
  font-size: 0.55rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  margin-top: 0.9rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid rgba(9, 10, 8, 0.4);
  font-size: clamp(1.05rem, 2.2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
  transition: border-color 0.25s ease, gap 0.3s var(--ease-out);
}

.contact-email:hover {
  gap: 0.7rem;
  border-color: var(--ink);
}

.contact-email .icon {
  width: 1rem;
  height: 1rem;
}

.contact-wa {
  margin-top: 1.4rem;
}

.contact-wa .icon {
  width: 1rem;
  height: 1rem;
}

.contact-details {
  border-top: 1px solid rgba(9, 10, 8, 0.28);
}

.contact-row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(9, 10, 8, 0.22);
}

.contact-row-label {
  color: rgba(9, 10, 8, 0.68);
  font-size: 0.5rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.contact-row a,
.contact-row-value {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  justify-content: flex-start;
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.4;
}

.contact-row a {
  transition: gap 0.25s ease;
}

.contact-row a:hover {
  gap: 0.55rem;
}

.contact-row .icon {
  width: 0.65rem;
  height: 0.65rem;
}

/* --------------------------------------------------------------------------
   CV preview modal
   -------------------------------------------------------------------------- */

.doc-modal {
  width: min(94vw, 58rem);
  height: min(92svh, 68rem);
  max-width: 58rem;
  max-height: 92svh;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.5rem;
  background: #0b0d09;
  color: var(--text);
  box-shadow: 0 3rem 8rem rgba(0, 0, 0, 0.65);
}

.doc-modal[open] {
  display: flex;
  animation: doc-modal-in 0.35s var(--ease-out);
}

.doc-modal--single {
  height: fit-content;
}

.doc-modal--single .doc-modal-shell {
  height: auto;
}

.doc-modal--single .doc-modal-body {
  flex: 0 1 auto;
  max-height: calc(92svh - 9.5rem);
}

.doc-page:only-child {
  margin-block: auto;
}

.doc-modal--gallery .doc-modal-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  align-content: start;
  align-items: start;
}

.doc-modal--gallery .doc-page {
  max-width: none;
  margin: 0;
}

.doc-modal::backdrop {
  background: rgba(2, 3, 2, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

@keyframes doc-modal-in {
  from {
    opacity: 0;
    transform: translateY(1.25rem) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.doc-modal-shell {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex-direction: column;
}

.doc-modal-header {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--line);
  background: #080a07;
}

.doc-modal-title {
  margin-top: 0.45rem;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}

.doc-modal-meta {
  display: inline-block;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
}

.doc-modal-close {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-dim);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.doc-modal-close:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.doc-modal-close .icon {
  width: 0.95rem;
  height: 0.95rem;
  stroke-width: 1.8;
}

.doc-modal-body {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  padding: 1.2rem;
  background: #181a15;
  overscroll-behavior: contain;
  scrollbar-color: #4f5748 #181a15;
}

.doc-modal-body:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.doc-page {
  width: 100%;
  max-width: 50rem;
  margin-inline: auto;
  background: #fff;
  box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.28);
}

.doc-page img {
  display: block;
  width: 100%;
  height: auto;
}

.doc-page figcaption {
  padding: 0.45rem 0.7rem;
  background: #0e100c;
  color: var(--muted);
  font-size: 0.52rem;
  letter-spacing: 0.1em;
}

/* Project screenshots live inside adaptive device frames. */
.doc-modal--gallery .doc-page {
  max-width: none;
  margin: 0;
}

.doc-modal--gallery .doc-page--device {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.6rem 0 0.35rem;
  background: transparent;
  box-shadow: none;
  perspective: 1000px;
}

.doc-page--device figcaption {
  width: 100%;
  padding: 0.15rem 0;
  background: transparent;
  text-align: center;
}

.device-frame {
  position: relative;
  display: block;
  width: 100%;
  max-width: 16rem;
  aspect-ratio: 9 / 19.5;
  margin-inline: auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 2rem;
  background: linear-gradient(145deg, #20231d, #060705 55%, #141711);
  box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(184, 255, 61, 0.05) inset;
  transition: transform 0.35s var(--ease-out), border-color 0.3s ease;
}

.device-frame:hover {
  border-color: rgba(184, 255, 61, 0.45);
  transform: translateY(-0.25rem) rotateX(1deg);
}

.device-frame::before {
  position: absolute;
  top: 0.18rem;
  left: 50%;
  z-index: 3;
  width: 30%;
  height: 0.62rem;
  border-radius: 999px;
  background: #050605;
  content: "";
  transform: translateX(-50%);
}

.device-frame img {
  position: absolute;
  inset: 0.55rem;
  z-index: 1;
  display: block;
  width: calc(100% - 1.1rem);
  height: calc(100% - 1.1rem);
  border-radius: 1.5rem;
  background: #000;
  object-fit: contain;
}

.device-frame--phone-landscape {
  max-width: 26rem;
  aspect-ratio: 19.5 / 9;
  border-radius: 1.8rem;
}

.device-frame--phone-landscape::before {
  width: 18%;
  height: 0.52rem;
}

.device-frame--phone-landscape img {
  border-radius: 1.3rem;
}

.device-frame--tablet {
  max-width: 30rem;
  aspect-ratio: 4 / 3;
  border-radius: 1.15rem;
}

.device-frame--tablet-portrait {
  max-width: 25rem;
  aspect-ratio: 3 / 4;
  border-radius: 1.15rem;
}

.device-frame--tablet::before,
.device-frame--tablet-portrait::before {
  top: 0.2rem;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
}

.device-frame--tablet img,
.device-frame--tablet-portrait img {
  inset: 0.7rem;
  width: calc(100% - 1.4rem);
  height: calc(100% - 1.4rem);
  border-radius: 0.7rem;
}

.device-frame--laptop {
  max-width: 34rem;
  aspect-ratio: 16 / 10;
  margin-bottom: 0.9rem;
  border-radius: 0.6rem;
}

.device-frame--laptop::before {
  top: 0.2rem;
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 50%;
}

.device-frame--laptop::after {
  position: absolute;
  bottom: -0.8rem;
  left: 50%;
  z-index: 0;
  width: 112%;
  height: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0 0 0.9rem 0.9rem;
  background: linear-gradient(180deg, #2b2f28, #0b0d0a);
  content: "";
  transform: translateX(-50%);
}

.device-frame--laptop img {
  inset: 0.55rem;
  width: calc(100% - 1.1rem);
  height: calc(100% - 1.1rem);
  border-radius: 0.35rem;
  object-fit: contain;
}

@media (min-width: 760px) {
  .doc-modal--gallery .doc-page[data-frame="tablet"],
  .doc-modal--gallery .doc-page[data-frame="tablet-portrait"],
  .doc-modal--gallery .doc-page[data-frame="laptop"] {
    grid-column: span 2;
  }
}

.device-preview {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}

.device-preview:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0.4rem;
}

.device-zoom {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 4;
  display: grid;
  width: 1.9rem;
  height: 1.9rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(5, 6, 5, 0.72);
  color: var(--accent);
  opacity: 0.72;
  pointer-events: none;
  transition: opacity 0.25s ease, border-color 0.25s ease;
}

.device-zoom .icon {
  width: 0.78rem;
  height: 0.78rem;
}

.device-preview:hover .device-zoom,
.device-preview:focus-visible .device-zoom {
  border-color: rgba(184, 255, 61, 0.55);
  opacity: 1;
}

.image-lightbox {
  width: min(94vw, 84rem);
  height: auto;
  max-height: 92svh;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.45rem;
  background: #0a0c08;
  color: var(--text);
  box-shadow: 0 3rem 8rem rgba(0, 0, 0, 0.7);
}

.image-lightbox[open] {
  display: flex;
}

.image-lightbox::backdrop {
  background: rgba(2, 3, 2, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.image-lightbox-inner {
  display: flex;
  width: 100%;
  max-height: 92svh;
  min-height: 0;
  flex-direction: column;
}

.image-lightbox-head {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: #080a07;
}

.image-lightbox-head .eyebrow {
  color: var(--accent);
}

.image-lightbox-close {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-dim);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.image-lightbox-close:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.image-lightbox-close .icon {
  width: 0.95rem;
  height: 0.95rem;
  stroke-width: 1.8;
}

.image-lightbox-inner > img {
  display: block;
  width: 100%;
  max-height: calc(92svh - 4.5rem);
  min-height: 0;
  flex: 1;
  object-fit: contain;
  margin: auto;
  background: #000;
}

@media (max-width: 600px) {
  .image-lightbox {
    width: 100%;
    height: 100svh;
    max-width: none;
    max-height: 100svh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .image-lightbox-inner {
    height: 100%;
    max-height: 100svh;
  }

  .image-lightbox-inner > img {
    max-height: none;
    object-fit: contain;
  }
}

.doc-modal--ipad .doc-modal-body {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.doc-modal--ipad .doc-page[data-frame="tablet-portrait"] {
  grid-column: span 1;
}

@media (max-width: 600px) {
  .doc-modal--ipad .doc-modal-body {
    grid-template-columns: 1fr;
  }
}

.doc-modal-footer[hidden] {
  display: none;
}

.doc-modal-footer {
  flex: 0 0 auto;
  padding: 0.9rem 1.4rem;
  border-top: 1px solid var(--line);
  background: #080a07;
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.55;
}

@media (max-width: 600px) {
  .doc-modal {
    width: 100%;
    height: 100svh;
    max-width: none;
    max-height: 100svh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .doc-modal-header {
    padding: 1rem 1rem 0.9rem;
  }

  .doc-modal-body {
    padding: 0.7rem;
  }

  .doc-modal-footer {
    padding: 0.8rem 1rem;
    font-size: 0.6rem;
  }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: 2.8rem 0 1.7rem;
  background: var(--bg);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  width: max-content;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-stom {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
}

.footer-name {
  color: var(--muted);
  font-size: 0.5rem;
  letter-spacing: 0.04em;
}

.footer-middle {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.58rem;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.footer-links a {
  color: var(--text-dim);
  font-size: 0.55rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-end {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.5rem;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-dim);
  font-size: 0.6rem;
  transition: color 0.2s ease;
}

.back-to-top:hover {
  color: var(--accent);
}

.back-to-top .icon {
  width: 0.72rem;
  height: 0.72rem;
}

.noscript {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 500;
  padding: 1rem;
  border: 1px solid var(--accent);
  background: #0e100c;
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.6;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Reveal
   -------------------------------------------------------------------------- */

.eyebrow-number {
  position: relative;
  display: inline-block;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.section--paper .eyebrow-number {
  color: var(--accent-ink);
}

.contact .eyebrow-number {
  color: var(--ink);
}

.eyebrow-sep {
  opacity: 0.5;
}

.eyebrow-label {
  display: inline-block;
}

.section-title > span,
.section-title > em,
.contact-title > span,
.contact-title > em {
  position: relative;
  --glitch-a: rgba(184, 255, 61, 0.34);
  --glitch-b: rgba(105, 175, 255, 0.24);
}

.section--paper .section-title > span,
.section--paper .section-title > em {
  --glitch-a: rgba(25, 66, 17, 0.3);
  --glitch-b: rgba(92, 124, 75, 0.22);
}

.contact-title > span,
.contact-title > em {
  --glitch-a: rgba(9, 10, 8, 0.32);
  --glitch-b: rgba(255, 255, 255, 0.3);
}

.eyebrow-number::after,
.section-title > span::after,
.section-title > em::after,
.contact-title > span::after,
.contact-title > em::after {
  position: absolute;
  right: -0.04em;
  left: -0.04em;
  top: 0;
  z-index: 2;
  height: max(1px, 0.04em);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, currentColor 18%, currentColor 82%, transparent);
  box-shadow: 0 0 0.9em currentColor;
  content: "";
  opacity: 0;
  pointer-events: none;
}

body.text-anim-ready .eyebrow-number,
body.text-anim-ready .eyebrow-sep,
body.text-anim-ready .eyebrow-label {
  opacity: 0;
  transform: translateY(0.55em);
}

body.text-anim-ready .section-title > span,
body.text-anim-ready .section-title > em,
body.text-anim-ready .contact-title > span,
body.text-anim-ready .contact-title > em,
body.text-anim-ready .contact-body,
body.text-anim-ready .contact-status {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(0.82em);
}

body.text-anim-ready .is-visible .eyebrow-number {
  animation: section-number-in 0.85s var(--ease-out) both;
  animation-delay: 0.08s;
}

body.text-anim-ready .is-visible .eyebrow-sep {
  animation: section-copy-in 0.8s var(--ease-out) both;
  animation-delay: 0.16s;
}

body.text-anim-ready .is-visible .eyebrow-label {
  animation: section-copy-in 0.85s var(--ease-out) both;
  animation-delay: 0.22s;
}

body.text-anim-ready .section-head.is-visible .section-title > span,
body.text-anim-ready .section-title.reveal.is-visible > span,
body.text-anim-ready .contact-head.is-visible .contact-title > span {
  animation:
    section-line-in 0.95s var(--ease-out) 0.14s both,
    section-glitch 0.9s steps(2, end) 0.14s;
}

body.text-anim-ready .section-head.is-visible .section-title > em,
body.text-anim-ready .section-title.reveal.is-visible > em,
body.text-anim-ready .contact-head.is-visible .contact-title > em {
  animation:
    section-line-in 1s var(--ease-out) 0.28s both,
    section-glitch 0.9s steps(2, end) 0.28s;
}

body.text-anim-ready .section-head.is-visible .section-title > span::after,
body.text-anim-ready .section-title.reveal.is-visible > span::after,
body.text-anim-ready .contact-head.is-visible .contact-title > span::after {
  animation: section-scan 1.25s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

body.text-anim-ready .section-head.is-visible .section-title > em::after,
body.text-anim-ready .section-title.reveal.is-visible > em::after,
body.text-anim-ready .contact-head.is-visible .contact-title > em::after {
  animation: section-scan 1.25s cubic-bezier(0.22, 1, 0.36, 1) 0.46s both;
}

body.text-anim-ready .is-visible .eyebrow-number::after {
  animation: number-scan 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
}

body.text-anim-ready .contact-head.is-visible .contact-body {
  filter: blur(0);
  animation: section-copy-in 0.8s var(--ease-out) both;
  animation-delay: 0.42s;
}

body.text-anim-ready .contact-head.is-visible .contact-status {
  filter: blur(0);
  animation: section-copy-in 0.8s var(--ease-out) both;
  animation-delay: 0.54s;
}

@keyframes section-number-in {
  0% {
    opacity: 0;
    letter-spacing: 0.3em;
    transform: translateY(-0.85em) scale(0.7);
  }
  65% {
    opacity: 1;
    transform: translateY(0.06em) scale(1.04);
  }
  100% {
    opacity: 1;
    letter-spacing: 0.06em;
    transform: translateY(0) scale(1);
  }
}

@keyframes section-copy-in {
  from {
    opacity: 0;
    transform: translateY(0.58em);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes section-line-in {
  from {
    opacity: 0;
    filter: blur(7px);
    transform: translateY(0.85em);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes section-glitch {
  0%,
  54%,
  100% {
    text-shadow: none;
  }
  12% {
    text-shadow: -0.035em 0 var(--glitch-a), 0.035em 0 var(--glitch-b);
  }
  24% {
    text-shadow: 0.035em 0 var(--glitch-a), -0.035em 0 var(--glitch-b);
  }
  36% {
    text-shadow: -0.02em 0 var(--glitch-b), 0.02em 0 var(--glitch-a);
  }
}

@keyframes carousel-name-scan {
  0% {
    top: 0;
    opacity: 0;
    transform: scaleX(0.15);
  }
  18% {
    opacity: 0.95;
    transform: scaleX(1);
  }
  100% {
    top: 100%;
    opacity: 0;
    transform: scaleX(1);
  }
}

@keyframes section-scan {
  0% {
    top: 0;
    opacity: 0;
    transform: scaleX(0.2);
  }
  12% {
    opacity: 0.9;
    transform: scaleX(1);
  }
  72% {
    opacity: 0.55;
  }
  100% {
    top: 100%;
    opacity: 0;
    transform: scaleX(1);
  }
}

@keyframes number-scan {
  0% {
    top: 0;
    opacity: 0;
    transform: scaleX(0.15);
  }
  18% {
    opacity: 0.95;
    transform: scaleX(1);
  }
  100% {
    top: 100%;
    opacity: 0;
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.text-anim-ready .eyebrow-number,
  body.text-anim-ready .eyebrow-sep,
  body.text-anim-ready .eyebrow-label,
  body.text-anim-ready .section-title > span,
  body.text-anim-ready .section-title > em,
  body.text-anim-ready .contact-title > span,
  body.text-anim-ready .contact-title > em,
  body.text-anim-ready .contact-body,
  body.text-anim-ready .contact-status {
    opacity: 1;
    filter: none;
    transform: none;
    animation: none;
  }

  .eyebrow-number::after,
  .section-title > span::after,
  .section-title > em::after,
  .contact-title > span::after,
  .contact-title > em::after,
  .carousel-name::after {
    display: none;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(1.6rem);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 1rem;
  }

  .nav-index {
    display: none;
  }

  .hero-container {
    grid-template-columns: minmax(0, 1.25fr) minmax(17rem, 0.75fr);
  }

  .portrait-stage {
    width: min(31vw, 23rem);
  }

  .floating-card--top {
    left: -2rem;
  }

  .floating-card--bottom {
    right: -1rem;
  }
}

@media (max-width: 1020px) {
  .project-device-stage {
    aspect-ratio: 1 / 1;
  }

  .device-3d--iphone {
    width: min(34%, 11rem);
  }

  :root {
    --header-h: 4.75rem;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 3.5rem);
    padding-bottom: 3rem;
  }

  .hero-container {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .hero-copy {
    display: contents;
  }

  .hero-kicker {
    order: 1;
    max-width: none;
  }

  .hero-role-label {
    order: 2;
  }

  .hero-title {
    order: 3;
    font-size: clamp(3.4rem, 9.4vw, 5.6rem);
  }

  .hero-intro {
    order: 5;
    max-width: 48rem;
  }

  .hero-actions {
    order: 6;
  }

  .hero-bottom {
    order: 7;
  }

  .hero-visual {
    order: 4;
    justify-content: flex-end;
    margin: 1.6rem 0 2rem;
    padding-right: clamp(0rem, 4vw, 3rem);
  }

  .portrait-stage {
    width: min(50vw, 21rem);
  }

  .hero-stamp {
    right: 3%;
    bottom: -6%;
    font-size: 22vw;
    opacity: 0.35;
    transform: none;
  }

  .portal {
    height: 145vh;
  }

  .section-head {
    grid-template-columns: minmax(0, 1.2fr) minmax(15rem, 0.8fr);
    gap: 2rem;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.9fr);
    gap: 3.5rem;
  }

  .experience-item {
    grid-template-columns: minmax(11rem, 0.75fr) minmax(0, 1.6fr);
    gap: 2.5rem;
  }

  .education-skills {
    grid-template-columns: 1fr;
    gap: 4.5rem;
  }

  .credentials-grid {
    gap: 3rem;
  }

  .contact-panel {
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.9fr);
    gap: 3rem;
  }

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

  .footer-end {
    grid-column: span 2;
    align-items: flex-start;
    flex-direction: row;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--line-soft);
  }
}

@media (max-width: 760px) {
  .section-head,
  .about-grid,
  .credentials-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .section-head {
    gap: 1.8rem;
  }

  .section-head-aside {
    padding-bottom: 0;
  }

  .section-title {
    font-size: clamp(2.8rem, 12vw, 5.2rem);
  }

  .project-list {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .project-card,
  .project-card--featured,
  .project-card--wide {
    grid-column: 1;
  }

  .project-card--featured .project-visual,
  .project-card--wide .project-visual {
    aspect-ratio: 16 / 10;
  }

  .work-note {
    flex-wrap: wrap;
  }

  .work-note p {
    flex-basis: calc(100% - 1.3rem);
  }

  .work-note .text-link {
    margin-left: 1.3rem;
  }

  .about-grid {
    gap: 2rem;
  }

  .about-body {
    padding-top: 0;
  }

  .about-head .section-title {
    font-size: clamp(3rem, 13vw, 5.5rem);
  }

  .about-pull {
    margin-top: 2rem;
  }

  .experience-item {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .experience-meta {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 0.4rem 1rem;
  }

  .experience-program {
    grid-column: span 2;
  }

  .experience-company {
    margin-top: 0.2rem;
  }

  .experience-location {
    grid-column: 1;
  }

  .experience-period {
    grid-column: 2;
    grid-row: 2 / span 2;
    margin-top: 0;
    text-align: right;
  }

  .experience-highlights li {
    grid-template-columns: 1.2rem 1fr;
    gap: 0.7rem;
  }

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

  .skill-card {
    min-height: auto;
  }

  .cv-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.5rem;
  }

  .cv-card-actions {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .contact-row {
    grid-template-columns: 6rem 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-end {
    grid-column: auto;
    align-items: flex-start;
    flex-direction: column;
  }

  .portal {
    height: 135vh;
  }

  .portal-frame--2,
  .portal-frame--3 {
    width: 100vw;
  }

  .portal-title {
    font-size: clamp(4rem, 17vw, 7rem);
  }

  .portal-cue {
    bottom: 1.5rem;
  }

  .project-title-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .mobile-menu-bottom {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}

@media (max-width: 760px) {
  .page-grain {
    display: none;
  }
}

@media (max-height: 600px) and (orientation: landscape) {
  .entry-wordmark {
    margin-top: 0.35rem;
    font-size: clamp(4rem, 22vh, 9rem);
  }

  .entry-name {
    margin-top: 0.75rem;
  }

  .entry-role {
    display: none;
  }

  .entry-bottom {
    bottom: 1rem;
  }
}

@media (max-width: 540px) {
  .entry-wordmark {
    font-size: clamp(5rem, 29vw, 8.5rem);
    letter-spacing: -0.11em;
  }

  .entry-name {
    margin-top: 1.3rem;
  }

  .entry-bottom {
    bottom: 1.5rem;
    width: calc(100% - (var(--gutter) * 2));
  }

  .music-toggle {
    width: 2.15rem;
    height: 2.15rem;
  }

  :root {
    --gutter: 1.2rem;
    --section-y: 5.5rem;
  }

  .brand-role {
    display: none;
  }

  .header-contact {
    display: none;
  }

  .header-inner {
    gap: 0.6rem;
  }

  .menu-toggle {
    padding-left: 0.55rem;
  }

  .menu-toggle-label {
    display: none;
  }

  .hero {
    padding-top: calc(var(--header-h) + 2.4rem);
  }

  .hero-kicker {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .hero-index {
    order: -1;
  }

  .hero-role-label {
    margin-top: 2.3rem;
  }

  .hero-title {
    font-size: clamp(2.65rem, 13.3vw, 4.6rem);
    line-height: 0.82;
    margin-bottom: 1.35rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .button {
    padding-inline: 1rem;
  }

  .hero-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 2.2rem;
  }

  .hero-visual {
    justify-content: center;
    margin-top: 1.4rem;
    margin-bottom: 1.8rem;
    padding-right: 0;
  }

  .portrait-stage {
    width: min(78vw, 19rem);
  }

  .floating-card {
    display: none;
  }

  .hero-stamp {
    display: none;
  }

  .ticker-track {
    padding: 0.62rem 0;
  }

  .ticker-item {
    gap: 1rem;
    padding-right: 1rem;
    font-size: 0.58rem;
  }

  .portal {
    height: 125vh;
  }

  .portal-title {
    flex-direction: column;
    gap: 0.04em;
    align-items: center;
    font-size: clamp(3.8rem, 18vw, 6rem);
  }

  .portal-sub {
    max-width: 17rem;
    font-size: 0.68rem;
  }

  .portal-progress {
    margin-top: 1.4rem;
  }

  .portal-progress-track {
    width: 5rem;
  }

  .portal-cue {
    font-size: 0.52rem;
  }

  .work-body {
    padding-top: 2rem;
  }

  .device-3d--iphone {
    width: min(34%, 11rem);
  }

  .project-index {
    font-size: 3rem;
  }

  .project-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
  }

  .about-stats {
    margin-top: 2.2rem;
  }

  .about-stat:nth-child(odd) {
    padding-right: 0.8rem;
  }

  .about-stat:nth-child(even) {
    padding-left: 0.8rem;
  }

  .contact-title {
    font-size: clamp(3.8rem, 17.5vw, 6rem);
    line-height: 0.82;
  }

  .contact-email {
    font-size: 1rem;
  }

  .contact-row {
    grid-template-columns: 5rem 1fr;
    gap: 0.5rem;
  }

  .contact-row a,
  .contact-row-value {
    overflow-wrap: anywhere;
  }

  .cv-card-head {
    align-items: flex-start;
    gap: 0.9rem;
  }

  .cv-file-icon {
    width: 2.9rem;
    height: 3.7rem;
  }

  .certification-item {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .certification-side {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .training-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .mobile-nav a {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }

  .mobile-menu-inner {
    padding-top: calc(var(--header-h) + 1.5rem);
  }
}

@media (max-width: 380px) {
  .hero-actions {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .status-pill {
    font-size: 0.55rem;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

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

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

  .pointer-layer {
    display: none;
  }

  .project-card {
    transform: none;
  }

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

  .enter-1,
  .enter-2,
  .enter-3,
  .enter-4,
  .enter-5,
  .enter-portrait {
    opacity: 1;
    transform: none;
  }

  .hero-line > span,
  body:not(.is-ready) .portrait-card {
    opacity: 1;
    transform: none;
  }

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

  .ticker-track {
    animation: none;
    transform: none;
  }

  .scroll-line::after,
  .status-dot::after,
  .portrait-orbit {
    animation: none;
  }

  .floating-card {
    animation: none;
  }

  .portrait-stage {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    transform: none;
  }

  .portal {
    height: auto;
  }

  .portal-sticky {
    position: relative;
    height: auto;
    min-height: 72svh;
    padding: 5rem 0;
  }

  .portal-frames,
  .portal-cue {
    display: none;
  }

  .portal-content {
    opacity: 1;
    transform: none;
  }

  .portal-progress-track span {
    transform: none;
  }

  .project-card:hover .project-visual {
    transform: none;
  }

  .device-frame:hover {
    transform: none;
  }
}
