:root {
  --background: #f7fbfc;
  --background-soft: #ffffff;
  --background-muted: #e7f0f3;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --surface-muted: #eef6f7;
  --text: #102532;
  --text-soft: #3c5560;
  --muted: #647985;
  --border: rgba(16, 37, 50, 0.12);
  --border-strong: rgba(16, 37, 50, 0.24);
  --ink: #102532;
  --cream: #f8fdff;
  --accent: #4ab6c2;
  --accent-2: #f2bf5a;
  --accent-3: #8bb5a2;
  --accent-4: #a5b4d8;
  --accent-5: #24687a;
  --card-shadow: 0 22px 70px rgba(8, 31, 42, 0.12);
  --tight-shadow: 0 13px 28px rgba(8, 31, 42, 0.13);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: min(1180px, calc(100vw - 48px));
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

html[data-theme="dark"] {
  --background: #071114;
  --background-soft: #0b181d;
  --background-muted: #10262d;
  --surface: rgba(11, 24, 29, 0.82);
  --surface-strong: #0e1d23;
  --surface-muted: #132b32;
  --text: #edf8f9;
  --text-soft: #b9cbd1;
  --muted: #8fa6ae;
  --border: rgba(237, 248, 249, 0.14);
  --border-strong: rgba(237, 248, 249, 0.28);
  --ink: #edf8f9;
  --cream: #071114;
  --card-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --tight-shadow: 0 14px 32px rgba(0, 0, 0, 0.36);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 6%, rgba(74, 182, 194, 0.20), transparent 28%),
    radial-gradient(circle at 92% 18%, rgba(36, 104, 122, 0.18), transparent 30%),
    linear-gradient(135deg, var(--background), var(--background-soft) 48%, var(--background-muted));
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

html[data-theme="light"] .grain {
  background-image:
    linear-gradient(rgba(47, 35, 22, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 35, 22, 0.035) 1px, transparent 1px);
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1.5px dashed var(--border-strong);
  transition: width 0.18s ease, height 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.cursor-ring.is-hovering {
  width: 58px;
  height: 58px;
  border-color: var(--accent);
  background: rgba(74, 182, 194, 0.10);
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 100;
  width: var(--container);
  height: 74px;
  margin: 18px auto 0;
  padding: 0 14px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: var(--tight-shadow);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  color: #171511;
  background: linear-gradient(145deg, #d4eef2, var(--accent));
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(74, 182, 194, 0.20);
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 30px);
  flex: 1;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 650;
}

.desktop-nav a {
  position: relative;
  padding: 10px 0;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.desktop-nav a:hover::after,
.desktop-nav .is-current::after {
  transform: scaleX(1);
}

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

.theme-toggle,
.resume-link,
.primary-button,
.secondary-button,
.inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle {
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface-strong);
}

.theme-toggle-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 999px;
  color: var(--text);
  background: transparent;
  box-shadow: none;
}

.theme-toggle-icon::before,
.theme-toggle-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  transition: transform 0.22s ease, opacity 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.theme-toggle-icon::before {
  inset: 4px;
  border-radius: 999px;
  background: var(--accent-2);
  box-shadow:
    0 -7px 0 -4px currentColor,
    0 7px 0 -4px currentColor,
    7px 0 0 -4px currentColor,
    -7px 0 0 -4px currentColor,
    5px 5px 0 -4px currentColor,
    -5px -5px 0 -4px currentColor,
    5px -5px 0 -4px currentColor,
    -5px 5px 0 -4px currentColor;
}

.theme-toggle-icon::after {
  opacity: 0;
  border-radius: 999px;
  background: var(--text);
  box-shadow: 6px -2px 0 0 var(--surface-strong);
  transform: scale(0.72) rotate(-18deg);
}

html[data-theme="dark"] .theme-toggle-icon::before {
  opacity: 0;
  transform: scale(0.65) rotate(40deg);
}

html[data-theme="dark"] .theme-toggle-icon::after {
  opacity: 1;
  transform: scale(0.78) rotate(-18deg);
}

.resume-link,
.primary-button {
  color: #19150f;
  border: 1px solid rgba(25, 21, 15, 0.08);
  background: linear-gradient(135deg, #ccecf0, #4ab6c2);
  box-shadow: 0 12px 28px rgba(74, 182, 194, 0.22);
}

.secondary-button,
.inline-link {
  color: var(--text);
  border: 1px solid var(--border-strong);
  background: var(--surface-strong);
}

html[data-theme="dark"] .resume-link,
html[data-theme="dark"] .primary-button {
  color: #171511;
  background: linear-gradient(135deg, #ccecf0, #4ab6c2);
}

html[data-theme="dark"] .secondary-button,
html[data-theme="dark"] .inline-link,
html[data-theme="dark"] .theme-toggle {
  color: var(--text);
  background: rgba(255, 245, 231, 0.08);
  border-color: var(--border-strong);
}

.primary-button:hover,
.secondary-button:hover,
.resume-link:hover,
.theme-toggle:hover,
.inline-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--tight-shadow);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-strong);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-open .menu-button span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.menu-open .menu-button span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 106px 24px auto;
  z-index: 90;
  display: none;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--border-strong);
  border-radius: 26px;
  background: var(--surface-strong);
  box-shadow: var(--card-shadow);
}

