:root {
  --ink: #101114;
  --text: #1f2f46;
  --muted: #5f6674;
  --left-bg: #f1f1f3;
  --right-bg: #d6dee8;
  --surface: #ffffff;
  --line: #d6d9de;
  --radius: 22px;

  /* Glassmorphism + light skeuomorphic design tokens (pilot: hero + achievements) */
  --glass-bg: rgba(255, 255, 255, 0.58);
  --glass-bg-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-blur: blur(18px) saturate(180%);
  --skeu-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --skeu-inset-edge: inset 0 -1px 0 rgba(15, 23, 42, 0.05);
  --skeu-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 18px rgba(15, 23, 42, 0.08);
  --skeu-shadow-lg: 0 1px 2px rgba(15, 23, 42, 0.08), 0 18px 36px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--surface);
  font-family: "Manrope", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.hero {
  height: 100svh;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  overflow: hidden;
}

.left-pane {
  background: var(--left-bg);
  padding: clamp(24px, 3vw, 40px) clamp(24px, 5vw, 72px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  row-gap: clamp(24px, 3.2vh, 32px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 700;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: block;
  flex: 0 0 auto;
}

.brand-word {
  display: inline-block;
  line-height: 1;
}

.hero-copy {
  align-self: center;
  max-width: min(560px, 100%);
  display: grid;
  row-gap: 16px;
}

.kicker {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.38em;
  font-size: 0.86rem;
  font-weight: 600;
}

.intro-line {
  margin: 0;
  color: #324663;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  font-weight: 700;
}

.typing-title {
  margin: 0;
  min-height: 2.2em;
  max-width: 12ch;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 4.3vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.08;
  text-wrap: balance;
}

.typing-caret {
  color: #1f2f46;
  animation: blink 1s step-end infinite;
}

.lead {
  margin: 0;
  max-width: min(560px, 100%);
  color: #324663;
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.6;
}

.actions {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.social-links {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  display: grid;
  place-items: center;
  color: #101114;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--skeu-highlight), var(--skeu-shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: #9db7e5;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
}

.btn {
  text-decoration: none;
  font-weight: 700;
  font-size: 1.02rem;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(180deg, #1c1d22 0%, #101114 60%, #060607 100%);
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  border: 1px solid #101114;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 20px rgba(15, 23, 42, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.btn-primary:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 14px 26px rgba(15, 23, 42, 0.28);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35), 0 6px 14px rgba(15, 23, 42, 0.2);
}

.btn-link {
  color: #101114;
  padding: 0.7rem 1rem;
  border-radius: 999px;
}

.btn-link span {
  margin-left: 0.3rem;
}

.facts {
  margin-top: 0;
  border-top: 1px solid #d2d5da;
  padding-top: 24px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.label {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.value {
  margin: 0.26rem 0 0;
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 600;
}

.right-pane {
  position: relative;
  background: var(--right-bg);
  padding: clamp(20px, 2.6vw, 34px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  row-gap: 24px;
}

.top-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "brand nav actions";
  align-items: center;
  gap: 16px;
  position: relative;
}

.top-nav-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
}

.nav-brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: var(--ink);
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  justify-self: start;
}

.nav-mark {
  width: 28px;
  height: 28px;
  display: block;
  flex: 0 0 auto;
}

.nav-word {
  display: inline-block;
  line-height: 1;
}

.menu-btn {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid #c4cad4;
  background: rgba(243, 245, 248, 0.95);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  cursor: pointer;
  z-index: 160;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.menu-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.menu-icon-line {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #111318;
  transition: transform 240ms ease, opacity 240ms ease;
}

.menu-btn.is-open .menu-icon-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-btn.is-open .menu-icon-line:nth-child(2) {
  opacity: 0;
}

.menu-btn.is-open .menu-icon-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: linear-gradient(150deg, rgba(18, 27, 43, 0.97) 0%, rgba(13, 22, 35, 0.96) 52%, rgba(15, 30, 54, 0.95) 100%);
  opacity: 0;
  transform: translateY(-10px) scale(0.99);
  pointer-events: none;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), opacity 200ms ease;
  will-change: transform, opacity;
}

.mobile-menu-list {
  margin: 0;
  padding: clamp(86px, 14vh, 128px) clamp(24px, 6vw, 38px) 36px;
  list-style: none;
  display: grid;
  gap: 12px;
}

.mobile-menu-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #f8fafc;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(1.25rem, 6vw, 1.9rem);
  font-weight: 700;
  padding: 0.3rem 0;
  transition: color 200ms ease, transform 220ms ease;
}

.mobile-menu-list a::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #38bdf8;
  transform: translateY(-50%) scale(0.2);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.mobile-menu-list a:hover,
.mobile-menu-list a:focus-visible {
  color: #93c5fd;
  transform: translateX(6px);
}

.mobile-menu-list a:hover::before,
.mobile-menu-list a:focus-visible::before {
  transform: translateY(-50%) scale(1);
  opacity: 1;
}

body.mobile-menu-open {
  overflow: hidden;
}

body.mobile-menu-open .mobile-menu-overlay {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

#siteNav {
  grid-area: nav;
  display: flex;
  gap: clamp(0.55rem, 1.05vw, 1.6rem);
  justify-content: center;
  justify-self: center;
}

#siteNav a {
  color: #111318;
  text-decoration: none;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 700;
}

.theme-switch {
  --toggle-size: 14px;
  flex: 0 0 auto;
}

/* From Uiverse.io by Galahhad */
.theme-switch {
  --container-width: 5.625em;
  --container-height: 2.5em;
  --container-radius: 6.25em;
  --container-light-bg: #3d7eae;
  --container-night-bg: #1d1f2c;
  --circle-container-diameter: 3.375em;
  --sun-moon-diameter: 2.125em;
  --sun-bg: #ecca2f;
  --moon-bg: #c4c9d1;
  --spot-color: #959db1;
  --circle-container-offset: calc((var(--circle-container-diameter) - var(--container-height)) / 2 * -1);
  --stars-color: #fff;
  --clouds-color: #f3fdff;
  --back-clouds-color: #aacadf;
  --transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
  --circle-transition: 0.3s cubic-bezier(0, -0.02, 0.35, 1.17);
}

.theme-switch,
.theme-switch *,
.theme-switch *::before,
.theme-switch *::after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-size: var(--toggle-size);
}

.theme-switch__container {
  width: var(--container-width);
  height: var(--container-height);
  background-color: var(--container-light-bg);
  border-radius: var(--container-radius);
  overflow: hidden;
  cursor: pointer;
  -webkit-box-shadow: 0em -0.062em 0.062em rgba(0, 0, 0, 0.25), 0em 0.062em 0.125em rgba(255, 255, 255, 0.94);
  box-shadow: 0em -0.062em 0.062em rgba(0, 0, 0, 0.25), 0em 0.062em 0.125em rgba(255, 255, 255, 0.94);
  -webkit-transition: var(--transition);
  -o-transition: var(--transition);
  transition: var(--transition);
  position: relative;
}

.theme-switch__container::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  -webkit-box-shadow: 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset, 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset;
  box-shadow: 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset, 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset;
  border-radius: var(--container-radius);
}

.theme-switch__checkbox {
  display: none;
}

.theme-switch__circle-container {
  width: var(--circle-container-diameter);
  height: var(--circle-container-diameter);
  background-color: rgba(255, 255, 255, 0.1);
  position: absolute;
  left: var(--circle-container-offset);
  top: var(--circle-container-offset);
  border-radius: var(--container-radius);
  -webkit-box-shadow: inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), 0 0 0 0.625em rgba(255, 255, 255, 0.1), 0 0 0 1.25em rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), 0 0 0 0.625em rgba(255, 255, 255, 0.1), 0 0 0 1.25em rgba(255, 255, 255, 0.1);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-transition: var(--circle-transition);
  -o-transition: var(--circle-transition);
  transition: var(--circle-transition);
  pointer-events: none;
}

.theme-switch__sun-moon-container {
  pointer-events: auto;
  position: relative;
  z-index: 2;
  width: var(--sun-moon-diameter);
  height: var(--sun-moon-diameter);
  margin: auto;
  border-radius: var(--container-radius);
  background-color: var(--sun-bg);
  -webkit-box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #a1872a inset;
  box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #a1872a inset;
  -webkit-filter: drop-shadow(0.062em 0.125em 0.125em rgba(0, 0, 0, 0.25)) drop-shadow(0em 0.062em 0.125em rgba(0, 0, 0, 0.25));
  filter: drop-shadow(0.062em 0.125em 0.125em rgba(0, 0, 0, 0.25)) drop-shadow(0em 0.062em 0.125em rgba(0, 0, 0, 0.25));
  overflow: hidden;
  -webkit-transition: var(--transition);
  -o-transition: var(--transition);
  transition: var(--transition);
}

.theme-switch__moon {
  -webkit-transform: translateX(100%);
  -ms-transform: translateX(100%);
  transform: translateX(100%);
  width: 100%;
  height: 100%;
  background-color: var(--moon-bg);
  border-radius: inherit;
  -webkit-box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #969696 inset;
  box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #969696 inset;
  -webkit-transition: var(--transition);
  -o-transition: var(--transition);
  transition: var(--transition);
  position: relative;
}

.theme-switch__spot {
  position: absolute;
  top: 0.75em;
  left: 0.312em;
  width: 0.75em;
  height: 0.75em;
  border-radius: var(--container-radius);
  background-color: var(--spot-color);
  -webkit-box-shadow: 0em 0.0312em 0.062em rgba(0, 0, 0, 0.25) inset;
  box-shadow: 0em 0.0312em 0.062em rgba(0, 0, 0, 0.25) inset;
}

.theme-switch__spot:nth-of-type(2) {
  width: 0.375em;
  height: 0.375em;
  top: 0.937em;
  left: 1.375em;
}

.theme-switch__spot:nth-last-of-type(3) {
  width: 0.25em;
  height: 0.25em;
  top: 0.312em;
  left: 0.812em;
}

.theme-switch__clouds {
  width: 1.25em;
  height: 1.25em;
  background-color: var(--clouds-color);
  border-radius: var(--container-radius);
  position: absolute;
  bottom: -0.625em;
  left: 0.312em;
  -webkit-box-shadow: 0.937em 0.312em var(--clouds-color), -0.312em -0.312em var(--back-clouds-color), 1.437em 0.375em var(--clouds-color), 0.5em -0.125em var(--back-clouds-color), 2.187em 0 var(--clouds-color), 1.25em -0.062em var(--back-clouds-color), 2.937em 0.312em var(--clouds-color), 2em -0.312em var(--back-clouds-color), 3.625em -0.062em var(--clouds-color), 2.625em 0em var(--back-clouds-color), 4.5em -0.312em var(--clouds-color), 3.375em -0.437em var(--back-clouds-color), 4.625em -1.75em 0 0.437em var(--clouds-color), 4em -0.625em var(--back-clouds-color), 4.125em -2.125em 0 0.437em var(--back-clouds-color);
  box-shadow: 0.937em 0.312em var(--clouds-color), -0.312em -0.312em var(--back-clouds-color), 1.437em 0.375em var(--clouds-color), 0.5em -0.125em var(--back-clouds-color), 2.187em 0 var(--clouds-color), 1.25em -0.062em var(--back-clouds-color), 2.937em 0.312em var(--clouds-color), 2em -0.312em var(--back-clouds-color), 3.625em -0.062em var(--clouds-color), 2.625em 0em var(--back-clouds-color), 4.5em -0.312em var(--clouds-color), 3.375em -0.437em var(--back-clouds-color), 4.625em -1.75em 0 0.437em var(--clouds-color), 4em -0.625em var(--back-clouds-color), 4.125em -2.125em 0 0.437em var(--back-clouds-color);
  -webkit-transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
  -o-transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
  transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
}

