/* ==========================================================================
   el Berry — Portfolio
   Dark forest palette · emerald accent · fully responsive
   Author: Victor Bassey Akpan (el Berry)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --bg: #05080d;
  --bg-deep: #030509;
  --surface: #090e16;
  --surface-2: #0b111b;
  --surface-3: #0e1622;

  --text: #eef4fb;
  --text-soft: #cfdae8;
  --muted: #93a3b8;
  --muted-2: #6c7f95;

  --accent: #5b9cff;
  --accent-strong: #3d7df0;
  --accent-2: #c2d9ff;
  --accent-ink: #040d1c;
  --accent-soft: rgba(91, 156, 255, 0.1);
  --accent-line: rgba(91, 156, 255, 0.28);
  --accent-glow: rgba(91, 156, 255, 0.28);

  --line: rgba(226, 240, 255, 0.08);
  --line-2: rgba(226, 240, 255, 0.14);

  --font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  --container: 1180px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Ambient light + film grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 640px at 12% -8%, rgba(91, 156, 255, 0.11), transparent 62%),
    radial-gradient(760px 560px at 96% 6%, rgba(91, 156, 255, 0.055), transparent 64%),
    radial-gradient(1000px 700px at 50% 108%, rgba(91, 156, 255, 0.05), transparent 66%),
    linear-gradient(180deg, #05080d 0%, #04060a 100%);
}

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

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

img {
  height: auto;
}

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

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

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

ul,
ol {
  list-style: none;
}

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

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

/* Scrollbar */
@supports (scrollbar-width: thin) {
  html {
    scrollbar-color: #1c2a3d var(--bg);
    scrollbar-width: thin;
  }
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #1c2a3d;
  border: 2px solid var(--bg);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2a3d56;
}

/* Utilities */
.container {
  width: min(calc(100% - 2.5rem), var(--container));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 0.85rem;
  transition: transform 0.25s var(--ease);
}

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

.status-dot {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 156, 255, 0.14);
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(91, 156, 255, 0.45);
  animation: ping 2.6s var(--ease-out) infinite;
}

@keyframes ping {
  0% {
    transform: scale(0.55);
    opacity: 0.9;
  }
  70%,
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   3. Typography helpers
   -------------------------------------------------------------------------- */
.eyebrow,
.section-index,
.hero__role,
dt,
.pill,
.chips li,
.toolbox__label,
.contact-card__label,
.contact-card__cta,
.skill__level,
.service__num,
.timeline__meta,
.float__label,
.footer__bottom,
.mobile-menu__list span {
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.section-index {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
}

.section-index::before {
  content: "";
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line), var(--accent));
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.5vw, 3.55rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.042em;
  text-wrap: balance;
}

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

.section-lead {
  margin-top: 1.1rem;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.section {
  position: relative;
  padding-block: clamp(5rem, 9vw, 8.5rem);
  border-top: 1px solid var(--line);
}

.marquee + .section {
  border-top: 0;
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head--center {
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}

.section-head--center .section-index {
  justify-content: center;
}

.section-head--center .section-lead {
  margin-inline: auto;
}

.section-head--split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: clamp(1.5rem, 5vw, 4rem);
  max-width: none;
}

.section-head--split .section-lead {
  margin-top: 0;
  max-width: 48ch;
  padding-bottom: 0.35rem;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.3s var(--ease),
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    color 0.3s var(--ease);
}

.btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}

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

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 12px 34px -14px rgba(91, 156, 255, 0.55);
}

.btn--primary:hover {
  background: #7db2ff;
  border-color: #7db2ff;
  transform: translateY(-2px);
  box-shadow: 0 18px 44px -14px rgba(91, 156, 255, 0.6);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--line-2);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-2);
  transform: translateY(-2px);
}

.btn--ghost svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn--sm {
  padding: 0.7rem 1.1rem;
  font-size: 0.83rem;
}

.btn--sm svg {
  width: 15px;
  height: 15px;
}

.btn--full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   5. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition:
    background-color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.is-menu-open {
  background: rgba(5, 8, 13, 0.76);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

.scroll-progress {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: transparent;
  overflow: hidden;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent-2));
  transition: transform 0.1s linear;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

