:root {
  /* Pony Plans palette */
  --lavender: #6868ac;
  --rose: #cf9893;
  --teal: #119da4;
  --butter: #fde789;
  --cyan: #119da4;
  --mustard: #fde789;
  --coral: #cf9893;
  --ink: #1a1a2e;
  --cream: #fff6d6;
  --white: #ffffff;
  --soft: rgba(26, 26, 46, 0.72);
  --grad-lav-rose: linear-gradient(165deg, #6868ac 0%, #cf9893 100%);
  --grad-rose-teal: linear-gradient(165deg, #cf9893 0%, #119da4 100%);
  --grad-teal-butter: linear-gradient(165deg, #119da4 0%, #fde789 100%);
  --nav-h: 72px;
  --font-display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --font-nav: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

/* Soft light wave across the open tab — palette-tinted */
.glass-shine {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 44;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 38%,
    rgba(253, 231, 137, 0.12) 44%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(17, 157, 164, 0.14) 56%,
    transparent 62%,
    transparent 100%
  );
  background-size: 240% 240%;
  animation: glass-sweep 8s ease-in-out infinite;
  mix-blend-mode: soft-light;
  opacity: 0.8;
}

body[data-theme="light"] .glass-shine {
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 38%,
    rgba(253, 231, 137, 0.35) 44%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(207, 152, 147, 0.28) 56%,
    transparent 62%,
    transparent 100%
  );
  mix-blend-mode: overlay;
  opacity: 0.58;
}

@keyframes glass-sweep {
  0% { background-position: 130% 45%; }
  50% { background-position: -30% 55%; }
  100% { background-position: 130% 45%; }
}

/* Custom black cursor */
body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor input,
body.has-custom-cursor textarea {
  cursor: none;
}

.cursor-dot,
.cursor-ring {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  border-radius: 50%;
  opacity: 0;
  will-change: transform;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: var(--ink);
  box-shadow: 0 0 10px rgba(26, 26, 46, 0.35);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.cursor-ring {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1.5px solid rgba(26, 26, 46, 0.55);
  background: rgba(26, 26, 46, 0.06);
  transition: width 0.2s ease, height 0.2s ease, margin 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

body.is-hovering .cursor-ring {
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  background: rgba(104, 104, 172, 0.14);
}

/* White cursor on dark panels */
body[data-theme="dark"] .cursor-dot {
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.55);
}

body[data-theme="dark"] .cursor-ring {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.1);
}

body[data-theme="dark"].is-hovering .cursor-ring {
  background: rgba(255, 255, 255, 0.16);
}

.cursor-glow {
  pointer-events: none;
  position: fixed;
  width: 180px;
  height: 180px;
  margin: -90px 0 0 -90px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(253, 231, 137, 0.45) 0%,
    rgba(17, 157, 164, 0.22) 38%,
    rgba(104, 104, 172, 0.1) 58%,
    transparent 72%
  );
  z-index: 45;
  opacity: 0;
  transition: opacity 0.2s ease;
  mix-blend-mode: soft-light;
  will-change: transform;
}

body:hover .cursor-glow { opacity: 1; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.85s var(--ease),
    transform 0.85s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal--delay { --reveal-delay: 0.12s; }
.reveal--left {
  transform: translateX(-28px) scale(0.98);
}
.reveal--right {
  transform: translateX(28px) scale(0.98);
}
.reveal--left.is-in,
.reveal--right.is-in {
  transform: none;
}

/* Nav */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--nav-h);
  padding: 18px 28px;
  pointer-events: none;
}

