:root {
  --bg: #d9eef8;
  --bg-soft: #eef8ff;
  --surface: rgba(241, 250, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --surface-border: rgba(255, 255, 255, 0.72);
  --drawer-bg: #ffffff;
  --text: #082b4d;
  --text-strong: #062643;
  --muted: #4d7192;
  --accent: #0e5f92;
  --accent-strong: #063b63;
  --accent-soft: rgba(68, 152, 207, 0.14);
  --accent-glow: rgba(68, 152, 207, 0.28);
  --blue-soft: rgba(174, 220, 245, 0.38);
  --line: rgba(76, 115, 146, 0.14);
  --shadow: 0 28px 90px rgba(8, 43, 77, 0.16);
  --shadow-soft: 0 18px 46px rgba(8, 43, 77, 0.1);
  --drawer-shadow: 18px 0 70px rgba(8, 43, 77, 0.14);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --header-height: 74px;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 14%, rgba(255, 255, 255, 0.74), transparent 24%),
    radial-gradient(circle at 92% 12%, rgba(103, 183, 232, 0.3), transparent 30%),
    radial-gradient(circle at 22% 88%, rgba(255, 255, 255, 0.62), transparent 28%),
    linear-gradient(145deg, #f8fcff 0%, #dceff8 46%, #c9e5f2 100%);
  transition: background-color 0.25s ease, color 0.25s ease;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
}

body::before {
  left: -180px;
  bottom: 8%;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(14, 95, 146, 0.16);
  border-radius: 50%;
  box-shadow:
    30px 30px 0 rgba(14, 95, 146, 0.04),
    60px 60px 0 rgba(14, 95, 146, 0.035),
    90px 90px 0 rgba(14, 95, 146, 0.025);
}

body::after {
  right: 42px;
  top: 108px;
  width: 190px;
  height: 230px;
  opacity: 0.42;
  background-image: radial-gradient(circle, rgba(14, 95, 146, 0.46) 1.15px, transparent 1.15px);
  background-size: 15px 15px;
}

body.is-loading,
body.is-drawer-open,
body.is-modal-open {
  overflow: hidden;
}

body.theme-dark {
  --bg: #061320;
  --bg-soft: #0b1d2f;
  --surface: rgba(11, 29, 47, 0.78);
  --surface-strong: rgba(12, 26, 43, 0.94);
  --surface-border: rgba(171, 213, 244, 0.16);
  --drawer-bg: #0b1d2f;
  --text: #eef8ff;
  --text-strong: #ffffff;
  --muted: #9bb7cd;
  --accent: #67b7e8;
  --accent-strong: #9fd7fa;
  --accent-soft: rgba(103, 183, 232, 0.16);
  --accent-glow: rgba(103, 183, 232, 0.28);
  --blue-soft: rgba(103, 183, 232, 0.1);
  --line: rgba(171, 213, 244, 0.14);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 18px 46px rgba(0, 0, 0, 0.24);
  --drawer-shadow: 18px 0 70px rgba(0, 0, 0, 0.5);
  background:
    radial-gradient(circle at 8% 14%, rgba(27, 83, 122, 0.38), transparent 24%),
    radial-gradient(circle at 92% 12%, rgba(56, 144, 202, 0.2), transparent 30%),
    linear-gradient(145deg, #04101c 0%, #061320 52%, #0b1d2f 100%);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, #ffffff 0%, #dff4ff 100%);
  z-index: 9999;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

body.theme-dark .loading-overlay {
  background: radial-gradient(circle at center, #0b1d2f 0%, #020617 100%);
}

.loading-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-text {
  position: relative;
  padding: 0.45rem 0.9rem;
  overflow: hidden;
  color: var(--text-strong);
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.loading-text::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.95) 50%, transparent 80%);
  transform: translateX(-120%);
  animation: shine 1.45s linear infinite;
}

@keyframes shine {
  to {
    transform: translateX(120%);
  }
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, 1240px);
  height: calc(100svh - 56px);
  margin: 28px auto;
  border-radius: 32px;
  border: 1px solid var(--surface-border);
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 255, 255, 0.86), transparent 24%),
    radial-gradient(circle at 95% 12%, rgba(103, 183, 232, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(234, 247, 255, 0.64));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  overflow: hidden;
}