.mobile-nav a {
  padding: 14px 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
  font-weight: 680;
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

.mobile-nav.is-open {
  display: flex;
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 120px) 0;
}

.hero {
  min-height: calc(100vh - 100px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding-top: clamp(54px, 8vw, 96px);
}

.hero-copy,
.project-hero-copy {
  min-width: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow span {
  color: var(--accent);
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(50px, 7vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.075em;
  font-weight: 760;
}

.hero h1::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(74, 182, 194, 0.20);
}

.hero-description {
  max-width: 620px;
  margin-bottom: 32px;
  color: var(--text-soft);
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.notebook-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
}

.notebook-strip div {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  box-shadow: 0 8px 22px rgba(55, 39, 24, 0.06);
}

.notebook-strip span {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.notebook-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.hero-visual {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.lab-card {
  position: relative;
  width: min(440px, 100%);
  min-height: 390px;
  border: 1px solid var(--border-strong);
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 8%, rgba(231, 184, 77, 0.20), transparent 32%),
    radial-gradient(circle at 90% 100%, rgba(107, 143, 113, 0.24), transparent 38%),
    #0d242b;
  color: #fff5e7;
  box-shadow: 22px 22px 0 rgba(36, 104, 122, 0.18), var(--card-shadow);
  padding: 34px;
  overflow: hidden;
  transform: rotate(2deg);
  animation: floatyCard 6s ease-in-out infinite;
}

.lab-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.4;
}

.card-window,
.terminal-line,
.lab-card h2,
.orbit {
  position: relative;
  z-index: 1;
}

.card-window {
  display: flex;
  gap: 7px;
  margin-bottom: 58px;
}

.card-window span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
}

.card-window span:nth-child(2) {
  background: var(--accent-2);
}

.card-window span:nth-child(3) {
  background: var(--accent-3);
}

.terminal-line {
  margin-bottom: 12px;
  color: #ffdf82;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.lab-card h2 {
  max-width: 360px;
  margin-bottom: 34px;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 780;
}

.orbit {
  width: 126px;
  height: 126px;
  margin-left: auto;
  border: 1px dashed rgba(255, 245, 231, 0.28);
  border-radius: 999px;
  animation: orbitSpin 18s linear infinite;
}

.orbit-core {
  position: absolute;
  inset: 38px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: #171511;
  background: #d8eef2;
  font-weight: 900;
  animation: orbitSpinReverse 18s linear infinite;
}

.orbit-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--accent);
}

.dot-a { top: -8px; left: 55%; }
.dot-b { right: -8px; top: 54%; background: var(--accent-4); }
.dot-c { left: 8px; bottom: 6px; background: #9be54d; }

.sticky-note {
  position: absolute;
  z-index: 3;
  width: min(210px, 38vw);
  padding: 18px;
  border: 1px solid rgba(39, 32, 24, 0.18);
  border-radius: 15px;
  color: #201a14;
  background: #fff4df;
  box-shadow: 0 18px 42px rgba(30, 24, 18, 0.18);
  transform-origin: center;
  animation: floatyNote 5s ease-in-out infinite;
}

.sticky-note span {
  display: block;
  margin-bottom: 10px;
  font-size: 24px;
}

.sticky-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
}