.theme-switch__stars-container {
  position: absolute;
  color: var(--stars-color);
  top: -100%;
  left: 0.312em;
  width: 2.75em;
  height: auto;
  -webkit-transition: var(--transition);
  -o-transition: var(--transition);
  transition: var(--transition);
}

.theme-switch__checkbox:checked + .theme-switch__container {
  background-color: var(--container-night-bg);
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__circle-container {
  left: calc(100% - var(--circle-container-offset) - var(--circle-container-diameter));
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__circle-container:hover {
  left: calc(100% - var(--circle-container-offset) - var(--circle-container-diameter) - 0.187em);
}

.theme-switch__circle-container:hover {
  left: calc(var(--circle-container-offset) + 0.187em);
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__moon {
  -webkit-transform: translate(0);
  -ms-transform: translate(0);
  transform: translate(0);
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__clouds {
  bottom: -4.062em;
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__stars-container {
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}

.theme-switch:focus-within {
  outline: 2px solid rgba(29, 78, 216, 0.35);
  outline-offset: 4px;
  border-radius: 999px;
}

.sliding-cards {
  position: relative;
  width: min(92%, 520px);
  margin: 0 auto;
  align-self: center;
  aspect-ratio: 3 / 4;
  max-height: calc(100svh - 176px);
  touch-action: pan-y;
  user-select: none;
}

.slide-card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(16, 17, 20, 0.16);
  background: #c8ccd2;
  box-shadow: 0 12px 28px rgba(16, 17, 20, 0.16);
  cursor: grab;
  transition: transform 300ms ease, opacity 300ms ease;
  will-change: transform, opacity;
}

.slide-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
}

.serial {
  margin: 0;
  align-self: flex-end;
  color: rgba(255, 255, 255, 0.45);
  font-family: "Playfair Display", serif;
  font-size: clamp(3rem, 5vw, 5.2rem);
  line-height: 1;
}

.sections {
  width: 100%;
  margin: 0;
  padding: 4rem 1rem 1.4rem;
  background: var(--surface);
}

.section {
  width: min(1100px, 100%);
  margin: 0 auto 2.4rem;
  padding: 0 0 2.4rem;
  border-bottom: 1px solid var(--line);
  opacity: 1;
  transform: none;
  filter: none;
  transition: none;
}

.section h2 {
  margin: 0 0 0.8rem;
  color: var(--ink);
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
}

.section p {
  margin: 0.7rem 0 0;
  color: #334155;
  max-width: 76ch;
}

.section.is-story-active {
  opacity: 1;
  transform: none;
  filter: none;
}

.section.is-story-past {
  opacity: 1;
  transform: none;
  filter: none;
}

.section h2 {
  position: relative;
  display: inline-block;
}

.section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d4ed8, #38bdf8);
  transition: width 420ms ease;
}

.section.is-story-active h2::after {
  width: 100%;
}

.story-rail {
  position: fixed;
  right: clamp(8px, 1.4vw, 24px);
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  z-index: 80;
  display: grid;
  gap: 14px;
  padding: 14px 12px;
  border: 1px solid #dbe4ef;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.1);
  overflow: visible;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

body.story-rail-visible .story-rail {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

body.story-rail-visible .story-rail.is-collapsed {
  transform: translateY(-50%) translateX(calc(100% - 34px));
}

.story-rail-toggle {
  position: absolute;
  left: -12px;
  top: 50%;
  width: 22px;
  height: 44px;
  transform: translateY(-50%);
  border: 1px solid #c9d4e6;
  border-radius: 999px;
  background: rgba(247, 250, 255, 0.95);
  color: #1d4ed8;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.story-rail.is-collapsed .story-rail-toggle {
  left: -14px;
}

.story-rail-toggle span {
  font-size: 1.04rem;
  line-height: 1;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.story-rail-toggle:hover {
  border-color: #93c5fd;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.story-rail-toggle:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}

.story-rail.is-collapsed .story-rail-toggle span {
  transform: rotate(180deg);
}

.story-rail-line,
.story-rail-progress {
  position: absolute;
  right: 20px;
  top: 22px;
  width: 2px;
  border-radius: 999px;
}

.story-rail-line {
  height: calc(100% - 44px);
  background: #d6deea;
}

.story-rail-progress {
  height: 0%;
  max-height: calc(100% - 44px);
  background: linear-gradient(180deg, #1d4ed8, #22d3ee);
  box-shadow: 0 0 14px rgba(29, 78, 216, 0.32);
  transition: height 160ms linear;
}

.story-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-left: 22px;
  padding-right: 16px;
  overflow: hidden;
  transition: color 220ms ease, transform 220ms ease;
}

.story-link:hover {
  color: #0f172a;
  transform: translateX(-2px);
}

.story-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 2px solid #c6d2e5;
  background: #ffffff;
  transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.story-label {
  display: inline-block;
  white-space: nowrap;
  max-width: 140px;
  opacity: 1;
  transform: translateX(0);
  transition: max-width 260ms ease, opacity 220ms ease, transform 260ms ease;
}

.story-link.is-active {
  color: #0f172a;
}

.story-link.is-active .story-dot {
  background: #1d4ed8;
  border-color: #1d4ed8;
  box-shadow: 0 0 0 5px rgba(29, 78, 216, 0.18);
  transform: scale(1.06);
}

.story-link.is-past .story-dot {
  background: #60a5fa;
  border-color: #60a5fa;
}

.story-rail.is-collapsed {
  gap: 10px;
  padding: 14px 10px 14px 8px;
}

.story-rail.is-collapsed .story-link {
  width: 32px;
  min-width: 32px;
  padding-left: 10px;
  padding-right: 0;
  gap: 0;
}

.story-rail.is-collapsed .story-label {
  max-width: 0;
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
}

.story-rail.is-collapsed .story-rail-line,
.story-rail.is-collapsed .story-rail-progress {
  right: 9px;
  width: 1px;
}

.about-section {
  padding-bottom: 2.8rem;
}

.about-kicker {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 700;
}

.about-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(20px, 2.8vw, 36px);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.about-header {
  display: grid;
  gap: 16px;
  max-width: 74ch;
}

.about-header h2 {
  margin: 0;
}

.about-lead {
  margin: 0;
  max-width: 56ch;
  color: #334155;
  font-size: 1.06rem;
}

.about-layout {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.about-rail {
  position: sticky;
  top: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #ffffff;
  display: grid;
  gap: 10px;
}

.rail-title {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
}

.about-chip {
  margin: 0;
  padding: 0.45rem 0.6rem;
  border-radius: 9px;
  background: #f1f5f9;
  color: #1e293b;
  font-size: 0.9rem;
  font-weight: 600;
}

.about-story {
  display: grid;
  gap: 0.85rem;
}

.about-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1rem 1rem 1.1rem;
  background: #ffffff;
  border-left: 3px solid #dbe4ef;
}

.about-block h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.03rem;
}

.about-block p {
  margin: 0.45rem 0 0;
  max-width: none;
  color: #475569;
  line-height: 1.62;
}

/* Story chapters (rendered by index-loader.js in place of .about-block) */
.story-chapters {
  display: grid;
  gap: clamp(48px, 8vw, 96px);
}

.story-chapter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  position: relative;
}

.story-chapter.is-reverse {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

.story-chapter.is-reverse .story-chapter-media {
  order: 2;
}

.story-chapter.is-reverse .story-chapter-content {
  order: 1;
}

.story-chapter.no-media {
  grid-template-columns: minmax(0, 1fr);
  max-width: 64ch;
}

.story-chapter-media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: #f1f5f9;
  padding: 8px;
  box-shadow: var(--skeu-highlight), inset 0 0 0 1px rgba(15, 23, 42, 0.04), 0 18px 36px rgba(15, 23, 42, 0.1);
  transition: transform 280ms ease, box-shadow 280ms ease;
}

.story-chapter:hover .story-chapter-media {
  transform: translateY(-6px);
  box-shadow: var(--skeu-highlight), inset 0 0 0 1px rgba(15, 23, 42, 0.04), 0 26px 46px rgba(15, 23, 42, 0.16);
}

.story-chapter-media img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 14px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.story-chapter-media img[data-crop="left"] {
  object-position: left center;
}

.story-stat-chip {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  padding: 10px 16px;
  border-radius: 16px;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--skeu-highlight), 0 10px 22px rgba(15, 23, 42, 0.16);
}

.story-stat-value {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}

.story-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}

.story-chapter-content {
  position: relative;
  display: grid;
  gap: 12px;
  max-width: 56ch;
}

.story-chapter-index {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700;
  color: rgba(31, 47, 70, 0.08);
  line-height: 1;
  position: absolute;
  top: -1.7rem;
  left: -0.1rem;
  z-index: 0;
  user-select: none;
}

.story-chapter-content h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  color: var(--ink);
}

.story-chapter-content p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

html[data-theme="dark"] .story-chapter-media {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(3, 6, 12, 0.5);
}

html[data-theme="dark"] .story-chapter-index {
  color: rgba(248, 250, 252, 0.06);
}

html[data-theme="dark"] .story-chapter-content h3 {
  color: var(--ink);
}


.skills-section {
  display: grid;
  gap: 14px;
  width: min(1240px, 100%);
}

.skills-title {
  margin: 0;
  text-align: center;
  font-weight: 800;
  justify-self: center;
}

.achievements-section {
  display: grid;
  gap: 16px;
}

.achievements-title {
  margin: 0;
  text-align: center;
}

.achievement-stack {
  display: grid;
  gap: clamp(22px, 4vw, 34px);
}

.achievement-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: clamp(8px, 2vw, 14px);
}

.filter-chip {
  border: 1px solid #cfd8e3;
  background: #f8fafc;
  color: #1f2937;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.filter-chip:hover {
  transform: translateY(-1px);
  border-color: #9db7e5;
}

.filter-chip.is-active {
  background: #101114;
  color: #ffffff;
  border-color: #101114;
}

.achievement-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(18px, 3.5vw, 42px);
  align-items: center;
}

