:root {
  --bg: #FFFFFF;
  --fg: #1d1a1b;
  --muted: #736e6a;
  --subtle: #655e55;
  --accent: #96a2b7;
  --line: #b6bfcc;
  --card: #dfe1df;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --header-h: 88px;
}

html {
  scroll-behavior: smooth;
  height: 100%;
  scroll-snap-type: y mandatory;
}

body {
  min-height: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #FFFFFF;
  font-family: "Syne", sans-serif;
  color: var(--fg);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100vh;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(225, 224, 219, 0.34) 0%,
    rgba(225, 224, 219, 0.24) 100%
  );
  pointer-events: none;
}

body::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100vh - 1px);
  height: 150px;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(211, 211, 211, 0) 0%,
    rgba(211, 211, 211, 0.78) 70%,
    rgba(211, 211, 211, 1) 100%
  );
  pointer-events: none;
}

.page {
  margin: 0 auto;
  padding: 0 0 80px;
  position: relative;
  z-index: 1;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  box-shadow:
    0 1px 0 rgba(182, 191, 204, 0.45),
    0 12px 24px rgba(150, 162, 183, 0.18);
}

#blob {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(150, 162, 183, 0.25);
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
  will-change: transform;
  z-index: 1;
  mix-blend-mode: multiply;
  opacity: 0;
  display: none;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 20px 28px 6px;
  position: relative;
  z-index: 12;
}

.nav-name {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 700;
  display: none;
}

.nav-meta {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.nav-link {
  color: #1f2229;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  padding: 6px 8px;
}

.nav-link:hover {
  color: #505767;
}

.nav-resume {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 18px;
  border: 1px solid rgba(182, 191, 204, 0.82);
  border-radius: 12px;
  color: #23262d;
  background: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-left: 8px;
}

.nav-resume-icon {
  font-size: 17px;
  line-height: 1;
  display: inline-flex;
}

.tech-strip {
  width: 100%;
  max-width: 620px;
  border: 1px solid rgba(182, 191, 204, 0.46);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 12px 24px rgba(31, 32, 37, 0.035);
  overflow: hidden;
}

.tech-strip-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(182, 191, 204, 0.3);
}

.tech-strip-glyph {
  font-size: 22px;
  line-height: 1;
  color: rgba(47, 51, 58, 0.88);
  font-weight: 700;
}

.tech-strip-title {
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #24262d;
}

.tech-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 8px 12px 12px;
}

.tech-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(182, 191, 204, 0.56);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
  color: #2f333a;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tech-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  font-size: 14px;
  line-height: 1;
  color: rgba(33, 39, 54, 0.94);
}

#code-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

#code-overlay.visible {
  display: flex;
}

.code-window {
  width: 360px;
  background: var(--fg);
  border-radius: 12px;
  overflow: hidden;
  font-family: "Fira Code", monospace;
  font-size: 13px;
}

