:root {
  --bg: #f5efe6;
  --bg-alt: #fffaf3;
  --panel: rgba(255, 250, 243, 0.68);
  --panel-strong: #fff8ef;
  --panel-sheen: rgba(255, 255, 255, 0.24);
  --text: #1a1816;
  --muted: #6d6256;
  --line: rgba(26, 24, 22, 0.12);
  --glow-soft: rgba(30, 122, 109, 0.08);
  --glow-warm: rgba(201, 93, 61, 0.08);
  --accent: #c95d3d;
  --accent-2: #1e7a6d;
  --accent-3: #efe6d5;
  --shadow: 0 24px 60px rgba(90, 57, 32, 0.12);
}

body[data-theme="night"] {
  --bg: #0f1720;
  --bg-alt: #131d28;
  --panel: rgba(19, 29, 40, 0.72);
  --panel-strong: #182434;
  --panel-sheen: rgba(255, 255, 255, 0.08);
  --text: #f1efe8;
  --muted: #a9b0b8;
  --line: rgba(241, 239, 232, 0.12);
  --glow-soft: rgba(114, 199, 185, 0.1);
  --glow-warm: rgba(246, 143, 108, 0.1);
  --accent: #f68f6c;
  --accent-2: #72c7b9;
  --accent-3: #223246;
  --shadow: 0 26px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Noto Sans SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(201, 93, 61, 0.16), transparent 32%),
    radial-gradient(circle at 85% 15%, rgba(30, 122, 109, 0.18), transparent 24%),
    linear-gradient(180deg, var(--bg-alt), var(--bg));
  transition: background 240ms ease, color 240ms ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.36), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(201, 93, 61, 0.18), transparent 24%);
  pointer-events: none;
  z-index: 0;
}

.background-stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bg-orb,
.bg-beam,
.bg-grid,
.bg-wordmark,
.bg-matrix,
.bg-scanlines,
.bg-pulse,
.bg-data-line {
  position: absolute;
}

.bg-orb {
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.68;
  animation: drift 18s ease-in-out infinite;
}

.bg-orb-a {
  top: 5%;
  left: -6%;
  width: 36vw;
  height: 36vw;
  background: radial-gradient(circle, rgba(30, 122, 109, 0.28), transparent 62%);
}

.bg-orb-b {
  top: 28%;
  right: -10%;
  width: 42vw;
  height: 42vw;
  background: radial-gradient(circle, rgba(201, 93, 61, 0.24), transparent 60%);
  animation-delay: -6s;
}

.bg-orb-c {
  bottom: -12%;
  left: 24%;
  width: 34vw;
  height: 34vw;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.24), transparent 62%);
  animation-delay: -10s;
}

.bg-grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 24, 22, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 24, 22, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.9), transparent 82%);
  opacity: 0.28;
}

.bg-scanlines {
  inset: 0;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04) 0,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 6px
    );
  mix-blend-mode: soft-light;
  opacity: 0.45;
}

.bg-matrix {
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(26, 24, 22, 0.15);
  white-space: nowrap;
}

.bg-matrix-left {
  top: 18%;
  left: -4%;
  transform: rotate(-90deg);
  transform-origin: top left;
}

.bg-matrix-right {
  right: -2%;
  bottom: 22%;
  transform: rotate(-90deg);
  transform-origin: top right;
}

.bg-pulse {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(30, 122, 109, 0.3) 55%, transparent 70%);
  box-shadow: 0 0 18px rgba(30, 122, 109, 0.4);
  animation: pulse-float 6s ease-in-out infinite;
}

.bg-pulse-a {
  top: 24%;
  left: 16%;
}

.bg-pulse-b {
  right: 18%;
  bottom: 20%;
  animation-delay: -3s;
}

.bg-data-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(30, 122, 109, 0.5), transparent);
  opacity: 0.55;
}

.bg-data-line-a {
  top: 26%;
  left: 9%;
  width: 24vw;
}

.bg-data-line-b {
  right: 12%;
  bottom: 24%;
  width: 20vw;
  background: linear-gradient(90deg, transparent, rgba(201, 93, 61, 0.45), transparent);
}

.bg-beam {
  width: 58vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: rotate(-18deg);
  opacity: 0.42;
}

.bg-beam-a {
  top: 18%;
  left: -6%;
}

.bg-beam-b {
  bottom: 18%;
  right: -10%;
  transform: rotate(14deg);
}

