:root {
  --bg: #f3f4f6;
  --bg-band: #eceef1;
  --text: #16191f;
  --muted: #596170;
  --steel: #707887;
  --border: rgba(22, 25, 31, 0.11);
  --border-strong: rgba(22, 25, 31, 0.18);
  --surface-card: rgba(251, 251, 252, 0.92);
  --surface-quiet: rgba(247, 248, 250, 0.84);
  --surface-feature: linear-gradient(180deg, rgba(255, 249, 250, 0.96) 0%, rgba(248, 241, 243, 0.92) 100%);
  --surface-inverse: rgba(23, 27, 34, 0.9);
  --header-bg: rgba(247, 248, 250, 0.72);
  --header-bg-strong: rgba(247, 248, 250, 0.9);
  --header-scrim: rgba(243, 244, 246, 0.82);
  --accent: #c8102e;
  --accent-deep: #8f1025;
  --accent-soft: rgba(200, 16, 46, 0.12);
  --focus-ring: rgba(200, 16, 46, 0.28);
  --reading-soften-fill: rgba(247, 248, 250, 0.16);
  --shadow-card: 0 22px 48px rgba(18, 21, 27, 0.05);
  --shadow-feature: 0 26px 60px rgba(18, 21, 27, 0.07);
  --radius-card: 0px;
  --radius-pill: 0px;
  --container-max: 1340px;
  --header-height: 78px;
  --section-space: clamp(4.5rem, 8vw, 7rem);
  --font-body: "Aptos", "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-mono: "SFMono-Regular", "IBM Plex Mono", "JetBrains Mono", Consolas, "Liberation Mono", "Courier New", monospace;
  --particle-rgb: 24, 29, 37;
  --particle-link-rgb: 72, 81, 94;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #06080d;
  --bg-band: #0d1118;
  --text: #edf1fb;
  --muted: #a8b0c1;
  --steel: #8d96a8;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --surface-card: rgba(14, 18, 24, 0.88);
  --surface-quiet: rgba(17, 22, 29, 0.8);
  --surface-feature: linear-gradient(180deg, rgba(28, 14, 18, 0.96) 0%, rgba(17, 12, 16, 0.92) 100%);
  --surface-inverse: rgba(239, 243, 250, 0.95);
  --header-bg: rgba(10, 13, 19, 0.68);
  --header-bg-strong: rgba(10, 13, 19, 0.88);
  --header-scrim: rgba(6, 8, 13, 0.78);
  --accent-soft: rgba(200, 16, 46, 0.18);
  --focus-ring: rgba(200, 16, 46, 0.38);
  --reading-soften-fill: rgba(9, 13, 19, 0.24);
  --shadow-card: 0 26px 56px rgba(0, 0, 0, 0.32);
  --shadow-feature: 0 30px 72px rgba(0, 0, 0, 0.38);
  --particle-rgb: 244, 247, 255;
  --particle-link-rgb: 176, 186, 202;
}

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

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

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 220ms ease, color 220ms ease;
}

body.modal-open {
  overflow: hidden;
}

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

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

a {
  color: inherit;
}

button {
  color: inherit;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

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

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

.skip-link {
  position: fixed;
  left: 18px;
  top: 14px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 0;
  background: var(--surface-inverse);
  color: #f7f8fa;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

html[data-theme="dark"] .skip-link {
  color: #0b0f15;
}

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

#bgFX {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#topScrim {
  --top-scrim-height-duration: 520ms;
  --top-scrim-height-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --top-scrim-opacity-duration: 420ms;
  --top-scrim-opacity-ease: ease;
  position: fixed;
  inset: 0 0 auto;
  height: 0;
  z-index: 1;
  opacity: 1;
  pointer-events: none;
  background: linear-gradient(180deg, var(--header-scrim) 0%, rgba(0, 0, 0, 0) 100%);
  will-change: height, opacity;
  transition:
    height var(--top-scrim-height-duration) var(--top-scrim-height-ease),
    opacity var(--top-scrim-opacity-duration) var(--top-scrim-opacity-ease);
}

#topScrim.is-hiding {
  --top-scrim-height-duration: 700ms;
  --top-scrim-height-ease: cubic-bezier(0.38, 0, 0.2, 1);
  --top-scrim-opacity-duration: 540ms;
  --top-scrim-opacity-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

#topScrim.is-revealing {
  --top-scrim-height-duration: 520ms;
  --top-scrim-height-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --top-scrim-opacity-duration: 420ms;
  --top-scrim-opacity-ease: ease;
}

@media (prefers-reduced-motion: reduce) {
  #topScrim {
    transition: none;
  }
}

.site-shell {
  position: relative;
  z-index: 2;
}