/* Wordmark */
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.06em;
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 1.34rem;
  font-weight: 700;
  letter-spacing: -0.045em;
  color: var(--text);
  line-height: 1;
}

.brand__el {
  font-size: 0.62em;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.brand__dot {
  color: var(--accent);
  transform: translateY(-0.04em);
}

.brand:hover .brand__el {
  color: var(--accent-2);
}

/* Desktop nav */
.primary-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.4vw, 2rem);
}

.primary-nav a {
  position: relative;
  display: inline-block;
  padding: 0.3rem 0;
  color: var(--muted);
  font-size: 0.865rem;
  font-weight: 500;
  transition: color 0.25s var(--ease);
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.35s var(--ease);
}

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

.primary-nav a:hover::after,
.primary-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

.header__cta {
  flex: 0 0 auto;
}

/* Burger */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 120;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  color: var(--text);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.nav-toggle__bar {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transform: translateX(-50%);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle__bar:nth-child(1) {
  top: 17px;
}
.nav-toggle__bar:nth-child(2) {
  top: 23px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  top: 20px;
  transform: translateX(-50%) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  top: 20px;
  transform: translateX(-50%) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: calc(var(--header-h) + 2rem) 1.5rem 2rem;
  background: rgba(5, 8, 13, 0.97);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition:
    opacity 0.35s var(--ease),
    visibility 0.35s var(--ease),
    transform 0.45s var(--ease);
  overflow-y: auto;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
}

.mobile-menu__list li {
  border-bottom: 1px solid var(--line);
}

.mobile-menu__list a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.05rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 7vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  color: var(--text);
}

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