.bg-wordmark {
  top: 13%;
  right: -2%;
  font-size: clamp(3.8rem, 12vw, 11rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  color: rgba(255, 255, 255, 0.22);
  transform: rotate(-90deg);
  transform-origin: top right;
  white-space: nowrap;
}

.bg-wordmark-secondary {
  top: auto;
  bottom: 2%;
  left: 2%;
  right: auto;
  transform: none;
  font-size: clamp(2.8rem, 9vw, 7rem);
  color: rgba(26, 24, 22, 0.08);
  letter-spacing: -0.05em;
}

body[data-theme="night"] .bg-grid {
  background-image:
    linear-gradient(rgba(241, 239, 232, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 239, 232, 0.05) 1px, transparent 1px);
}

body[data-theme="night"] .bg-matrix {
  color: rgba(241, 239, 232, 0.16);
}

body[data-theme="night"] .bg-wordmark {
  color: rgba(255, 255, 255, 0.08);
}

body[data-theme="night"] .bg-wordmark-secondary {
  color: rgba(255, 255, 255, 0.05);
}

body[data-theme="night"] .bg-scanlines {
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.035) 0,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px,
      transparent 7px
    );
}

.page-noise {
  position: fixed;
  inset: 0;
  opacity: 0.035;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(0, 0, 0, 0.28) 0.4px, transparent 0.6px),
    radial-gradient(circle at 80% 30%, rgba(0, 0, 0, 0.24) 0.4px, transparent 0.6px);
  background-size: 18px 18px, 24px 24px;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}

.loading-veil {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #f3ecdf, #fdf8f0);
  z-index: 40;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.loading-veil.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-copy {
  display: grid;
  gap: 8px;
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.loading-copy strong {
  font-size: clamp(2rem, 7vw, 4rem);
  letter-spacing: -0.04em;
  text-transform: none;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--progress, 0%);
  height: 4px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  z-index: 35;
}

button,
a {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.topbar,
.hero-grid,
.section-heading,
.filter-bar,
.card-grid {
  position: relative;
  z-index: 2;
}

.topbar {
  position: sticky;
  top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06)),
    rgba(255, 250, 243, 0.52);
  backdrop-filter: blur(18px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    var(--shadow);
  transition: transform 220ms ease;
}

.topbar.is-hidden {
  transform: translateY(-140%);
}

.brand {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-links {
  display: flex;
  gap: 16px;
}

.topbar-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.ghost-button,
.filter-chip,
.tab-button,
.text-button,
.secondary-button,
.contact-submit,
.modal-close {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.18);
  color: var(--text);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.ghost-button:hover,
.filter-chip:hover,
.tab-button:hover,
.text-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.ghost-button,
.secondary-button,
.primary-button {
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
}

.primary-button {
  background: var(--text);
  color: var(--bg-alt);
  border: 1px solid transparent;
}

.secondary-button,
.ghost-button {
  backdrop-filter: blur(14px);
}

.hero {
  padding: 10px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 22px;
}

.hero-copy,
.hero-panel,
.content-card {
  position: relative;
  background:
    linear-gradient(155deg, var(--panel-sheen), rgba(255, 255, 255, 0.03)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 30%),
    var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    var(--shadow);
}

.hero-copy::after,
.hero-panel::after,
.content-card::after,
.story-stage::after,
.spotlight-layout::after,
.process-card::after,
.quote-card::after,
.cta-band::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 20%),
    linear-gradient(125deg, transparent, rgba(255, 255, 255, 0.04), transparent 72%);
  pointer-events: none;
}

.hero-copy {
  border-radius: 32px;
  padding: 34px;
  background:
    radial-gradient(circle at top left, var(--glow-soft), transparent 38%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06)),
    var(--panel);
}

.hero-copy h1 {
  margin: 8px 0 18px;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-signals,
.hero-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-signals {
  margin-top: 22px;
}

.hero-signals span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
}

.eyebrow {
  margin: 0;
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.hero-text,
.section-heading p,
.content-card p,
.inline-note,
.tab-panel,
.status-list {
  color: var(--muted);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 18px;
}

.inline-note {
  margin: 0;
  min-height: 28px;
}

.hero-summary {
  margin-top: 22px;
}

.hero-summary div {
  min-width: 220px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.14);
}

.hero-summary span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-panel {
  border-radius: 28px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 100% 0%, var(--glow-warm), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    var(--panel);
}

.avatar-wrap {
  margin: 18px 0 16px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.12);
}

.avatar-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 20%;
}

.panel-badge,
.card-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(201, 93, 61, 0.12);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.status-list {
  padding-left: 18px;
  margin: 18px 0 26px;
}

.profile-links {
  margin: 0 0 18px;
}

