:root {
  --ink: #17130f;
  --paper: #f7f3ec;
  --paper-strong: #fffaf1;
  --muted: #746d63;
  --line: rgba(23, 19, 15, 0.14);
  --teal: #267f78;
  --blue: #4b7dff;
  --steel: #62747a;
  --amber: #c77b3a;
  --charcoal: #11100d;
  --white: #fffdfa;
  --shadow: 0 24px 70px rgba(17, 16, 13, 0.18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@property --mx {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 50%;
}

@property --my {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 50%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  --mx: 50%;
  --my: 50%;
  background:
    linear-gradient(115deg, rgba(38, 127, 120, 0.08), transparent 34%),
    linear-gradient(245deg, rgba(199, 123, 58, 0.1), transparent 38%),
    var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.cursor-light {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 253, 250, 0.16), transparent 18rem);
  mix-blend-mode: screen;
}

.topbar {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(1160px, calc(100% - 32px));
  min-height: 56px;
  padding: 8px 10px 8px 12px;
  transform: translateX(-50%);
  color: var(--white);
  background: rgba(17, 16, 13, 0.48);
  border: 1px solid rgba(255, 253, 250, 0.18);
  border-radius: 8px;
  backdrop-filter: blur(18px);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.topbar.is-scrolled {
  color: var(--ink);
  background: rgba(255, 250, 241, 0.86);
  box-shadow: 0 12px 36px rgba(17, 16, 13, 0.12);
}

.brand,
.nav,
.hero-actions,
.contact-actions,
.tag-list {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 760;
  min-width: 0;
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border: 1px solid rgba(255, 253, 250, 0.22);
  border-radius: 8px;
  background: #05080d;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--paper-strong);
  background: var(--teal);
  border-radius: 6px;
  font-size: 0.76rem;
  letter-spacing: 0;
}

.nav {
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  font-size: 0.92rem;
  color: currentColor;
}

.nav a {
  opacity: 0.78;
}

.nav a:hover {
  opacity: 1;
}

.nav a.nav-growth {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 8px 13px;
  color: #07110f;
  background: linear-gradient(135deg, #6fe2a5, #62e0d2);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(98, 224, 210, 0.08), 0 7px 22px rgba(98, 224, 210, 0.24);
  font-weight: 800;
  opacity: 1;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.nav a.nav-growth::before {
  width: 6px;
  height: 6px;
  background: #087568;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(8, 117, 104, 0.14);
  content: "";
}

.nav a.nav-growth:hover {
  box-shadow: 0 0 0 1px rgba(98, 224, 210, 0.15), 0 10px 28px rgba(98, 224, 210, 0.34);
  transform: translateY(-2px);
}

.topbar-actions,
.language-switcher {
  display: flex;
  align-items: center;
}

.topbar-actions {
  gap: 9px;
}

.language-switcher {
  gap: 3px;
  padding: 3px;
  background: rgba(255, 253, 250, 0.08);
  border: 1px solid rgba(255, 253, 250, 0.2);
  border-radius: 8px;
}

.topbar.is-scrolled .language-switcher {
  background: rgba(17, 16, 13, 0.04);
  border-color: rgba(17, 16, 13, 0.14);
}

.language-option {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 32px;
  padding: 0 7px;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.58;
  transition: background 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.language-option span {
  font-size: 1rem;
  line-height: 1;
}

.language-option small {
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.language-option:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.language-option.is-active {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 4px 14px rgba(17, 16, 13, 0.15);
  opacity: 1;
}

.topbar.is-scrolled .language-option.is-active {
  color: var(--white);
  background: var(--charcoal);
}

.language-option:focus-visible {
  outline: 2px solid #62e0d2;
  outline-offset: 2px;
}

.icon-link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid currentColor;
  border-radius: 8px;
  opacity: 0.82;
}

.icon-link:hover {
  opacity: 1;
}

.icon-link svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  padding: 150px max(24px, calc((100vw - 1160px) / 2)) 42px;
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
}

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
  max-width: 100%;
}

.hero-media {
  z-index: -3;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  filter: saturate(1.08) contrast(1.05);
}

.signal-canvas,
.hero-scan {
  position: absolute;
  inset: 0;
  max-width: 100%;
}

.signal-canvas {
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.hero-scan {
  z-index: -1;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(255, 253, 250, 0.12) 8.2%, transparent 8.4% 100%),
    repeating-linear-gradient(0deg, rgba(255, 253, 250, 0.07) 0 1px, transparent 1px 14px);
  background-size: 280px 100%, 100% 100%;
  opacity: 0.24;
  animation: scanDrift 12s linear infinite;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(12, 11, 9, 0.82) 0%, rgba(12, 11, 9, 0.52) 42%, rgba(12, 11, 9, 0.16) 100%),
    linear-gradient(0deg, rgba(12, 11, 9, 0.78) 0%, rgba(12, 11, 9, 0.08) 48%, rgba(12, 11, 9, 0.42) 100%);
}

.hero-inner {
  width: min(760px, 100%);
  padding-bottom: 70px;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.hero-logo {
  display: block;
  width: 132px;
  height: 132px;
  object-fit: cover;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 253, 250, 0.18);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.eyebrow {
  margin: 0;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  margin: 0;
  max-width: 13ch;
  font-size: 7.1rem;
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 4.1rem;
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 26px 0 0;
  color: rgba(255, 253, 250, 0.82);
  font-size: 1.22rem;
  line-height: 1.6;
}

.hero-actions,
.contact-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 780;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
  position: relative;
  overflow: hidden;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 253, 250, 0.32), transparent);
  transform: translateX(-120%);
  transition: transform 520ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:hover::after {
  transform: translateX(120%);
}

.button.primary {
  color: var(--paper-strong);
  background: var(--teal);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.button.ghost {
  color: currentColor;
  background: rgba(255, 253, 250, 0.08);
  border: 1px solid rgba(255, 253, 250, 0.28);
}

.contact-band .button.ghost {
  border-color: var(--line);
}

.hero-panel {
  position: absolute;
  right: max(24px, calc((100vw - 1160px) / 2));
  bottom: 42px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(500px, calc(100% - 48px));
  border-top: 1px solid rgba(255, 253, 250, 0.24);
  backdrop-filter: blur(12px);
}

.hero-panel div {
  padding: 18px 22px 0 0;
  color: rgba(255, 253, 250, 0.74);
  font-size: 0.92rem;
  line-height: 1.35;
}

.metric {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
  font-size: 1.7rem;
  font-weight: 840;
  line-height: 1;
}

.scroll-cue {
  position: absolute;
  left: max(24px, calc((100vw - 1160px) / 2));
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 253, 250, 0.66);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.scroll-cue span {
  width: 42px;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  animation: cuePulse 1.8s ease-in-out infinite;
}

.work-band,
.stats-band,
.profile-band,
.stack-band,
.method-band,
.contact-band,
.experience-band {
  padding: clamp(74px, 9vw, 124px) max(24px, calc((100vw - 1160px) / 2));
}

.stats-band {
  background: #070b10;
  color: var(--white);
  padding-top: 42px;
  padding-bottom: 42px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(255, 253, 250, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(75, 125, 255, 0.12), transparent 36%),
    rgba(255, 253, 250, 0.04);
  overflow: hidden;
}

.stats-grid div {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px;
  border-right: 1px solid rgba(255, 253, 250, 0.12);
}

.stats-grid div:last-child {
  border-right: 0;
}

.stats-grid strong {
  display: block;
  color: var(--white);
  font-size: 3.1rem;
  line-height: 1;
  letter-spacing: 0;
}

.stats-grid span {
  margin-top: 10px;
  color: rgba(255, 253, 250, 0.72);
  font-size: 0.96rem;
  font-weight: 760;
}

.experience-band {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 42px;
  align-items: start;
  background: #101410;
  color: var(--white);
}

.experience-band::before,
.experience-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 253, 250, 0.28), transparent);
}