.topnav__list {
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.28rem 0.45rem;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.topnav__link,
.topnav__slash {
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: clamp(12px, 1.25vw, 16px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  line-height: 1;
}

.topnav__slash { opacity: 0.65; user-select: none; }

.topnav__link {
  position: relative;
  padding: 4px 2px 8px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.topnav__link:hover { opacity: 0.85; transform: translateY(-1px); }

.topnav__link.is-active::after,
.topnav__link:hover::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px; bottom: 0;
  height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M1 6 C 18 1, 28 9, 45 5 S 78 1, 99 7 118 3, 119 5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 100% 100% no-repeat;
}

.menu-toggle {
  display: none;
  pointer-events: auto;
  position: absolute;
  right: 18px; top: 18px;
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.menu-toggle span {
  display: block; width: 18px; height: 2px;
  margin: 5px auto; background: #fff;
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  display: grid; place-content: center; gap: 18px;
  background: var(--grad-lav-rose);
  text-align: center;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  font-family: var(--font-nav);
  font-size: 30px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; color: #fff;
}

/* Panels */
.panel {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--nav-h) + 28px) 28px 72px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  background-size: 140% 140%;
  animation: panel-wash 18s ease-in-out infinite alternate;
}

@keyframes panel-wash {
  0% { background-position: 0% 40%; }
  100% { background-position: 100% 60%; }
}

/* Floating color orbs */
.panel__orbs {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.panel__orbs i {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  will-change: transform;
  animation: orb-drift 14s ease-in-out infinite alternate;
}
.panel__orbs i:nth-child(1) {
  width: min(42vw, 340px);
  height: min(42vw, 340px);
  top: -8%;
  right: -6%;
  background: radial-gradient(circle, var(--butter) 0%, transparent 70%);
  animation-duration: 16s;
}
.panel__orbs i:nth-child(2) {
  width: min(36vw, 280px);
  height: min(36vw, 280px);
  bottom: 8%;
  left: -8%;
  background: radial-gradient(circle, var(--rose) 0%, transparent 70%);
  animation-duration: 12s;
  animation-delay: -4s;
}
.panel__orbs i:nth-child(3) {
  width: min(28vw, 220px);
  height: min(28vw, 220px);
  top: 42%;
  left: 48%;
  background: radial-gradient(circle, var(--lavender) 0%, transparent 70%);
  animation-duration: 20s;
  animation-delay: -8s;
  opacity: 0.32;
}
.panel--ink .panel__orbs i:nth-child(1) {
  background: radial-gradient(circle, rgba(104, 104, 172, 0.7) 0%, transparent 70%);
  opacity: 0.55;
}
.panel--ink .panel__orbs i:nth-child(2) {
  background: radial-gradient(circle, rgba(17, 157, 164, 0.55) 0%, transparent 70%);
}
.panel--ink .panel__orbs i:nth-child(3) {
  background: radial-gradient(circle, rgba(207, 152, 147, 0.45) 0%, transparent 70%);
}

@keyframes orb-drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18px, -22px) scale(1.08); }
  100% { transform: translate(-14px, 16px) scale(0.94); }
}

/* Clean glass sheet — smooth, no speckles */
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(155deg, rgba(255,255,255,0.34) 0%, rgba(255,255,255,0.1) 36%, rgba(255,255,255,0.02) 72%, transparent 100%);
}

.panel--ink::before {
  background:
    linear-gradient(160deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.03) 48%, transparent 100%);
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.16) 0%, transparent 32%);
  opacity: 1;
}