.code-titlebar {
  background: #504a43;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-r { background: #736e6a; }
.dot-y { background: #b6bfcc; }
.dot-g { background: #96a2b7; }

.code-body {
  padding: 18px;
  min-height: 120px;
  color: #b6bfcc;
  line-height: 2;
}

.code-line {
  display: block;
  white-space: nowrap;
}

.c-orange { color: #96a2b7; }
.c-yellow { color: #e1e0db; }
.c-blue { color: #b6bfcc; }
.c-green { color: #888c90; }
.c-gray { color: #736e6a; }

#cursor-blink {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: #96a2b7;
  vertical-align: middle;
  animation: cblink 0.7s infinite;
}

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

#main-content {
  position: relative;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.35s ease;
}

#main-content.fading { opacity: 0; }
#main-content.fading-in { animation: fadeUp 0.55s ease forwards; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-wrap {
  display: grid;
  grid-template-columns: minmax(520px, 0.9fr) minmax(620px, 1fr);
  gap: 28px;
  align-items: center;
  padding: calc(var(--header-h) + 24px) 40px 0;
  min-height: 100vh;
  position: relative;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.snap-section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #FFFFFF;
}

.hero-left {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  margin-top: 0;
  position: relative;
  z-index: 2;
}

.hero-profile {
  display: flex;
  justify-content: center;
  margin: 0 auto 34px;
}

.hero-avatar-shell {
  position: relative;
  display: block;
  width: 148px;
  height: 148px;
  padding: 5px;
  border-radius: 50%;
  background: #f5f2ed;
  border: 1px solid rgba(101, 94, 85, 0.28);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.78) inset,
    0 16px 28px rgba(29, 26, 27, 0.08),
    0 0 30px rgba(150, 162, 183, 0.2);
  flex-shrink: 0;
}

.hero-avatar-shell::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(150, 162, 183, 0.22) 0%,
    rgba(150, 162, 183, 0.08) 45%,
    rgba(150, 162, 183, 0) 72%
  );
  filter: blur(14px);
  z-index: -1;
}

.hero-avatar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 36%;
  opacity: 0.84;
  filter: saturate(0.88) contrast(0.98) brightness(1.02);
  transform: scale(1.36);
  transform-origin: center 36%;
}

.hero-photo-chunk {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 52%;
  top: 34%;
  min-height: 0;
  border-radius: 0;
  overflow: hidden;
  border: none;
  box-shadow: none;
  z-index: 1;
}

.hero-photo-chunk img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.02);
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #2f333a;
  -webkit-text-fill-color: initial;
  display: block;
  background: none;
  animation: none;
  margin-bottom: 18px;
  padding-top: 8px;
  text-align: center;
  text-shadow:
    0 1px 1px rgba(255, 255, 255, 0.62),
    0 2px 10px rgba(225, 224, 219, 0.78);
}

.hero-name {
  font-family: "Playfair Display", serif;
  font-size: 44px;
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #2a2d33;
  -webkit-text-fill-color: initial;
  display: block;
  background: none;
  animation: none;
  text-align: center;
  margin-bottom: 16px;
  text-shadow:
    0 1px 1px rgba(255, 255, 255, 0.65),
    0 3px 14px rgba(225, 224, 219, 0.82);
}

@keyframes shine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.hero-heading {
  font-family: "Playfair Display", serif;
  font-size: 58px;
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 22px;
  margin-bottom: 16px;
  color: var(--fg);
  text-align: center;
  text-shadow:
    0 0 2px rgba(225, 224, 219, 0.70),
    0 0 10px rgba(225, 224, 219, 0.55),
    0 6px 16px rgba(225, 224, 219, 0.42);
}

.hero-heading em {
  font-style: italic;
  font-weight: 400;
  color: #0F0F0F;
}

.hero-reveal {
  white-space: nowrap;
}

.hero-reveal-char {
  display: inline-block;
  color: rgba(29, 26, 27, 0.2);
  transition: color 0.26s ease, text-shadow 0.26s ease;
}

.hero-reveal-char.in-bubble {
  color: rgba(29, 26, 27, var(--ink-alpha, 0.9));
  text-shadow:
    0 0 calc(1px + (var(--ink-glow, 0px) * 0.15)) rgba(225, 224, 219, 0.65),
    0 0 calc(4px + var(--ink-glow, 0px)) rgba(225, 224, 219, calc(0.26 + (var(--ink-strength, 0) * 0.34)));
}

.hero-sub {
  font-size: 15px;
  color: #4f4945;
  line-height: 1.75;
  max-width: 400px;
  margin: 0 auto 36px;
  font-weight: 400;
  text-align: center;
  text-shadow: 0 1px 8px rgba(225, 224, 219, 0.48);
}

.hero-right {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 18px;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 720px;
  min-height: 0;
}

.terminal-launcher {
  position: relative;
  width: 100%;
  max-width: 620px;
  color: var(--fg);
  overflow: visible;
  font-family: "Fira Code", monospace;
}