.sticky-one {
  top: 38px;
  left: 16px;
  transform: rotate(-7deg);
}

.sticky-two {
  bottom: 56px;
  left: 0;
  background: #f9ebd6;
  transform: rotate(4deg);
  animation-delay: 0.8s;
}

.floating-chip-card {
  position: absolute;
  right: 20px;
  bottom: 74px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 245, 231, 0.18);
  border-radius: 16px;
  color: #fff5e7;
  background: #123f49;
  box-shadow: var(--tight-shadow);
  animation: floatyChip 4.8s ease-in-out infinite;
}

.floating-chip-card span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(255, 245, 231, 0.12);
}

.floating-chip-card p {
  margin: 0;
  font-size: 12px;
  font-weight: 750;
}

@keyframes floatyCard {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50% { transform: rotate(1.2deg) translateY(-12px); }
}

@keyframes floatyNote {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

@keyframes floatyChip {
  0%, 100% { translate: 0 0; }
  50% { translate: -6px -8px; }
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

@keyframes orbitSpinReverse {
  to { transform: rotate(-360deg); }
}

.section-heading {
  margin-bottom: clamp(34px, 6vw, 62px);
}

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2,
.project-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.055em;
  font-weight: 720;
}

.notion-emoji {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: clamp(86px, 10vw, 132px);
  height: clamp(86px, 10vw, 132px);
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  background: var(--surface-strong);
  box-shadow: var(--tight-shadow);
  transform: rotate(4deg);
}

.notion-emoji span {
  font-size: clamp(40px, 6vw, 70px);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 24px;
  align-items: stretch;
}

.paper-card,
.profile-card,
.expertise-card,
.experience-card,
.project-card,
.education-card,
.contact-card,
.project-quote-card,
.work-case-card,
.learning-card,
.journey-side-note,
.journey-card {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(14px);
}

.paper-card {
  padding: clamp(26px, 4vw, 46px);
  border-radius: var(--radius-xl);
}

.paper-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.75;
}

.paper-card p + p {
  margin-top: 24px;
}

.profile-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface-strong) 92%, transparent), color-mix(in srgb, var(--surface-muted) 84%, transparent));
}

.about-doodle-card {
  justify-content: flex-start;
  gap: 18px;
  padding: 18px;
  overflow: hidden;
}

.about-doodle-frame {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 250px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 206, 90, 0.22), transparent 28%),
    color-mix(in srgb, var(--surface-strong) 88%, transparent);
  overflow: hidden;
}

.about-doodle-frame img {
  display: block;
  width: min(100%, 460px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(25, 21, 15, 0.12));
}

.about-doodle-info {
  padding: 0 4px;
}

.about-doodle-info p {
  max-width: 34rem;
}

.avatar-stamp {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 28px;
  color: #171511;
  background: linear-gradient(145deg, #ffdf82, var(--accent));
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.08em;
  box-shadow: 9px 9px 0 rgba(36, 104, 122, 0.18);
}

.profile-card h3,
.expertise-card h3,
.experience-card h3,
.project-card h3,
.education-card h3,
.learning-card h3,
.journey-card h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.16;
  letter-spacing: -0.035em;
  font-weight: 720;
}

.profile-card p,
.expertise-card p,
.education-card p,
.learning-card p,
.journey-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.65;
}