.panel__inner {
  position: relative;
  z-index: 1;
  width: min(1140px, 100%);
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Palette panels */
.panel--cyan {
  background-image: linear-gradient(155deg, #1bb4bb 0%, #119da4 42%, #0e868c 72%, #cf9893 140%);
  color: var(--ink);
}
.panel--ink {
  background-image: linear-gradient(165deg, #2c2c4a 0%, #1a1a2e 48%, #12121f 100%);
  color: var(--white);
}
.panel--mustard {
  background-image: linear-gradient(155deg, #fff1b0 0%, #fde789 45%, #cf9893 130%);
  color: var(--ink);
}
.panel--coral {
  background-image: linear-gradient(155deg, #dfb0ab 0%, #cf9893 48%, #6868ac 125%);
  color: var(--ink);
}
.panel--teal {
  background-image: linear-gradient(155deg, #7a7abe 0%, #6868ac 48%, #119da4 120%);
  color: var(--white);
}
.panel--cream {
  background-image: linear-gradient(155deg, #fffdf5 0%, #fde789 55%, #f5d9c8 120%);
  color: var(--ink);
}

.glass-card {
  padding: clamp(22px, 3vw, 32px);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}
.glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.35) 48%,
    transparent 66%
  );
  transform: translateX(-120%);
  animation: card-shimmer 7s ease-in-out infinite;
}
.glass-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 24px 56px rgba(104, 104, 172, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
@keyframes card-shimmer {
  0%, 55% { transform: translateX(-120%); }
  75%, 100% { transform: translateX(120%); }
}

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-nav);
  font-size: 15px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.eyebrow--soft { color: rgba(255, 255, 255, 0.7); }

.display {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(34px, 5.8vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  max-width: 16ch;
}
.display--light { color: #fff; }
.display__line { display: block; }

.lead {
  margin: 0 0 28px;
  max-width: 38rem;
  font-size: clamp(17px, 2vw, 21px);
  color: var(--soft);
}
.lead--light { color: rgba(255, 255, 255, 0.82); }
.lead a { text-decoration: underline; text-underline-offset: 3px; }

/* Home layout */
#home .panel__inner.home {
  width: min(1280px, 100%);
}
.home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.95fr);
  grid-template-areas:
    "copy portrait"
    "pills pills";
  gap: 20px 36px;
  align-items: start;
}
.home__copy {
  grid-area: copy;
  min-width: 0;
}
.home__portrait {
  grid-area: portrait;
  justify-self: end;
  align-self: center;
  width: min(460px, 100%);
  position: relative;
  z-index: 1;
}
.home .display { max-width: 14ch; }
.home .score-board {
  max-width: none;
  width: 100%;
  margin: 0;
}
.home .pill-row {
  grid-area: pills;
  max-width: none;
  width: 100%;
  margin-top: 2px;
}

.role-line {
  display: grid;
  margin-top: 0.12em;
  color: #fff;
}
.role {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
  white-space: nowrap;
}
.role.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* Portrait frame */
.portrait {
  position: relative;
  width: 100%;
  margin-inline: 0;
  aspect-ratio: 1;
  overflow: visible;
}

.portrait__glow {
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(253, 231, 137, 0.55) 0%,
    rgba(17, 157, 164, 0.28) 38%,
    rgba(104, 104, 172, 0.14) 58%,
    transparent 72%
  );
  filter: blur(6px);
  z-index: 0;
  animation: pulse-glow 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.75; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

.portrait__ring,
.portrait__ring--2 {
  position: absolute;
  inset: -10px;
  z-index: 1;
  border-radius: 28% 32% 30% 34% / 32% 28% 34% 30%;
  border: 2px solid rgba(255,255,255,0.7);
  animation: spin-slow 18s linear infinite;
}
.portrait__ring--2 {
  inset: -22px;
  border-color: rgba(255,255,255,0.35);
  animation-direction: reverse;
  animation-duration: 26s;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }

.portrait__frame {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 26% 30% 28% 32% / 30% 26% 32% 28%;
  overflow: hidden;
  background: #0e7f85;
  box-shadow:
    0 28px 70px rgba(26, 26, 46, 0.32),
    0 0 0 7px rgba(253, 231, 137, 0.55),
    0 0 0 14px rgba(104, 104, 172, 0.28),
    0 0 40px rgba(17, 157, 164, 0.35);
  transform: rotate(-2deg);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.portrait:hover .portrait__frame {
  transform: rotate(0deg) scale(1.03);
  box-shadow:
    0 34px 80px rgba(26, 26, 46, 0.36),
    0 0 0 8px rgba(253, 231, 137, 0.72),
    0 0 0 16px rgba(104, 104, 172, 0.34),
    0 0 55px rgba(17, 157, 164, 0.48);
}
.portrait__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.portrait:hover .portrait__frame img { transform: scale(1.07); }

.portrait__badge {
  position: absolute;
  right: -6px; bottom: 18px;
  z-index: 3;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-nav);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  animation: bob 3.2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Social icons — Tiureth-style squircles */
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}
.social {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 15px;
  border: 1.5px solid rgba(20, 20, 20, 0.22);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.25s var(--ease), background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  animation: float-soft 4.8s ease-in-out infinite;
}
.social:nth-child(2) { animation-delay: 0.35s; }
.social:nth-child(3) { animation-delay: 0.7s; }
.social:nth-child(4) { animation-delay: 1.05s; }
.social:nth-child(5) { animation-delay: 1.4s; }
.social:nth-child(6) { animation-delay: 1.75s; }
.social:nth-child(7) { animation-delay: 2.1s; }
.social svg { width: 20px; height: 20px; }
.social:hover {
  transform: translateY(-6px) scale(1.08);
  background: var(--lavender);
  border-color: var(--lavender);
  color: #fff;
  box-shadow: 0 14px 32px rgba(104, 104, 172, 0.35);
  animation: none;
}
@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.socials--lg .social {
  width: auto;
  min-width: 56px;
  height: 48px;
  padding: 0 14px;
  font-family: var(--font-nav);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.home__actions {
  display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px;
}

.pill-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px 12px;
  width: 100%;
  position: relative;
  z-index: 2;
}
.pill-row li {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 0;
  padding: 10px 12px;
  border: 1.5px solid rgba(20, 20, 20, 0.18);
  border-radius: 999px;
  font-size: clamp(11px, 0.95vw, 13px);
  font-weight: 600;
  line-height: 1.2;
  background: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 12px rgba(26, 26, 46, 0.06);
  transition: transform 0.2s ease, background 0.2s ease;
}
.pill-row li:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.55);
}

.mark {
  position: absolute; left: 22px; bottom: 22px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 18px; letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

/* About */
.stats { margin: 0; display: grid; gap: 18px; }
.stats--row {
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 8px;
  max-width: 920px;
}
.stats div {
  padding: 22px 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.3s var(--ease), background 0.3s ease;
}
.stats div:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
}
.stats dt {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1; margin-bottom: 6px;
}
.stats dd {
  margin: 0;
  font-family: var(--font-nav);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 14px; opacity: 0.7;
}

/* Resume — Tiureth-style story + project chips */
#resume .panel__inner {
  width: min(1280px, 100%);
}
#resume .display {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(26px, 3.8vw, 52px);
  letter-spacing: -0.025em;
}
.resume-story {
  max-width: none;
  width: 100%;
  margin-bottom: 22px;
}
.resume-story p {
  margin: 0 0 18px;
  font-size: clamp(18px, 1.95vw, 22px);
  line-height: 1.7;
  color: rgba(20, 20, 20, 0.82);
}
.resume-story p:last-child { margin-bottom: 0; }
.resume-story a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(17, 157, 164, 0.4);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.resume-story a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.ambass-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  max-width: none;
  width: 100%;
}
.ambass-list a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 16px;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  min-width: 0;
  background:
    linear-gradient(118deg, #e4e4e8 0%, #b0b0b6 28%, #5c5c64 62%, #1c1c22 88%, #0c0c10 100%);
  box-shadow:
    0 14px 28px rgba(26, 26, 46, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35);
  transition: transform 0.22s var(--ease), box-shadow 0.22s ease, filter 0.22s ease;
}
.ambass-list a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.42;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}
.ambass-list a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.28) 0%,
    transparent 38%,
    transparent 62%,
    rgba(0, 0, 0, 0.25) 100%
  );
}
.ambass-list a:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);
  box-shadow:
    0 18px 36px rgba(26, 26, 46, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}