.section-shell {
  width: min(var(--container-max), calc(100% - 40px));
  margin: 0 auto;
}

.page-section {
  position: relative;
  padding: var(--section-space) 0;
  scroll-margin-top: calc(var(--header-height) + 42px);
}

.page-section--band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg-band);
  border-block: 1px solid var(--border);
  z-index: -1;
}

.section-kicker,
.panel-label,
.card-label,
.meta-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
}

.section-kicker::before,
.panel-label::before,
.card-label::before,
.meta-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--border-strong);
}

.section-heading {
  width: 100%;
  max-width: none;
  display: grid;
  gap: 18px;
  margin-bottom: 2.3rem;
}

.symbol-header {
  --symbol-gap: clamp(22px, 4vw, 40px);
  --symbol-box-width: clamp(300px, 31vw, 380px);
  --symbol-box-height: clamp(220px, 23vw, 290px);
  --symbol-copy-max: clamp(26rem, 43vw, 40rem);
  --symbol-host-min-height: 0px;
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, var(--symbol-copy-max)) minmax(0, 1fr);
  align-items: center;
  gap: var(--symbol-gap);
  min-width: 0;
}

.symbol-header-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 16px;
  min-width: 0;
  max-width: var(--symbol-copy-max);
  align-content: start;
}

.symbol-header-box {
  position: relative;
  z-index: 1;
  width: min(100%, var(--symbol-box-width));
  height: var(--symbol-box-height);
  justify-self: center;
  align-self: center;
  pointer-events: none;
  opacity: 0.92;
  transition: opacity 220ms ease;
}

.symbol-header.is-stacked {
  display: block;
  min-height: var(--symbol-host-min-height);
}

.symbol-header.is-stacked .symbol-header-box {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 0;
  width: min(100%, var(--symbol-box-width));
  height: var(--symbol-box-height);
  transform: translateX(-50%);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.04em;
  max-width: none;
  text-wrap: balance;
}