.profile-tags,
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.profile-tags span,
.case-meta span,
.project-copy span,
.experience-meta span,
.education-card span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  background: color-mix(in srgb, var(--surface-strong) 74%, transparent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

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

.expertise-card {
  position: relative;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
  border-radius: 26px;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.expertise-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed transparent;
  border-radius: 20px;
  pointer-events: none;
  transition: border-color 0.22s ease, transform 0.22s ease;
}

.expertise-card:hover {
  transform: translateY(-8px) rotate(-0.7deg);
  box-shadow: 0 28px 78px rgba(54, 38, 26, 0.18);
  border-color: color-mix(in srgb, var(--accent) 48%, var(--border-strong));
}

.expertise-card:hover::before {
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  transform: rotate(1deg);
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: #171511;
  font-size: 20px;
  font-weight: 900;
  transition: transform 0.22s ease;
}

.expertise-card:hover .icon-badge {
  transform: translateY(-3px) rotate(-8deg) scale(1.05);
}

.accent-coral .icon-badge { background: #a9dbe1; }
.accent-green .icon-badge { background: #b9d6cb; }
.accent-yellow .icon-badge { background: #f2d58c; }
.accent-lilac .icon-badge { background: #c8d2f0; }
.accent-blue .icon-badge { background: #a6d5dc; }
.accent-ink .icon-badge { background: #0f2228; color: #fff4df; }

.journey-intro,
.project-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.4fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 44px;
}

.journey-tip {
  margin: 0;
  padding: 20px;
  border: 1px dashed var(--border-strong);
  border-radius: 22px;
  color: var(--text-soft);
  background: color-mix(in srgb, var(--surface-strong) 72%, transparent);
  font-size: 15px;
  line-height: 1.6;
}

.journey-board {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
}

.journey-side-note {
  position: sticky;
  top: 116px;
  height: fit-content;
  padding: 24px;
  border-radius: 28px;
  background: #0c2026;
  color: #fff5e7;
}

.journey-side-note span {
  display: block;
  margin-bottom: 26px;
  font-size: 44px;
}

.journey-side-note h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.journey-side-note p {
  margin: 0;
  color: rgba(255, 245, 231, 0.76);
  line-height: 1.65;
}

.journey-track {
  display: grid;
  gap: 18px;
}

.journey-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  border-radius: 28px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.journey-card:hover {
  transform: translateX(8px);
  box-shadow: var(--tight-shadow);
}

.journey-year {
  display: grid;
  place-items: center;
  min-height: 84px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface-strong);
  color: var(--text);
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 800;
}

.experience-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.experience-card {
  padding: 28px;
  border-radius: 28px;
}

.experience-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.experience-card .company {
  margin: 0 0 18px;
  color: var(--accent-3);
  font-weight: 750;
}

.experience-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.75;
}

.experience-card li::marker {
  color: var(--accent);
}

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

.project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 28px;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 80px rgba(54, 38, 26, 0.18);
}

.project-image {
  height: 230px;
  padding: 16px;
  background: color-mix(in srgb, var(--surface-muted) 72%, transparent);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.project-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.project-copy span {
  margin-bottom: 16px;
}

.project-copy p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.65;
}

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

.education-card,
.learning-card {
  padding: 24px;
  border-radius: 26px;
}

.education-card span {
  margin-bottom: 18px;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 36px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface-strong) 92%, transparent), color-mix(in srgb, var(--surface-muted) 78%, transparent));
}

.contact-card h2 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 720;
}

.contact-card p {
  max-width: 720px;
  margin: 0;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.7;
}

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

.contact-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--surface-strong);
  color: var(--text);
  font-weight: 760;
  transition: transform 0.2s ease, background 0.2s ease;
}

.contact-links a::after {
  content: "↗";
  color: var(--accent);
}

.contact-links a:hover {
  transform: translateX(5px);
  background: color-mix(in srgb, var(--surface-strong) 75%, var(--accent-2) 25%);
}

.project-hero {
  padding-top: clamp(72px, 8vw, 110px);
}

.project-quote-card {
  padding: 26px;
  border-radius: 28px;
  transform: rotate(2deg);
  background: #0c2026;
  color: #fff5e7;
}

.project-quote-card p {
  margin: 0 0 20px;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 740;
}

.project-quote-card span {
  color: #ffdf82;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-wordrail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.project-wordrail span {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.work-case-grid {
  display: grid;
  gap: 24px;
}

.work-case-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 0;
  min-height: 440px;
  border-radius: 34px;
  overflow: hidden;
}

.work-case-image {
  min-height: 100%;
  padding: 20px;
  background: color-mix(in srgb, var(--surface-muted) 78%, transparent);
  border-right: 1px solid var(--border);
}

.work-case-image img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
  border-radius: 24px;
}

.work-case-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: clamp(26px, 5vw, 48px);
}