.experience-band::before {
  top: 0;
}

.experience-band::after {
  bottom: 0;
}

.experience-copy {
  max-width: 820px;
}

.experience-stage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 420px;
  border: 1px solid rgba(255, 253, 250, 0.16);
  background:
    linear-gradient(90deg, rgba(255, 253, 250, 0.04), transparent),
    repeating-linear-gradient(90deg, rgba(255, 253, 250, 0.08) 0 1px, transparent 1px 25%),
    repeating-linear-gradient(0deg, rgba(255, 253, 250, 0.05) 0 1px, transparent 1px 42px);
  overflow: hidden;
}

.stage-line {
  position: absolute;
  top: 50%;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--white));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 900ms ease;
}

.experience-stage.is-visible .stage-line {
  transform: scaleX(1);
}

.experience-stage article {
  position: relative;
  display: flex;
  min-height: 420px;
  padding: 24px;
  flex-direction: column;
  justify-content: flex-end;
  border-right: 1px solid rgba(255, 253, 250, 0.12);
  transition: background 220ms ease, transform 220ms ease;
}

.experience-stage article:last-child {
  border-right: 0;
}

.experience-stage article::before {
  content: "";
  position: absolute;
  top: calc(50% - 7px);
  left: 24px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--white);
  background: var(--charcoal);
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(38, 127, 120, 0.12);
}