.ambass-logo {
  position: relative;
  z-index: 1;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--c, var(--teal));
  box-shadow:
    0 8px 16px color-mix(in srgb, var(--c, var(--teal)) 45%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.ambass-logo[style*="#fde789"] { color: var(--ink); }
.ambass-text {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  min-width: 0;
}
.ambass-text b {
  font-family: var(--font-nav);
  font-size: clamp(11px, 1.05vw, 14px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #f4f4f6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ambass-text small {
  font-size: clamp(10px, 0.9vw, 12px);
  color: rgba(230, 230, 235, 0.72);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Services */
.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 8px 0 36px;
}
.step {
  padding: 22px;
  border-radius: 20px;
  background: rgba(20, 20, 20, 0.08);
  border: 1px solid rgba(20, 20, 20, 0.12);
  transition: transform 0.3s var(--ease), background 0.3s ease;
}
.step:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.28);
}
.step__n {
  display: block;
  font-family: var(--font-nav);
  font-weight: 700; letter-spacing: 0.12em;
  margin-bottom: 10px; opacity: 0.55;
}
.step h3, .subhead {
  margin: 0 0 10px;
  font-family: var(--font-nav);
  font-size: 22px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.step p { margin: 0; font-size: 15px; color: var(--soft); }

.help-list {
  margin: 0; padding: 0; list-style: none;
  display: grid; gap: 10px;
}
.help-list li {
  position: relative;
  padding: 14px 16px 14px 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.28);
  font-size: 15px;
  transition: transform 0.25s var(--ease);
}
.help-list li:hover { transform: translateX(6px); }
.help-list li::before {
  content: "/";
  position: absolute; left: 16px; top: 14px;
  font-family: var(--font-nav);
  font-weight: 700; font-size: 18px;
}

