﻿@font-face {
  font-family: "KH Teka Medium";
  src: url("https://framerusercontent.com/assets/e39ITWGFhweQPU84dueKTUzI.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Custom fonts used across the portfolio UI. */
@font-face {
  font-family: "KH Teka Regular";
  src: url("https://framerusercontent.com/assets/riYFo6KdNry0HjMReE39GewelM.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cartograph CF";
  src: url("https://framerusercontent.com/assets/BF2rLmMMdnmJvQgPDxZZli7N1A.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Global color tokens for consistent theming. */
  --bg: #000000;
  --text: #e5e5e5;
  --muted: #b3b3b3;
  --line: rgba(64, 64, 64, 0.5);
  --line-soft: rgba(122, 122, 122, 0.3);
}

* {
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
}

body {
  /* Base typography and background defaults. */
  background: var(--bg);
  color: var(--text);
  font-family: "KH Teka Regular", sans-serif;
  font-size: 20px;
  line-height: 1.3;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p {
  margin: 0;
}

main section {
  scroll-margin-top: 96px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(0.44, 0, 0.56, 1);
}

a:hover {
  color: #737373;
}

.site-frame {
  /* Main page container that constrains width and vertical rhythm. */
  width: min(100%, 1200px);
  margin: auto;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  background: var(--bg);
}

/* Hero action buttons. */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-btn {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 16px;
}

.hero-btn.primary {
  background: #121212;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}

.hero-btn.primary:hover {
  color: #ffffff;
  background: linear-gradient(140deg, rgba(62, 62, 62, 0.86), rgba(28, 28, 28, 0.9));
}

.hero-btn.ghost {
  color: #e7d8b8;
  background: rgba(255, 232, 186, 0.06);
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.hero-chip-row span {
  border: 1px solid var(--line);
  padding: 7px 10px;
  border-radius: 999px;
  font-family: "Cartograph CF", sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 229, 176, 0.06);
}
/* Fixed top navigation bar. */
.nav-shell {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 26px), 1200px);
  z-index: 30;
  padding: 0;
  background: transparent;
}

.top-nav {
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(140deg, rgba(20, 20, 20, 0.96), rgba(6, 6, 6, 0.96));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
  overflow: visible;
}

.logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  font-family: "KH Teka Medium", sans-serif;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  min-height: 46px;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 18px;
  line-height: 1.3;
  color: #d8d8d8;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  background: linear-gradient(140deg, rgba(62, 62, 62, 0.86), rgba(28, 28, 28, 0.9));
}

.resume-pill {
  flex-shrink: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  font-family: "Cartograph CF", sans-serif;
  font-size: 16px;
  text-transform: uppercase;
  color: #ececec;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: transparent;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease;
}

/* Skills grid. */
.skills-section {
  display: flex;
  flex-direction: column;
}

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

.skill-column {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(165deg, rgba(26, 26, 26, 0.9), rgba(10, 10, 10, 0.96));
}

.skill-col-title {
  margin-bottom: 2px;
  font-family: "Cartograph CF", sans-serif;
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #bdbdbd;
}

.skill-column span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  color: #e0e0e0;
  font-size: 16px;
}

.menu-toggle span:first-child {
  transform: translateY(-5px);
}

.menu-toggle span:last-child {
  transform: translateY(5px);
}

.menu-toggle.open span:first-child {
  transform: rotate(45deg);
}

.menu-toggle.open span:last-child {
  transform: rotate(-45deg);
}

/* Hero section with video background and headline text. */
.hero {
  padding: 80px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 52vh;
}

.hero-media {
  position: relative;
  overflow: hidden;
  min-height: 52vh;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #000;
}

.hero-media video {
  position: relative;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.hero-overlay {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
  justify-content: flex-start;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);

  overflow: hidden;
}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
}

.h2-bold {
  font-size: 42px;
  line-height: 0.98;
}

.hero-year {
  margin: 0;
  color: rgb(128, 125, 125);
  font-family: "KH Teka Medium", sans-serif;
  font-size: 80px;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.hero-title {
  margin: 0;
  font-family: "KH Teka Medium", sans-serif;
  font-size: 80px;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.hero-title,
.hero-year {
  position: relative;
}

.typing-active::after {
  content: "|";
  display: inline-block;
  margin-left: 0.08em;
  animation: hero-caret-blink 0.9s steps(1, end) infinite;
}

@keyframes hero-caret-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.panel {
  padding: 0 16px;
}

/* Shared section typography. */
.kicker {
  margin: 0 0 16px;
  font-family: "KH Teka Medium", sans-serif;
  font-size: 40px;
  line-height: 34px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
}

.meta {
  font-family: "Cartograph CF", sans-serif;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a7a7a7;
}

/* Experience timeline grid/cards. */
.timeline-tiles-wrap {
  position: relative;
}

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

.timeline-tile {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: flex-end;

  padding: 14px;
  border: 1px solid #3b3b3b;
  background: linear-gradient(145deg, #202020 0%, #111111 100%);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.timeline-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.06) 0%, transparent 45%);
  opacity: 0.45;
  pointer-events: none;
}

.timeline-tile::after {
  content: "";
  position: absolute;
  left: 16px;
  top: -17px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dedede;
  box-shadow: 0 0 0 4px rgba(222, 222, 222, 0.12);
}


.timeline-tile:hover {
  transform: translateY(-6px);
  border-color: #8c8c8c;
  background: linear-gradient(145deg, #2a2a2a 0%, #151515 100%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.timeline-tile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.timeline-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.tile-title {
  font-family: "KH Teka Medium", sans-serif;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1;
  display: inline-block;
  clip-path: inset(0 100% 0 0);
}

.timeline-tile.is-visible .tile-title {
  animation: tile-title-reveal 700ms cubic-bezier(0.19, 1, 0.22, 1) forwards;
  animation-delay: calc(var(--tile-index, 0) * 85ms);
}

@keyframes tile-title-reveal {
  0% {
    clip-path: inset(0 100% 0 0);
    filter: blur(1.5px);
  }
  100% {
    clip-path: inset(0 0 0 0);
    filter: blur(0);
  }
}

.tile-meta {
  font-size: 16px;
  color: #bdbdbd;
}

/* Expand/collapse controls on experience cards. */
.experience-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(10, 10, 10, 0.65);
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.22s ease, background-color 0.22s ease;
}

.experience-toggle:hover {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(24, 24, 24, 0.95);
}

.experience-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 2px;
}

.toggle-icon {
  position: relative;
  width: 16px;
  height: 16px;
  display: block;
}

.toggle-icon::before,
.toggle-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 1.6px;
  background: #efefef;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}

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

.experience-toggle[aria-expanded="true"] .toggle-icon::after {
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0);
}

.experience-expand-panel {
  --panel-height: 0px;
  max-height: 0;
  opacity: 0;

  margin-top: 0;
  padding-top: 0;
  border-top: 1px solid transparent;
  transition: max-height 0.34s ease, opacity 0.26s ease, margin-top 0.34s ease, padding-top 0.34s ease, border-color 0.34s ease;
}

.experience-expand-panel.is-open {
  max-height: var(--panel-height);
  opacity: 1;
  margin-top: 12px;
  padding-top: 12px;
  border-top-color: rgba(255, 255, 255, 0.2);
}

.experience-expand-panel ul {
  margin: 0;
  padding: 0 0 0 18px;
  display: grid;
  gap: 8px;
}

.experience-expand-panel li {
  color: #cdcdcd;
  font-size: 15px;
  line-height: 1.32;
}

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

.experience-detail-grid {
  padding-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 16px;
}

.experience-detail-card {
  border: 1px solid var(--line);
  padding: 16px;
  background: linear-gradient(150deg, #171717 0%, #0a0a0a 100%);
  scroll-margin-top: 88px;
}

.experience-detail-card h3,
.experience-detail-card p {
  margin: 0;
}

.experience-detail-card h3 {
  margin-top: 8px;
  font-size: 26px;
  line-height: 1.1;
}

.experience-detail-card p + p {
  margin-top: 8px;
  color: #b7b7b7;
}

/* Interests showcase cards. */

.interests-showcase {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 255, 255, 0.16), transparent 30%),
    radial-gradient(circle at 86% 78%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(145deg, #1a1a1a 0%, #090909 100%);
  overflow: hidden;
}

.interests-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
  pointer-events: none;
}

.interest-card {
  position: relative;
  z-index: 1;
  grid-column: span 6;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg, rgba(38, 38, 38, 0.72) 0%, rgba(10, 10, 10, 0.95) 100%);
  padding: 18px;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.interest-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.5);
  background: linear-gradient(135deg, rgba(50, 50, 50, 0.82) 0%, rgba(14, 14, 14, 0.96) 100%);
}