.experience-stage article:hover {
  background: rgba(255, 253, 250, 0.06);
  transform: translateY(-6px);
}

.experience-stage span {
  color: var(--amber);
  font-weight: 840;
  margin-bottom: 16px;
}

.experience-stage p {
  color: rgba(255, 253, 250, 0.68);
  line-height: 1.55;
}

.section-intro {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 820px;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading:not(.compact) {
  max-width: 980px;
}

.section-intro p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
  max-width: 680px;
}

.section-intro h2 {
  margin: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  overflow: hidden;
  min-height: 490px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(17, 16, 13, 0.06);
  transform-style: preserve-3d;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  will-change: transform;
}

.project-card:hover {
  border-color: rgba(38, 127, 120, 0.32);
  box-shadow: 0 26px 60px rgba(17, 16, 13, 0.16);
}

.project-card.featured {
  min-height: 560px;
}

.project-visual {
  height: 230px;
  background-color: var(--charcoal);
  background-image: linear-gradient(135deg, rgba(38, 127, 120, 0.82), rgba(75, 125, 255, 0.38)), url("assets/hero-workspace-card.webp");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.project-visual-image {
  background-image: none;
}

.project-visual-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 253, 250, 0.22), transparent 58%);
  transform: translateX(-100%);
  transition: transform 760ms ease;
}

.project-card:hover .project-visual::after {
  transform: translateX(100%);
}

.featured .project-visual {
  height: 300px;
}

.visual-system {
  background-image:
    linear-gradient(135deg, rgba(247, 243, 236, 0.78), rgba(98, 116, 122, 0.55)),
    repeating-linear-gradient(90deg, rgba(17, 16, 13, 0.16) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(0deg, rgba(17, 16, 13, 0.11) 0 1px, transparent 1px 34px);
}

.visual-automation {
  background-image:
    linear-gradient(135deg, rgba(17, 16, 13, 0.92), rgba(199, 123, 58, 0.5)),
    repeating-linear-gradient(45deg, rgba(255, 253, 250, 0.16) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(90deg, rgba(38, 127, 120, 0.22) 0 2px, transparent 2px 42px);
}

.project-body {
  padding: 24px;
}

.project-link {
  display: inline-flex;
  margin-top: 20px;
  color: var(--teal);
  font-size: 0.92rem;
  font-weight: 820;
  border-bottom: 1px solid currentColor;
}

.project-link:hover {
  color: var(--blue);
}

.project-kicker {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 840;
  letter-spacing: 0;
  text-transform: uppercase;
}

.project-body p:not(.project-kicker) {
  color: var(--muted);
  line-height: 1.62;
}

.tag-list {
  gap: 8px;
  flex-wrap: wrap;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 7px 10px;
  color: var(--ink);
  background: rgba(38, 127, 120, 0.09);
  border: 1px solid rgba(38, 127, 120, 0.18);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 760;
}

.profile-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 42px;
  background: #e9eee9;
  position: relative;
  overflow: hidden;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: start;
}

.profile-logo {
  position: relative;
  z-index: 1;
  width: min(320px, 28vw);
  height: auto;
  border: 1px solid rgba(17, 16, 13, 0.16);
  border-radius: 8px;
  box-shadow: 0 30px 70px rgba(17, 16, 13, 0.18);
}

.profile-band::before {
  content: "WEB DEVELOPER";
  position: absolute;
  right: 0;
  bottom: -18px;
  color: rgba(17, 16, 13, 0.035);
  font-size: 8rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.8;
}

.skill-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(17, 16, 13, 0.18);
  border-left: 1px solid rgba(17, 16, 13, 0.18);
}