.work-case-content h2 {
  max-width: 820px;
  margin: 20px 0 16px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.055em;
  font-weight: 720;
}

.work-case-content > p {
  max-width: 780px;
  margin: 0 0 26px;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.72;
}

.case-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin-bottom: 26px;
}

.case-details div {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-strong) 74%, transparent);
}

.case-details strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 13px;
}

.case-details p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.58;
}

.learning-card span {
  display: block;
  margin-bottom: 20px;
  font-size: 36px;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface-strong);
  box-shadow: var(--tight-shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-footer {
  width: var(--container);
  margin: 0 auto 28px;
  padding: 34px;
  border: 1px solid var(--border-strong);
  border-radius: 34px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--tight-shadow);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.footer-top p {
  max-width: 520px;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.footer-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 28px 0;
}

.footer-link-grid h3 {
  margin: 0 0 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-link-grid a {
  display: block;
  width: fit-content;
  margin: 10px 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
}

.footer-link-grid a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 1120px) {
  .hero,
  .about-grid,
  .contact-card,
  .project-hero-grid,
  .journey-intro {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 460px;
    justify-content: flex-start;
  }

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

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

  .journey-side-note {
    position: relative;
    top: auto;
  }

  .work-case-card {
    grid-template-columns: 1fr;
  }

  .work-case-image {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .work-case-image img {
    min-height: 260px;
  }
}

@media (max-width: 920px) {
  :root {
    --container: min(100vw - 32px, 1180px);
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: inline-block;
  }

  .theme-toggle-text {
    display: none;
  }

  .site-header {
    height: 66px;
    top: 12px;
  }

  .hero {
    min-height: auto;
  }

  .sticky-one {
    left: 0;
  }

  .sticky-two {
    left: 8px;
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100vw - 24px, 1180px);
  }

  .site-header {
    padding-left: 12px;
  }

  .brand span:last-child {
    display: none;
  }

  .resume-link {
    min-height: 38px;
    padding: 0 13px;
    font-size: 12px;
  }

  .theme-toggle,
  .menu-button {
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
  }

  .section {
    padding: 70px 0;
  }

  h1 {
    font-size: clamp(46px, 15vw, 68px);
  }

  .hero-description {
    font-size: 17px;
  }

  .notebook-strip,
  .expertise-grid,
  .experience-list,
  .project-card-grid,
  .education-grid,
  .learning-grid,
  .case-details,
  .footer-link-grid {
    grid-template-columns: 1fr;
  }

  .section-heading-row,
  .footer-top,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-visual {
    min-height: 420px;
  }

  .lab-card {
    min-height: 350px;
    padding: 28px;
    transform: rotate(0deg);
  }

  .sticky-note {
    width: min(190px, 52vw);
  }

  .sticky-one {
    top: 12px;
  }

  .sticky-two {
    bottom: 14px;
  }

  .floating-chip-card {
    right: 8px;
    bottom: 32px;
  }

  .journey-card {
    grid-template-columns: 1fr;
  }

  .journey-year {
    min-height: 58px;
    justify-content: flex-start;
    padding-left: 18px;
  }

  .work-case-content {
    padding: 24px;
  }

  .site-footer {
    padding: 24px;
  }
}

@media (max-width: 420px) {
  .hero-actions {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .project-wordrail {
    border-radius: 24px;
  }
}

/* animated CLI terminal in hero */
.cli-terminal {
  position: absolute;
  left: clamp(18px, 3vw, 44px);
  bottom: clamp(8px, 2.5vw, 28px);
  z-index: 5;
  width: min(360px, 72%);
  border: 1px solid rgba(255, 245, 231, 0.18);
  border-radius: 20px;
  overflow: hidden;
  color: #fff7e8;
  background: rgba(20, 18, 13, 0.92);
  box-shadow: 0 24px 60px rgba(31, 22, 13, 0.28);
  backdrop-filter: blur(14px);
  transform: rotate(-2deg);
  animation: terminalFloat 6.8s ease-in-out infinite;
}

.cli-topbar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 245, 231, 0.11);
  background: rgba(255, 255, 255, 0.04);
}

.cli-topbar span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
}

.cli-topbar span:nth-child(2) {
  background: var(--accent-2);
}