.achievement-row.is-reverse {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

.achievement-row.is-reverse .achievement-media {
  order: 2;
}

.achievement-row.is-reverse .achievement-content {
  order: 1;
}

.achievement-media {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 8px;
  box-shadow: var(--skeu-highlight), inset 0 0 0 1px rgba(15, 23, 42, 0.04), 0 16px 28px rgba(15, 23, 42, 0.08);
  position: relative;
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.achievement-media img {
  border-radius: 12px;
}

.achievement-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 200ms ease;
}

.achievement-content {
  display: grid;
  gap: 10px;
  max-width: 56ch;
}

.achievement-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 700;
}

.achievement-content h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  color: #0f172a;
}

.achievement-content p {
  margin: 0;
  color: #475569;
  line-height: 1.65;
}

.achievement-row:hover .achievement-media {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.16);
}

.achievement-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), rgba(59, 130, 246, 0.08), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity 260ms ease;
}

.achievement-row:hover .achievement-media::after {
  opacity: 1;
}

.achievement-media.is-tilting img {
  transform: scale(1.04);
}

.achievement-row:hover .achievement-content h3 {
  color: #1d4ed8;
  transition: color 260ms ease;
}

.achievement-grid {
  margin-top: clamp(10px, 2vw, 16px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 24px);
}

.achievement-card {
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 1rem 1.2rem;
  box-shadow: var(--skeu-highlight), 0 12px 24px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 0.8rem;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.achievement-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.1rem;
}

.achievement-list {
  margin: 0;
  padding-left: 1.1rem;
  color: #475569;
  display: grid;
  gap: 0.7rem;
}

.achievement-list strong {
  color: #0f172a;
}

.achievement-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  background: var(--glass-bg-strong);
  box-shadow: var(--skeu-highlight), 0 18px 28px rgba(15, 23, 42, 0.12);
}

.achievement-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 0.02em;
  box-shadow: var(--skeu-highlight), var(--skeu-inset-edge);
}

.reveal-on-scroll {
  opacity: 0;
  transform: none;
  transition: none;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}

.achievement-item.is-hidden {
  display: none;
}

.experience-section {
  display: grid;
  gap: 12px;
}

.experience-title {
  margin: 0;
  text-align: center;
}

.experience-subtitle {
  margin: 0 0 1rem;
  text-align: center;
  color: #64748b;
}

.timeline {
  position: relative;
  padding: 0.6rem 0 0.8rem;
  display: grid;
  gap: clamp(28px, 4.2vw, 44px);
  --timeline-center: 72px;
  --timeline-connector: 36px;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 60%, #cbd5e1 100%);
  opacity: 0.7;
}

.timeline-progress {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 0%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #22d3ee 0%, #6366f1 55%, #a855f7 100%);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}

.timeline-item {
  position: relative;
  min-height: 160px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--timeline-center) minmax(0, 1fr);
  align-items: center;
}

.timeline-item.left .timeline-card {
  grid-column: 1;
  justify-self: end;
}

.timeline-item.right .timeline-card {
  grid-column: 3;
  justify-self: start;
}

.timeline-dot {
  position: relative;
  grid-column: 2;
  justify-self: center;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid #94a3b8;
  box-shadow: 0 0 0 7px rgba(148, 163, 184, 0.12);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.timeline-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(var(--timeline-center) / 2);
  height: 2px;
  background: #cbd5e1;
  opacity: 0.9;
  left: 50%;
  transform: translateY(-50%);
}

.timeline-item.left .timeline-dot::after {
  transform: translate(-100%, -50%);
}

.timeline-item.right .timeline-dot::after {
  transform: translate(0, -50%);
}

.timeline-item.is-active .timeline-dot {
  border-color: #6366f1;
  box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.18);
}

.timeline-card {
  position: relative;
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  padding: 1rem 1.1rem;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 420ms ease, transform 420ms ease, box-shadow 420ms ease;
}

.timeline-item.is-visible .timeline-card {
  opacity: 1;
  transform: translateY(0);
}

.timeline-year {
  display: inline-block;
  font-weight: 700;
  color: #0f172a;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.timeline-card h3 {
  margin: 0.2rem 0 0.3rem;
  font-size: 1.05rem;
  color: #0f172a;
}

.timeline-meta {
  margin: 0 0 0.4rem;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 600;
}

.timeline-card p {
  margin: 0.4rem 0 0;
  color: #475569;
  line-height: 1.6;
}

.timeline-role {
  display: grid;
  gap: 0.35rem;
}

.timeline-role-divider {
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid #e2e8f0;
}

.skills-intro {
  margin: 0;
  max-width: 70ch;
  color: #475569;
}

.skills-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 82%);
  padding: 1.25rem 1rem 1rem;
  overflow: hidden;
}

.skills-tree-wrap {
  overflow: hidden;
  padding: 0.25rem 0 0;
  display: grid;
  place-items: center;
}

.skills-tree-wrap::-webkit-scrollbar {
  height: 8px;
}

.skills-tree-wrap::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.skills-tree {
  position: relative;
  width: min(100%, 1240px);
  aspect-ratio: 1620 / 700;
  height: auto;
  margin: 0 auto;
  transform-origin: top center;
  transform: translate3d(0, 0, 0);
  transition: transform 220ms ease;
}

.skills-mobile {
  display: none;
  width: 100%;
}

.skills-mobile-head {
  margin: 0 0 12px;
  text-align: center;
}

.skills-mobile-sub {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2563eb;
}

.skills-mobile-note {
  margin: 0.35rem 0 0;
  color: #475569;
  line-height: 1.5;
  font-size: 0.92rem;
}

.skills-angled-viewport {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.88);
  border-radius: 20px;
  background:
    radial-gradient(circle at 8% 10%, rgba(59, 130, 246, 0.13), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(241, 245, 249, 0.94) 100%);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.09);
  padding: 14px 0 16px;
}

.skills-angled-viewport::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(100, 116, 139, 0.22) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.08;
  pointer-events: none;
}

.skills-angled-viewport::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(248, 250, 252, 0.94) 0%, rgba(248, 250, 252, 0) 10%, rgba(248, 250, 252, 0) 90%, rgba(248, 250, 252, 0.94) 100%);
}

.skills-angled-track {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  width: max-content;
  padding: 6px 16px;
  transform: translateX(0);
  will-change: transform;
  touch-action: pan-y;
  user-select: none;
  animation: skillsConveyor 26s linear infinite reverse;
}

.skills-angled-track.is-manual-loop {
  animation: none;
}

.skills-angled-track.is-dragging {
  cursor: grabbing;
}

.skills-angled-set {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 12px;
  padding-right: 12px;
  flex: 0 0 auto;
}

.skills-angled-viewport:hover .skills-angled-track {
  animation-play-state: paused;
}

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

@media (prefers-reduced-motion: reduce) {
  .skills-angled-track {
    animation: none;
  }
}

.skills-angled-card {
  flex: 0 0 clamp(198px, 62vw, 252px);
  outline: none;
}

.skills-angled-card-inner {
  height: 100%;
  min-height: 178px;
  border: 1px solid rgba(203, 213, 225, 0.92);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.07);
  transform: perspective(1000px) rotateY(16deg) translate3d(0, 0, 0);
  transform-origin: left center;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.skills-angled-card:focus-visible .skills-angled-card-inner,
.skills-angled-card:active .skills-angled-card-inner {
  transform: perspective(1000px) rotateY(0deg) translate3d(0, -2px, 0);
  border-color: rgba(147, 197, 253, 0.88);
  box-shadow: 0 18px 26px rgba(30, 64, 175, 0.13);
}

.skills-angled-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.22rem 0.58rem;
  border: 1px solid rgba(186, 230, 253, 0.95);
  background: rgba(219, 234, 254, 0.9);
  color: #1e3a8a;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skills-angled-top {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skills-angled-top img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex: 0 0 auto;
}

.skills-angled-top h3 {
  margin: 0;
  font-size: 1.08rem;
  color: #0f172a;
  line-height: 1.2;
}

.skills-angled-card-inner p {
  margin: 0.55rem 0 0;
  color: #475569;
  line-height: 1.52;
  font-size: 0.9rem;
}

.skills-mobile-panels {
  display: grid;
  gap: 12px;
}

.skills-mobile-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin: 0 0 12px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 999px;
  background: rgba(241, 245, 249, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.skills-mobile-tabs::-webkit-scrollbar {
  display: none;
}

.skills-mobile-tabs {
  position: relative;
}

.skills-tab {
  appearance: none;
  flex: 0 0 auto;
  scroll-snap-align: start;
  border: 1px solid rgba(203, 213, 225, 0.95);
  background:
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)) padding-box,
    linear-gradient(135deg, rgba(15, 23, 42, 0.10), rgba(59, 130, 246, 0.22), rgba(34, 211, 238, 0.14)) border-box;
  border-radius: 999px;
  padding: 0.58rem 0.85rem;
  font-weight: 800;
  font-size: clamp(0.72rem, 2.8vw, 0.82rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.84);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  white-space: nowrap;
}

.skills-tab:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.55);
  outline-offset: 2px;
}

.skills-tab.is-active {
  border-color: rgba(147, 197, 253, 0.75);
  background:
    linear-gradient(rgba(219, 234, 254, 0.95), rgba(255, 255, 255, 0.92)) padding-box,
    linear-gradient(135deg, rgba(59, 130, 246, 0.45), rgba(34, 211, 238, 0.25)) border-box;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}

.skills-mobile-panel {
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 18px;
  background:
    radial-gradient(circle at 10% 12%, rgba(59, 130, 246, 0.10), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.92) 100%);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
  padding: 14px 14px 12px;
  position: relative;
  overflow: hidden;
}

.skills-mobile-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(148, 163, 184, 0.35) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.06;
  pointer-events: none;
}

.skills-mobile-kicker {
  margin: 0 0 12px;
  color: #475569;
  font-weight: 700;
  line-height: 1.5;
  max-width: 56ch;
  position: relative;
  z-index: 1;
}

.skills-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  position: relative;
  z-index: 1;
}

.skill-chip {
  appearance: none;
  border: 1px solid rgba(203, 213, 225, 0.92);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 14px;
  padding: 12px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-height: 54px;
}

.skill-chip img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 auto;
}