.skill-matrix div {
  min-height: 210px;
  padding: 24px;
  border-right: 1px solid rgba(17, 16, 13, 0.18);
  border-bottom: 1px solid rgba(17, 16, 13, 0.18);
  transition: background 180ms ease, transform 180ms ease;
}

.skill-matrix div:hover {
  background: rgba(255, 253, 250, 0.34);
  transform: translateY(-4px);
}

.skill-matrix span,
.timeline span {
  display: block;
  margin-bottom: 38px;
  color: var(--amber);
  font-size: 0.86rem;
  font-weight: 840;
}

.skill-matrix span {
  font-size: 1.7rem;
  line-height: 1;
}

.skill-matrix strong {
  display: block;
  font-size: 1.2rem;
}

.skill-matrix p,
.timeline p {
  color: var(--muted);
  line-height: 1.58;
}

.stack-band {
  background: var(--paper-strong);
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.stack-list li {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  color: var(--ink);
  background: rgba(38, 127, 120, 0.08);
  border: 1px solid rgba(38, 127, 120, 0.18);
  border-radius: 8px;
  font-weight: 820;
}

.method-band {
  background: var(--charcoal);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.method-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(38, 127, 120, 0.08), transparent),
    repeating-linear-gradient(90deg, rgba(255, 253, 250, 0.04) 0 1px, transparent 1px 80px);
  pointer-events: none;
}

.section-heading.compact {
  max-width: 720px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 44px;
  background: rgba(255, 253, 250, 0.18);
  border: 1px solid rgba(255, 253, 250, 0.18);
}

.timeline article {
  min-height: 290px;
  padding: 28px;
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
}

.timeline article::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 500ms ease;
}

.timeline article:hover::after {
  transform: scaleX(1);
}

.timeline p {
  color: rgba(255, 253, 250, 0.68);
}

.contact-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.62fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: center;
  min-height: 620px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(125deg, rgba(7, 11, 16, 0.98), rgba(12, 22, 28, 0.96) 52%, rgba(7, 11, 16, 0.98)),
    var(--charcoal);
}

.contact-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 253, 250, 0.04) 0 1px, transparent 1px 92px),
    linear-gradient(0deg, rgba(255, 253, 250, 0.035) 0 1px, transparent 1px 92px);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.9), transparent 85%);
  pointer-events: none;
}

.contact-band::after {
  content: "";
  position: absolute;
  left: max(24px, calc((100vw - 1160px) / 2));
  right: max(24px, calc((100vw - 1160px) / 2));
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(98, 224, 210, 0.7), rgba(75, 125, 255, 0.55), transparent);
}