.resume-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.18);
  color: var(--text);
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.resume-link:hover {
  transform: translateY(-1px);
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mini-stats div,
.timeline div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid var(--line);
}

.mini-stats strong {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.content {
  padding-top: 26px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 20px;
}

.section-heading h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.filter-chip,
.tab-button,
.text-button {
  padding: 10px 14px;
  border-radius: 999px;
}

.filter-chip.active,
.tab-button.active {
  background: var(--text);
  color: var(--bg-alt);
}

.impact-ribbon {
  overflow: hidden;
  margin: 0 0 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
}

.impact-ribbon-track {
  display: flex;
  gap: 16px;
  width: max-content;
  padding: 14px 18px;
  animation: ribbon-scroll 28s linear infinite;
}

.impact-ribbon-track span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(30, 122, 109, 0.12);
  color: var(--text);
  white-space: nowrap;
  font-weight: 700;
}

.story-stage,
.narrative-band {
  margin: 0 0 28px;
  padding: 30px;
  border-radius: 34px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 20% 0%, var(--glow-soft), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08)),
    var(--panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    var(--shadow);
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, -22px, 0) scale(1.06);
  }
}

@keyframes pulse-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translate3d(10px, -12px, 0) scale(1.25);
    opacity: 1;
  }
}

.story-stage {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: center;
  position: relative;
}

.story-visual {
  position: relative;
  min-height: 460px;
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at 30% 20%, rgba(30, 122, 109, 0.18), transparent 32%),
    linear-gradient(160deg, rgba(20, 28, 36, 0.08), rgba(201, 93, 61, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.story-photo-frame {
  position: absolute;
  inset: 26px 26px 72px 26px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.16);
}

.story-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  transform: scale(1.04);
}

.story-floating-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(17, 26, 34, 0.72);
  color: #f6f2ea;
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

.story-floating-card span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.story-floating-card strong {
  font-size: 1rem;
  line-height: 1.3;
}

.story-copy h2,
.narrative-intro h2 {
  margin: 8px 0 14px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.story-copy p,
.narrative-intro p,
.narrative-columns p {
  color: var(--muted);
  line-height: 1.8;
}

.story-lines {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.story-lines div {
  padding: 16px 18px;
  border-left: 3px solid rgba(30, 122, 109, 0.3);
  background: rgba(255, 255, 255, 0.14);
  border-radius: 0 20px 20px 0;
}

.story-lines span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.narrative-band {
  background:
    radial-gradient(circle at 0% 0%, rgba(30, 122, 109, 0.14), transparent 24%),
    radial-gradient(circle at 100% 100%, rgba(201, 93, 61, 0.14), transparent 28%),
    var(--panel);
}

.narrative-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.narrative-columns article {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.16);
}

.narrative-columns span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(201, 93, 61, 0.12);
  color: var(--accent);
  font-weight: 800;
}

.narrative-columns h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
  line-height: 1.2;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.content-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 24px;
  grid-column: span 4;
  transform: translateY(0);
  transition: transform 220ms ease, border-color 220ms ease;
}

.content-card::before {
  content: "";
  position: absolute;
  inset: var(--spot-y, 50%) auto auto var(--spot-x, 50%);
  width: 240px;
  height: 240px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 60%);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.content-card:hover::before {
  opacity: 1;
}

.content-card:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 122, 109, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 26px 56px rgba(0, 0, 0, 0.1);
}

.content-card h3 {
  margin: 16px 0 10px;
  font-size: 1.45rem;
}

.detail-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 220ms ease;
}

.detail-panel p {
  overflow: hidden;
  margin: 10px 0 0;
}

.content-card.expanded .detail-panel {
  grid-template-rows: 1fr;
}

.project-pills,
.tab-buttons,
.timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.project-pills span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(30, 122, 109, 0.12);
  color: var(--accent-2);
  font-weight: 700;
}

.wide-card {
  grid-column: span 8;
}

.tab-panels {
  margin-top: 16px;
}

.tab-panel {
  display: none;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid var(--line);
}

.tab-panel.active {
  display: block;
}

.content-card.is-hidden {
  display: none;
}

.spotlight-layout,
.process-grid,
.quote-wall {
  margin-top: 28px;
}

.spotlight-layout {
  padding: 28px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 100% 0%, var(--glow-warm), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    var(--panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    var(--shadow);
  position: relative;
}

.spotlight-heading {
  max-width: 720px;
}

.spotlight-heading h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.spotlight-heading p,
.spotlight-panel p {
  color: var(--muted);
  line-height: 1.75;
}

.spotlight-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 18px;
}