.skill-chip span {
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
  font-size: 0.95rem;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skill-chip.is-active {
  border-color: rgba(147, 197, 253, 0.85);
  box-shadow: 0 18px 28px rgba(30, 64, 175, 0.12);
  transform: translateY(-1px);
}

.skill-chip:active {
  transform: translateY(0);
}

.skills-mobile-detail {
  margin-top: 12px;
  border-radius: 16px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: rgba(241, 245, 249, 0.92);
  padding: 12px 12px;
  position: relative;
  z-index: 1;
}

.skills-mobile-detail.is-swap {
  animation: skillsDetailSwap 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes skillsDetailSwap {
  from {
    opacity: 0.5;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .skills-mobile-detail.is-swap {
    animation: none;
  }
}

.skills-mobile-detail-title {
  margin: 0;
  font-weight: 900;
  color: #0b1220;
  letter-spacing: -0.01em;
}

.skills-mobile-detail-desc {
  margin: 6px 0 0;
  color: #475569;
  line-height: 1.55;
}

@media (max-width: 380px) {
  .skills-chip-grid {
    grid-template-columns: 1fr;
  }
}

.tree-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tree-lines line {
  stroke: #a6b6cc;
  stroke-width: 1.9;
  stroke-linecap: round;
  opacity: 0.45;
  transition: stroke 180ms ease, opacity 180ms ease, stroke-width 180ms ease;
}

.tree-lines path {
  stroke: #9fb1c8;
  stroke-width: 1.9;
  stroke-linecap: round;
  fill: none;
  opacity: 0.45;
  transition: stroke 200ms ease, opacity 200ms ease, stroke-width 200ms ease;
}

.tree-lines line.active,
.tree-lines path.active {
  stroke: #3b82f6;
  opacity: 0.88;
  stroke-width: 2.6;
}

.tree-node {
  position: absolute;
  transform: translate(-50%, -50%);
}

.tree-card {
  width: clamp(108px, 8.8vw, 124px);
  min-height: 110px;
  padding: 0.72rem 0.52rem 0.62rem;
  border: 1px solid #cfd8e3;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.4rem;
  text-align: center;
}

.root-node {
  left: 50%;
  top: 14.4%;
  width: clamp(150px, 12vw, 176px);
  min-height: 116px;
  border-radius: 999px;
  border: 1px solid #bfcce0;
  background: #eef4fb;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.1);
  animation: rootPulse 3.6s ease-in-out infinite;
}

.node-glyph {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #d9e5f5;
  color: #334155;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.root-node .node-glyph {
  width: 26px;
  height: 26px;
  font-size: 0.72rem;
}

.root-node p {
  margin: 0;
  color: #0f172a;
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.logo-node {
  cursor: pointer;
  transition: transform 190ms ease, box-shadow 190ms ease, border-color 190ms ease;
}

.logo-node:hover,
.logo-node:focus-visible,
.logo-node.is-active-path {
  transform: translate(-50%, -50%) translateY(-2px);
  border-color: #93c5fd;
  box-shadow: 0 12px 22px rgba(30, 64, 175, 0.14);
  outline: none;
}

.logo-node img {
  width: clamp(28px, 2.3vw, 34px);
  height: clamp(28px, 2.3vw, 34px);
  object-fit: contain;
}

.logo-node p {
  margin: 0;
  color: #1f2937;
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 700;
  max-width: 11ch;
}

.n1 { left: 25.31%; top: 27.2%; }
.n2 { left: 74.69%; top: 27.2%; }
.n3 { left: 12.96%; top: 49.6%; }
.n4 { left: 37.65%; top: 49.6%; }
.n5 { left: 62.35%; top: 49.6%; }
.n6 { left: 87.04%; top: 49.6%; }
.n7 { left: 6.79%; top: 82%; }
.n8 { left: 19.14%; top: 82%; }
.n9 { left: 31.48%; top: 82%; }
.n10 { left: 43.83%; top: 82%; }
.n11 { left: 56.17%; top: 82%; }
.n12 { left: 68.52%; top: 82%; }
.n13 { left: 80.86%; top: 82%; }
.n14 { left: 93.21%; top: 82%; }

@keyframes rootPulse {
  0%,
  100% {
    box-shadow: 0 8px 22px rgba(59, 130, 246, 0.12);
  }
  50% {
    box-shadow: 0 12px 26px rgba(59, 130, 246, 0.2);
  }
}

.grid {
  display: grid;
  gap: 0.9rem;
}

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

.projects-section {
  display: grid;
  gap: 18px;
}

.projects-section > h2 {
  width: 100%;
  text-align: center;
  justify-self: center;
}

.reviews-section {
  display: grid;
  gap: 18px;
}

.reviews-head {
  display: grid;
  justify-items: center;
  text-align: center;
}

.reviews-head h2 {
  margin: 0;
}

.reviews-head p {
  margin: 0;
  color: #475569;
  max-width: 62ch;
}

.reviews-mobile-carousel {
  display: none;
}

.reviews-swipe {
  width: min(100%, 520px);
  margin: 0 auto;
}

.reviews-swipe-stack {
  position: relative;
  width: 100%;
  height: clamp(360px, 56vh, 460px);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  overflow: visible;
}

.reviews-swipe-card {
  position: absolute;
  inset: 0;
  padding: 10px;
  transform-origin: center;
  cursor: grab;
  will-change: transform, opacity;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reviews-swipe-card.is-active {
  cursor: grab;
}

.reviews-swipe-card:active {
  cursor: grabbing;
}

.reviews-swipe-card .review-card {
  width: 100%;
  height: auto;
  min-width: 0;
  max-width: none;
  align-content: start;
}

.reviews-swipe-card .review-quote {
  -webkit-line-clamp: 4;
}

.reviews-scroller {
  position: relative;
  width: 100%;
}

.reviews-pin {
  position: relative;
}

.reviews-stage {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 55%, #eef2ff 100%);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
  padding: clamp(14px, 2.4vw, 22px);
}

.reviews-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 260ms ease;
  pointer-events: none;
}

.reviews-stage:hover::before {
  opacity: 1;
}

.reviews-track {
  display: flex;
  gap: 16px;
  align-items: stretch;
  will-change: transform;
  touch-action: pan-y;
}

.reviews-track-2 {
  display: none;
  margin-top: 16px;
  opacity: 0.94;
}

.review-card {
  border: 1px solid rgba(203, 213, 225, 0.75);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 16px 16px 14px;
  text-align: left;
  min-width: clamp(270px, 26vw, 340px);
  max-width: clamp(270px, 26vw, 340px);
  display: grid;
  gap: 12px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
  position: relative;
  overflow: hidden;
}

.review-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  background: radial-gradient(circle at 30% 10%, rgba(59, 130, 246, 0.18), transparent 48%);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.review-card:hover {
  transform: translateY(-2px);
  border-color: rgba(147, 197, 253, 0.9);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12);
}

.review-card:hover::after {
  opacity: 1;
}

.review-card:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 3px;
}

.review-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #e2e8f0;
  border: 1px solid rgba(203, 213, 225, 0.9);
  overflow: hidden;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
}

.review-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.review-name {
  margin: 0;
  color: #0f172a;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.review-role {
  margin: 2px 0 0;
  color: #64748b;
  font-weight: 700;
  font-size: 0.84rem;
}

.review-rating {
  color: #1d4ed8;
  font-weight: 900;
  letter-spacing: 0.12em;
  font-size: 0.86rem;
}

.review-quote {
  margin: 0;
  color: #334155;
  line-height: 1.6;
  position: relative;
  z-index: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.review-tag {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #1f2f46;
  background: rgba(226, 232, 240, 0.72);
  border: 1px solid rgba(203, 213, 225, 0.9);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

.review-hint {
  margin: 0;
  color: #94a3b8;
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.review-card.is-open .review-quote {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.reviews-progress {
  margin-top: 14px;
  position: relative;
  width: min(360px, 100%);
  height: 10px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.9);
  border: 1px solid rgba(203, 213, 225, 0.9);
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.08);
}

.reviews-progress-rail {
  display: none;
}

.reviews-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d4ed8, #22d3ee);
  box-shadow: 0 0 14px rgba(29, 78, 216, 0.28);
  transition: width 120ms linear;
}

@media (min-width: 1200px) {
  .reviews-track-2 {
    display: flex;
  }
}

@media (min-width: 980px) {
  .reviews-scroller.is-scroll-mode {
    height: var(--reviews-scroll-h, 160vh);
  }

  .reviews-pin.is-sticky {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: grid;
    align-content: center;
    gap: 14px;
  }
}

@media (max-width: 979px) {
  .reviews-scroller {
    display: none;
  }

  .reviews-mobile-carousel {
    display: block;
  }
}

.faq-section {
  --faq-accent-a: rgba(37, 99, 235, 0.65);
  --faq-accent-b: rgba(14, 165, 233, 0.55);
  --faq-ink: rgba(15, 23, 42, 0.92);

  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(22px, 3.2vw, 34px);
  background:
    radial-gradient(circle at 14% 12%, rgba(37, 99, 235, 0.08), transparent 58%),
    radial-gradient(circle at 88% 18%, rgba(14, 165, 233, 0.06), transparent 60%),
    radial-gradient(circle at 70% 90%, rgba(15, 23, 42, 0.03), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.92) 100%);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
  position: relative;
  overflow: hidden;
  border-bottom: none;
}

.faq-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(148, 163, 184, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.10), transparent 35%, rgba(148, 163, 184, 0.08));
  background-size: 26px 26px, 100% 100%;
  opacity: 0.07;
  pointer-events: none;
}

.faq-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.10), transparent 52%),
    radial-gradient(circle at 100% 50%, rgba(14, 165, 233, 0.09), transparent 55%);
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
}

.faq-section:hover::after {
  opacity: 1;
}

.faq-head {
  display: grid;
  justify-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.faq-head::before {
  content: "FAQ";
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(84px, 10.5vw, 164px);
  letter-spacing: -0.06em;
  color: rgba(15, 23, 42, 0.05);
  pointer-events: none;
  user-select: none;
  line-height: 0.85;
}

.faq-head h2 {
  margin: 0 0 0.85rem;
  position: relative;
  z-index: 1;
  color: var(--faq-ink);
}

.faq-head p {
  margin: 0.7rem 0 0;
  color: #475569;
  max-width: 62ch;
  position: relative;
  z-index: 1;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  counter-reset: faq;
  position: relative;
  z-index: 1;
}

.faq-item {
  position: relative;
  border-radius: 18px;
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86)) padding-box,
    linear-gradient(135deg, rgba(15, 23, 42, 0.10), rgba(37, 99, 235, 0.26), rgba(14, 165, 233, 0.18)) border-box;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.faq-item::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  background:
    radial-gradient(circle at var(--fx, 22%) var(--fy, 18%), rgba(37, 99, 235, 0.18), transparent 55%),
    radial-gradient(circle at 85% 15%, rgba(14, 165, 233, 0.12), transparent 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.faq-item.is-rippling::before,
.faq-item:hover::before,
.faq-item[open]::before {
  opacity: 1;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 38px rgba(15, 23, 42, 0.12);
}

.faq-item[open] {
  transform: translateY(-2px);
  box-shadow: 0 26px 44px rgba(15, 23, 42, 0.14);
  filter: saturate(1.03);
}

.faq-item summary {
  list-style: none;
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0f172a;
  position: relative;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  -webkit-tap-highlight-color: transparent;
}

.faq-item summary::before {
  counter-increment: faq;
  content: counter(faq, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 44px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(241, 245, 249, 0.92);
  color: rgba(15, 23, 42, 0.78);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  flex: 0 0 auto;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms ease;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.0), rgba(37, 99, 235, 0.28), rgba(14, 165, 233, 0.22), rgba(37, 99, 235, 0.0));
  opacity: 0;
  transform: scaleX(0.2);
  transform-origin: center;
  transition: transform 220ms ease, opacity 220ms ease;
  pointer-events: none;
}

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