.contact-orbit {
  position: absolute;
  right: max(-120px, calc((100vw - 1160px) / 2 - 220px));
  top: 50%;
  width: 520px;
  aspect-ratio: 1;
  border: 1px solid rgba(98, 224, 210, 0.18);
  border-radius: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.contact-orbit::before,
.contact-orbit::after {
  content: "";
  position: absolute;
  inset: 72px;
  border: 1px solid rgba(255, 253, 250, 0.11);
  border-radius: 50%;
}

.contact-orbit::after {
  inset: 166px;
  background: rgba(98, 224, 210, 0.11);
  box-shadow: 0 0 80px rgba(98, 224, 210, 0.16);
}

.contact-copy,
.contact-card {
  position: relative;
  z-index: 1;
}

.contact-band h2 {
  max-width: 820px;
  color: var(--white);
  font-size: 4.6rem;
}

.contact-band .section-intro p:not(.eyebrow) {
  color: rgba(255, 253, 250, 0.74);
  font-size: 1.14rem;
  max-width: 690px;
}

.contact-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 253, 250, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 253, 250, 0.11), rgba(255, 253, 250, 0.035)),
    rgba(7, 11, 16, 0.48);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.contact-channel {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 22px;
  border: 1px solid rgba(255, 253, 250, 0.13);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.055);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.contact-channel:hover {
  transform: translateY(-3px);
  border-color: rgba(98, 224, 210, 0.46);
  background: rgba(98, 224, 210, 0.08);
}

.contact-channel span {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 840;
  text-transform: uppercase;
}

.contact-channel strong {
  color: var(--white);
  font-size: 1.12rem;
  line-height: 1.35;
  word-break: break-word;
}

.primary-channel {
  background: linear-gradient(135deg, rgba(38, 127, 120, 0.36), rgba(75, 125, 255, 0.14));
}

.contact-note {
  margin: 8px 4px 0;
  color: rgba(255, 253, 250, 0.62);
  font-size: 0.94rem;
  line-height: 1.6;
}

body.has-open-modal {
  overflow: hidden;
}

.contact-modal {
  width: min(560px, calc(100% - 28px));
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: clamp(27px, 5vw, 44px);
  overflow: auto;
  color: var(--white);
  background: radial-gradient(circle at 88% 0, rgba(98, 224, 210, 0.14), transparent 18rem), #11100d;
  border: 1px solid rgba(98, 224, 210, 0.3);
  border-radius: 18px;
  box-shadow: 0 35px 110px rgba(0, 0, 0, 0.58);
}

.contact-modal::backdrop {
  background: rgba(7, 9, 9, 0.76);
  backdrop-filter: blur(9px);
}

.contact-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: rgba(255, 253, 250, 0.7);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 253, 250, 0.14);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.contact-modal-close:hover {
  color: var(--white);
  border-color: rgba(98, 224, 210, 0.5);
}

.contact-modal h2 {
  max-width: 9ch;
  margin: 13px 50px 14px 0;
  font-size: clamp(2.2rem, 7vw, 3.8rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.contact-modal-copy {
  margin: 0 0 27px;
  color: rgba(255, 253, 250, 0.62);
  line-height: 1.65;
}

.contact-modal-options {
  display: grid;
  gap: 8px;
}

.contact-modal-option {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 13px;
  align-items: center;
  min-height: 70px;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 253, 250, 0.11);
  border-radius: 11px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.contact-modal-option:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(98, 224, 210, 0.38);
  transform: translateY(-2px);
}

.contact-modal-option.is-primary {
  color: #07110f;
  background: linear-gradient(135deg, #77e8ad, #62e0d2);
  border-color: transparent;
}

.contact-modal-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  font-size: 0.72rem;
  font-weight: 900;
}

.contact-modal-option.is-primary .contact-modal-icon {
  background: rgba(7, 17, 15, 0.1);
  border-color: rgba(7, 17, 15, 0.12);
}

.contact-modal-option > span:nth-child(2) {
  display: grid;
  gap: 4px;
}

.contact-modal-option small {
  color: rgba(255, 253, 250, 0.48);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-modal-option.is-primary small {
  color: rgba(7, 17, 15, 0.58);
}

.contact-modal-option strong {
  font-size: 0.88rem;
}

.contact-modal-option b {
  font-size: 1rem;
}

.contact-modal-note {
  margin: 20px 0 0;
  color: rgba(255, 253, 250, 0.44);
  font-size: 0.72rem;
  text-align: center;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--white);
  background: rgba(7, 11, 16, 0.78);
  border: 1px solid rgba(255, 253, 250, 0.18);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
  backdrop-filter: blur(14px);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--teal);
}