body.theme-dark .page-shell {
  background:
    radial-gradient(circle at 8% 8%, rgba(27, 83, 122, 0.2), transparent 24%),
    radial-gradient(circle at 95% 12%, rgba(103, 183, 232, 0.08), transparent 28%),
    linear-gradient(145deg, rgba(12, 26, 43, 0.82), rgba(6, 19, 32, 0.72));
}

.site-header {
  position: relative;
  z-index: 50;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 100%;
  padding: 0 26px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.window-dots {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex: 0 0 auto;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: block;
}

.window-dots span:nth-child(1) {
  background: #ff5f57;
}

.window-dots span:nth-child(2) {
  background: #ffbd2e;
}

.window-dots span:nth-child(3) {
  background: #28c840;
}

.brand {
  color: var(--text-strong);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.desktop-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 820;
  font-size: 0.9rem;
  padding: 11px 15px;
  border-radius: 999px;
  transition: color 0.24s ease, background-color 0.24s ease, transform 0.24s ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.desktop-nav a.is-active {
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.58);
}

body.theme-dark .desktop-nav a:hover,
body.theme-dark .desktop-nav a:focus-visible,
body.theme-dark .desktop-nav a.is-active {
  color: var(--text-strong);
  background: rgba(103, 183, 232, 0.14);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.drawer-close {
  position: relative;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(8, 43, 77, 0.08);
  transition: transform 0.24s ease, background-color 0.24s ease, color 0.24s ease, box-shadow 0.24s ease;
}

.icon-button:hover,
.icon-button:focus-visible,
.drawer-close:hover,
.drawer-close:focus-visible,
.button:hover,
.button:focus-visible,
.portfolio-card:hover,
.portfolio-card:focus-visible,
.contact-pill:hover,
.contact-pill:focus-visible {
  transform: translateY(-2px);
}

.icon-button:focus-visible,
.drawer-close:focus-visible,
.button:focus-visible,
.portfolio-card:focus-visible,
.drawer-nav a:focus-visible,
.desktop-nav a:focus-visible,
.inline-links a:focus-visible,
.brand:focus-visible,
.progress-dot:focus-visible,
.contact-pill:focus-visible,
.flip-card-scroll:focus-visible,
.timeline-scroll:focus-visible {
  outline: 3px solid rgba(103, 183, 232, 0.36);
  outline-offset: 4px;
}

.icon-button svg,
.drawer-close svg,
.button svg,
.drawer-nav-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.theme-icon-sun {
  opacity: 0;
  transform: scale(0.7) rotate(-25deg);
}

body.theme-dark .theme-icon-sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

body.theme-dark .theme-icon-moon {
  opacity: 0;
  transform: scale(0.7) rotate(25deg);
}

.mobile-only {
  display: none;
}

.site-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(8, 43, 77, 0.14);
  opacity: 0;
  animation: overlayFade 0.22s ease forwards;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.site-overlay[hidden] {
  display: none !important;
}

body.theme-dark .site-overlay {
  background: rgba(2, 6, 23, 0.34);
}

@keyframes overlayFade {
  to {
    opacity: 1;
  }
}

.drawer-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: min(84vw, 340px);
  height: 100svh;
  transform: translateX(-104%);
  background:
    radial-gradient(circle at 0% 0%, rgba(103, 183, 232, 0.12), transparent 32%),
    radial-gradient(circle at 100% 18%, rgba(174, 220, 245, 0.2), transparent 34%),
    var(--drawer-bg);
  border-right: 1px solid var(--surface-border);
  box-shadow: var(--drawer-shadow);
  z-index: 220;
  transition:
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.34s ease;
  padding: 18px;
  overflow: hidden;
  opacity: 1;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  isolation: isolate;
}

.drawer-menu.is-open {
  transform: translateX(0);
}

.drawer-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--drawer-bg);
  opacity: 0.96;
}

.drawer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 4px 20px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.drawer-profile {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.drawer-avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 18px;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 26px rgba(8, 43, 77, 0.12);
}

.drawer-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.drawer-title {
  margin: 0;
  color: var(--text-strong);
  font-size: 1.02rem;
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.drawer-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 740;
}