.interest-tag {
  margin: 0;
  font-family: "Cartograph CF", sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b5b5b5;
}

.interest-card h3 {
  margin: 0;
  font-family: "KH Teka Medium", sans-serif;
  font-size: 30px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.interest-card p {
  margin: 0;
  color: #c7c7c7;
  font-size: 16px;
}

.reveal,
.reveal-tile {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible,
.reveal-tile.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Contact section. */
.split-block {
  border-top: 0;
  padding: 0 16px;
  display: flex;
  gap: 16px;
  margin: 0;
}

.split-kicker {
  margin: 0;
  flex: 1 0 0;
}

/* Featured/about block under hero overlay. */
.featured-block {
  display: grid;
  margin: 0;
  align-items: stretch;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 16px;
}

.impact-spotlight {
  position: relative;
  width: 100%;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(245, 245, 245, 0.2);
  background: linear-gradient(130deg, rgba(42, 42, 42, 0.5) 0%, rgba(8, 8, 8, 0.95) 48%, rgba(26, 26, 26, 0.88) 100%);
  overflow: hidden;
  isolation: isolate;
  border-radius: 16px;
}

.impact-spotlight::before {
  content: "";
  position: absolute;
  inset: -120% -70%;
  background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, 0.35) 50%, transparent 62%);
  transform: translateX(-40%);
  animation: spotlight-scan 5.6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.impact-spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 88% 20%, rgba(255, 255, 255, 0.18) 0%, transparent 42%);
  pointer-events: none;
  z-index: 0;
}