.faq-q {
  display: block;
  min-width: 0;
}

.faq-ico {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(241, 245, 249, 0.92);
  position: relative;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.faq-ico::before,
.faq-ico::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: #1d4ed8;
  transform: translate(-50%, -50%);
  transition: transform 180ms ease, opacity 180ms ease;
}

.faq-ico::after {
  width: 2px;
  height: 12px;
}

.faq-item[open] .faq-ico {
  background: rgba(219, 234, 254, 0.95);
  border-color: rgba(147, 197, 253, 0.75);
}

.faq-item[open] summary {
  color: #0b1220;
}

.faq-item[open] summary::before {
  background: rgba(219, 234, 254, 0.95);
  border-color: rgba(147, 197, 253, 0.75);
  color: rgba(29, 78, 216, 0.95);
  transform: translateY(-1px);
}

.faq-item[open] summary::after {
  opacity: 1;
  transform: scaleX(1);
}

.faq-item[open] .faq-ico {
  transform: rotate(2deg) scale(1.02);
}

.faq-item[open] .faq-ico::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.faq-item summary:focus-visible {
  outline: 2px solid rgba(147, 197, 253, 0.95);
  outline-offset: 3px;
  border-radius: 16px;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 560ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: max-height;
}

.faq-answer-inner {
  overflow: hidden;
  padding: 12px 18px 16px;
  color: #334155;
  line-height: 1.65;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 340ms ease, transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.faq-answer-inner::before {
  content: "";
  display: block;
  height: 10px;
}

.faq-item[open] .faq-answer {
  max-height: var(--faq-h, 280px);
}

.faq-item[open] .faq-answer-inner {
  opacity: 1;
  transform: translateY(0);
}

.faq-answer-inner p {
  margin: 0;
  max-width: 68ch;
}

@keyframes faqAnswerIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .faq-answer,
  .faq-answer-inner {
    transition: none;
  }
}

.project-feature {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: clamp(20px, 4vw, 46px);
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: clamp(18px, 3vw, 32px);
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 55%, #eef2ff 100%);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
}

.project-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 260ms ease;
}

.project-feature:hover::before {
  opacity: 1;
}

.project-info {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.project-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.project-brand img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid #dbe4f0;
  background: #ffffff;
  padding: 8px;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.project-kicker {
  margin: 0 0 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 700;
}

.project-info h3 {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.15;
  color: #0f172a;
}

.project-summary {
  margin: 0;
  color: #475569;
  max-width: 60ch;
}

.project-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-badge {
  border: 1px solid #d9e2ef;
  background: #ffffff;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #1e293b;
  box-shadow: 0 8px 14px rgba(15, 23, 42, 0.06);
}

.project-list {
  margin: 0;
  padding-left: 1.2rem;
  color: #475569;
  display: grid;
  gap: 0.55rem;
}

.project-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.project-note {
  margin: 0;
  font-size: 0.92rem;
  color: #64748b;
}

.project-feature--elang-launch {
  border-color: #d7e1ef;
  background:
    radial-gradient(circle at 8% 12%, rgba(14, 165, 233, 0.16), transparent 48%),
    radial-gradient(circle at 88% 86%, rgba(79, 70, 229, 0.12), transparent 52%),
    linear-gradient(145deg, #f8fbff 0%, #ffffff 55%, #f1f5ff 100%);
}

.elang-launch-pill {
  margin: 0;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  border-radius: 999px;
  padding: 0.22rem 0.62rem;
}

.elang-launch-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.elang-launch-stat {
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  padding: 0.56rem 0.64rem;
  background: rgba(255, 255, 255, 0.85);
}

.elang-launch-stat-label {
  margin: 0;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  font-weight: 700;
}

.elang-launch-stat-value {
  margin: 0.18rem 0 0;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
}

.project-media--elang-launch {
  min-height: 460px;
  padding: clamp(16px, 2vw, 22px);
  background: linear-gradient(180deg, #eef3fb 0%, #e6edf8 100%);
}

.elang-launch-window {
  position: relative;
  width: min(100%, 640px);
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: #0f172a;
  box-shadow: 0 20px 36px rgba(15, 23, 42, 0.3);
  overflow: hidden;
}

.elang-launch-window-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.66rem 0.82rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  background: #111d34;
  color: rgba(241, 245, 249, 0.92);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.elang-launch-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.elang-launch-dot:nth-child(1) {
  background: #f87171;
}

.elang-launch-dot:nth-child(2) {
  background: #facc15;
}

.elang-launch-dot:nth-child(3) {
  background: #4ade80;
}

.elang-launch-window-top strong {
  margin-left: 6px;
  font-weight: 700;
}

.elang-launch-version {
  margin-left: auto;
  margin-right: 6px;
  color: rgba(191, 219, 254, 0.96);
  font-weight: 600;
}

.elang-copy-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(15, 23, 42, 0.88);
  color: rgba(226, 232, 240, 0.9);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.elang-copy-btn:hover {
  border-color: rgba(56, 189, 248, 0.65);
  background: rgba(30, 41, 59, 0.95);
  transform: translateY(-1px);
}

.elang-copy-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.elang-copy-btn.is-copied {
  border-color: rgba(34, 197, 94, 0.7);
  color: #86efac;
}

.elang-launch-code {
  margin: 0;
  padding: 0.96rem 0.92rem 1.04rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: clamp(0.74rem, 1.08vw, 0.88rem);
  line-height: 1.62;
  color: #e2e8f0;
  white-space: pre;
  overflow-x: auto;
}

.elang-launch-code .elang-k {
  color: #fbbf24;
}

.elang-launch-code .elang-fn {
  color: #60a5fa;
}

.elang-launch-code .elang-s {
  color: #4ade80;
}

.elang-launch-code .elang-n {
  color: #c084fc;
}

.elang-launch-window-foot {
  padding: 0.62rem 0.92rem 0.72rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  background: #111d34;
  color: rgba(241, 245, 249, 0.92);
  font-size: 0.74rem;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.elang-cli-prefix {
  color: #38bdf8;
  font-weight: 700;
}

.elang-cli-ok {
  margin-left: auto;
  color: #86efac;
}

.elang-code {
  width: min(92%, 560px);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.88) 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  transform: translateZ(0);
}

.elang-code-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(2, 6, 23, 0.55);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.elang-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.65);
}

.elang-dot:nth-child(1) { background: rgba(248, 113, 113, 0.92); }
.elang-dot:nth-child(2) { background: rgba(251, 191, 36, 0.92); }
.elang-dot:nth-child(3) { background: rgba(34, 197, 94, 0.92); }

.elang-code-title {
  margin-left: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: rgba(226, 232, 240, 0.74);
}

.elang-code-pre {
  margin: 0;
  padding: 14px 16px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.86rem;
  line-height: 1.65;
  color: rgba(226, 232, 240, 0.88);
  white-space: pre;
  overflow: hidden;
}

.glow-btn {
  position: relative;
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.28);
}

.glow-btn::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.35), transparent 60%);
  opacity: 0;
  transition: opacity 240ms ease;
  z-index: -1;
}

.glow-btn:hover::after {
  opacity: 1;
}

.project-media {
  position: relative;
  z-index: 1;
  border-radius: 18px;
  overflow: hidden;
  background: #f1f5f9;
  padding: 0;
  min-height: 460px;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.1);
  transition: transform 240ms ease, box-shadow 240ms ease;
  display: grid;
  place-items: center;
}

.project-media iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
}

.project-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transform: none;
  transform-origin: center;
}

.project-feature:hover .project-media {
  transform: translateY(-4px);
  box-shadow: 0 22px 36px rgba(15, 23, 42, 0.14);
}

.more-projects {
  margin-top: clamp(20px, 3.5vw, 34px);
  display: grid;
  gap: 14px;
}

.more-projects-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.35rem, 2vw, 1.6rem);
}

.more-projects-head p {
  margin: 0.35rem 0 0;
  color: #64748b;
}

.project-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-filter-chip {
  border: 1px solid #cfd8e3;
  background: #f8fafc;
  color: #1f2937;
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.project-filter-chip:hover {
  transform: translateY(-1px);
  border-color: #9db7e5;
}

.project-filter-chip.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-card-sm {
  border: 1px solid #dbe4ef;
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.project-card-sm:hover {
  transform: translateY(-4px);
  border-color: #c4d3e8;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12);
}

.project-thumb {
  position: relative;
  background: #f8fafc;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 220ms ease;
}

.project-card-sm:hover .project-thumb img {
  transform: scale(1.03);
}

.project-thumb iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.project-card-body {
  padding: 0.92rem 0.95rem 1rem;
  display: grid;
  gap: 0.58rem;
}

.project-card-tag {
  margin: 0;
  color: #64748b;
  font-size: 0.73rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 700;
}

.project-card-body h4 {
  margin: 0;
  color: #0f172a;
  font-size: 1.05rem;
  line-height: 1.3;
}

.project-card-body p {
  margin: 0;
  color: #475569;
  line-height: 1.55;
  font-size: 0.93rem;
}

.project-link {
  margin-top: 0.3rem;
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #d7e0eb;
  background: #ffffff;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.project-link span {
  margin-left: 0.28rem;
}

.project-links {
  margin-top: 0.3rem;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.project-link-live {
  color: #ffffff;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  border-color: #1d4ed8;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.28);
}

.project-card-body > .project-link {
  width: fit-content;
}

.project-link:hover {
  transform: translateY(-2px);
  border-color: #9db7e5;
  box-shadow: 0 12px 20px rgba(37, 99, 235, 0.18);
}

.project-link:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.project-link-live:hover {
  color: #ffffff;
  border-color: #1e40af;
  box-shadow: 0 14px 24px rgba(30, 64, 175, 0.35);
}

.project-card-sm.is-hidden {
  display: none;
}

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  background: #ffffff;
}

.card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
}

.card p {
  margin-top: 0.55rem;
  color: #475569;
}

.tag {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(18px, 3vw, 34px);
  border-bottom: none;
  margin-bottom: 0;
}

.contact-copy h2 {
  margin: 0 0 0.8rem;
}

.contact-copy p {
  margin: 0;
  color: #334155;
  max-width: 52ch;
}

.contact-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
  padding: clamp(16px, 2.2vw, 22px);
}

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

.contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: rgba(255, 255, 255, 0.95);
  padding: 0.78rem 0.9rem;
  font-family: inherit;
  font-size: 0.98rem;
  color: #0f172a;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(147, 197, 253, 0.95);
  box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.25);
}