/* Skills — circular like Tiureth, Adam colors */
.skill-circles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.skill-circle {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 18px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s var(--ease), background 0.3s ease;
}
.skill-circle:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.42);
}
.skill-circle svg {
  width: 84px; height: 84px;
  transform: rotate(-90deg);
}
.skill-circle .bg {
  fill: none;
  stroke: rgba(20, 20, 20, 0.12);
  stroke-width: 3.2;
}
.skill-circle .fg {
  fill: none;
  stroke: var(--lavender);
  stroke-width: 3.2;
  stroke-linecap: round;
  transition: stroke-dasharray 1.2s var(--ease);
}
.skill-circle strong {
  margin-top: -58px;
  font-family: var(--font-nav);
  font-size: 16px;
  position: relative;
  z-index: 1;
}
.skill-circle span {
  font-family: var(--font-nav);
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}

.skills-bottom {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 18px;
}
.pill-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.12);
  font-family: var(--font-nav);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.lang-block, .pro-block {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.lang-list, .pro-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 14px;
}
.lang-list li {
  display: grid;
  grid-template-columns: 36px 110px 140px 44px;
  column-gap: 12px;
  align-items: center;
}
.lang-flag {
  width: 36px; height: 28px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-nav);
  font-size: 12px; font-weight: 700;
}
.lang-name {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
.dots {
  display: grid;
  grid-template-columns: repeat(10, 10px);
  column-gap: 4px;
  align-items: center;
  justify-items: center;
  width: 140px;
}
.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.18);
  display: block;
}
.dots i.on {
  background: var(--ink);
}
.lang-list strong {
  font-family: var(--font-nav);
  font-size: 14px;
  text-align: right;
  width: 44px;
}
.pro-list li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  font-weight: 500;
}
.pro-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.35em;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.35);
}
.pro-list li::after {
  content: "";
  position: absolute;
  left: 4px; top: calc(0.35em + 4px);
  width: 6px; height: 3px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* Testimonials carousel */
.t-carousel {
  position: relative;
  margin-top: 8px;
  min-height: 280px;
}
.t-track { position: relative; min-height: 240px; }
.t-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(40px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  padding: 28px clamp(20px, 4vw, 36px);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.14);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.t-card.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.t-card__title {
  margin: 0 0 12px;
  font-family: var(--font-nav);
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan);
}
.t-card__text {
  margin: 0 0 18px;
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255,255,255,0.86);
  max-width: 48rem;
  line-height: 1.55;
}
.t-card__meta {
  display: flex; flex-wrap: wrap; gap: 12px 18px;
  font-family: var(--font-nav);
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  opacity: 0.7;
}
.t-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin-top: 18px;
}
.t-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.t-btn:hover {
  background: rgba(255,255,255,0.1);
  transform: scale(1.05);
}
.t-dots { display: flex; gap: 8px; }
.t-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.28);
  cursor: pointer;
  padding: 0;
  transition: width 0.3s ease, background 0.3s ease;
}
.t-dots button.is-on {
  width: 22px;
  border-radius: 999px;
  background: var(--cyan);
}

/* Work */
.work-intro { margin-top: -8px; }
#work .panel__inner {
  width: min(1280px, 100%);
}
#work .display {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(28px, 4vw, 56px);
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.work-card {
  padding: 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  min-height: 160px;
  transition: transform 0.3s var(--ease), background 0.3s ease;
}
.work-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.16);
}
.work-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-nav);
  font-size: 22px; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.work-card p {
  margin: 0; font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
}