.impact-copy {
  position: relative;
  z-index: 2;
}

.impact-label {
  margin: 0;
  font-family: "Cartograph CF", sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ababab;
}

.impact-script {
  margin: 10px 0 0;
  font-family: "KH Teka Medium", sans-serif;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 0.93;
  letter-spacing: -0.03em;
}

.impact-subtext {
  margin: 12px 0 0;
  max-width: 640px;
  color: #bbbbbb;
}

.impact-tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.impact-tags span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #d8d8d8;
  background: rgba(255, 255, 255, 0.04);
  font-family: "Cartograph CF", sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}

.impact-visual {
  position: relative;
  z-index: 2;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(155deg, rgba(31, 31, 31, 0.78) 0%, rgba(8, 8, 8, 0.98) 100%);
  overflow: hidden;
  border-radius: 12px;
}

.impact-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 58% 42%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.03) 32%, transparent 66%);
}

.impact-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  animation: orbit-spin 20s linear infinite;
}

.orbit-1 {
  width: 230px;
  height: 230px;
}

.orbit-2 {
  width: 170px;
  height: 170px;
  border-style: dashed;
  animation-duration: 14s;
  animation-direction: reverse;
}

.orbit-3 {
  width: 108px;
  height: 108px;
  animation-duration: 10s;
}

.impact-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 118px;
  height: 118px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.34), rgba(20, 20, 20, 0.95) 62%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  animation: core-pulse 3.4s ease-in-out infinite;
}

.impact-core span {
  font-family: "Cartograph CF", sans-serif;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #b8b8b8;
}