.field-wide {
  grid-column: 1 / -1;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.contact-note {
  margin: 0;
  color: #64748b;
  font-weight: 700;
  font-size: 0.92rem;
}

.guestbook-section {
  display: grid;
  gap: 22px;
}

.guestbook-intro h2 {
  margin: 0 0 0.4rem;
}

.guestbook-intro p {
  margin: 0;
  color: #334155;
  max-width: 56ch;
}

.guestbook-form {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
  padding: clamp(16px, 2.2vw, 22px);
}

.guestbook-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 12px;
}

.guestbook-fields input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: rgba(255, 255, 255, 0.95);
  padding: 0.78rem 0.9rem;
  font-family: inherit;
  font-size: 0.98rem;
  color: #0f172a;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.guestbook-fields input:focus {
  border-color: rgba(147, 197, 253, 0.95);
  box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.25);
}

.guestbook-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.guestbook-note {
  margin: 0;
  color: #64748b;
  font-weight: 700;
  font-size: 0.92rem;
}

.guestbook-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.guestbook-entry {
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--skeu-highlight), var(--skeu-shadow-sm);
  padding: 14px 16px;
  display: grid;
  gap: 6px;
}

.guestbook-entry-name {
  font-weight: 800;
  color: var(--ink);
  font-size: 0.95rem;
}

.guestbook-entry-message {
  margin: 0;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.5;
  word-break: break-word;
}

.guestbook-entry-time {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.guestbook-empty {
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  .guestbook-fields {
    grid-template-columns: 1fr;
  }
}

html[data-theme="dark"] .guestbook-intro p {
  color: rgba(226, 232, 240, 0.86);
}

html[data-theme="dark"] .guestbook-form {
  border-color: rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, rgba(15, 18, 28, 0.9) 0%, rgba(3, 6, 12, 0.86) 100%);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.38);
}

html[data-theme="dark"] .guestbook-fields input {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(3, 6, 12, 0.6);
  color: rgba(248, 250, 252, 0.92);
}

html[data-theme="dark"] .guestbook-fields input::placeholder {
  color: rgba(148, 163, 184, 0.75);
}

html[data-theme="dark"] .guestbook-note {
  color: rgba(168, 179, 198, 0.92);
}

html[data-theme="dark"] .guestbook-entry-message {
  color: rgba(226, 232, 240, 0.8);
}

.site-footer {
  background: linear-gradient(180deg, rgba(241, 241, 243, 0.55), #ffffff 55%);
  border-top: 1px solid var(--line);
  padding: clamp(40px, 5vw, 64px) 1rem 28px;
}

.site-footer .footer-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
  gap: clamp(22px, 3vw, 42px);
  align-items: start;
}

.site-footer .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-footer .footer-tagline {
  margin: 10px 0 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.site-footer .footer-social {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer .social-link {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 12px 18px rgba(15, 23, 42, 0.06);
  color: #0f172a;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.site-footer .social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.site-footer .social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 78, 216, 0.26);
  box-shadow: 0 16px 26px rgba(29, 78, 216, 0.12);
}

.site-footer .social-link:focus-visible {
  outline: 2px solid rgba(29, 78, 216, 0.38);
  outline-offset: 3px;
}

.site-footer .footer-col {
  display: grid;
  gap: 12px;
}

.site-footer .footer-title {
  margin: 0;
  color: #334155;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
}

.site-footer .footer-links {
  display: grid;
  gap: 10px;
}

.site-footer .footer-links a {
  text-decoration: none;
  color: #1f2f46;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  opacity: 0.88;
  transition: opacity 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-footer .footer-links a:hover {
  opacity: 1;
  color: #1d4ed8;
  transform: translateX(2px);
}

.site-footer .footer-links a:focus-visible {
  outline: 2px solid rgba(29, 78, 216, 0.28);
  outline-offset: 3px;
  border-radius: 10px;
}

.site-footer .footer-bottom {
  width: min(1100px, 100%);
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  text-align: center;
  color: #6b7280;
  font-size: 0.92rem;
}

.site-footer .footer-bottom p {
  margin: 0;
}

html[data-theme="dark"] {
  --ink: #f8fafc;
  --text: #dbe3ef;
  --muted: #9aa6b6;
  --left-bg: #0a0c10;
  --right-bg: #0d1016;
  --surface: #07090d;
  --line: rgba(148, 163, 184, 0.18);
  color-scheme: dark;

  --glass-bg: rgba(15, 23, 42, 0.45);
  --glass-bg-strong: rgba(15, 23, 42, 0.62);
  --glass-border: rgba(148, 163, 184, 0.22);
  --skeu-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --skeu-inset-edge: inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .intro-line,
html[data-theme="dark"] .lead,
html[data-theme="dark"] .section p,
html[data-theme="dark"] .review-quote,
html[data-theme="dark"] .faq-answer,
html[data-theme="dark"] .project-info p,
html[data-theme="dark"] .project-card-body p {
  color: rgba(226, 232, 240, 0.86);
}

html[data-theme="dark"] #siteNav a {
  color: rgba(248, 250, 252, 0.88);
}

html[data-theme="dark"] #siteNav a:hover {
  color: #93c5fd;
}

html[data-theme="dark"] .menu-icon-line {
  background: rgba(248, 250, 252, 0.92);
}

html[data-theme="dark"] .menu-btn {
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.7);
}

html[data-theme="dark"] .btn-primary {
  background: rgba(248, 250, 252, 0.95);
  color: #0b1220;
  border-color: rgba(248, 250, 252, 0.75);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .btn-link {
  color: rgba(226, 232, 240, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(3, 6, 12, 0.22);
}

html[data-theme="dark"] .social-link {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(3, 6, 12, 0.55);
  color: rgba(248, 250, 252, 0.9);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] .social-link:hover {
  border-color: rgba(147, 197, 253, 0.5);
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .reviews-stage,
html[data-theme="dark"] .project-feature {
  border-color: rgba(148, 163, 184, 0.22);
  background: linear-gradient(135deg, rgba(15, 18, 28, 0.86) 0%, rgba(3, 6, 12, 0.86) 55%, rgba(20, 24, 36, 0.82) 100%);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .project-note {
  color: rgba(148, 163, 184, 0.9);
}

html[data-theme="dark"] .project-feature--elang-launch {
  border-color: rgba(96, 165, 250, 0.34);
  background:
    radial-gradient(circle at 10% 12%, rgba(14, 165, 233, 0.22), transparent 48%),
    radial-gradient(circle at 88% 86%, rgba(79, 70, 229, 0.2), transparent 52%),
    linear-gradient(145deg, rgba(8, 13, 25, 0.95) 0%, rgba(4, 8, 16, 0.92) 58%, rgba(10, 17, 31, 0.94) 100%);
}

html[data-theme="dark"] .elang-launch-pill {
  border-color: rgba(59, 130, 246, 0.52);
  background: rgba(29, 78, 216, 0.2);
  color: #93c5fd;
}

html[data-theme="dark"] .elang-launch-stat {
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.62);
}

html[data-theme="dark"] .elang-launch-stat-label {
  color: rgba(148, 163, 184, 0.96);
}

html[data-theme="dark"] .elang-launch-stat-value {
  color: rgba(226, 232, 240, 0.96);
}

html[data-theme="dark"] .project-media--elang-launch {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.68) 0%, rgba(2, 6, 23, 0.72) 100%);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .elang-launch-window {
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .elang-copy-btn {
  border-color: rgba(148, 163, 184, 0.34);
  background: rgba(2, 6, 23, 0.84);
  color: rgba(226, 232, 240, 0.94);
}

html[data-theme="dark"] .elang-copy-btn:hover {
  border-color: rgba(56, 189, 248, 0.72);
  background: rgba(15, 23, 42, 0.94);
}

html[data-theme="dark"] .elang-code {
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: 0 28px 50px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .review-card,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .card,
html[data-theme="dark"] .project-card-sm {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(3, 6, 12, 0.72);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] .faq-section {
  border-color: rgba(148, 163, 184, 0.22);
  background:
    radial-gradient(circle at 14% 12%, rgba(59, 130, 246, 0.18), transparent 58%),
    radial-gradient(circle at 88% 18%, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(circle at 70% 90%, rgba(248, 250, 252, 0.05), transparent 60%),
    linear-gradient(180deg, rgba(3, 6, 12, 0.86) 0%, rgba(7, 10, 18, 0.86) 100%);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.38);
}

html[data-theme="dark"] .faq-section::before {
  opacity: 0.06;
}

html[data-theme="dark"] .faq-section::after {
  opacity: 0;
}

html[data-theme="dark"] .faq-section:hover::after {
  opacity: 1;
}

html[data-theme="dark"] .faq-head::before {
  color: rgba(248, 250, 252, 0.06);
}

html[data-theme="dark"] .faq-head h2 {
  color: rgba(248, 250, 252, 0.92);
}

html[data-theme="dark"] .faq-head p {
  color: rgba(168, 179, 198, 0.92);
}

html[data-theme="dark"] .faq-item {
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(3, 6, 12, 0.72), rgba(3, 6, 12, 0.72)) padding-box,
    linear-gradient(135deg, rgba(148, 163, 184, 0.16), rgba(147, 197, 253, 0.24), rgba(34, 211, 238, 0.14)) border-box;
}

html[data-theme="dark"] .faq-item summary {
  color: rgba(248, 250, 252, 0.92);
}

html[data-theme="dark"] .faq-item summary::before {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(148, 163, 184, 0.10);
  color: rgba(226, 232, 240, 0.82);
}

html[data-theme="dark"] .faq-ico {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(148, 163, 184, 0.12);
}

html[data-theme="dark"] .faq-ico::before,
html[data-theme="dark"] .faq-ico::after {
  background: rgba(147, 197, 253, 0.95);
}

html[data-theme="dark"] .faq-item[open] .faq-ico {
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(147, 197, 253, 0.55);
}

html[data-theme="dark"] .faq-item[open] summary::before {
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(147, 197, 253, 0.55);
  color: rgba(147, 197, 253, 0.95);
}

html[data-theme="dark"] .faq-answer-inner {
  color: rgba(226, 232, 240, 0.82);
}

html[data-theme="dark"] .faq-item::before {
  background: radial-gradient(circle at var(--fx, 22%) var(--fy, 18%), rgba(147, 197, 253, 0.18), transparent 58%);
}

html[data-theme="dark"] .faq-item[open] {
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.48);
  filter: saturate(1.04);
}

html[data-theme="dark"] .story-rail {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(3, 6, 12, 0.72);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .story-rail-toggle {
  border-color: rgba(148, 163, 184, 0.34);
  background: rgba(3, 6, 12, 0.9);
  color: rgba(147, 197, 253, 0.95);
}

html[data-theme="dark"] .story-link {
  color: rgba(226, 232, 240, 0.86);
}

html[data-theme="dark"] .story-dot {
  border-color: rgba(148, 163, 184, 0.45);
  background: rgba(3, 6, 12, 0.9);
}

html[data-theme="dark"] .about-panel {
  border-color: rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, rgba(15, 18, 28, 0.92) 0%, rgba(3, 6, 12, 0.9) 100%);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.38);
}

html[data-theme="dark"] .about-rail {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(3, 6, 12, 0.72);
}

html[data-theme="dark"] .about-chip {
  background: rgba(148, 163, 184, 0.12);
  color: rgba(248, 250, 252, 0.92);
}

html[data-theme="dark"] .about-lead {
  color: rgba(226, 232, 240, 0.88);
}

html[data-theme="dark"] .about-block {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(3, 6, 12, 0.62);
  border-left-color: rgba(59, 130, 246, 0.6);
}

html[data-theme="dark"] .about-block p {
  color: rgba(226, 232, 240, 0.82);
}

html[data-theme="dark"] .contact-copy p {
  color: rgba(226, 232, 240, 0.86);
}

html[data-theme="dark"] .contact-panel {
  border-color: rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, rgba(15, 18, 28, 0.9) 0%, rgba(3, 6, 12, 0.86) 100%);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.38);
}