/* Audience */
.audience-intro { margin-top: -6px; }
.audience-bars {
  list-style: none; margin: 12px 0 0; padding: 0;
  display: grid; gap: 16px; max-width: 720px;
}
.audience-bars__meta {
  display: flex; justify-content: space-between;
  margin-bottom: 6px;
  font-family: var(--font-nav);
  font-size: 18px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.audience-bars__track {
  height: 12px; border-radius: 999px;
  background: rgba(20, 20, 20, 0.12);
  overflow: hidden;
}
.audience-bars__track i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--lavender), var(--teal));
  border-radius: inherit;
  min-width: 0;
  transition: width 1.2s var(--ease);
}
.audience-bars li.reveal.is-in .audience-bars__track i {
  width: var(--p);
}

/* Contact */
.contact .display { max-width: 14ch; }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.contact__direct p { margin: 0 0 12px; font-weight: 600; }
.contact__big {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-nav);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid rgba(20, 20, 20, 0.25);
  width: fit-content;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.contact__big:hover {
  border-color: var(--ink);
  transform: translateX(4px);
}
.contact-form { display: grid; gap: 12px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 2px solid rgba(20, 20, 20, 0.35);
  background: transparent;
  padding: 14px 2px;
  font: inherit; font-size: 16px;
  color: var(--ink);
  outline: none; resize: vertical;
  transition: border-color 0.2s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(20, 20, 20, 0.45); }
.contact-form input:focus,
.contact-form textarea:focus { border-bottom-color: var(--ink); }
.contact-form .btn-chrome {
  justify-self: start;
  min-width: 140px;
  margin-top: 6px;
}
.form-note { margin: 0; font-size: 13px; opacity: 0.65; }

.site-foot {
  width: min(1140px, 100%);
  margin: 40px auto 0;
  display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 10px;
  font-family: var(--font-nav);
  font-size: 14px; letter-spacing: 0.06em;
  text-transform: uppercase; opacity: 0.75;
}
.site-foot a { text-decoration: none; }

/* ===== Soft neumorphic pills (shape from screen 2, style from screen 1) ===== */
.btn-chrome {
  --neu: #e6e9ee;
  --neu-dark: #b8c0ca;
  --neu-light: #ffffff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  color: var(--ink);
  background:
    radial-gradient(120% 90% at 18% 22%, rgba(255, 255, 255, 0.95) 0%, transparent 42%),
    radial-gradient(90% 80% at 78% 82%, rgba(160, 170, 182, 0.45) 0%, transparent 50%),
    linear-gradient(160deg, #f3f5f8 0%, #e6e9ee 48%, #d4dae2 100%);
  box-shadow:
    10px 12px 22px rgba(90, 105, 120, 0.28),
    -6px -6px 14px rgba(255, 255, 255, 0.85),
    inset 5px 5px 10px rgba(170, 180, 192, 0.45),
    inset -4px -4px 9px rgba(255, 255, 255, 0.9);
  isolation: isolate;
  overflow: hidden;
  transform: translateZ(0);
  transition: transform 0.28s var(--ease), box-shadow 0.28s ease;
  animation: chrome-float 5.5s ease-in-out infinite;
}
.btn-chrome:nth-child(2) { animation-delay: 0.4s; }
.btn-chrome:nth-child(3) { animation-delay: 0.8s; }
.home__actions .btn-chrome { min-width: 132px; }
.btn-chrome--wide {
  width: 100%;
  justify-content: stretch;
  animation: none;
  border-radius: 999px;
}
.btn-chrome__shine {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 70% 55% at 22% 18%, rgba(255, 255, 255, 0.55), transparent 60%);
  z-index: 0;
  opacity: 0.9;
}
.btn-chrome__label,
.btn-chrome__row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 22px;
  border-radius: inherit;
  font-family: var(--font-nav);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2a3340;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.btn-chrome__row {
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
}
.btn-chrome__row .btn-chrome__label {
  width: auto;
  min-height: 0;
  padding: 0;
  justify-content: flex-start;
}
.btn-chrome__val {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: #1a1a2e;
}
.btn-chrome:hover {
  transform: translateY(-4px);
  box-shadow:
    12px 16px 28px rgba(90, 105, 120, 0.32),
    -7px -7px 16px rgba(255, 255, 255, 0.9),
    inset 4px 4px 9px rgba(170, 180, 192, 0.4),
    inset -4px -4px 10px rgba(255, 255, 255, 0.95);
  animation: none;
}
.btn-chrome:active {
  transform: translateY(0);
  box-shadow:
    4px 6px 12px rgba(90, 105, 120, 0.22),
    -3px -3px 8px rgba(255, 255, 255, 0.7),
    inset 6px 6px 12px rgba(150, 162, 176, 0.55),
    inset -3px -3px 8px rgba(255, 255, 255, 0.75);
}
.btn-chrome--wide:hover { transform: translateY(-3px) translateX(2px); }
@keyframes chrome-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.score-board {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  max-width: 420px;
}