.mobile-menu__list span {
  width: 2rem;
  flex: 0 0 auto;
  color: var(--muted-2);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.mobile-menu__foot {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  word-break: break-word;
}

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

body.is-locked {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: calc(var(--header-h) + clamp(3.5rem, 7vw, 6rem)) 0 clamp(3.5rem, 6vw, 5.5rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(226, 240, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 240, 255, 0.045) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse 72% 62% at 50% 24%, #000 5%, transparent 72%);
  mask-image: radial-gradient(ellipse 72% 62% at 50% 24%, #000 5%, transparent 72%);
  opacity: 0.55;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  width: min(calc(100% - 2.5rem), var(--container));
}

.hero__content {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-soft);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.2;
}

.hero__name {
  display: flex;
  align-items: baseline;
  gap: 0.06em;
  margin: 1.1rem 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(4.4rem, 12vw, 9.2rem);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.07em;
  color: var(--text);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__berry {
    background: linear-gradient(178deg, #ffffff 4%, #e9f2ff 38%, #bcd7ff 78%, #6fa7ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.hero__el {
  font-size: 0.3em;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--muted);
  transform: translateY(-0.02em);
}

.hero__role {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.5rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.17em;
}

.hero__role span {
  color: var(--muted-2);
}

.hero__lead {
  max-width: 50ch;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.08rem);
  line-height: 1.78;
}

.hero__lead::first-line {
  color: var(--text-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 4vw, 3.25rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.hero__meta dt {
  color: var(--muted-2);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.hero__meta dd {
  margin-top: 0.35rem;
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 400;
  white-space: nowrap;
}

/* Portrait */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  z-index: 1;
}

.portrait {
  position: relative;
  width: min(100%, 424px);
}

.portrait__glow {
  position: absolute;
  inset: 2% -18% -10%;
  z-index: -2;
  background: radial-gradient(closest-side, rgba(91, 156, 255, 0.3), rgba(91, 156, 255, 0.08) 55%, transparent 78%);
  filter: blur(38px);
  animation: breathe 9s ease-in-out infinite alternate;
}

@keyframes breathe {
  from {
    opacity: 0.65;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1.04);
  }
}

.portrait::before {
  content: "";
  position: absolute;
  inset: -16px -16px 16px 16px;
  z-index: -1;
  border: 1px solid rgba(91, 156, 255, 0.22);
  border-radius: 260px 260px 30px 30px;
  pointer-events: none;
}

.portrait__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 250px 250px 26px 26px;
  background: var(--surface);
  box-shadow:
    0 50px 120px -44px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.portrait__frame picture,
.portrait__img {
  width: 100%;
  height: 100%;
}

.portrait__img {
  object-fit: cover;
  object-position: 50% 24%;
  filter: grayscale(1) contrast(1.06) brightness(0.97);
  transform: scale(1.01);
  transition: transform 1.2s var(--ease-out), filter 0.8s var(--ease);
}

.portrait:hover .portrait__img {
  transform: scale(1.045);
  filter: grayscale(0.82) contrast(1.08) brightness(1);
}

.portrait__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 52%, rgba(5, 8, 13, 0.62) 100%),
    radial-gradient(120% 60% at 50% 0%, transparent 60%, rgba(5, 8, 13, 0.25) 100%);
}

/* Floating cards */
.float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.72rem 0.95rem;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(8, 13, 22, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 24px 50px -26px rgba(0, 0, 0, 0.9);
  line-height: 1.3;
}

.float--status {
  top: 26px;
  left: -34px;
  animation: floaty 7s ease-in-out infinite;
}

.float--stack {
  right: -26px;
  bottom: 30px;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  animation: floaty 8s ease-in-out infinite reverse;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

.float strong {
  display: block;
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 600;
}

.float--status div > span {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
}

.float__label {
  color: var(--muted-2);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.float__value {
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   7. Marquee
   -------------------------------------------------------------------------- */
.marquee {
  position: relative;
  padding: 0.95rem 0;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.014);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

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

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

.marquee__group {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  padding-right: 2.4rem;
}

.marquee__group span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2.4rem;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee__group span::after {
  content: "✦";
  color: var(--accent);
  font-size: 0.5rem;
  opacity: 0.75;
}

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

/* --------------------------------------------------------------------------
   8. About
   -------------------------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.profile-card {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(91, 156, 255, 0.07), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: 0 34px 90px -60px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

.profile-card__media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 17px;
  background: var(--surface-3);
}

.profile-card__media picture,
.profile-card__media img {
  width: 100%;
  height: 100%;
}

.profile-card__media img {
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
  transition: transform 0.9s var(--ease-out);
}

.profile-card:hover .profile-card__media img {
  transform: scale(1.03);
}

.profile-card__body {
  padding: 1.25rem 0.6rem 0.5rem;
}

.profile-card__name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.profile-card__role {
  margin-top: 0.25rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-card__facts {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1.2rem 0 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.profile-card__facts li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.45;
}

.profile-card__facts li .status-dot {
  margin-top: 0.35rem;
  width: 7px;
  height: 7px;
}

.profile-card__facts svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 0.1rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}

.about__body {
  padding-top: 0.35rem;
}

.about__lede {
  max-width: 40ch;
  color: var(--text);
  font-size: clamp(1.2rem, 2vw, 1.38rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.about__lede strong {
  font-weight: 600;
  color: var(--accent-2);
}

.about__body > p:not(.about__lede) {
  margin-top: 1.3rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.85;
}

.about__body > p strong {
  color: var(--text-soft);
  font-weight: 500;
}

.pullquote {
  position: relative;
  margin: 2.2rem 0;
  padding: 0.35rem 0 0.35rem 1.5rem;
  border-left: 1px solid var(--accent-line);
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.3vw, 1.5rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--text-soft);
}

.pullquote cite {
  display: block;
  margin-top: 0.8rem;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem 2rem;
  margin-top: 2.2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}

.facts dt {
  color: var(--muted-2);
  font-size: 0.61rem;
  font-weight: 500;
  letter-spacing: 0.15em;
}

.facts dd {
  margin-top: 0.4rem;
  color: var(--text-soft);
  font-size: 0.86rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   9. Services
   -------------------------------------------------------------------------- */
.services {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 35%);
}

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

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.006)),
    var(--surface);
  overflow: hidden;
  transition:
    transform 0.4s var(--ease),
    border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.service::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.service::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(440px 240px at 50% -10%, rgba(91, 156, 255, 0.11), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.service:hover {
  transform: translateY(-5px);
  border-color: var(--accent-line);
  box-shadow: 0 30px 70px -50px rgba(0, 0, 0, 0.9);
}

.service:hover::before,
.service:hover::after {
  opacity: 1;
}

.service > * {
  position: relative;
  z-index: 1;
}

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

.service__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.service__icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service__num {
  color: var(--muted-2);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
}

.service h3 {
  margin: 1.5rem 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.service p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.service .chips {
  margin-top: auto;
  padding-top: 1.4rem;
}

/* Tags */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chips li {
  padding: 0.34rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  line-height: 1.4;
  white-space: nowrap;
}

.service:hover .chips li {
  border-color: rgba(91, 156, 255, 0.18);
  color: var(--text-soft);
}

.services__note {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.4rem;
  padding: 0.95rem 1.2rem;
  border: 1px dashed var(--line-2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.012);
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.5;
}

.services__note svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   10. Skills
   -------------------------------------------------------------------------- */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.skill {
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.004)), var(--surface);
  transition:
    transform 0.4s var(--ease),
    border-color 0.4s var(--ease),
    background-color 0.4s var(--ease);
}

.skill:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  background:
    linear-gradient(180deg, rgba(91, 156, 255, 0.05), rgba(255, 255, 255, 0.004)),
    var(--surface);
}