.drawer-close {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid rgba(180, 213, 236, 0.78);
  background: rgba(248, 252, 255, 0.96);
  box-shadow: none;
}

.drawer-close:hover,
.drawer-close:focus-visible {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(103, 183, 232, 0.34);
}

body.theme-dark .drawer-close {
  background: rgba(20, 45, 67, 0.96);
  border-color: rgba(171, 213, 244, 0.16);
}

.drawer-nav {
  display: grid;
  gap: 9px;
  padding: 8px 0 18px;
}

.drawer-nav a {
  position: relative;
  min-height: 68px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border-radius: 20px;
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  transition:
    transform 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease;
}

.drawer-nav a:hover,
.drawer-nav a:focus-visible,
.drawer-nav a.is-active {
  color: var(--accent-strong);
  background: rgba(103, 183, 232, 0.12);
  border-color: rgba(103, 183, 232, 0.22);
  box-shadow: 0 14px 28px rgba(8, 43, 77, 0.07);
  transform: translateX(3px);
}

.drawer-nav-icon {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: rgba(103, 183, 232, 0.14);
  transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.drawer-nav a:hover .drawer-nav-icon,
.drawer-nav a:focus-visible .drawer-nav-icon,
.drawer-nav a.is-active .drawer-nav-icon {
  color: #ffffff;
  background: linear-gradient(135deg, #1b75aa, #063b63);
  transform: scale(1.04);
}

.drawer-nav strong {
  display: block;
  padding-right: 18px;
  color: inherit;
  font-size: 0.95rem;
  line-height: 1.2;
  font-weight: 900;
}

.drawer-nav small {
  display: block;
  margin-top: 3px;
  padding-right: 18px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.3;
  font-weight: 700;
}

.drawer-home-link {
  margin-top: 6px;
  background: rgba(103, 183, 232, 0.1) !important;
  border-color: rgba(103, 183, 232, 0.18) !important;
}

.flip-layout {
  position: relative;
  height: calc(100% - var(--header-height));
  padding: clamp(16px, 2.3vw, 28px);
  display: grid;
  place-items: center;
  overflow: hidden;
  perspective: 1800px;
}

.flip-stage {
  position: relative;
  width: min(100%, 980px);
  height: min(100%, 650px);
  transform-style: preserve-3d;
}

.flip-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding: clamp(24px, 4vw, 42px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--surface-border);
  background:
    radial-gradient(circle at 6% 8%, rgba(255, 255, 255, 0.86), transparent 22%),
    radial-gradient(circle at 92% 88%, rgba(174, 220, 245, 0.35), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(234, 247, 255, 0.68));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px) saturate(1.08);
  -webkit-backdrop-filter: blur(20px) saturate(1.08);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: rotateY(22deg) translateX(42px) scale(0.92);
  transition:
    transform 0.82s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.62s ease,
    filter 0.62s ease;
  filter: blur(12px);
  transform-origin: center;
}

body.theme-dark .flip-card {
  background:
    radial-gradient(circle at 6% 8%, rgba(103, 183, 232, 0.12), transparent 22%),
    radial-gradient(circle at 92% 88%, rgba(103, 183, 232, 0.08), transparent 30%),
    linear-gradient(145deg, rgba(12, 26, 43, 0.92), rgba(6, 19, 32, 0.72));
}

.flip-card.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: rotateY(0deg) translateX(0) scale(1);
  filter: blur(0);
  z-index: 10;
}

.flip-card.is-before {
  transform: rotateY(-28deg) translateX(-64px) scale(0.9);
}

.flip-card.is-after {
  transform: rotateY(28deg) translateX(64px) scale(0.9);
}

.flip-card-scroll {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 10px;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(14, 95, 146, 0.42) rgba(174, 220, 245, 0.22);
}

.flip-card-scroll::-webkit-scrollbar {
  width: 10px;
}

.flip-card-scroll::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(174, 220, 245, 0.22);
}

.flip-card-scroll::-webkit-scrollbar-thumb {
  border: 2px solid rgba(238, 248, 255, 0.94);
  border-radius: 999px;
  background: linear-gradient(180deg, #67b7e8, #0e5f92);
}

.flip-card-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #8dd0f4, #0e5f92);
}