.terminal-input-stack {
  position: relative;
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding: 11px 12px;
  border: 2px solid rgba(101, 94, 85, 0.42);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.terminal-prompt {
  font-size: 11px;
  color: var(--accent);
  white-space: nowrap;
}

.terminal-input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--fg);
  font-family: inherit;
  font-size: 12px;
  caret-color: transparent;
}

.terminal-input::placeholder {
  color: rgba(115, 110, 106, 0.72);
}

.terminal-input-row:focus-within {
  border-color: rgba(101, 94, 85, 0.7);
  box-shadow: 0 0 0 1px rgba(101, 94, 85, 0.16);
}

.terminal-caret-box {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 1.25em;
  border-radius: 1px;
  background: rgba(80, 74, 67, 0.72);
  transform: translateY(-50%);
  pointer-events: none;
  animation: terminalCaretBlink 1.6s steps(1, end) infinite;
}

@keyframes terminalCaretBlink {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

.terminal-options {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: transparent;
  z-index: 3;
}

.terminal-options.open {
  display: block;
}

.terminal-option {
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr;
  align-items: start;
  column-gap: 10px;
  width: 100%;
  padding: 5px 8px;
  border: 0;
  background: transparent;
  color: var(--fg);
  font-family: "Fira Code", monospace;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  border-radius: 10px;
}

.terminal-option + .terminal-option {
  margin-top: 1px;
}

.terminal-option-command {
  color: var(--fg);
  font-weight: 700;
}

.terminal-option-detail {
  color: var(--muted);
  line-height: 1.2;
}

.terminal-option:hover,
.terminal-option.active {
  background: rgba(225, 224, 219, 0.9);
}

.terminal-option:hover .terminal-option-detail,
.terminal-option.active .terminal-option-detail {
  color: var(--subtle);
}

.terminal-option:hover .terminal-option-command,
.terminal-option.active .terminal-option-command {
  color: #2f333a;
}

.float-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin: 36px 40px 0;
}

.float-row,
.contact-row {
  display: none;
}

.fcard {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  border: 1.5px solid transparent;
  transition: all 0.22s;
  cursor: default;
}