.skill__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.skill__mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(91, 156, 255, 0.16), rgba(91, 156, 255, 0.04));
  color: #7db2ff;
}

.skill__mark svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.skill__level {
  color: var(--muted-2);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  padding: 0.26rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}

.skill h3 {
  margin: 1.3rem 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.skill p {
  color: var(--muted);
  font-size: 0.855rem;
  line-height: 1.72;
}

.skill .chips {
  margin-top: 1.25rem;
}

.toolbox {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
  margin-top: 1.75rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.toolbox__label {
  color: var(--muted-2);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.chips--lg li {
  padding: 0.42rem 0.78rem;
  font-size: 0.63rem;
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   11. Education
   -------------------------------------------------------------------------- */
.edu {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: clamp(2.5rem, 7vw, 6rem);
}

.edu__intro {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.edu__note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--accent-line);
  border-radius: 14px;
  background: var(--accent-soft);
}

.edu__note .status-dot {
  margin-top: 0.4rem;
}

.edu__note p {
  color: var(--text-soft);
  font-size: 0.83rem;
  line-height: 1.55;
}

.edu__note strong {
  color: var(--text);
  font-weight: 600;
}

.timeline {
  position: relative;
  padding-left: 2.1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.55rem;
  bottom: 0.6rem;
  width: 1px;
  background: linear-gradient(180deg, var(--accent-line), var(--line) 70%, transparent);
}

.timeline__item {
  position: relative;
  padding-bottom: 2.6rem;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: calc(-2.1rem + 0px);
  top: 0.4rem;
  width: 13px;
  height: 13px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 4px var(--bg);
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.timeline__item--current::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow:
    0 0 0 4px var(--bg),
    0 0 0 5px rgba(91, 156, 255, 0.18);
}

.timeline__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted-2);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
}

.pill {
  padding: 0.24rem 0.52rem;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.56rem;
  letter-spacing: 0.09em;
  line-height: 1.3;
}

.pill--muted {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
}

.timeline__item h3 {
  margin: 0.8rem 0 0.3rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.timeline__sub {
  margin-bottom: 0.65rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}

.timeline__item > p:last-child {
  max-width: 56ch;
  color: var(--muted);
  font-size: 0.905rem;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   12. FAQ
   -------------------------------------------------------------------------- */
.faq__container {
  width: min(calc(100% - 2.5rem), 880px);
}

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

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0.2rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-soft);
  cursor: pointer;
  list-style: none;
  transition: color 0.25s var(--ease);
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary:hover {
  color: var(--accent-2);
}

.faq__icon {
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease),
    background-color 0.35s var(--ease);
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease);
}

.faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__item[open] .faq__icon {
  transform: rotate(45deg);
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}

.faq__answer {
  padding: 0 3rem 1.5rem 0.2rem;
}

.faq__answer p {
  max-width: 68ch;
  color: var(--muted);
  font-size: 0.935rem;
  line-height: 1.8;
}

.faq__answer a {
  color: var(--accent-2);
  border-bottom: 1px solid var(--accent-line);
  transition: color 0.2s var(--ease);
}

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