.impact-core strong {
  font-family: "KH Teka Medium", sans-serif;
  font-size: 20px;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.impact-chip {
  position: absolute;
  padding: 6px 9px;
  font-family: "Cartograph CF", sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f0f0f0;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(2px);
  animation: chip-float 4.2s ease-in-out infinite;
}

.chip-a {
  left: 12%;
  top: 16%;
}

.chip-b {
  right: 9%;
  top: 44%;
  animation-delay: 180ms;
}

.chip-c {
  left: 28%;
  bottom: 12%;
  animation-delay: 360ms;
}

.impact-metrics {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 12px;
}

.impact-metric {
  position: relative;
  border: 1px solid rgba(245, 245, 245, 0.14);
  background: linear-gradient(155deg, rgba(32, 32, 32, 0.72) 0%, rgba(12, 12, 12, 0.95) 100%);
  padding: 14px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.impact-metric::before {
  content: "";
  position: absolute;
  top: 0;
  left: -45%;
  width: 45%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.85) 50%, transparent 100%);
  animation: metric-scan 2.8s linear infinite;
}

.impact-metric:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 245, 245, 0.34);
}

.impact-value {
  margin: 0;
  font-family: "KH Teka Medium", sans-serif;
  font-size: clamp(34px, 3.5vw, 48px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.impact-caption {
  margin: 8px 0 0;
  color: #a8a8a8;
  font-size: 14px;
  line-height: 1.25;
}

.impact-counter {
  display: inline-block;
  min-width: 2.6ch;
}

@keyframes spotlight-scan {
  0% {
    transform: translateX(-58%) rotate(8deg);
    opacity: 0;
  }
  24%,
  48% {
    opacity: 0.62;
  }
  100% {
    transform: translateX(72%) rotate(8deg);
    opacity: 0;
  }
}

@keyframes orbit-spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes core-pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.08);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.04);
    box-shadow: 0 0 0 12px rgba(255, 255, 255, 0);
  }
}

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

@keyframes metric-scan {
  0% {
    left: -45%;
  }
  100% {
    left: 110%;
  }
}

/* Footer contact and signature area. */
.footer-shell {
  width: 100%;
  padding: 0 0 16px;
}

.footer-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.footer-col a {
  margin: 0;
  font-family: "KH Teka Medium", sans-serif;
  font-size: 40px;
  letter-spacing: -0.03em;
  line-height: 1.0;
}

.footer-links {
  align-items: flex-start;
  margin-top: 16px;
  letter-spacing: -0.04em;
}