.back-to-top span {
  font-size: 1.35rem;
  line-height: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes scanDrift {
  from {
    background-position: -280px 0, 0 0;
  }

  to {
    background-position: 280px 0, 0 0;
  }
}

@keyframes cuePulse {
  0%,
  100% {
    transform: scaleX(0.42);
    opacity: 0.44;
  }

  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .signal-canvas,
  .cursor-light,
  .hero-scan {
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 92vh;
    padding-top: 120px;
  }

  h1 {
    max-width: 10ch;
    font-size: 5rem;
  }

  h2 {
    font-size: 3.2rem;
  }

  .hero-panel,
  .section-heading,
  .project-grid,
  .profile-layout,
  .profile-band,
  .timeline,
  .contact-band,
  .experience-band,
  .experience-stage {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    position: static;
    width: 100%;
    margin-top: 24px;
  }

  .hero-inner {
    padding-bottom: 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid div:nth-child(2) {
    border-right: 0;
  }

  .stats-grid div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 253, 250, 0.12);
  }

  .experience-stage,
  .experience-stage article {
    min-height: auto;
  }

  .experience-stage article {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 253, 250, 0.12);
  }

  .stage-line {
    display: none;
  }

  .experience-stage article::before {
    top: 24px;
    right: 24px;
    left: auto;
  }

  .contact-band {
    min-height: auto;
    align-items: start;
  }

  .contact-band h2 {
    font-size: 3.2rem;
  }

  .contact-orbit {
    right: -260px;
    opacity: 0.7;
  }
}

@media (max-width: 620px) {
  .topbar {
    top: 10px;
    width: calc(100% - 20px);
  }

  .brand span:last-child {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar-actions {
    gap: 6px;
  }

  .language-option {
    min-width: 35px;
    padding: 0 5px;
  }

  .language-option small {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 116px 20px 32px;
  }

  .hero-media img {
    transform: none;
  }

  h1 {
    font-size: 3.45rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .contact-band h2 {
    font-size: 2.7rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-logo {
    width: 96px;
    height: 96px;
  }

  .hero-panel,
  .skill-matrix {
    grid-template-columns: 1fr;
  }

  .stats-band {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }

  .stats-grid div {
    min-height: 104px;
    padding: 18px 16px;
    border: 1px solid rgba(255, 253, 250, 0.12);
    border-radius: 8px;
    background:
      linear-gradient(145deg, rgba(75, 125, 255, 0.15), transparent 54%),
      rgba(255, 253, 250, 0.045);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
  }

  .stats-grid div:nth-child(2),
  .stats-grid div:nth-child(-n + 2),
  .stats-grid div:last-child {
    border: 1px solid rgba(255, 253, 250, 0.12);
  }

  .stats-grid strong {
    font-size: clamp(2.1rem, 11vw, 2.85rem);
  }

  .stats-grid span {
    max-width: 10ch;
    margin-top: 8px;
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .profile-logo {
    width: min(220px, 70vw);
  }

  .work-band,
  .stats-band,
  .profile-band,
  .stack-band,
  .method-band,
  .contact-band,
  .experience-band {
    padding: 64px 20px;
  }

  .project-card,
  .project-card.featured {
    min-height: 0;
  }

  .project-visual,
  .featured .project-visual {
    height: 220px;
  }

  .scroll-cue {
    display: none;
  }

  .profile-band::before {
    font-size: 4rem;
    right: 12px;
  }

  .cursor-light {
    display: none;
  }

  .contact-card {
    padding: 12px;
  }

  .contact-channel {
    min-height: 96px;
    padding: 18px;
  }

  .contact-orbit {
    display: none;
  }
}