.faq__foot {
  margin-top: 2.2rem;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.faq__foot a {
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}

.faq__foot a:hover {
  gap: 0.55rem;
  color: var(--accent-2);
}

/* --------------------------------------------------------------------------
   13. Contact
   -------------------------------------------------------------------------- */
.contact__panel {
  position: relative;
  padding: clamp(2rem, 5vw, 4.25rem);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.008)),
    var(--surface);
  box-shadow: 0 60px 140px -90px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

.contact__glow {
  position: absolute;
  top: -55%;
  right: -18%;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(91, 156, 255, 0.22), rgba(91, 156, 255, 0.05) 55%, transparent 75%);
  filter: blur(50px);
  pointer-events: none;
}

.contact__panel .section-index {
  position: relative;
}

.contact__title {
  position: relative;
  max-width: 20ch;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.contact__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--accent-2);
}

.contact__lead {
  position: relative;
  max-width: 58ch;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.contact__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 210px;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(4, 8, 13, 0.55);
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease),
    background-color 0.35s var(--ease);
}

a.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  background: rgba(8, 14, 24, 0.75);
}

.contact-card__top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.contact-card__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}

.contact-card__icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-card__label {
  color: var(--muted-2);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
}

.contact-card__value {
  display: block;
  margin-top: 0.7rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 1.4vw, 1.02rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  word-break: break-word;
  line-height: 1.4;
  transition: color 0.25s var(--ease);
}

a.contact-card:hover .contact-card__value {
  color: var(--accent-2);
}

.contact-card__note {
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.6;
}

.contact-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--accent);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  transition: gap 0.25s var(--ease);
}

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

.contact-card__copy {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  margin-top: auto;
  padding: 0.42rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background-color 0.25s var(--ease);
}

.contact-card__copy svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-card__copy:hover {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.contact__foot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.contact__foot p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-2);
  font-size: 0.78rem;
  line-height: 1.5;
}

.contact__foot svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 3rem 0 1.6rem;
  border-top: 1px solid var(--line);
  background: rgba(4, 7, 11, 0.6);
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
}

.brand--footer {
  font-size: 1.5rem;
}

.footer__tagline {
  max-width: 42ch;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.6;
}

.footer__social {
  display: flex;
  gap: 0.55rem;
}

.footer__social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition:
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.footer__social a:hover {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.footer__social svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.6rem;
  letter-spacing: 0.07em;
  line-height: 1.6;
}