/* ===== Faceted gem tiles (ref 2) ===== */
.gem-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 8px;
  max-width: 520px;
}
.btn-gem {
  --gem-size: 92px;
  position: relative;
  width: var(--gem-size);
  height: var(--gem-size);
  display: grid;
  place-items: center;
  text-decoration: none;
  border-radius: 22px;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: transparent;
  transform-style: preserve-3d;
  perspective: 600px;
  animation: gem-float 6s ease-in-out infinite;
  transition: transform 0.3s var(--ease), filter 0.3s ease;
}
.btn-gem:nth-child(2) { animation-delay: 0.35s; }
.btn-gem:nth-child(3) { animation-delay: 0.7s; }
.btn-gem:nth-child(4) { animation-delay: 1.05s; }
.btn-gem:nth-child(5) { animation-delay: 1.4s; }
.btn-gem:nth-child(6) { animation-delay: 1.75s; }
.btn-gem__glass {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.55) 0%, transparent 28%),
    linear-gradient(320deg, rgba(255, 90, 60, 0.45) 0%, transparent 36%),
    linear-gradient(200deg, rgba(40, 90, 180, 0.55) 0%, rgba(20, 40, 90, 0.35) 55%, rgba(10, 20, 40, 0.5) 100%),
    linear-gradient(125deg, #3a6fd4 0%, #1a3a7a 48%, #0d1f45 100%);
  box-shadow:
    0 16px 28px rgba(10, 20, 40, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.35) inset,
    0 0 0 2px rgba(20, 40, 80, 0.35),
    inset 8px 8px 16px rgba(255, 255, 255, 0.18),
    inset -10px -12px 20px rgba(8, 16, 40, 0.45),
    inset -18px 10px 22px rgba(255, 80, 50, 0.22);
  clip-path: polygon(
    8% 0%, 92% 0%, 100% 10%, 100% 90%, 92% 100%, 8% 100%, 0% 90%, 0% 10%
  );
  overflow: hidden;
}
.btn-gem__glass::before {
  content: "";
  position: absolute;
  inset: 10% 12% 42% 12%;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.05));
  clip-path: polygon(0 0, 100% 0, 78% 100%, 22% 100%);
  opacity: 0.75;
  filter: blur(0.2px);
}
.btn-gem__glass::after {
  content: "";
  position: absolute;
  right: 8%;
  top: 18%;
  width: 28%;
  height: 42%;
  background: linear-gradient(200deg, rgba(255, 120, 80, 0.65), transparent 70%);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 70%);
  filter: blur(0.5px);
  opacity: 0.85;
}
.btn-gem__label {
  position: relative;
  z-index: 2;
  max-width: 78%;
  text-align: center;
  font-family: var(--font-nav);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.15;
  color: #f4f8ff;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.55),
    0 0 12px rgba(80, 140, 255, 0.35);
}
.btn-gem:hover {
  transform: translateY(-8px) rotateX(8deg) rotateY(-8deg) scale(1.04);
  animation: none;
  filter: saturate(1.15) brightness(1.06);
}
.btn-gem:hover .btn-gem__glass {
  box-shadow:
    0 22px 36px rgba(10, 20, 40, 0.42),
    0 0 24px rgba(255, 100, 60, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.45) inset,
    inset 8px 8px 16px rgba(255, 255, 255, 0.22),
    inset -10px -12px 20px rgba(8, 16, 40, 0.45);
}
@keyframes gem-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-7px) rotate(1.5deg); }
}

