@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  --font-sans: "Manrope", "Inter", sans-serif;
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --surface: #111111;
  --surface-strong: #1a1a1a;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --accent: #0071e3;
  --accent-soft: #2997ff;
  --heading: #ffffff;
  --card-copy: #f5f5f7;
  --eyebrow-text: #f5f5f7;
  --soft-link: #2997ff;
  --chip-text: #e8e8ed;
  --radius: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --max: 1120px;
  --cursor-x: 50vw;
  --cursor-y: 50vh;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

body::before {
  inset: auto auto 8% 8%;
  width: 280px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.15), transparent 65%);
  filter: blur(60px);
  animation: drift 18s ease-in-out infinite;
}

body::after {
  inset: 12% 8% auto auto;
  width: 360px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 151, 255, 0.1), transparent 60%);
  filter: blur(80px);
  animation: drift 24s ease-in-out infinite reverse;
}

main {
  padding-bottom: 64px;
}

.container {
  width: min(var(--max), calc(100% - 3rem));
  margin-inline: auto;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 60;
  background: rgba(255, 255, 255, 0.06);
}

.scroll-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: #0071e3;
  transition: width 0.12s linear;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: min(var(--max), calc(100% - 3rem));
  margin: 1rem auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.9);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem 0.55rem 1.1rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.brand {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.brand i {
  color: var(--accent-soft);
  font-size: 0.95rem;
}

.theme-fab {
  position: fixed;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(5, 12, 28, 0.9);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 70;
  box-shadow: 0 8px 30px rgba(9, 22, 49, 0.35);
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s ease,
    color 0.3s ease,
    background-color 0.3s ease;
}

.theme-fab:hover,
.theme-fab:focus-visible {
  transform: translateY(-50%) scale(1.05);
  border-color: rgba(121, 167, 255, 0.55);
  color: #ffffff;
}

.theme-fab i {
  line-height: 1;
  font-size: 1rem;
}

.site-nav {
  display: flex;
  gap: 0.35rem;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 0.48rem 0.85rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.site-nav a i {
  font-size: 0.8rem;
  line-height: 1;
}

.site-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0.85rem 0.2rem;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  color: var(--text);
  background: rgba(58, 125, 255, 0.14);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  font: inherit;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 14, 30, 0.9);
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.menu-toggle i {
  line-height: 1;
  font-size: 1.15rem;
}

.hero {
  margin-top: 6rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.6rem;
  align-items: center;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  padding: 0.36rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 113, 227, 0.4);
  color: var(--eyebrow-text);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.eyebrow i {
  color: #2997ff;
  box-shadow: none;
  animation: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-sans);
  line-height: 1.1;
  font-weight: 540;
  color: var(--heading);
}

.headline {
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  font-weight: 560;
}

.headline .accent {
  color: #2997ff;
  text-shadow: 0 0 30px rgba(0, 113, 227, 0.3);
}

.lead {
  margin: 0 0 1.7rem;
  color: var(--muted);
  max-width: 64ch;
  font-size: clamp(0.95rem, 1.7vw, 1.07rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  text-decoration: none;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  min-height: 44px;
  padding: 0.65rem 1.05rem;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 0.32s var(--ease), border-color 0.3s ease, background-color 0.3s ease;
}

.btn i {
  line-height: 1;
}

.btn.primary {
  background: linear-gradient(140deg, var(--accent), #1e4eb1);
  box-shadow: 0 15px 35px rgba(22, 66, 151, 0.45);
}

.btn.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px);
}

.hero-visual {
  position: relative;
  min-height: auto;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: #111111;
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 15% 12%;
  border: 1px solid rgba(0, 113, 227, 0.2);
  border-radius: 22px;
  animation: spinSlow 28s linear infinite;
  pointer-events: none;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto auto -20% -15%;
  width: 250px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.2), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}

.visual-inner {
  position: relative;
  z-index: 1;
  padding: 0.5rem 1rem 1rem;
  display: grid;
  gap: 0.4rem;
}

.profile-photo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 113, 227, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.visual-card {
  border: 1px solid var(--line);
  background: rgba(17, 17, 17, 0.9);
  border-radius: 16px;
  padding: 0.6rem 0.85rem;
  backdrop-filter: blur(8px);
  transform: translateX(0);
  animation: floatCard 6s ease-in-out infinite;
}