.footer-bottom {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.footer-bottom p {
  margin: 0;
  font-family: "Cartograph CF", sans-serif;
  font-size: 10px;
  line-height: 24px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (pointer: fine) {
  body.cursor-ready,
  body.cursor-ready a,
  body.cursor-ready button {
    cursor: none;
  }
}

.cursor-core,
.cursor-ring,
.cursor-trail-dot,
.cursor-burst {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
}

.cursor-core {
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: #f5f5f5;
  mix-blend-mode: difference;
}

.cursor-ring {
  width: 34px;
  height: 34px;
  margin-left: -17px;
  margin-top: -17px;
  border-radius: 50%;
  border: 1px solid rgba(245, 245, 245, 0.8);
  opacity: 0.85;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.cursor-trail-dot {
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: rgba(245, 245, 245, 0.7);
  mix-blend-mode: difference;
}

.cursor-burst {
  width: 0;
  height: 0;
}

.cursor-burst-particle {
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  margin-top: -2px;
  border-radius: 50%;
  background: #ffffff;
  mix-blend-mode: difference;
  animation: burst-fly 560ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

@keyframes burst-fly {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx), var(--dy)) scale(0.1);
    opacity: 0;
  }
}

@media (min-width: 810px) {
  .hero {
    padding: 84px 16px 0;
    min-height: 82vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    align-items: stretch;
  }

  .hero-media,
  .hero-overlay {
    overflow: hidden;
  }

  .hero-media {
    min-height: 560px;
  }

  .hero-media video {
    object-fit: cover;
  }

  .hero-overlay {
    padding: 26px;
    align-items: stretch;
    justify-content: flex-start;
  }

  .featured-block {
    margin-top: 2px;
  }

  .hero-right {
    gap: 12px;
  }

  .hero-overlay .impact-script {
    font-size: clamp(26px, 2.8vw, 38px);
  }

  .hero-overlay .impact-caption {
    font-size: 12px;
  }
}

/* Tablet layout adjustments. */
@media (min-width: 810px) and (max-width: 1199.98px) {
  body {
    font-size: 16px;
    line-height: 1.25;
  }

  .site-frame {
    width: min(100%);
    padding-top: 16px;
    gap: 40px;
  }

  .nav-shell {
    width: min(calc(100% - 18px), 1200px);
  }

  .hero {
    padding-top: 72px;
  }

  .h2-bold {
    font-size: 42px;
    line-height: 0.98;
  }
  .hero-year,
  .hero-title {
    font-size: 64px;
    letter-spacing: -0.04em;
  }

  .timeline-tile {
    grid-column: span 6;
  }

  .timeline-tile:nth-child(odd),
  .timeline-tile:nth-child(even) {
    margin-top: 0;
  }

  .experience-detail-grid {
    grid-template-columns: 1fr;
  }

  .interests-showcase {
    grid-template-columns: 1fr;
  }

  .interest-card {
    grid-column: auto;
  }

  .impact-spotlight {
    grid-template-columns: 1fr;
  }

  .impact-visual {
    height: 250px;
  }

  .impact-metrics {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

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

/* Mobile layout adjustments. */
@media (max-width: 809.98px) {
  body {
    font-size: 16px;
    line-height: 1.25;
  }

  .h2-bold {
    font-size: 42px;
    line-height: 0.98;
  }

  .site-frame {
    width: min(100%, 390px);
    padding-top: 0;
    gap: 20px;
  }

  .nav-shell {
    top: 0;
    width: min(100%, 390px);
    padding: 0;
  }

  .top-nav {
    height: 64px;
    padding: 16px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .resume-pill {
    display: none;
  }

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

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #000;
    border-top: 0.5px solid var(--line);
    padding: 0 16px 40px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    display: flex;
    padding: 64px 0 0px;
    height: auto;
    min-height: 70vh;
  }

  .hero-media,
  .hero-overlay {
    background: transparent;
  }

  .hero-overlay,
  .hero-right,
  .split-block,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-year,
  .hero-title {
    line-height: 1.2;
    font-size: 48px;
    letter-spacing: -0.03em;
  }

  .panel {
    padding: 0 16px;
  }

  .timeline-tiles,
  .experience-detail-grid {
    grid-template-columns: 1fr;
  }

  .timeline-tile {
    grid-column: auto;
    margin-top: 0;

  }

  .timeline-tile::after {
    display: none;
  }

  .impact-spotlight {
    padding: 16px;
    grid-template-columns: 1fr;
  }

  .interests-showcase {
    padding: 14px;
    gap: 10px;
  }

  .interest-card {
    padding: 14px;
    min-height: auto;
  }

  .interest-card h3 {
    font-size: 24px;
  }

  .experience-expand-panel li {
    font-size: 14px;
  }

  .impact-script {
    font-size: clamp(28px, 9.2vw, 44px);
  }

  .impact-subtext {
    font-size: 14px;
  }

  .impact-tags span {
    font-size: 9px;
  }

  .impact-visual {
    height: 235px;
  }

  .impact-metrics {
    grid-template-columns: 1fr;
  }

  .skill-board {
    grid-template-columns: 1fr;
  }

  .impact-caption {
    font-size: 12px;
  }

  .footer-bottom {
    padding-left: 16px;
    padding-right: 16px;
    gap: 40px;
  }

  .footer-col a {
    font-size: 40px;
  }

  .footer-bottom {
    margin-top: 20px;
    gap: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .impact-spotlight::before,
  .impact-metric::before,
  .impact-orbit,
  .impact-core,
  .impact-chip {
    animation: none;
  }

  .experience-expand-panel,
  .toggle-icon::before,
  .toggle-icon::after,
  .interest-card {
    transition: none;
  }
}