.cli-topbar span:nth-child(3) {
  background: var(--accent-3);
}

.cli-topbar p {
  margin: 0 0 0 8px;
  color: rgba(255, 247, 232, 0.68);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cli-screen {
  padding: 15px 16px 17px;
  font-family: var(--mono);
}

.cli-screen p {
  margin: 0;
  min-height: 22px;
  color: #fff7e8;
  font-size: 12px;
  line-height: 1.6;
  white-space: nowrap;
}

.cli-prompt {
  color: var(--accent-2);
}

.cli-output {
  opacity: 0;
  transform: translateY(4px);
}

.cli-output.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.cli-output::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 999px;
  background: #9be54d;
  vertical-align: 1px;
}

.cli-caret {
  display: inline-block;
  width: 8px;
  height: 1.15em;
  margin-left: 3px;
  background: var(--accent);
  vertical-align: -3px;
  animation: cliBlink 0.85s steps(2, start) infinite;
}

html[data-theme="light"] .cli-terminal {
  border-color: rgba(31, 24, 16, 0.18);
  background: rgba(31, 28, 20, 0.94);
}

html[data-theme="dark"] .cli-terminal {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

@keyframes terminalFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 6px -10px; }
}

@keyframes cliBlink {
  50% { opacity: 0; }
}

@media (max-width: 920px) {
  .cli-terminal {
    left: auto;
    right: 4px;
    bottom: 0;
    width: min(330px, 76%);
  }
}

@media (max-width: 720px) {
  .cli-terminal {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: -10px;
    transform: rotate(0deg);
  }

  .hero-visual {
    align-items: stretch;
    flex-direction: column;
  }

  .cli-screen p {
    white-space: normal;
  }
}


/* refined requested sections: roadmap, contact card, footer, and education removal */
.education-section {
  display: none !important;
}

.experience-roadmap {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 30px);
  align-items: start;
}

.experience-note {
  position: sticky;
  top: 116px;
  min-height: 320px;
  padding: 28px;
  border: 2px solid var(--ink);
  border-radius: 30px;
  color: #1f1b16;
  background: #e7f3f5;
  box-shadow: 12px 12px 0 rgba(31, 27, 22, 0.18), var(--tight-shadow);
}

html[data-theme="dark"] .experience-note {
  color: #fff5e7;
  border-color: rgba(255, 244, 230, 0.28);
  background: #0f2a30;
}

.experience-note span {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 30px;
  border: 2px solid currentColor;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.48);
  font-size: 32px;
  box-shadow: 6px 6px 0 rgba(31, 27, 22, 0.16);
}

html[data-theme="dark"] .experience-note span {
  background: rgba(255, 245, 231, 0.08);
}

.experience-note h3 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.experience-note p {
  margin: 0;
  color: color-mix(in srgb, currentColor 78%, transparent);
  font-size: 17px;
  line-height: 1.6;
}

.experience-track {
  position: relative;
  display: grid;
  gap: 22px;
  padding-left: 24px;
}

.experience-track::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  border-left: 2px dashed color-mix(in srgb, var(--accent) 58%, transparent);
}

.roadmap-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(108px, 144px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 28px);
  min-width: 0;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--border-strong);
  border-radius: 30px;
  background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
  box-shadow: var(--card-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.roadmap-item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 38px;
  width: 12px;
  height: 12px;
  border: 3px solid var(--background);
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--border-strong);
}

.roadmap-item:hover {
  transform: translateX(8px);
  border-color: color-mix(in srgb, var(--accent) 48%, var(--border-strong));
  box-shadow: 0 28px 78px rgba(54, 38, 26, 0.16);
}

.roadmap-date {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 112px;
  padding: 16px;
  border: 2px solid var(--ink);
  border-radius: 25px;
  color: #171511;
  background: #9fdde5;
  box-shadow: 9px 9px 0 rgba(31, 27, 22, 0.82);
  font-family: var(--mono);
  text-align: center;
}

.roadmap-date-alt {
  background: #c6d8e9;
}

html[data-theme="dark"] .roadmap-date {
  border-color: rgba(255, 244, 230, 0.72);
  box-shadow: 9px 9px 0 rgba(0, 0, 0, 0.72);
}