.visual-card:nth-child(2) {
  animation-delay: -2s;
}

.visual-card h3 {
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
}

.visual-card p {
  margin: 0;
  color: var(--card-copy);
  font-size: 0.78rem;
}

.visual-card a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(194, 218, 255, 0.55);
}

.section {
  margin-top: 3.5rem;
}

.section-divider {
  border: 0;
  height: 1px;
  margin: 1rem 0;
  background: rgba(255, 255, 255, 0.12);
}

.section-block {
  padding: 2rem 0;
}

.section-block-alt {
  background: #111111;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  margin-bottom: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
}

.section-title i {
  color: #2997ff;
  font-size: 0.88em;
  line-height: 1;
}

.section-intro {
  color: var(--muted);
  margin: 0 0 2rem;
}

.stat-grid,
.project-grid,
.article-grid,
.outside-grid,
.timeline,
.routine-grid {
  display: grid;
  gap: 1rem;
}

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

.stat-card {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #111111;
  padding: 1.1rem;
  transition: transform 0.35s var(--ease), border-color 0.35s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 113, 227, 0.5);
}

.stat-value {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 580;
  margin: 0;
}

.stat-label {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.stat-sub {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: #2997ff;
  font-weight: 500;
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(0, 113, 227, 0.4);
}

.timeline-item {
  position: relative;
  width: calc(50% - 1.9rem);
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #111111;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 1rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0071e3;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.2);
}

.timeline-item:nth-child(odd) {
  margin-right: auto;
}

.timeline-item:nth-child(odd)::before {
  right: -2.48rem;
}

.timeline-item:nth-child(even) {
  margin-left: auto;
}

.timeline-item:nth-child(even)::before {
  left: -2.48rem;
}

.timeline-core {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font: inherit;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "year icon"
    "industry icon"
    "role icon"
    "state icon";
  row-gap: 0.2rem;
  column-gap: 0.5rem;
}

.timeline-core i {
  grid-area: icon;
  align-self: center;
  color: #2997ff;
  transition: transform 0.26s var(--ease);
}

.timeline-item.is-open .timeline-core i {
  transform: rotate(180deg);
}

.timeline-year {
  grid-area: year;
  display: inline-block;
  font-family: var(--font-sans);
  color: #2997ff;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.timeline-industry {
  grid-area: industry;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 0.15rem;
}

.timeline-role {
  grid-area: role;
  font-size: 1rem;
  font-weight: 600;
  color: var(--heading);
}

.timeline-state {
  grid-area: state;
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.timeline-detail {
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

.timeline-detail p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.skill-cloud span {
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f5f5f7;
  font-size: 0.76rem;
  background: rgba(255, 255, 255, 0.04);
}

.not-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.not-list span {
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 0.76rem;
  background: rgba(255, 255, 255, 0.03);
}

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

.project-card,
.article-card,
.outside-card,
.routine-card,
.feature-card {
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #111111;
  padding: 1.15rem;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s ease;
}

.project-card::after,
.article-card::after,
.outside-card::after,
.routine-card::after,
.feature-card::after {
  content: "";
  position: absolute;
  inset: auto -35% -55% auto;
  width: 180px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.15), transparent 68%);
  pointer-events: none;
}

.project-card:hover,
.article-card:hover,
.outside-card:hover,
.routine-card:hover,
.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 113, 227, 0.5);
}

.project-id,
.meta-chip {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chip-text);
}