.footer__bottom a {
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

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

/* --------------------------------------------------------------------------
   15. Toast
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 300;
  transform: translate(-50%, 18px);
  padding: 0.72rem 1.15rem;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: rgba(9, 16, 12, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s var(--ease),
    transform 0.4s var(--ease-out);
}

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

/* --------------------------------------------------------------------------
   16. Reveal animations
   -------------------------------------------------------------------------- */
/* Content stays visible by default (no-JS safe). The script adds
   .is-visible to play the entrance animation once. */
.js-ready [data-reveal].is-visible {
  animation: reveal-in 0.8s var(--ease-out) both;
}

[data-reveal][data-delay="60"].is-visible { animation-delay: 0.06s; }
[data-reveal][data-delay="80"].is-visible { animation-delay: 0.08s; }
[data-reveal][data-delay="90"].is-visible { animation-delay: 0.09s; }
[data-reveal][data-delay="120"].is-visible { animation-delay: 0.12s; }
[data-reveal][data-delay="160"].is-visible { animation-delay: 0.16s; }
[data-reveal][data-delay="180"].is-visible { animation-delay: 0.18s; }
[data-reveal][data-delay="240"].is-visible { animation-delay: 0.24s; }
[data-reveal][data-delay="300"].is-visible { animation-delay: 0.3s; }

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   17. 404 page
   -------------------------------------------------------------------------- */
.error-page {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.error {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  padding: calc(var(--header-h) + 5rem) 0 5rem;
  overflow: hidden;
}

.error::before {
  content: "404";
  position: absolute;
  right: -1%;
  top: 46%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(11rem, 34vw, 27rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.09em;
  color: rgba(91, 156, 255, 0.04);
  pointer-events: none;
  user-select: none;
}

.error__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.error__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

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

.error__lead {
  max-width: 52ch;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.error__code {
  margin-top: 3rem;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   18. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero__name {
    font-size: clamp(4rem, 11.5vw, 8rem);
  }

  .skills__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service {
    padding: 1.6rem;
  }
}

@media (max-width: 980px) {
  .primary-nav,
  .header__cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

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

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .hero__visual {
    justify-content: center;
  }

  .portrait {
    width: min(100%, 382px);
  }

  .hero__lead {
    max-width: 58ch;
  }

  .section-head--split {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0.85rem;
  }

  .section-head--split .section-lead {
    max-width: 62ch;
  }

  .about__grid,
  .edu {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .profile-card {
    position: relative;
    top: auto;
    max-width: 430px;
  }

  .edu__intro {
    position: relative;
    top: auto;
    max-width: 640px;
  }

  .services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .contact-card {
    min-height: 0;
  }

  .contact-card__copy,
  .contact-card__cta {
    margin-top: 0.75rem;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 68px;
  }

  .container,
  .hero__grid {
    width: min(calc(100% - 2rem), var(--container));
  }

  .hero__name {
    font-size: clamp(4.1rem, 17.5vw, 6.2rem);
  }

  .hero__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
  }

  .hero__meta dd {
    white-space: normal;
  }

  .float--status {
    left: -10px;
    top: 16px;
  }

  .float--stack {
    right: -8px;
    bottom: 18px;
  }

  .float {
    padding: 0.62rem 0.8rem;
  }

  .float__value {
    font-size: 0.6rem;
  }

  .marquee__group {
    gap: 1.8rem;
    padding-right: 1.8rem;
  }

  .marquee__group span {
    gap: 1.8rem;
  }

  .about__grid {
    gap: 2.5rem;
  }

  .facts {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .services__grid,
  .skills__grid {
    grid-template-columns: 1fr;
  }

  .toolbox {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.9rem;
  }

  .timeline {
    padding-left: 1.7rem;
  }

  .timeline__item::before {
    left: -1.7rem;
  }

  .timeline__item {
    padding-bottom: 2.2rem;
  }

  .faq__answer {
    padding-right: 0.5rem;
  }

  .contact__panel {
    padding: 1.6rem;
    border-radius: var(--radius-lg);
  }

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

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

  .footer__tagline {
    max-width: 100%;
  }

  .footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.6rem;
  }
}

@media (max-width: 480px) {
  .eyebrow {
    font-size: 0.58rem;
    letter-spacing: 0.11em;
  }

  .hero__role {
    font-size: 0.64rem;
    letter-spacing: 0.13em;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__meta {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .portrait {
    width: min(100%, 330px);
  }

  .float--status {
    left: -4px;
    top: 12px;
  }

  .float--stack {
    right: -4px;
    bottom: 12px;
  }

  .float strong {
    font-size: 0.7rem;
  }

  .float--status div > span,
  .float__value {
    font-size: 0.56rem;
  }

  .section-title {
    font-size: clamp(1.9rem, 8vw, 2.4rem);
  }

  .profile-card {
    padding: 10px;
  }

  .service,
  .skill {
    padding: 1.4rem;
  }

  .contact__panel {
    padding: 1.35rem;
  }

  .contact-card {
    padding: 1.2rem;
  }

  .faq__item summary {
    font-size: 0.95rem;
    gap: 1rem;
  }

  .toast {
    left: 1rem;
    right: 1rem;
    bottom: 16px;
    transform: translateY(18px);
    text-align: center;
  }

  .toast.is-visible {
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   18. Motion, print & fallbacks
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .js-ready [data-reveal].is-visible {
    animation: none !important;
  }

  .marquee__track {
    animation: none;
    transform: none;
  }

  .status-dot::after,
  .portrait__glow,
  .float {
    animation: none;
  }
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  body::before,
  body::after,
  .site-header,
  .mobile-menu,
  .hero__visual,
  .marquee,
  .toast {
    display: none !important;
  }

  .section {
    padding: 1.5rem 0;
    border-color: #ddd;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  a {
    color: #111;
    text-decoration: underline;
  }
}