.roadmap-date span {
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.roadmap-date strong {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
}

.roadmap-copy {
  min-width: 0;
}

.roadmap-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.roadmap-topline span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  background: color-mix(in srgb, var(--surface-muted) 58%, transparent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.roadmap-copy h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.roadmap-copy .company {
  margin: 0 0 18px;
  color: var(--accent-3);
  font-weight: 800;
}

.roadmap-copy ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.7;
}

.roadmap-copy li::marker {
  color: var(--accent);
}

.contact-section {
  padding-bottom: 80px;
}

.contact-card.contact-card-doodle {
  position: relative;
  display: block;
  overflow: hidden;
  padding: clamp(30px, 6vw, 58px);
  color: #fffaf2;
  border: 2px solid color-mix(in srgb, #fff4e6 20%, transparent);
  border-radius: 36px;
  background:
    radial-gradient(circle at 88% 18%, rgba(74, 182, 194, 0.20), transparent 25%),
    radial-gradient(circle at 13% 82%, rgba(36, 104, 122, 0.18), transparent 30%),
    linear-gradient(145deg, #071114, #0f2228 52%, #122b30);
  box-shadow: 12px 12px 0 rgba(31, 27, 22, 0.16), var(--card-shadow);
}

html[data-theme="light"] .contact-card.contact-card-doodle {
  border-color: #1f1b16;
}

.contact-card.contact-card-doodle::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 245, 231, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 245, 231, 0.035) 1px, transparent 1px);
  background-size: 20px 20px;
}

.contact-doodle {
  position: absolute;
  top: 32px;
  right: clamp(26px, 5vw, 56px);
  z-index: 1;
  font-size: clamp(46px, 7vw, 70px);
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.28));
  transform: rotate(9deg);
  animation: teaFloat 5.5s ease-in-out infinite;
}

.contact-card.contact-card-doodle .eyebrow,
.contact-card.contact-card-doodle h2,
.contact-card.contact-card-doodle p,
.contact-card.contact-card-doodle .contact-links {
  position: relative;
  z-index: 2;
}

.contact-card.contact-card-doodle .eyebrow {
  color: #9fdde5;
}