/* Wide faceted cards (Work section) */
.btn-gem--card {
  --gem-size: auto;
  width: 100%;
  height: auto;
  min-height: 148px;
  display: block;
  padding: 0;
  animation: gem-card-float 7s ease-in-out infinite;
  border-radius: 26px;
}
.btn-gem--card .btn-gem__glass {
  border-radius: 26px;
  clip-path: polygon(
    4% 0%, 96% 0%, 100% 8%, 100% 92%, 96% 100%, 4% 100%, 0% 92%, 0% 8%
  );
}
.btn-gem--card .btn-gem__copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  padding: 28px 24px;
  text-align: left;
}
.btn-gem--card .btn-gem__label {
  max-width: none;
  text-align: left;
  font-size: 20px;
  letter-spacing: 0.05em;
}
.btn-gem__hint {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.45;
  color: rgba(235, 242, 255, 0.82);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.btn-gem--card:hover {
  transform: translateY(-8px) rotateX(4deg) rotateY(-3deg) scale(1.015);
}
@keyframes gem-card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Nav theme on light panels */
body[data-theme="light"] .topnav__link,
body[data-theme="light"] .topnav__slash { color: var(--ink); }
body[data-theme="light"] .topnav__list { background: rgba(255, 255, 255, 0.42); }
body[data-theme="light"] .topnav__link.is-active::after,
body[data-theme="light"] .topnav__link:hover::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M1 6 C 18 1, 28 9, 45 5 S 78 1, 99 7 118 3, 119 5' fill='none' stroke='%231a1a2e' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 100% 100% no-repeat;
}
body[data-theme="light"] .menu-toggle span { background: var(--ink); }
body[data-theme="light"] .cursor-glow {
  background: radial-gradient(
    circle,
    rgba(253, 231, 137, 0.55) 0%,
    rgba(207, 152, 147, 0.28) 36%,
    rgba(17, 157, 164, 0.16) 55%,
    transparent 72%
  );
  mix-blend-mode: soft-light;
}
body[data-theme="dark"] .cursor-glow {
  background: radial-gradient(
    circle,
    rgba(253, 231, 137, 0.32) 0%,
    rgba(104, 104, 172, 0.22) 40%,
    rgba(17, 157, 164, 0.12) 58%,
    transparent 72%
  );
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .role, .work-card, .btn, .btn-chrome, .btn-gem, .portrait__ring, .portrait__badge,
  .glass-shine, .panel, .panel__orbs i, .social, .glass-card::after, .btn-chrome__shine, .ambass-list a {
    animation: none !important;
    transition: none !important;
  }
  .glass-shine { opacity: 0.3; animation: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .panel { background-size: auto; }
  body.has-custom-cursor,
  body.has-custom-cursor a,
  body.has-custom-cursor button {
    cursor: auto;
  }
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

@media (max-width: 980px) {
  .home, .skills-bottom, .contact__grid, .steps, .stats--row {
    grid-template-columns: 1fr;
  }
  .home {
    grid-template-areas:
      "portrait"
      "copy"
      "pills";
    gap: 24px;
  }
  .home__portrait {
    justify-self: center;
    width: min(340px, 78vw);
  }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .skill-circles { grid-template-columns: repeat(3, 1fr); }
  .display { max-width: none; }
  .portrait { margin-inline: auto; }
  .pill-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  #resume .display {
    white-space: normal;
    font-size: clamp(28px, 6vw, 44px);
  }
  #work .display {
    white-space: normal;
    font-size: clamp(28px, 6vw, 44px);
  }
  .ambass-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topnav__list { display: none; }
  .menu-toggle { display: block; }
  .panel { padding: calc(var(--nav-h) + 12px) 18px 56px; }
  .work-grid, .skill-circles { grid-template-columns: 1fr 1fr; }
  .role { white-space: normal; }
  .mark { display: none; }
  .btn-gem { --gem-size: 78px; }
  .btn-gem__label { font-size: 11px; }
  .pill-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pill-row li { font-size: 12px; padding: 8px 10px; }
  .ambass-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lang-list li {
    grid-template-columns: 36px 90px 120px 40px;
    column-gap: 8px;
  }
  .dots {
    width: 120px;
    grid-template-columns: repeat(10, 8px);
    column-gap: 4px;
  }
  .dots i { width: 8px; height: 8px; }
}