.section-intro,
.overview-copy p,
.contact-copy p,
.project-modal-section p,
.profile-copy {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.section-intro {
  max-width: 46rem;
}

.reading-soften {
  --reading-soften-radius: 18px;
  --reading-soften-inset: -0.6rem -0.8rem;
  --reading-soften-feather: 24px;
  position: relative;
  isolation: isolate;
}

.reading-soften::before {
  content: "";
  position: absolute;
  inset: var(--reading-soften-inset);
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  border-radius: var(--reading-soften-radius);
  background: transparent;
  -webkit-mask-image:
    linear-gradient(
      to right,
      transparent 0,
      rgba(0, 0, 0, 0.28) calc(var(--reading-soften-feather) * 0.38),
      rgba(0, 0, 0, 0.72) calc(var(--reading-soften-feather) * 0.74),
      #000 var(--reading-soften-feather),
      #000 calc(100% - var(--reading-soften-feather)),
      rgba(0, 0, 0, 0.72) calc(100% - (var(--reading-soften-feather) * 0.74)),
      rgba(0, 0, 0, 0.28) calc(100% - (var(--reading-soften-feather) * 0.38)),
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      transparent 0,
      rgba(0, 0, 0, 0.28) calc(var(--reading-soften-feather) * 0.38),
      rgba(0, 0, 0, 0.72) calc(var(--reading-soften-feather) * 0.74),
      #000 var(--reading-soften-feather),
      #000 calc(100% - var(--reading-soften-feather)),
      rgba(0, 0, 0, 0.72) calc(100% - (var(--reading-soften-feather) * 0.74)),
      rgba(0, 0, 0, 0.28) calc(100% - (var(--reading-soften-feather) * 0.38)),
      transparent 100%
    );
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(
      to right,
      transparent 0,
      rgba(0, 0, 0, 0.28) calc(var(--reading-soften-feather) * 0.38),
      rgba(0, 0, 0, 0.72) calc(var(--reading-soften-feather) * 0.74),
      #000 var(--reading-soften-feather),
      #000 calc(100% - var(--reading-soften-feather)),
      rgba(0, 0, 0, 0.72) calc(100% - (var(--reading-soften-feather) * 0.74)),
      rgba(0, 0, 0, 0.28) calc(100% - (var(--reading-soften-feather) * 0.38)),
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      transparent 0,
      rgba(0, 0, 0, 0.28) calc(var(--reading-soften-feather) * 0.38),
      rgba(0, 0, 0, 0.72) calc(var(--reading-soften-feather) * 0.74),
      #000 var(--reading-soften-feather),
      #000 calc(100% - var(--reading-soften-feather)),
      rgba(0, 0, 0, 0.72) calc(100% - (var(--reading-soften-feather) * 0.74)),
      rgba(0, 0, 0, 0.28) calc(100% - (var(--reading-soften-feather) * 0.38)),
      transparent 100%
    );
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
  mask-composite: intersect;
  transition: opacity 220ms ease, background-color 220ms ease;
}

.reading-soften--block {
  --reading-soften-radius: 20px;
  --reading-soften-inset: -0.75rem -0.95rem;
  --reading-soften-feather: 28px;
}

.reading-soften--tight {
  --reading-soften-radius: 14px;
  --reading-soften-inset: -0.42rem -0.6rem;
  --reading-soften-feather: 20px;
}

body:not(.particles-off) .reading-soften::before {
  opacity: 1;
  background: var(--reading-soften-fill);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.surface-card,
.surface-feature {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.surface-card {
  background: var(--surface-card);
}

.surface-quiet {
  background: var(--surface-quiet);
}

.surface-feature {
  background: var(--surface-feature);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-feature);
}

.button,
.work-link {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 200ms ease, background-color 200ms ease, box-shadow 220ms ease, color 200ms ease;
}

.button:hover,
.work-link:hover {
  transform: translateY(-1px);
}

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

.button {
  --button-surface: var(--surface-card);
  --button-border: var(--border-strong);
  --button-shadow: 0 14px 24px rgba(18, 21, 27, 0.08);
  --button-shadow-hover: 0 18px 32px rgba(200, 16, 46, 0.18);
  --button-text-hover: #fff7f8;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: none;
  border-color: var(--button-border);
  box-shadow: var(--button-shadow);
  transition:
    transform 180ms ease,
    border-color 220ms ease,
    box-shadow 240ms ease,
    color 220ms ease;
}

.button::before,
.button::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.button::before {
  z-index: -2;
  background: var(--button-surface);
}

.button::after {
  inset: -1px;
  z-index: -1;
  opacity: 0;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
  transition: opacity 220ms ease;
}

.button:hover {
  border-color: rgba(143, 16, 37, 0.9);
  box-shadow: var(--button-shadow-hover);
  color: var(--button-text-hover);
}

.button:hover::after {
  opacity: 1;
}

.button-primary {
  background: none;
}

.button-secondary {
  background: none;
}

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

.button--contact {
  min-height: 48px;
  gap: 10px;
  padding-inline: 18px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

body:not(.particles-off) .button--contact::before {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.button--contact .button-icon,
.button--contact .button-tail-icon,
.contact-inline-link .contact-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.button--contact .button-label,
.contact-inline-link .contact-link-text {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.button--contact .button-tail-icon {
  margin-left: 2px;
}

.button--contact .button-icon svg,
.button--contact .button-tail-icon svg,
.contact-inline-link .contact-link-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button--contact.button-primary {
  --button-surface: rgba(255, 255, 255, 0.28);
  --button-border: var(--border-strong);
  --button-shadow: 0 12px 22px rgba(18, 21, 27, 0.08);
  --button-shadow-hover: 0 20px 32px rgba(200, 16, 46, 0.24);
  color: var(--text);
}

.button--contact.button-primary::after {
  background: linear-gradient(180deg, #d91436 0%, #a80f2a 100%);
}

.button--contact.button-primary:hover {
  color: #fff7f8;
}

.button--contact.button-secondary {
  --button-surface: rgba(255, 255, 255, 0.24);
  --button-shadow: none;
  --button-shadow-hover: 0 14px 24px rgba(18, 21, 27, 0.08);
}

html[data-theme="dark"] .button--contact.button-secondary {
  --button-surface: rgba(17, 22, 29, 0.42);
}

html[data-theme="dark"] .button--contact.button-primary {
  --button-surface: rgba(17, 22, 29, 0.46);
}

.work-link {
  background: rgba(255, 255, 255, 0.18);
}

html[data-theme="dark"] .work-link {
  background: rgba(255, 255, 255, 0.02);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-list li {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.35);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

html[data-theme="dark"] .chip-list li {
  background: rgba(255, 255, 255, 0.03);
}

.chip-list--large li {
  min-height: 38px;
  padding-inline: 14px;
  font-size: 12px;
}

.editorial-list {
  display: grid;
  gap: 14px;
}

.editorial-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.editorial-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.editorial-list--compact {
  gap: 12px;
}

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

body.js-enhanced [data-load],
body.js-enhanced [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 720ms cubic-bezier(0.22, 1, 0.36, 1), transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

body.js-enhanced [data-load].is-visible,
body.js-enhanced [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  body.js-enhanced [data-load],
  body.js-enhanced [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button,
  .work-link,
  .skip-link {
    transition: none;
  }
}