.contact-card.contact-card-doodle h2 {
  max-width: 1100px;
  margin: 0;
  color: #fffaf2;
  font-size: clamp(38px, 6.4vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.contact-card.contact-card-doodle p:not(.eyebrow) {
  max-width: 820px;
  margin: 24px 0 0;
  color: #eadfce;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.58;
}

.contact-card.contact-card-doodle .contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.contact-card.contact-card-doodle .contact-links a {
  min-height: 48px;
  padding: 0 22px;
  color: #fffaf2;
  border: 1px solid rgba(255, 250, 242, 0.22);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.08);
  font-weight: 820;
}

.contact-card.contact-card-doodle .contact-links a::after {
  content: "";
}

.contact-card.contact-card-doodle .contact-links a:hover {
  transform: translateY(-3px);
  color: #171410;
  background: #9fdde5;
}

.site-footer {
  position: relative;
  width: var(--container);
  margin: 0 auto 28px;
  padding: 48px 0 46px;
  color: var(--muted);
  border: 0;
  border-top: 2px dashed var(--border-strong);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.footer-top,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-top {
  margin-bottom: 36px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 830;
}

.footer-top p {
  max-width: 560px;
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.42;
  text-align: right;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 26px clamp(22px, 3vw, 32px);
  border: 1px solid var(--border-strong);
  border-radius: 30px;
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
  box-shadow: var(--tight-shadow);
}

.footer-columns div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-columns h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-columns a,
.footer-bottom a {
  width: fit-content;
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-columns a:hover,
.footer-bottom a:hover {
  color: var(--accent);
  transform: translateX(3px);
}

.footer-bottom {
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
}

@keyframes teaFloat {
  0%, 100% { transform: rotate(9deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-10px); }
}

@media (max-width: 1120px) {
  .experience-roadmap {
    grid-template-columns: 1fr;
  }

  .experience-note {
    position: relative;
    top: auto;
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .experience-track {
    padding-left: 0;
  }

  .experience-track::before,
  .roadmap-item::before {
    display: none;
  }

  .roadmap-item {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .roadmap-date {
    min-height: 78px;
    justify-items: start;
    align-content: center;
    text-align: left;
    box-shadow: 6px 6px 0 rgba(31, 27, 22, 0.82);
  }

  .contact-doodle {
    position: relative;
    top: auto;
    right: auto;
    display: inline-block;
    margin-bottom: 20px;
  }

  .contact-card.contact-card-doodle h2 {
    font-size: clamp(36px, 12vw, 54px);
  }

  .contact-card.contact-card-doodle .contact-links,
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .footer-top,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-top p {
    text-align: left;
  }

  .footer-columns {
    padding: 22px;
  }
}

/* balanced developer icon system and refined contact sizing */
.mini-icon {
  display: inline-grid;
  place-items: center;
  width: 1.25em;
  height: 1.25em;
  color: currentColor;
  line-height: 1;
  flex: 0 0 auto;
}

.mini-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: -0.06em;
}

.eyebrow .mini-icon {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

.icon-badge .mini-icon {
  width: 25px;
  height: 25px;
}

.sticky-note .mini-icon {
  display: grid;
  width: 24px;
  height: 24px;
  margin-bottom: 10px;
  color: #201a14;
}

.floating-chip-card .mini-icon {
  width: 18px;
  height: 18px;
}

.notion-emoji .mini-icon {
  width: clamp(42px, 5vw, 58px);
  height: clamp(42px, 5vw, 58px);
  color: var(--text);
}

.journey-side-note .mini-icon,
.experience-note .mini-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 26px;
  border: 2px solid currentColor;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 6px 6px 0 rgba(31, 27, 22, 0.14);
}

.journey-side-note .mini-icon svg,
.experience-note .mini-icon svg {
  width: 30px;
  height: 30px;
}

html[data-theme="dark"] .journey-side-note .mini-icon,
html[data-theme="dark"] .experience-note .mini-icon {
  background: rgba(255, 245, 231, 0.08);
}

.learning-card .mini-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-strong) 78%, transparent);
}

.learning-card .mini-icon svg {
  width: 24px;
  height: 24px;
}

.contact-section {
  padding-bottom: 64px;
}

.contact-card.contact-card-doodle {
  min-height: auto;
  padding: clamp(26px, 4.2vw, 46px);
  border-radius: 30px;
  box-shadow: 8px 8px 0 rgba(31, 27, 22, 0.14), var(--card-shadow);
}

.contact-doodle {
  display: grid;
  place-items: center;
  width: clamp(48px, 5vw, 66px);
  height: clamp(48px, 5vw, 66px);
  top: clamp(22px, 3vw, 34px);
  right: clamp(22px, 4vw, 42px);
  color: #fffaf2;
  border: 1px solid rgba(255, 250, 242, 0.2);
  border-radius: 20px;
  background: rgba(255, 250, 242, 0.08);
  font-size: 0;
}

.contact-doodle .mini-icon {
  width: 32px;
  height: 32px;
}

.contact-card.contact-card-doodle h2 {
  max-width: 920px;
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.contact-card.contact-card-doodle p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 18px;
  font-size: clamp(15px, 1.55vw, 18px);
  line-height: 1.58;
}

.contact-card.contact-card-doodle .contact-links {
  gap: 10px;
  margin-top: 26px;
}

.contact-card.contact-card-doodle .contact-links a {
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

@media (max-width: 720px) {
  .contact-card.contact-card-doodle {
    padding: 26px;
    border-radius: 24px;
  }

  .contact-doodle {
    position: relative;
    top: auto;
    right: auto;
    width: 50px;
    height: 50px;
    margin-bottom: 18px;
  }

  .contact-doodle .mini-icon {
    width: 27px;
    height: 27px;
  }

  .contact-card.contact-card-doodle h2 {
    font-size: clamp(30px, 10vw, 44px);
  }

  .contact-card.contact-card-doodle .contact-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .contact-card.contact-card-doodle .contact-links {
    grid-template-columns: 1fr;
  }
}


@media screen and (max-width: 720px) {
  .about-doodle-card {
    padding: 16px;
  }

  .about-doodle-frame {
    min-height: 210px;
  }
}