body.theme-dark .flip-card-scroll {
  scrollbar-color: rgba(103, 183, 232, 0.6) rgba(103, 183, 232, 0.12);
}

body.theme-dark .flip-card-scroll::-webkit-scrollbar-track {
  background: rgba(103, 183, 232, 0.1);
}

body.theme-dark .flip-card-scroll::-webkit-scrollbar-thumb {
  border-color: rgba(11, 29, 47, 0.96);
  background: linear-gradient(180deg, #9fd7fa, #1b75aa);
}

.about-scroll,
.focus-scroll,
.portfolio-scroll {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-orbit {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.7;
}

.card-orbit-one {
  width: 230px;
  height: 230px;
  top: -96px;
  right: -72px;
  background: rgba(103, 183, 232, 0.2);
  filter: blur(4px);
}

.card-orbit-two {
  width: 150px;
  height: 150px;
  bottom: -54px;
  left: 12%;
  border: 1px solid rgba(14, 95, 146, 0.16);
}

.about-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 320px);
  gap: clamp(18px, 3vw, 30px);
  align-items: center;
}

.about-copy h1 {
  max-width: 10.8ch;
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(2.65rem, 5.2vw, 4.6rem);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: -0.07em;
}

.section-label {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.intro-text,
.section-lead {
  margin: 18px 0 0;
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.72;
  font-size: clamp(0.94rem, 1.2vw, 1.04rem);
  font-weight: 600;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.stat-card {
  min-height: 98px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(199, 224, 239, 0.72);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 10px;
  row-gap: 2px;
}

body.theme-dark .stat-card {
  background: rgba(12, 26, 43, 0.48);
  border-color: rgba(171, 213, 244, 0.12);
}

.stat-icon {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: var(--accent-soft);
}

.stat-icon svg,
.about-icon svg,
.portfolio-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-value {
  color: var(--text-strong);
  font-size: 1.02rem;
  line-height: 1.18;
  font-weight: 950;
}

.stat-label {
  color: var(--muted);
  line-height: 1.35;
  font-size: 0.75rem;
  font-weight: 720;
}

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

.button {
  min-height: 50px;
  border: 0;
  padding: 0 18px;
  border-radius: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.24s ease, background-color 0.24s ease, color 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.button-primary {
  background: linear-gradient(135deg, #0e5f92, #063b63);
  color: #ffffff;
  box-shadow: 0 18px 32px rgba(8, 43, 77, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: linear-gradient(135deg, #1b75aa, #062f50);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.66);
  color: var(--accent-strong);
  border: 1px solid rgba(199, 224, 239, 0.86);
}

body.theme-dark .button-secondary {
  background: rgba(12, 26, 43, 0.46);
  border-color: rgba(171, 213, 244, 0.16);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--accent-soft);
}

.identity-card {
  position: relative;
  padding: 28px 24px;
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(234, 247, 255, 0.62));
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: 0 20px 44px rgba(8, 43, 77, 0.1);
  text-align: left;
}

body.theme-dark .identity-card {
  background: linear-gradient(145deg, rgba(12, 26, 43, 0.8), rgba(12, 26, 43, 0.48));
  border-color: rgba(171, 213, 244, 0.12);
}

.intro-avatar {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin-bottom: 20px;
  border: 7px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 32px rgba(8, 43, 77, 0.13);
}

.intro-role {
  margin: 0 0 7px;
  color: var(--accent);
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.identity-card h2 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.intro-quote {
  margin: 13px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.94rem;
  font-weight: 600;
}

.inline-links {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
}

.inline-links a {
  width: 44px;
  height: 44px;
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(199, 224, 239, 0.72);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.24s ease, color 0.24s ease, background-color 0.24s ease;
}

.inline-links svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.inline-links a:hover,
.inline-links a:focus-visible {
  color: #ffffff;
  background: var(--accent-strong);
}

.section-heading {
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.focus-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.content-card {
  padding: 24px;
  border: 1px solid rgba(199, 224, 239, 0.74);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 18px 40px rgba(8, 43, 77, 0.08);
}

body.theme-dark .content-card {
  background: rgba(12, 26, 43, 0.52);
  border-color: rgba(171, 213, 244, 0.12);
}

.about-card {
  min-height: 216px;
}

.about-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: var(--accent-soft);
}

.content-card h3 {
  margin: 0 0 12px;
  color: var(--text-strong);
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.content-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
  font-weight: 600;
  font-size: 0.94rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 850;
  font-size: 0.78rem;
}

.experience-card {
  justify-content: flex-start;
}

.journey-heading {
  flex: 0 0 auto;
  margin-bottom: 18px;
}

.journey-shell {
  position: relative;
  z-index: 1;
  min-height: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12px;
  gap: 14px;
  align-items: stretch;
}

.timeline-scroll {
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 8px 2px 0;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(to bottom, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}

.timeline-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.timeline-scroll::-webkit-scrollbar-track,
.timeline-scroll::-webkit-scrollbar-thumb,
.timeline-scroll::-webkit-scrollbar-thumb:hover {
  display: none;
}

.journey-scrollbar {
  position: relative;
  width: 8px;
  height: 100%;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(174, 220, 245, 0.18)),
    rgba(174, 220, 245, 0.18);
  border: 1px solid rgba(199, 224, 239, 0.7);
  overflow: hidden;
  box-shadow: inset 0 1px 4px rgba(8, 43, 77, 0.08);
}

.journey-scrollbar span {
  position: absolute;
  top: 0;
  left: 1px;
  right: 1px;
  min-height: 34px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), transparent 32%),
    linear-gradient(180deg, #67b7e8, #0e5f92);
  box-shadow:
    0 10px 20px rgba(8, 43, 77, 0.18),
    0 0 0 4px rgba(103, 183, 232, 0.08);
  transition: top 0.12s ease, height 0.2s ease, opacity 0.2s ease;
}

body.theme-dark .journey-scrollbar {
  background: rgba(103, 183, 232, 0.1);
  border-color: rgba(171, 213, 244, 0.14);
}

.journey-note {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: fit-content;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.journey-note-dot {
  width: 28px;
  height: 8px;
  border-radius: 999px;
  background: rgba(103, 183, 232, 0.16);
  position: relative;
  overflow: hidden;
}

.journey-note-dot::before {
  content: "";
  position: absolute;
  inset: 1px auto 1px 1px;
  width: 10px;
  border-radius: 999px;
  background: var(--accent);
  animation: sliderPulse 1.65s ease-in-out infinite;
}

@keyframes sliderPulse {
  0% {
    transform: translateX(0);
    opacity: 0.55;
  }

  50% {
    transform: translateX(15px);
    opacity: 1;
  }

  100% {
    transform: translateX(0);
    opacity: 0.55;
  }
}

.timeline {
  position: relative;
  z-index: 1;
  list-style: none;
  padding: 4px 0 16px;
  margin: 0;
  display: grid;
  gap: 10px;
}

.timeline-item {
  position: relative;
  padding-left: 30px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 18px;
  bottom: -14px;
  width: 2px;
  background: rgba(14, 95, 146, 0.16);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 4px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 4px rgba(103, 183, 232, 0.15);
}

.timeline-card {
  padding: 15px 18px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(199, 224, 239, 0.72);
  background: rgba(255, 255, 255, 0.58);
}

body.theme-dark .timeline-card {
  background: rgba(12, 26, 43, 0.52);
  border-color: rgba(171, 213, 244, 0.12);
}

.timeline-date {
  margin: 0;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
}

.timeline-card h3 {
  margin: 0 0 5px;
  color: var(--text-strong);
  font-size: 0.94rem;
  line-height: 1.32;
  letter-spacing: -0.02em;
}

.timeline-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.8rem;
  font-weight: 600;
}

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

.portfolio-card {
  width: 100%;
  min-height: 116px;
  padding: 20px;
  text-align: left;
  border: 1px solid rgba(199, 224, 239, 0.74);
  border-radius: 24px;
  color: inherit;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.58);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  transition: transform 0.24s ease, background-color 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

body.theme-dark .portfolio-card {
  background: rgba(12, 26, 43, 0.52);
  border-color: rgba(171, 213, 244, 0.12);
}

.portfolio-card:hover,
.portfolio-card:focus-visible {
  border-color: rgba(103, 183, 232, 0.38);
  box-shadow: 0 24px 54px rgba(8, 43, 77, 0.12);
}

.portfolio-icon {
  width: 54px;
  height: 54px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: var(--accent-soft);
}

.portfolio-type {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 7px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.portfolio-card h3 {
  margin: 0 0 7px;
  color: var(--text-strong);
  font-size: 0.98rem;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.portfolio-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
  font-weight: 600;
}

.contact-strip {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.contact-pill {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(199, 224, 239, 0.74);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 900;
  font-size: 0.86rem;
  transition: transform 0.24s ease, color 0.24s ease, background-color 0.24s ease;
}

.contact-pill:hover,
.contact-pill:focus-visible {
  color: #ffffff;
  background: var(--accent-strong);
}

.flip-progress {
  position: absolute;
  left: clamp(18px, 2.5vw, 34px);
  top: 50%;
  z-index: 30;
  display: grid;
  gap: 12px;
  transform: translateY(-50%);
}

.progress-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(8, 43, 77, 0.18);
  cursor: pointer;
  transition: transform 0.24s ease, background-color 0.24s ease, box-shadow 0.24s ease;
}

.progress-dot.is-active {
  background: var(--accent);
  transform: scale(1.35);
  box-shadow: 0 0 0 8px rgba(103, 183, 232, 0.14);
}

.flip-hint {
  position: absolute;
  bottom: 16px;
  right: 26px;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mouse-dot {
  width: 18px;
  height: 28px;
  border: 2px solid rgba(14, 95, 146, 0.26);
  border-radius: 999px;
  position: relative;
}

.mouse-dot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 5px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
  transform: translateX(-50%);
  animation: wheelDot 1.4s ease-in-out infinite;
}

@keyframes wheelDot {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }

  35% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, 11px);
  }
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 43, 77, 0.42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 260;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-content {
  position: relative;
  width: min(100%, 560px);
  padding: 30px;
  border-radius: var(--radius-xl);
  background: var(--surface-strong);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
}

.modal-content h3 {
  margin: 0 0 12px;
  color: var(--text-strong);
  font-size: 1.6rem;
}

.modal-content p {
  color: var(--muted);
  line-height: 1.75;
}

.modal-stack {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--text) !important;
  font-weight: 850;
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
}

@media (max-width: 980px) {
  .page-shell {
    width: min(100% - 28px, 940px);
    height: calc(100svh - 28px);
    margin: 14px auto;
    border-radius: 26px;
  }

  .flip-layout {
    padding: 18px;
  }

  .flip-stage {
    height: min(100%, 720px);
  }

  .about-scroll,
  .focus-scroll,
  .portfolio-scroll {
    justify-content: flex-start;
  }

  .about-hero {
    grid-template-columns: 1fr;
  }

  .identity-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 20px;
    align-items: center;
    padding: 22px;
  }

  .intro-avatar {
    margin: 0;
  }

  .intro-role,
  .identity-card h2,
  .intro-quote,
  .inline-links {
    grid-column: 2;
  }

  .inline-links {
    margin-top: 14px;
    padding-top: 14px;
  }

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

  .about-card {
    min-height: auto;
  }

  .timeline-card {
    grid-template-columns: 150px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {

  body::before,
  body::after,
  .window-dots {
    display: none;
  }

  .page-shell {
    width: 100%;
    height: 100svh;
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .site-header {
    height: 68px;
  }

  .header-inner {
    padding: 0 16px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-only {
    display: inline-flex;
  }

  .brand {
    font-size: 0.82rem;
    letter-spacing: 0.12em;
  }

  .header-actions {
    margin-left: auto;
  }

  .flip-layout {
    height: calc(100% - 68px);
    padding: 14px;
    align-items: start;
  }

  .flip-stage {
    width: 100%;
    height: calc(100svh - 112px);
  }

  .flip-card {
    justify-content: start;
    padding: 22px 18px;
    border-radius: 26px;
  }

  .flip-card-scroll {
    padding-right: 6px;
  }

  .about-copy h1 {
    max-width: 12ch;
    font-size: clamp(2rem, 10.4vw, 3.05rem);
  }

  .intro-text,
  .section-lead {
    margin-top: 13px;
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .stat-grid {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 18px;
  }

  .stat-card {
    min-height: 66px;
    padding: 12px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .button {
    width: 100%;
    min-height: 46px;
  }

  .identity-card {
    margin-top: 12px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 16px;
    border-radius: 22px;
  }

  .intro-avatar {
    width: 72px;
    height: 72px;
    border-width: 5px;
  }

  .identity-card h2 {
    font-size: 1.35rem;
  }

  .intro-role {
    font-size: 0.64rem;
  }

  .intro-quote {
    display: none;
  }

  .inline-links {
    margin-top: 10px;
    padding-top: 10px;
  }

  .inline-links a {
    width: 38px;
    height: 38px;
  }

  .section-heading {
    margin-bottom: 16px;
  }

  .section-heading h2 {
    font-size: clamp(1.75rem, 8.8vw, 2.45rem);
  }

  .focus-grid {
    gap: 10px;
  }

  .content-card {
    padding: 16px;
    border-radius: 20px;
  }

  .about-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 10px;
  }

  .content-card h3 {
    margin-bottom: 8px;
    font-size: 0.96rem;
  }

  .content-card p {
    font-size: 0.82rem;
    line-height: 1.48;
  }

  .tag-list {
    gap: 7px;
  }

  .tag-list li {
    padding: 7px 10px;
    font-size: 0.72rem;
  }

  .journey-heading {
    margin-bottom: 12px;
  }

  .journey-shell {
    grid-template-columns: minmax(0, 1fr) 10px;
    gap: 10px;
  }

  .journey-note {
    display: none;
  }

  .timeline-scroll {
    padding-right: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    mask-image: linear-gradient(to bottom, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
  }

  .timeline-scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }

  .timeline {
    gap: 8px;
    padding-bottom: 12px;
  }

  .timeline-item {
    padding-left: 24px;
  }

  .timeline-card {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 16px;
  }

  .timeline-card h3 {
    font-size: 0.8rem;
  }

  .timeline-card p {
    font-size: 0.7rem;
    line-height: 1.35;
  }

  .timeline-date {
    font-size: 0.7rem;
  }

  .timeline-dot {
    top: 14px;
    width: 15px;
    height: 15px;
    border-width: 3px;
  }

  .timeline-item::before {
    left: 6px;
    top: 15px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .portfolio-card {
    min-height: auto;
    padding: 13px;
    border-radius: 18px;
    gap: 12px;
  }

  .portfolio-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
  }

  .portfolio-card h3 {
    font-size: 0.84rem;
    margin-bottom: 4px;
  }

  .portfolio-card p {
    font-size: 0.7rem;
    line-height: 1.38;
  }

  .portfolio-type {
    font-size: 0.58rem;
    margin-bottom: 4px;
  }

  .contact-strip {
    margin-top: 12px;
  }

  .contact-pill {
    min-height: 36px;
    font-size: 0.78rem;
  }

  .flip-progress {
    left: 50%;
    top: auto;
    bottom: 10px;
    display: flex;
    transform: translateX(-50%);
  }

  .flip-hint {
    display: none;
  }

  .drawer-menu {
    width: min(88vw, 340px);
    padding: 16px;
  }

  .drawer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .drawer-nav a {
    min-height: 64px;
    border-radius: 18px;
  }

  .modal {
    padding: 16px;
  }

  .modal-content {
    padding: 28px 20px;
  }
}

@media (max-width: 390px) {
  .flip-card {
    padding: 18px 15px;
  }

  .about-copy h1 {
    font-size: 2rem;
  }

  .stat-card {
    min-height: 60px;
  }

  .identity-card {
    padding: 13px;
  }

  .content-card {
    padding: 13px;
  }

  .timeline-card {
    padding: 10px 12px;
  }

  .journey-shell {
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-overlay {
    animation: none;
    opacity: 1;
  }

  .flip-card,
  .icon-button,
  .drawer-close,
  .button,
  .drawer-menu,
  .drawer-nav a,
  .drawer-nav-icon,
  .portfolio-card,
  .contact-pill,
  .progress-dot,
  .journey-scrollbar span {
    transition: none !important;
  }

  .mouse-dot::before,
  .journey-note-dot::before {
    animation: none;
  }
}