.fcard:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.fcard-num {
  font-family: "Playfair Display", serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.fcard-label {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.cta {
  font-size: 13px;
  padding: 11px 22px;
  border-radius: 99px;
  text-decoration: none;
  font-family: "Syne", sans-serif;
  transition: all 0.2s;
  cursor: pointer;
  font-weight: 700;
  border: 1.5px solid var(--fg);
  color: var(--fg);
  background: transparent;
}

.cta.fill {
  background: var(--fg);
  color: var(--bg);
}

.cta.fill:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.cta:hover {
  background: var(--fg);
  color: var(--bg);
}

.marquee-wrap {
  overflow: hidden;
  border-top: 1.5px solid var(--line);
  border-bottom: 1.5px solid var(--line);
  padding: 14px 0;
  margin: 40px 0 0;
}

.marquee-track {
  display: flex;
  gap: 44px;
  white-space: nowrap;
  animation: mscroll 20s linear infinite;
}

.marquee-track span {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.marquee-track span b {
  color: var(--accent);
}

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

.section {
  display: block;
  padding: calc(var(--header-h) + 40px) 40px 0;
  scroll-margin-top: 0;
  min-height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.section.visible {
  display: block;
}

.s-head {
  font-family: "Playfair Display", serif;
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.s-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.wcard {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s;
}

.wcard:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.wtag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 14px;
  font-weight: 700;
}

.tag-live { background: #b6bfcc; color: #1d1a1b; }
.tag-open { background: #e1e0db; color: #504a43; }
.tag-np { background: #888c90; color: #1d1a1b; }
.tag-pers { background: #96a2b7; color: #1d1a1b; }

.wcard-title {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.wcard-desc {
  font-size: 13px;
  color: var(--subtle);
  line-height: 1.65;
}

.wcard-detail {
  display: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--subtle);
  line-height: 1.7;
}

.warrow {
  margin-top: 16px;
  font-size: 18px;
  color: var(--accent);
  display: inline-block;
  transition: transform 0.2s;
}

.wcard:hover .warrow {
  transform: translate(4px, -2px);
}

.projects-shell {
  min-height: calc(100vh - var(--header-h) - 80px);
}

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

.project-card {
  position: relative;
  min-height: 320px;
  padding: 50px 34px 44px;
  border: 1px solid rgba(80, 74, 67, 0.12);
  border-radius: 0;
  background:
    linear-gradient(rgb(129, 129, 129), rgb(129, 129, 129)) left bottom / 3px 0 no-repeat,
    linear-gradient(rgb(129, 129, 129), rgb(129, 129, 129)) right bottom / 0 3px no-repeat,
    rgba(255, 255, 255, 0.92);
  color: #20242b;
  box-shadow: 0 0 0 rgb(129, 129, 129);
  transform: translateY(0) translateX(0);
  transition:
    background-size 0.2s ease 0.4s,
    border-color 0.2s ease,
    box-shadow 0.2s ease 0.4s,
    transform 0.2s ease 0.4s;
}

.project-card::before,
.project-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
  background: rgb(129, 129, 129);
  transition:
    transform 0.2s ease;
}

.project-card::before {
  top: -1px;
  left: -1px;
  width: calc(100% + 2px);
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 0;
}

.project-card::after {
  top: -1px;
  right: -1px;
  width: 3px;
  height: calc(100% + 2px);
  transform: scaleY(0);
  transform-origin: 100% 0;
  transition-delay: 0.2s;
}

.project-card:hover {
  background-size: 3px 100%, 100% 3px, auto;
  border-color: rgba(129, 129, 129, 0.12);
  box-shadow: 20px 20px 0 rgb(129, 129, 129);
  transform: translateY(-10px) translateX(-10px);
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-card:hover::after {
  transform: scaleY(1);
}

.project-card-title {
  font-family: "Syne", sans-serif;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.project-card-meta {
  color: #46515d;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.project-card-date {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(80, 74, 67, 0.42);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.64);
  color: #46515d;
  font-family: "Fira Code", monospace;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.project-card-divider {
  height: 1px;
  margin: 30px 0 30px;
  background: rgba(80, 74, 67, 0.1);
}

.project-card-list {
  display: grid;
  gap: 10px;
  padding-left: 40px;
  color: #46515d;
  font-size: 16px;
  line-height: 1.55;
}

.project-card-list li::marker {
  color: rgba(70, 81, 93, 0.78);
  font-size: 0.8em;
}

.timeline {
  margin-top: 4px;
}

.titem {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.titem:last-child {
  border-bottom: none;
}

.t-date {
  font-size: 11px;
  color: var(--muted);
  padding-top: 3px;
  line-height: 1.55;
}

.t-role {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
}

.t-org {
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 6px;
}

.t-desc {
  font-size: 13px;
  color: var(--subtle);
  line-height: 1.65;
}

.experience-shell {
  display: block;
  min-height: calc(100vh - var(--header-h) - 80px);
}

.experience-kicker {
  font-size: 13px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(80, 74, 67, 0.44);
  margin-bottom: 56px;
}

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

.experience-card {
  position: relative;
  min-height: 520px;
  padding: 42px 48px 42px;
  border: 1px solid rgba(80, 74, 67, 0.08);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 0 var(--experience-hover, rgba(129, 129, 129, 0.82));
  transform: translateY(0) translateX(0);
  transition:
    background-size 0.2s ease 0.4s,
    border-color 0.2s ease,
    box-shadow 0.2s ease 0.4s,
    transform 0.2s ease 0.4s;
}

.experience-card::before,
.experience-card::after {
  content: "";
  position: absolute;
  z-index: 4;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.experience-card::before {
  inset: -1px;
  border: 3px solid var(--experience-hover, rgba(129, 129, 129, 0.82));
  background: transparent;
  transform: scaleX(0);
  transform-origin: 0 0;
}

.experience-card::after {
  display: none;
}

.experience-card:hover {
  background-size: 3px 100%, 100% 3px, auto;
  border-color: color-mix(in srgb, var(--experience-hover, rgb(129, 129, 129)) 24%, transparent);
  box-shadow: 20px 20px 0 var(--experience-hover, rgba(129, 129, 129, 0.82));
  transform: translateY(-10px) translateX(-10px);
}

.experience-card:hover::before {
  transform: scaleX(1);
}

.experience-card:hover::after {
  transform: none;
}

.exp-lavender {
  --experience-hover: rgb(165, 157, 190);
  background:
    linear-gradient(var(--experience-hover), var(--experience-hover)) left bottom / 3px 0 no-repeat,
    linear-gradient(var(--experience-hover), var(--experience-hover)) right bottom / 0 3px no-repeat,
    rgba(232, 230, 240, 0.58);
}

.exp-mint {
  --experience-hover: rgb(143, 177, 164);
  background:
    linear-gradient(var(--experience-hover), var(--experience-hover)) left bottom / 3px 0 no-repeat,
    linear-gradient(var(--experience-hover), var(--experience-hover)) right bottom / 0 3px no-repeat,
    rgba(224, 237, 232, 0.58);
}

.exp-cream {
  --experience-hover: rgb(187, 169, 132);
  background:
    linear-gradient(var(--experience-hover), var(--experience-hover)) left bottom / 3px 0 no-repeat,
    linear-gradient(var(--experience-hover), var(--experience-hover)) right bottom / 0 3px no-repeat,
    rgba(240, 237, 230, 0.58);
}

.experience-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(80, 74, 67, 0.08);
  color: rgba(29, 26, 27, 0.58);
  font-family: "Fira Code", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.experience-carousel {
  position: relative;
  z-index: 1;
  width: calc(100% + 96px);
  height: 206px;
  margin: -42px -48px 34px;
  overflow: hidden;
  border-bottom: 1px solid rgba(80, 74, 67, 0.06);
}

.experience-carousel::before,
.experience-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 46px;
  pointer-events: none;
}

.experience-carousel::before {
  left: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), transparent);
}

.experience-carousel::after {
  right: 0;
  background: linear-gradient(270deg, rgba(255, 255, 255, 0.5), transparent);
}

.carousel-track {
  display: flex;
  gap: 14px;
  width: max-content;
  height: 100%;
  padding: 16px 14px;
  animation: scroll 20s linear infinite;
}

.carousel-track img {
  width: 190px;
  height: 174px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
  opacity: 0.78;
  filter: saturate(0.85) contrast(0.96);
  box-shadow: 0 10px 22px rgba(31, 32, 37, 0.08);
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 7px)); }
}

.experience-card-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.experience-card-title {
  position: relative;
  z-index: 1;
  font-family: "Playfair Display", serif;
  font-size: 44px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0;
  color: #111113;
  margin-bottom: 0;
}

.experience-card-desc {
  position: relative;
  z-index: 1;
  max-width: 340px;
  color: rgba(29, 26, 27, 0.48);
  font-family: "Fira Code", monospace;
  font-size: 17px;
  line-height: 1.58;
}

.experience-card-footer {
  position: absolute;
  right: 48px;
  bottom: 42px;
  left: 48px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.experience-year {
  color: rgba(29, 26, 27, 0.22);
  font-family: "Fira Code", monospace;
  font-size: 15px;
  letter-spacing: 0.08em;
}

.experience-github {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(29, 26, 27, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  color: rgba(29, 26, 27, 0.62);
  font-family: "Fira Code", monospace;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.experience-github:hover {
  background: rgba(255, 255, 255, 0.62);
  color: rgba(29, 26, 27, 0.86);
  transform: translateY(-1px);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.acard {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.acard h3 {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.acard p {
  font-size: 13px;
  color: var(--subtle);
  line-height: 1.75;
}

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

.photo-card {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-photo {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  filter: saturate(0.92) contrast(1.02);
}

.photo-caption {
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--muted);
  padding: 0 4px 2px;
}

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

.chip {
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 99px;
  background: #b6bfcc;
  color: #504a43;
}

.about-cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.footer {
  border-top: 1.5px solid var(--line);
  margin-top: 64px;
  padding: 28px 40px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.footer-left {
  font-size: 12px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}

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

@media (max-width: 1024px) {
  .project-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .experience-card {
    min-height: 520px;
    padding: 36px 34px 38px;
  }

  .experience-carousel {
    width: calc(100% + 68px);
    margin: -36px -34px 30px;
  }
}

@media (max-width: 640px) {
  .nav {
    justify-content: center;
    gap: 8px;
    padding: 14px 12px 6px;
    flex-wrap: wrap;
  }

  .nav-link {
    font-size: 13px;
    padding: 4px 6px;
  }

  .nav-resume {
    height: 40px;
    padding: 0 12px;
    font-size: 13px;
    border-radius: 10px;
    margin-left: 0;
  }

  .nav-resume-icon {
    font-size: 16px;
  }

  .tech-strip-head {
    padding: 16px 16px;
    gap: 10px;
  }

  .tech-strip-glyph {
    font-size: 22px;
  }

  .tech-strip-title {
    font-size: 26px;
  }

  .tech-strip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px 12px 16px;
  }

  .tech-item {
    min-height: 56px;
    padding: 0 12px;
    font-size: 15px;
    gap: 8px;
  }

  .tech-icon {
    width: 20px;
    font-size: 20px;
  }

  .hero-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 24px 0;
    position: static;
  }

  .hero-photo-chunk {
    position: static;
    width: 100%;
    max-width: 360px;
    height: 220px;
    min-height: 0;
    margin: 8px 0 0;
  }

  .tech-strip {
    padding: 0;
    gap: 8px 10px;
  }

  .tech-item {
    font-size: 14px;
  }

  .hero-right {
    position: static;
    width: 100%;
    height: auto;
    margin-top: 12px;
    transform: none;
  }

  .terminal-launcher {
    max-width: 100%;
  }

  .hero-heading {
    font-size: 40px;
  }

  .hero-profile {
    margin-bottom: 28px;
  }

  .hero-avatar-shell {
    width: 128px;
    height: 128px;
  }

  .hero-eyebrow {
    font-size: 11px;
  }

  .float-row {
    margin: 28px 24px 0;
    grid-template-columns: 1fr 1fr;
  }

  .contact-row {
    padding: 24px 24px 0;
  }

  .section {
    padding: 28px 24px 0;
  }

  .work-grid,
  .project-card-grid,
  .experience-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .projects-shell {
    min-height: auto;
  }

  .project-card {
    min-height: auto;
    padding: 36px 28px 34px;
  }

  .project-card-title {
    font-size: 26px;
  }

  .project-card-date {
    white-space: normal;
    line-height: 1.35;
    padding: 8px 10px;
  }

  .project-card-divider {
    margin: 26px 0 24px;
  }

  .project-card-list {
    padding-left: 24px;
    font-size: 15px;
  }

  .about-photo {
    height: 260px;
  }

  .titem {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .experience-shell {
    min-height: auto;
  }

  .experience-kicker {
    margin-bottom: 28px;
    letter-spacing: 0.28em;
  }

  .experience-card {
    min-height: 520px;
    padding: 30px 28px 34px;
  }

  .experience-pill {
    min-height: 32px;
    padding: 0 12px;
    font-size: 11px;
  }

  .experience-carousel {
    width: calc(100% + 56px);
    height: 188px;
    margin: -30px -28px 28px;
  }

  .carousel-track {
    gap: 12px;
    padding: 14px 12px;
  }

  .carousel-track img {
    width: 168px;
    height: 160px;
  }

  .experience-card-heading {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
  }

  .experience-card-title {
    font-size: 38px;
  }

  .experience-card-desc {
    font-size: 15px;
  }

  .experience-card-footer {
    right: 28px;
    bottom: 34px;
    left: 28px;
  }

  .experience-github {
    min-height: 38px;
    padding: 0 14px;
    font-size: 12px;
  }

  .footer {
    padding: 24px 24px 0;
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .nav {
    padding: 20px 24px;
  }

}