.spotlight-button {
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.16);
  color: var(--text);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.spotlight-button.active {
  background: var(--text);
  color: var(--bg-alt);
}

.spotlight-panel {
  display: none;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.spotlight-panel.active {
  display: block;
}

.spotlight-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.spotlight-metrics div,
.process-card,
.quote-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.spotlight-metrics span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.spotlight-metrics strong {
  font-size: 1rem;
}

.process-grid,
.quote-wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.process-card h3,
.quote-card h3 {
  margin: 8px 0 0;
  font-size: 1.4rem;
  line-height: 1.2;
}

.process-steps {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.process-steps div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.process-steps div:first-child {
  border-top: 0;
}

.process-steps strong {
  font-size: 1.1rem;
  color: var(--accent);
}

.flow-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.flow-tags span {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(201, 93, 61, 0.12);
  color: var(--text);
  font-weight: 700;
}

.cta-band {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 28px;
  padding: 28px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 0% 0%, var(--glow-soft), transparent 30%),
    radial-gradient(circle at 100% 100%, var(--glow-warm), transparent 26%),
    linear-gradient(120deg, rgba(30, 122, 109, 0.14), rgba(201, 93, 61, 0.1)),
    var(--panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    var(--shadow);
}

.cta-band h2 {
  margin: 8px 0 0;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.15;
}

.reveal-block {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

.magnetic-button {
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.magnetic-button:hover {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

@keyframes ribbon-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.contact-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
  z-index: 20;
}

.contact-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.contact-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 24, 0.45);
  backdrop-filter: blur(10px);
}

.contact-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  padding: 28px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 1.3rem;
}

.contact-dialog h2 {
  margin: 10px 0 10px;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.contact-copy {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.7;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-option {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.contact-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.contact-option span {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.16);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.contact-option input:checked + span {
  background: var(--text);
  color: var(--bg-alt);
}

.contact-field {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

.contact-field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.2);
  color: var(--text);
  outline: none;
}

.contact-field input::placeholder {
  color: var(--muted);
}

.contact-field input:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(30, 122, 109, 0.12);
}

.contact-submit {
  justify-self: start;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg-alt);
}

.contact-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 120%);
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(680px, calc(100vw - 24px));
  padding: 16px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(90deg, rgba(30, 122, 109, 0.94), rgba(201, 93, 61, 0.92));
  color: #fff;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.18);
  transition: transform 240ms ease;
  z-index: 30;
}

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

.contact-toast strong,
.contact-toast span {
  white-space: nowrap;
}

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

  .topbar {
    border-radius: 28px;
  }

  .topbar-links {
    display: none;
  }

  .bg-wordmark {
    font-size: clamp(3rem, 15vw, 7rem);
    opacity: 0.22;
  }

  .bg-matrix {
    font-size: 0.68rem;
  }

  .content-card,
  .wide-card {
    grid-column: span 6;
  }

  .cta-band {
    grid-template-columns: 1fr;
  }

  .spotlight-metrics,
  .story-stage,
  .process-grid,
  .quote-wall,
  .narrative-columns {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 700px) {
  .page-shell {
    width: min(100vw - 20px, 100%);
    padding-top: 14px;
  }

  .hero-copy,
  .hero-panel,
  .content-card {
    border-radius: 24px;
    padding: 20px;
  }

  .topbar {
    gap: 12px;
    align-items: flex-start;
    flex-direction: column;
    top: 10px;
    padding: 16px;
  }

  .hero-copy h1 {
    font-size: 2.5rem;
  }

  .hero-summary div {
    min-width: 100%;
  }

  .contact-dialog {
    padding: 22px;
    border-radius: 24px;
  }

  .contact-toast {
    border-radius: 24px;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .impact-ribbon {
    border-radius: 28px;
  }

  .story-stage,
  .narrative-band,
  .spotlight-layout,
  .process-card,
  .quote-card {
    padding: 20px;
  }

  .story-visual {
    min-height: 360px;
  }

  .bg-orb-a,
  .bg-orb-b,
  .bg-orb-c {
    width: 72vw;
    height: 72vw;
  }

  .bg-grid {
    background-size: 44px 44px;
  }

  .bg-scanlines {
    opacity: 0.32;
  }

  .bg-wordmark {
    top: 18%;
    right: -18%;
  }

  .bg-wordmark-secondary {
    bottom: 8%;
    left: 4%;
  }

  .bg-data-line-a,
  .bg-data-line-b {
    width: 38vw;
  }

  .story-photo-frame {
    inset: 18px 18px 72px 18px;
  }

  .mini-stats,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .content-card,
  .wide-card {
    grid-column: span 1;
  }
}