html[data-theme="dark"] .field input,
html[data-theme="dark"] .field textarea {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(3, 6, 12, 0.6);
  color: rgba(248, 250, 252, 0.92);
}

html[data-theme="dark"] .field input::placeholder,
html[data-theme="dark"] .field textarea::placeholder {
  color: rgba(148, 163, 184, 0.75);
}

html[data-theme="dark"] .contact-note {
  color: rgba(168, 179, 198, 0.92);
}

html[data-theme="dark"] .skills-panel {
  border-color: rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, rgba(15, 18, 28, 0.9) 0%, rgba(3, 6, 12, 0.88) 82%);
}

html[data-theme="dark"] .skills-intro {
  color: rgba(226, 232, 240, 0.82);
}

html[data-theme="dark"] .tree-lines line,
html[data-theme="dark"] .tree-lines path {
  stroke: rgba(148, 163, 184, 0.62);
  opacity: 0.28;
}

html[data-theme="dark"] .tree-lines line.active,
html[data-theme="dark"] .tree-lines path.active {
  stroke: rgba(147, 197, 253, 0.95);
  opacity: 0.9;
}

html[data-theme="dark"] .tree-card {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(3, 6, 12, 0.7);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] .logo-node p {
  color: rgba(248, 250, 252, 0.9);
}