.project-card h3,
.article-card h3,
.outside-card h3,
.routine-card h3,
.feature-card h3 {
  margin: 0.45rem 0 0.45rem;
  font-size: 1.08rem;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.project-card h3 i,
.article-card h3 i,
.outside-card h3 i,
.routine-card h3 i,
.feature-card h3 i {
  color: #2997ff;
  font-size: 0.88em;
  line-height: 1;
}

.project-card p,
.article-card p,
.outside-card p,
.routine-card p,
.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.meta-row {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.meta-row span {
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.7rem;
  color: var(--soft-link);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
}

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

.article-link {
  margin-top: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: #2997ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(41, 151, 255, 0.5);
}

.feature-card {
  min-height: 100%;
}

.side-note {
  margin-top: 1rem;
  padding: 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.side-note a {
  color: #2997ff;
}

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

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

.routine-card h4 {
  margin: 0;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.routine-card p {
  margin-top: 0.38rem;
  font-size: 0.82rem;
}

.quote-box {
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #111111;
  padding: 1.25rem;
}

.quote-box p {
  margin: 0;
  font-size: clamp(1.04rem, 2vw, 1.35rem);
  color: var(--text);
}

.quote-box p i {
  margin-right: 0.35rem;
  vertical-align: middle;
  color: #2997ff;
  font-size: 0.9em;
}

.quote-box a {
  color: inherit;
}

.quote-box span {
  margin-top: 0.65rem;
  display: inline-block;
  color: var(--muted);
  font-size: 0.8rem;
}

.site-footer {
  margin-top: 4rem;
  padding: 1.3rem 0 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-footer a {
  color: #2997ff;
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-footer p,
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --surface: #ffffff;
  --surface-strong: #e8e8ed;
  --line: rgba(0, 113, 227, 0.2);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --accent: #0071e3;
  --accent-soft: #0071e3;
  --heading: #1d1d1f;
  --card-copy: #1d1d1f;
  --eyebrow-text: #1d1d1f;
  --soft-link: #0066cc;
  --chip-text: #1d1d1f;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] body {
  background: #ffffff;
}

[data-theme="light"] body::before,
[data-theme="light"] body::after {
  opacity: 0;
}

[data-theme="light"] .scroll-progress {
  background: rgba(33, 89, 170, 0.08);
}

[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .theme-fab {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #0071e3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .theme-fab:hover,
[data-theme="light"] .theme-fab:focus-visible {
  color: #0071e3;
  background: #f5f5f7;
}

[data-theme="light"] .menu-toggle {
  background: rgba(255, 255, 255, 0.95);
  color: #214d8f;
}

[data-theme="light"] .site-nav a:hover,
[data-theme="light"] .site-nav a:focus-visible,
[data-theme="light"] .site-nav a.active {
  background: rgba(0, 113, 227, 0.08);
  color: #0071e3;
}

[data-theme="light"] .site-nav a {
  color: #1d1d1f;
}

[data-theme="light"] .eyebrow {
  border-color: rgba(51, 110, 200, 0.32);
  background: rgba(52, 110, 197, 0.08);
}

[data-theme="light"] .btn.secondary {
  background: #ffffff;
  border-color: rgba(0, 113, 227, 0.4);
  color: #0071e3;
}

[data-theme="light"] .hero-visual {
  background: #f5f5f7;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .hero-visual::before {
  border-color: rgba(0, 113, 227, 0.2);
}

[data-theme="light"] .profile-photo {
  border-color: rgba(0, 113, 227, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .visual-card {
  border-color: rgba(0, 0, 0, 0.08);
  background: #ffffff;
}

[data-theme="light"] .visual-card p {
  color: #1d1d1f;
}

[data-theme="light"] .visual-card a {
  color: #0071e3;
  border-bottom-color: #0071e3;
}

[data-theme="light"] .headline .accent {
  color: #0071e3;
  text-shadow: none;
}

[data-theme="light"] .lead {
  color: #6e6e73;
}

[data-theme="light"] .stat-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .timeline-item {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .timeline-year {
  color: #0071e3;
}

[data-theme="light"] .timeline-role {
  color: #1d1d1f;
}

[data-theme="light"] .timeline-state,
[data-theme="light"] .timeline-industry {
  color: #6e6e73;
}

[data-theme="light"] .skill-cloud span {
  color: #1d1d1f;
  background: #f5f5f7;
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .not-list span {
  color: #6e6e73;
  background: #f5f5f7;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .project-card,
[data-theme="light"] .article-card,
[data-theme="light"] .outside-card,
[data-theme="light"] .routine-card,
[data-theme="light"] .feature-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .project-id,
[data-theme="light"] .meta-chip {
  color: #0071e3;
}

[data-theme="light"] .meta-row span {
  color: #6e6e73;
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .article-link {
  color: #0071e3;
  border-bottom-color: #0071e3;
}

[data-theme="light"] .side-note {
  border-color: rgba(0, 0, 0, 0.08);
  background: #f5f5f7;
  color: #1d1d1f;
}

[data-theme="light"] .section-divider {
  background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .section-block {
  background: #ffffff;
}

[data-theme="light"] .section-block-alt {
  background: #f5f5f7;
  border-top-color: rgba(0, 0, 0, 0.06);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .quote-box {
  background: #f5f5f7;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .quote-box p {
  color: #1d1d1f;
}

[data-theme="light"] .quote-box a {
  color: #0071e3;
}

[data-theme="light"] .section-title {
  color: #1d1d1f;
}

[data-theme="light"] .section-title i {
  color: #0071e3;
}

[data-theme="light"] .section-intro {
  color: #6e6e73;
}

[data-theme="light"] .stat-value {
  color: #1d1d1f;
}

[data-theme="light"] .stat-label {
  color: #6e6e73;
}

[data-theme="light"] .stat-sub {
  color: #0071e3;
}

[data-theme="light"] .site-footer {
  border-top-color: rgba(0, 0, 0, 0.08);
  color: #6e6e73;
}

[data-theme="light"] .site-footer a {
  color: #0071e3;
}

[data-theme="light"] .eyebrow {
  border-color: rgba(0, 113, 227, 0.3);
  background: rgba(0, 113, 227, 0.06);
  color: #1d1d1f;
}

[data-theme="light"] .eyebrow i {
  color: #0071e3;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px) scale(0.98);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: var(--delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -26px, 0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(121, 167, 255, 0.55);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(121, 167, 255, 0);
  }
}

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

@keyframes spinSlow {
  from {
    transform: rotate(0deg) scale(1);
  }
  to {
    transform: rotate(360deg) scale(1);
  }
}

@media (max-width: 1100px) {
  .hero,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero > div:first-child {
    order: 2;
  }

  .hero-visual {
    order: 1;
  }

  .timeline::before {
    left: 0.4rem;
  }

  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    width: calc(100% - 1.6rem);
    margin: 0 0 0 1.6rem;
  }

  .timeline-item::before,
  .timeline-item:nth-child(odd)::before,
  .timeline-item:nth-child(even)::before {
    left: -1.55rem;
    right: auto;
  }

  .article-grid,
  .outside-grid,
  .routine-grid,
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    width: calc(100% - 1.5rem);
    border-radius: 20px;
    padding-inline: 0.8rem;
  }

  .theme-fab {
    top: auto;
    left: 0.75rem;
    bottom: 0.95rem;
    transform: none;
    width: 40px;
    height: 40px;
  }

  .theme-fab:hover,
  .theme-fab:focus-visible {
    transform: scale(1.04);
  }

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

  .site-nav {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    flex-direction: column;
    min-width: 220px;
    padding: 0.4rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(6, 12, 26, 0.95);
    transform: translateY(-6px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s var(--ease), opacity 0.28s ease;
    margin-left: 0;
  }

  [data-theme="light"] .site-nav {
    background: rgba(255, 255, 255, 0.96);
  }

  .site-nav.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .hero {
    margin-top: 3rem;
  }

  .section-divider {
    height: 2px;
    margin: 0.75rem 0;
    background: rgba(255, 255, 255, 0.12);
  }

  .section-block {
    padding: 1.5rem 0;
  }

  .section-block-alt {
    background: #111111;
    border-top-color: rgba(255, 255, 255, 0.08);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
  }

  .section {
    margin-top: 2rem;
  }

  .section-intro {
    margin-bottom: 1.25rem;
  }

  [data-theme="light"] .section-divider {
    background: rgba(0, 0, 0, 0.1);
  }

  [data-theme="light"] .section-block-alt {
    background: #f5f5f7;
    border-top-color: rgba(0, 0, 0, 0.06);
    border-bottom-color: rgba(0, 0, 0, 0.06);
  }

  .project-grid,
  .article-grid,
  .outside-grid,
  .routine-grid,
  .stat-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .timeline {
    gap: 0.75rem;
  }

  .container {
    width: calc(100% - 1.6rem);
  }

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

  .footer-links {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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