html[data-theme="dark"] .logo-node:hover,
html[data-theme="dark"] .logo-node:focus-visible,
html[data-theme="dark"] .logo-node.is-active-path {
  border-color: rgba(147, 197, 253, 0.7);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .root-node {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.08);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .root-node p {
  color: var(--ink);
}

html[data-theme="dark"] .node-glyph {
  background: rgba(148, 163, 184, 0.14);
  color: rgba(226, 232, 240, 0.92);
}

html[data-theme="dark"] .skills-tab {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(3, 6, 12, 0.62);
  color: rgba(226, 232, 240, 0.9);
}

html[data-theme="dark"] .skills-tab.is-active {
  border-color: rgba(147, 197, 253, 0.55);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(3, 6, 12, 0.62));
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .skills-mobile-tabs {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(3, 6, 12, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .skills-mobile-sub {
  color: #7dd3fc;
}

html[data-theme="dark"] .skills-mobile-note {
  color: rgba(186, 197, 214, 0.92);
}

html[data-theme="dark"] .skills-angled-viewport {
  border-color: rgba(148, 163, 184, 0.22);
  background:
    radial-gradient(circle at 8% 10%, rgba(56, 189, 248, 0.18), transparent 48%),
    linear-gradient(180deg, rgba(3, 6, 12, 0.88) 0%, rgba(8, 12, 21, 0.9) 100%);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .skills-angled-viewport::before {
  opacity: 0.12;
}

html[data-theme="dark"] .skills-angled-viewport::after {
  background: linear-gradient(90deg, rgba(3, 6, 12, 0.95) 0%, rgba(3, 6, 12, 0) 10%, rgba(3, 6, 12, 0) 90%, rgba(3, 6, 12, 0.95) 100%);
}

html[data-theme="dark"] .skills-angled-card-inner {
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(8, 12, 21, 0.84);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .skills-angled-card:focus-visible .skills-angled-card-inner,
html[data-theme="dark"] .skills-angled-card:active .skills-angled-card-inner {
  border-color: rgba(125, 211, 252, 0.6);
  box-shadow: 0 20px 32px rgba(2, 132, 199, 0.2);
}

html[data-theme="dark"] .skills-angled-badge {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(14, 116, 144, 0.3);
  color: #bae6fd;
}

html[data-theme="dark"] .skills-angled-top h3 {
  color: #e2e8f0;
}

html[data-theme="dark"] .skills-angled-card-inner p {
  color: rgba(186, 197, 214, 0.92);
}

html[data-theme="dark"] .skills-mobile-panel {
  border-color: rgba(148, 163, 184, 0.22);
  background:
    radial-gradient(circle at 10% 12%, rgba(59, 130, 246, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(3, 6, 12, 0.78) 0%, rgba(7, 10, 18, 0.78) 100%);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .skills-mobile-kicker {
  color: rgba(168, 179, 198, 0.92);
}

html[data-theme="dark"] .skill-chip {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(3, 6, 12, 0.72);
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .skill-chip span {
  color: rgba(248, 250, 252, 0.92);
}

html[data-theme="dark"] .skill-chip.is-active {
  border-color: rgba(147, 197, 253, 0.55);
  box-shadow: 0 22px 34px rgba(0, 0, 0, 0.46);
}

html[data-theme="dark"] .skills-mobile-detail {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.10);
}

html[data-theme="dark"] .skills-mobile-detail-title {
  color: rgba(248, 250, 252, 0.92);
}

html[data-theme="dark"] .skills-mobile-detail-desc {
  color: rgba(226, 232, 240, 0.82);
}

html[data-theme="dark"] .experience-subtitle {
  color: rgba(168, 179, 198, 0.92);
}

html[data-theme="dark"] .timeline-line {
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.35) 0%, rgba(148, 163, 184, 0.6) 60%, rgba(148, 163, 184, 0.35) 100%);
  opacity: 0.75;
}

html[data-theme="dark"] .timeline-dot {
  background: rgba(3, 6, 12, 0.95);
  border-color: rgba(148, 163, 184, 0.65);
  box-shadow: 0 0 0 7px rgba(148, 163, 184, 0.14);
}

html[data-theme="dark"] .timeline-dot::after {
  background: rgba(148, 163, 184, 0.55);
}

html[data-theme="dark"] .timeline-item.is-active .timeline-dot {
  border-color: rgba(147, 197, 253, 0.95);
  box-shadow: 0 0 0 8px rgba(147, 197, 253, 0.18);
}

html[data-theme="dark"] .timeline-card {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(3, 6, 12, 0.68);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .timeline-year,
html[data-theme="dark"] .timeline-card h3 {
  color: var(--ink);
}

html[data-theme="dark"] .timeline-meta {
  color: rgba(168, 179, 198, 0.92);
}

html[data-theme="dark"] .timeline-card p {
  color: rgba(226, 232, 240, 0.82);
}

html[data-theme="dark"] .timeline-role-divider {
  border-top-color: rgba(148, 163, 184, 0.18);
}

html[data-theme="dark"] .filter-chip {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(3, 6, 12, 0.62);
  color: rgba(226, 232, 240, 0.9);
}

html[data-theme="dark"] .filter-chip:hover {
  border-color: rgba(147, 197, 253, 0.5);
}

html[data-theme="dark"] .filter-chip.is-active {
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(147, 197, 253, 0.6);
  color: rgba(248, 250, 252, 0.96);
}

html[data-theme="dark"] .achievement-media {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(3, 6, 12, 0.62);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.38);
}

html[data-theme="dark"] .achievement-media::after {
  background: linear-gradient(120deg, rgba(59, 130, 246, 0.14), rgba(34, 211, 238, 0.12), rgba(255, 255, 255, 0));
}

html[data-theme="dark"] .achievement-kicker {
  color: rgba(168, 179, 198, 0.92);
}

html[data-theme="dark"] .achievement-content h3 {
  color: var(--ink);
}

html[data-theme="dark"] .achievement-content p {
  color: rgba(226, 232, 240, 0.82);
}

html[data-theme="dark"] .achievement-row:hover .achievement-content h3 {
  color: #93c5fd;
}

html[data-theme="dark"] .achievement-card {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(3, 6, 12, 0.68);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .achievement-card h3 {
  color: var(--ink);
}

html[data-theme="dark"] .achievement-list {
  color: rgba(226, 232, 240, 0.82);
}

html[data-theme="dark"] .achievement-list strong {
  color: var(--ink);
}

html[data-theme="dark"] .badge {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.12);
  color: rgba(226, 232, 240, 0.9);
}

html[data-theme="dark"] .project-info h3,
html[data-theme="dark"] .more-projects-head h3,
html[data-theme="dark"] .project-card-body h4 {
  color: var(--ink);
}

html[data-theme="dark"] .project-summary,
html[data-theme="dark"] .project-list,
html[data-theme="dark"] .more-projects-head p,
html[data-theme="dark"] .project-card-tag {
  color: rgba(168, 179, 198, 0.92);
}

html[data-theme="dark"] .project-badge {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.12);
  color: rgba(226, 232, 240, 0.9);
  box-shadow: none;
}

html[data-theme="dark"] .project-brand img {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(3, 6, 12, 0.6);
}

html[data-theme="dark"] .project-media {
  background: rgba(3, 6, 12, 0.62);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .project-filter-chip {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(3, 6, 12, 0.62);
  color: rgba(226, 232, 240, 0.9);
}

html[data-theme="dark"] .project-filter-chip.is-active {
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(147, 197, 253, 0.6);
  color: rgba(248, 250, 252, 0.96);
}

html[data-theme="dark"] .project-link {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(3, 6, 12, 0.66);
  color: rgba(226, 232, 240, 0.94);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .project-link:hover {
  border-color: rgba(147, 197, 253, 0.55);
  box-shadow: 0 22px 36px rgba(0, 0, 0, 0.38);
}

html[data-theme="dark"] .review-name,
html[data-theme="dark"] .faq-item summary,
html[data-theme="dark"] .section h2,
html[data-theme="dark"] .typing-title,
html[data-theme="dark"] .nav-brand {
  color: var(--ink);
}

html[data-theme="dark"] .review-role,
html[data-theme="dark"] .kicker,
html[data-theme="dark"] .tag,
html[data-theme="dark"] .project-kicker {
  color: rgba(168, 179, 198, 0.92);
}

html[data-theme="dark"] .site-footer {
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.92), rgba(7, 11, 18, 0.92) 55%);
}

html[data-theme="dark"] .site-footer .footer-links a {
  color: rgba(226, 232, 240, 0.9);
}

html[data-theme="dark"] .site-footer .footer-links a:hover {
  color: #93c5fd;
}

html[data-theme="dark"] .site-footer .footer-bottom {
  color: rgba(148, 163, 184, 0.82);
  border-top-color: rgba(148, 163, 184, 0.16);
}

@media (max-width: 860px) {
  .site-footer .footer-inner {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-tagline {
    max-width: 62ch;
  }
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 1120px) {
  .sliding-cards {
    width: min(90%, 480px);
  }

  .about-layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .project-feature {
    grid-template-columns: 2fr 3fr;
  }

  .achievement-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .achievement-row.is-reverse {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

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

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

@media (max-height: 820px) and (min-width: 901px) {
  .left-pane {
    padding: 20px clamp(20px, 3.4vw, 56px);
    row-gap: 20px;
  }

  .hero-copy {
    row-gap: 14px;
  }

  .typing-title {
    font-size: clamp(1.8rem, 3.8vw, 3.3rem);
  }

  .facts {
    padding-top: 16px;
    gap: 24px;
  }

  .right-pane {
    row-gap: 16px;
    padding: 18px clamp(18px, 2vw, 24px);
  }

  .sliding-cards {
    max-height: calc(100svh - 150px);
  }

  .serial {
    font-size: clamp(2.2rem, 3.6vw, 3.6rem);
  }
}

@media (max-width: 900px) {
  .story-rail {
    display: none;
  }

  .skills-tree-wrap {
    display: none;
  }

  .skills-mobile {
    display: block;
  }

  .section,
  .section.is-story-active,
  .section.is-story-past {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .timeline {
    --timeline-center: 26px;
    --timeline-connector: 0px;
    gap: clamp(20px, 5vw, 32px);
  }

  .timeline-line {
    left: 18px;
  }

  .timeline-progress {
    left: 18px;
  }

  .timeline-item {
    grid-template-columns: 26px minmax(0, 1fr);
    min-height: 0;
  }

  .timeline-dot {
    grid-column: 1;
  }

  .timeline-item.left .timeline-card,
  .timeline-item.right .timeline-card {
    grid-column: 2;
    justify-self: stretch;
  }

  .timeline-card {
    width: 100%;
  }

  .timeline-item.left .timeline-dot::after,
  .timeline-item.right .timeline-dot::after {
    left: 50%;
    transform: translate(0, -50%);
  }

  .hero {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .left-pane {
    order: 2;
    grid-template-rows: auto auto auto;
    row-gap: 24px;
  }

  .left-pane > .brand {
    display: none;
  }

  .right-pane {
    order: 1;
    min-height: 0;
    grid-template-rows: auto auto auto;
  }

  .hero-copy {
    align-self: start;
  }

  .typing-title {
    font-size: clamp(2rem, 9vw, 3.2rem);
    max-width: 12ch;
  }

  .facts {
    gap: 24px;
    padding-top: 20px;
  }

  .sliding-cards {
    max-height: none;
    width: min(78vw, 420px);
  }

  .serial {
    display: none;
  }

  .sections {
    padding-top: 2.2rem;
  }

  .nav-mark {
    display: none;
  }

  .nav-brand {
    gap: 0;
    font-size: 1.55rem;
  }

}

@media (min-width: 901px) {
  /* Avoid duplicate branding (left-pane already has the brand). */
  .nav-brand {
    display: none;
  }

  /* Reclaim the empty brand column on desktop so nav links don't get cut. */
  .top-nav {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "nav actions";
  }

  #siteNav {
    justify-self: end;
    justify-content: flex-end;
    min-width: 0;
  }
}

@media (max-width: 1360px) and (min-width: 901px) {
  .left-pane {
    padding: clamp(18px, 2.4vw, 30px) clamp(22px, 3.8vw, 56px);
    row-gap: 20px;
  }

  .right-pane {
    padding: clamp(14px, 2vw, 24px);
    row-gap: 16px;
  }

  #siteNav {
    gap: clamp(0.45rem, 0.72vw, 0.9rem);
  }

  #siteNav a {
    font-size: 0.75rem;
    letter-spacing: 0.045em;
  }

  .theme-switch {
    --toggle-size: 12px;
  }

  .sliding-cards {
    width: min(86%, 460px);
    max-height: calc(100svh - 156px);
  }

  .slide-card img {
    object-fit: contain;
    object-position: center;
    background: linear-gradient(180deg, #d9e0ea 0%, #cfd8e5 100%);
  }
}

@media (max-width: 1250px) and (min-width: 901px) {
  .menu-btn {
    display: inline-flex;
  }

  .mobile-menu-overlay {
    display: block;
  }

  #siteNav {
    display: none;
  }

  .theme-switch {
    display: none;
  }
}

@media (max-width: 760px) {
  .skills-tree-wrap {
    display: none;
  }

  .skills-mobile {
    display: block;
  }

  .section {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .section h2::after {
    transition: none;
  }

  .project-feature {
    grid-template-columns: 1fr;
  }

  .elang-launch-stats {
    grid-template-columns: 1fr;
  }

  .project-media--elang-launch {
    min-height: 0;
    padding: 12px;
  }

  .elang-launch-window-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .elang-cli-ok {
    margin-left: 0;
  }

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

  .achievement-row,
  .achievement-row.is-reverse {
    grid-template-columns: 1fr;
  }

  .achievement-row.is-reverse .achievement-media,
  .achievement-row.is-reverse .achievement-content {
    order: initial;
  }

  .story-chapter,
  .story-chapter.is-reverse {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .story-chapter.is-reverse .story-chapter-media,
  .story-chapter.is-reverse .story-chapter-content {
    order: initial;
  }

  .story-chapter-index {
    top: -1.3rem;
  }

  .achievement-content {
    max-width: none;
  }

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

  .root-node p {
    font-size: 1.08rem;
  }

  .logo-node {
    width: 110px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
  }

  .about-rail {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rail-title {
    grid-column: 1 / -1;
  }

  .menu-btn {
    display: inline-flex;
  }

  .mobile-menu-overlay {
    display: block;
  }

  #siteNav {
    display: none;
  }

  .theme-switch {
    --toggle-size: 12px;
  }

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

  .contact {
    display: block;
  }
}

@media (pointer: coarse) {
  .faq-item {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .faq-item::before {
    display: none;
  }

  .mobile-menu-overlay {
    will-change: auto;
  }

  .skill-chip {
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
  }
}

/* ─── ELANG SHOWCASE SECTION (in main page) ─────────────────────── */
.elang-showcase { padding: 0 0 2.4rem; }

.elang-card {
  display: block;
  text-decoration: none;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(150deg, #0d1117 0%, #0f1923 60%, #0d1117 100%);
  border: 1px solid rgba(29, 78, 216, 0.25);
  box-shadow: 0 20px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(29,78,216,.1);
  cursor: pointer;
  transition: box-shadow 280ms ease, transform 280ms ease, border-color 280ms ease;
}
.elang-card:hover {
  transform: translateY(-4px);
  border-color: rgba(29,78,216,.5);
  box-shadow: 0 28px 80px rgba(0,0,0,.55), 0 0 48px rgba(29,78,216,.18);
}
.elang-card-glow {
  position: absolute; top:-50%; left:-10%; width:60%; height:200%;
  background: radial-gradient(circle at 40% 50%, rgba(29,78,216,.16) 0%, transparent 65%);
  pointer-events: none;
}
.elang-card-body {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px,4vw,48px);
  padding: clamp(28px,4vw,56px);
  align-items: center;
}
.elang-badge-row { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:20px; }
.elang-chip {
  padding:.2rem .7rem; border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  font-size:.74rem; font-weight:700; letter-spacing:.05em;
  color:rgba(255,255,255,.55); background:rgba(255,255,255,.05);
}
.elang-chip-blue { color:#93c5fd; border-color:rgba(29,78,216,.45); background:rgba(29,78,216,.12); }
.elang-title-row { display:flex; align-items:center; gap:16px; margin-bottom:16px; }
.elang-logo {
  width:52px; height:52px; border-radius:14px;
  background: linear-gradient(135deg,#1d4ed8,#38bdf8);
  display:grid; place-items:center;
  font-family:"Playfair Display",serif; font-size:1.6rem; font-weight:700; color:#fff;
  flex-shrink:0; box-shadow:0 0 30px rgba(29,78,216,.5);
}
.elang-kicker { margin:0; font-size:.76rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:#38bdf8; }
.elang-name { margin:2px 0 0; font-family:"Manrope",sans-serif; font-size:clamp(1.6rem,3vw,2.4rem); font-weight:800; letter-spacing:-.025em; color:#e6edf3; }
.elang-desc { margin:0 0 20px; color:#8b949e; font-size:.96rem; line-height:1.7; max-width:48ch; }
.elang-features { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:28px; }
.elang-feat { padding:.35rem .85rem; border-radius:999px; background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.1); color:rgba(255,255,255,.7); font-size:.82rem; font-weight:600; }
.elang-actions { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.elang-cta-primary {
  background:linear-gradient(135deg,#1d4ed8,#2563eb); color:#fff !important;
  border-color:transparent !important; box-shadow:0 6px 22px rgba(29,78,216,.42);
  padding:.8rem 1.7rem; border-radius:999px; font-weight:700; font-size:1.02rem;
  display:inline-flex; align-items:center; gap:7px;
}
.elang-cta-dl {
  display:inline-flex; align-items:center; gap:7px;
  padding:.7rem 1.2rem; border-radius:999px;
  border:1px solid rgba(255,255,255,.14); color:rgba(255,255,255,.65);
  text-decoration:none; font-size:.93rem; font-weight:700;
  transition:border-color 200ms ease, color 200ms ease, background 200ms ease;
  position:relative; z-index:2;
}
.elang-cta-dl:hover { border-color:rgba(56,189,248,.5); color:#38bdf8; background:rgba(56,189,248,.06); }
.elang-code-window { border:1px solid rgba(48,54,61,.9); border-radius:14px; overflow:hidden; background:#161b22; box-shadow:0 16px 48px rgba(0,0,0,.6); }
.elang-code-bar { display:flex; align-items:center; gap:7px; padding:10px 16px; background:#1c2128; border-bottom:1px solid rgba(48,54,61,.9); }
.elang-dot { width:11px; height:11px; border-radius:50%; }
.elang-dot-r { background:#ff5f57; }
.elang-dot-y { background:#febc2e; }
.elang-dot-g { background:#28c840; }
.elang-code-fname { font-family:"JetBrains Mono","Fira Mono",monospace; font-size:.76rem; color:#8b949e; margin-left:5px; }
.elang-code { display:block; padding:22px; margin:0; font-family:"JetBrains Mono","Fira Mono",monospace; font-size:.83rem; line-height:1.72; color:#e6edf3; white-space:pre; overflow-x:auto; }
@media (max-width:860px) {
  .elang-card-body { grid-template-columns:1fr; }
  .elang-card-right { display:none; }
}
