/* ==============================================
   JEMAN KALITA — Personal Site
   Fonts: IBM Plex Mono + Inter + Inter Tight
   ============================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=Inter+Tight:wght@700;800;900&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at top left, rgba(189, 145, 94, 0.12), transparent 30rem),
    linear-gradient(180deg, #fbfaf7 0%, #f6f1ea 100%);
  font-family: Georgia, 'Times New Roman', Times, serif;
  color: #111;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

/* ─── NAV ─────────────────────────────────── */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(251, 250, 247, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

nav.scrolled {
  border-bottom-color: #e5e5e5;
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #111;
  cursor: pointer;
  user-select: none;
}

.nav-links {
  display: flex;
  gap: 1.4rem;
}

.nav-links a {
  font-family: Georgia, serif;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #9b9388;
  text-decoration: none;
  cursor: pointer;
  padding: 0.34rem 0.52rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  user-select: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: #111;
  background: rgba(170, 119, 61, 0.12);
  transform: translateY(-1px);
}

/* ─── PAGES ───────────────────────────────── */

.page {
  display: none;
  min-height: 100vh;
}

.page.active {
  display: block;
}

/* ─── HERO ────────────────────────────────── */

header {
  padding: 0;
}

.hero-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr clamp(240px, 28vw, 320px);
  align-items: center;
  align-items: start;
  gap: 3rem;
}

.hero-text {
  min-width: 0;
}

.hero-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 6.2vw, 5.25rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.02;
  color: #0e0e0e;
  margin-bottom: 1.6rem;
  white-space: normal;
}

.hero-identity {
  font-family: Georgia, serif;
  font-size: 0.97rem;
  color: #444;
  margin-bottom: 0.5rem;
}

.hero-philosophy {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 0.91rem;
  color: #999;
}

/* ─── PORTRAIT ────────────────────────────── */

.hero-image-wrap {
  flex-shrink: 0;
  width: 100%;
  padding: 0.55rem;
  border: 1px solid rgba(120, 92, 57, 0.18);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.45);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.hero-image-wrap:hover {
  transform: translateY(-5px) rotate(-1deg);
  border-color: rgba(120, 92, 57, 0.34);
  box-shadow: 0 22px 50px rgba(81, 57, 32, 0.12);
}

.hero-portrait {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.10),
    0 2px 8px rgba(0, 0, 0, 0.06);
  display: block;
}

.portrait-placeholder {
  width: 100%;
  height: 380px;
  border-radius: 24px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.09),
    0 2px 8px rgba(0, 0, 0, 0.05);
  background: linear-gradient(155deg, #edebe6 0%, #d9d5ce 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}

.placeholder-icon {
  font-size: 2.4rem;
  opacity: 0.2;
  color: #555;
}

.placeholder-text {
  font-family: Georgia, serif;
  font-size: 0.68rem;
  color: #aaa;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ─── DIVIDERS ────────────────────────────── */

.divider {
  max-width: 960px;
  margin: 0 auto;
  height: 1px;
  background: #e8e6e1;
}

#page-interests .divider {
  max-width: 1200px;
}

.full-divider {
  height: 1px;
  background: #e8e6e1;
}

/* ─── SECTIONS ────────────────────────────── */

section {
  padding: 32px 0;
}

.section-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  gap: 4rem;
  align-items: flex-start;
  border-radius: 18px;
  transition: background 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

section:hover .section-inner {
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 18px 48px rgba(87, 64, 38, 0.08);
  transform: translateY(-2px);
}

.section-label {
  font-family: Georgia, serif;
  font-size: 0.67rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a99d90;
  min-width: 110px;
  padding-top: 4px;
  flex-shrink: 0;
}

.section-content {
  flex: 1;
}

/* ─── BODY TEXT ───────────────────────────── */

.body-text {
  font-family: Georgia, serif;
  font-size: 0.97rem;
  line-height: 1.95;
  color: #2c2925;
  max-width: 590px;
}

.body-text + .body-text {
  margin-top: 1.4rem;
}

.inline-age {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #111;
  margin-right: 0.1em;
  line-height: 1;
  vertical-align: baseline;
}

.inline-age--number {
  font-size: 1.2em;
  letter-spacing: -0.01em;
}

.wiki-hover {
  position: relative;
  color: #7a4d23;
  text-decoration: none;
  border-bottom: 1px solid rgba(122, 77, 35, 0.28);
  padding-bottom: 0.02rem;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.wiki-hover:hover {
  color: #111;
  border-color: #111;
  background: rgba(185, 130, 70, 0.14);
}

.wiki-hover::after {
  content: "Wikipedia";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.45rem);
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  pointer-events: none;
  font-family: Georgia, serif;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5f4630;
  background: #fffaf2;
  border: 1px solid rgba(122, 77, 35, 0.22);
  border-radius: 999px;
  padding: 0.22rem 0.52rem;
  box-shadow: 0 10px 26px rgba(73, 47, 22, 0.1);
  white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 5;
}

.wiki-hover:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hover-card {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2.25rem);
  width: 150px;
  padding: 0.5rem;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  pointer-events: none;
  background: rgba(255, 250, 242, 0.98);
  border: 1px solid rgba(122, 77, 35, 0.24);
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(73, 47, 22, 0.16);
  z-index: 6;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.wiki-thiel:hover .hover-card {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hover-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.04;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.45rem;
}

.hover-card span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  color: #5f4630;
}

/* ─── EDUCATION ───────────────────────────── */

.edu-school {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.02rem;
  font-weight: 500;
  color: #111;
}

.edu-detail {
  font-family: Georgia, serif;
  font-size: 0.85rem;
  color: #999;
  line-height: 1.7;
  margin-top: 0.3rem;
}

.edu-tags {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.65rem;
  flex-wrap: wrap;
}

.edu-tag {
  font-family: Georgia, serif;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bbb;
  border: 1px solid #e5e5e5;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}

/* ─── ACHIEVEMENTS ────────────────────────── */

.achieve-block {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  transition: background 0.22s ease, transform 0.22s ease;
}

.achieve-block:hover,
.sport-block:hover,
.contact-row:hover {
  background: rgba(172, 121, 62, 0.1);
  transform: translateX(5px);
}

.achieve-tag {
  font-family: Georgia, serif;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ccc;
  min-width: 38px;
  padding-top: 3px;
  flex-shrink: 0;
}

.achieve-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.02rem;
  font-weight: 500;
  color: #111;
  margin-bottom: 0.3rem;
}

.achieve-desc {
  font-family: Georgia, serif;
  font-size: 0.87rem;
  color: #777;
  line-height: 1.75;
}

.achieve-desc strong {
  color: #333;
  font-weight: 600;
}

.achieve-meta {
  font-family: Georgia, serif;
  font-size: 0.77rem;
  color: #bbb;
  margin-top: 0.25rem;
  letter-spacing: 0.02em;
}

.scholarship-badge {
  display: inline-block;
  font-family: Georgia, serif;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  border: 1px solid #ddd;
  padding: 0.2rem 0.7rem;
  border-radius: 2px;
  margin-top: 0.55rem;
}

/* ─── SPORTS ──────────────────────────────── */

.sport-block {
  padding: 1.4rem 0.85rem;
  border-bottom: 1px solid #eeece8;
  border-radius: 14px;
  transition: background 0.22s ease, transform 0.22s ease;
}

.sport-block:first-child {
  border-top: 1px solid #eeece8;
}

.sport-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  color: #111;
  margin-bottom: 0.35rem;
}

.sport-achievement {
  font-family: Georgia, serif;
  font-size: 0.87rem;
  color: #555;
  line-height: 1.75;
}

.sport-highlight {
  font-family: Georgia, serif;
  font-size: 0.69rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #888;
  margin-top: 0.4rem;
}

/* ─── PAGE HEADERS ────────────────────────── */

.page-header {
  padding: 40px 0 56px;
}

.page-header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0;
  color: #0e0e0e;
  margin-bottom: 0.4rem;
}

.page-subtitle {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 0.88rem;
  color: #bbb;
}

/* ─── COMING SOON ─────────────────────────── */

.coming-soon-large {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  font-style: italic;
  color: #ccc;
  margin-bottom: 0.6rem;
}

.coming-soon-sub {
  font-family: Georgia, serif;
  font-size: 0.85rem;
  color: #bbb;
  line-height: 1.7;
}

/* ─── CONTACT ─────────────────────────────── */

/* --- BLOGS --- */
.blog-card {
  display: block;
  max-width: 680px;
  color: inherit;
  text-decoration: none;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(232, 230, 225, 0.9);
  border-bottom: 1px solid rgba(232, 230, 225, 0.9);
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(154, 105, 50, 0.42);
}

.blog-card-meta,
.blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  align-items: center;
  font-family: Georgia, serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a99d90;
}

.blog-card-meta span:not(:last-child)::after,
.blog-article-meta span:not(:last-child)::after {
  content: "/";
  margin-left: 0.9rem;
  color: #d8d2ca;
}

.blog-card h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
  color: #111;
  margin: 0.7rem 0 0.7rem;
}

.blog-card p {
  font-family: Georgia, serif;
  font-size: 0.97rem;
  line-height: 1.8;
  color: #62584f;
  max-width: 620px;
}

.blog-read-more {
  display: inline-flex;
  margin-top: 1rem;
  font-family: Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6f4720;
  border-bottom: 1px solid rgba(111, 71, 32, 0.34);
  padding-bottom: 2px;
}

.blog-article {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 2rem 0;
}

.blog-article-header {
  max-width: 720px;
  padding-bottom: 56px;
}

.blog-back-link {
  display: inline-flex;
  margin-bottom: 1.2rem;
  font-family: Georgia, serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a99d90;
  text-decoration: none;
  border-bottom: 1px solid rgba(169, 157, 144, 0.35);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.blog-back-link:hover {
  color: #111;
  border-color: rgba(17, 17, 17, 0.4);
}

.blog-markdown {
  max-width: 680px;
  padding: 40px 0 0;
}

.blog-markdown p,
.blog-markdown blockquote {
  font-family: Georgia, serif;
}

.blog-markdown p {
  font-size: 1.02rem;
  line-height: 1.95;
  color: #2c2925;
  margin: 0 0 1.25rem;
}

.blog-markdown blockquote {
  margin: 2rem 0 2.2rem;
  padding: 0.3rem 0 0.3rem 1.35rem;
  border-left: 1px solid rgba(154, 105, 50, 0.5);
  color: #62584f;
}

.blog-markdown blockquote p {
  color: #62584f;
  font-style: italic;
  margin-bottom: 1rem;
}

.blog-markdown blockquote p:last-child,
.blog-markdown p:last-child {
  margin-bottom: 0;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.contact-shell {
  display: grid;
  grid-template-columns: 155px 1fr;
  gap: 1.7rem;
  align-items: center;
}

.contact-photo {
  width: 155px;
  height: 190px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(49, 34, 20, 0.14);
}

.contact-row {
  display: flex;
  gap: 2rem;
  align-items: baseline;
  padding: 0.65rem 0.75rem;
  border-radius: 0;
  transition: background 0.22s ease, transform 0.22s ease;
}

.contact-label {
  font-family: Georgia, serif;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ccc;
  min-width: 62px;
  flex-shrink: 0;
}

.contact-link {
  font-family: Georgia, serif;
  font-size: 0.93rem;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #ddd;
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-link:hover {
  color: #111;
  border-color: #9a6932;
}

/* ─── PROJECTS ───────────────────────────────────────── */

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

.large-works-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 1.4rem;
}

.work-card {
  display: block;
  max-width: 530px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.24s ease;
}

.work-card:hover {
  transform: translateY(-5px);
}

.work-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(30, 30, 34, 0.14);
  border-radius: 22px;
  background: #07080a;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.42) inset,
    0 18px 42px rgba(42, 30, 17, 0.12);
  transition: filter 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.work-card:hover .work-image {
  border-color: rgba(15, 15, 18, 0.28);
  filter: saturate(1.08) contrast(1.04);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.45) inset,
    0 24px 54px rgba(42, 30, 17, 0.18);
}

.work-card h2 {
  font-family: Georgia, serif;
  font-size: 1.72rem;
  font-weight: 700;
  line-height: 1.1;
  color: #111;
  margin-top: 1.25rem;
  margin-bottom: 0.55rem;
}

.work-card p {
  font-family: Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.45;
  color: #8a858c;
}

.fun-project-list {
  display: grid;
  gap: 0.75rem;
  max-width: 620px;
  padding-left: 1.1rem;
  font-family: Georgia, serif;
  font-size: 0.9rem;
  line-height: 1.75;
  color: #62584f;
}

.fun-project-list li {
  padding-left: 0.35rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.fun-project-list li:hover {
  color: #111;
  transform: translateX(4px);
}

.fun-project-list strong {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  color: #111;
}

/* ─── FOOTER ──────────────────────────────── */

footer {
  padding-bottom: 24px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.2rem 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  font-family: Georgia, serif;
  font-size: 0.73rem;
  color: #bbb;
  letter-spacing: 0.04em;
}

.footer-icons {
  display: flex;
  gap: 1.1rem;
  align-items: center;
}

.footer-icon {
  color: #ccc;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.footer-icon:hover {
  color: #8f5f2f;
}

.footer-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* ─── RESPONSIVE ──────────────────────────── */

@media (max-width: 680px) {
  .nav-inner {
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
  }

  .nav-links {
    display: flex;
    gap: 0.35rem;
    max-width: calc(100vw - 4.2rem);
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    font-size: 0.68rem;
    padding: 0.32rem 0.45rem;
  }

  .hero-inner {
    flex-direction: column;
    gap: 2rem;
  }

  .hero-image-wrap {
    width: min(245px, 70vw);
    align-self: center;
  }

  .hero-portrait {
    height: 330px;
  }

  .hero-name {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
    white-space: nowrap;
  }

  .section-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .section-label {
    min-width: unset;
  }

  .achieve-block {
    flex-direction: column;
    gap: 0.4rem;
  }

  .contact-row {
    flex-direction: column;
    gap: 0.3rem;
  }

  .project-grid,
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .contact-photo {
    width: 100%;
    height: 260px;
  }
}

/* ─── Final nav + spacing patch ────────────────────────── */

nav {
  border-top: 2px solid #111;
  border-bottom: 2px solid #111;
  box-shadow: none;
}

.nav-inner {
  min-height: 112px;
}

.nav-links {
  justify-content: space-between;
  gap: clamp(1.4rem, 4vw, 4.4rem);
}

.nav-links a {
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(1rem, 1.8vw, 1.65rem);
  font-weight: 400;
  letter-spacing: 0.18em;
}

.nav-links a::after {
  bottom: -0.55rem;
  height: 2px;
}

.nav-brand {
  font-size: clamp(1rem, 1.5vw, 1.35rem);
}

.page {
  scroll-margin-top: 0;
}

.page:not(#page-home) {
  padding-top: 0;
}

.page-header {
  padding-top: 32px;
}

.coming-soon-large {
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  font-style: normal;
  color: var(--muted);
}

.coming-soon-sub {
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  color: var(--muted);
}

.inline-age {
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: inherit;
  font-weight: 800;
  color: var(--text);
  margin-right: 0.25em;
}

@media (max-width: 760px) {
  .nav-inner {
    min-height: auto;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .nav-links a {
    font-size: 0.86rem;
  }
}

/* ─── Contact icons + boxless sections cleanup ─────────── */

.achieve-block,
.sport-block {
  padding-left: 0;
  padding-right: 0;
  border-radius: 0;
  background: transparent;
}

.sport-block,
.sport-block:first-child {
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

.coming-projects {
  min-height: 180px;
  place-items: start;
  align-content: start;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.coming-projects:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.coming-projects::before,
.coming-orbit {
  display: none;
}

.coming-title {
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1;
}

.coming-copy {
  text-align: left;
}

.social-link {
  display: inline-flex !important;
  align-items: center;
  gap: 0.7rem;
}

.social-link svg {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  fill: currentColor;
}

.contact-row:not(:first-child) .social-link {
  border-bottom: 1px solid transparent;
}

.contact-row:not(:first-child) .social-link:hover {
  border-color: var(--text);
}

/* ─── Logo + navigation visibility final patch ─────────── */

nav {
  border-bottom: 2px solid rgba(5, 5, 5, 0.34);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

nav.scrolled {
  border-bottom-color: rgba(5, 5, 5, 0.48);
}

.page {
  scroll-margin-top: 84px;
}

.page:not(#page-home) {
  padding-top: 18px;
}

.page-header {
  padding-top: 28px;
}

#page-contact .page-header {
  padding-top: 18px;
  padding-bottom: 18px;
}

.school-title {
  align-items: center;
  gap: 1rem;
}

.school-logo {
  width: 86px;
  height: 86px;
  padding: 0.35rem;
  object-fit: contain;
  border: 1px solid rgba(5, 5, 5, 0.16);
  border-radius: 8px;
  background: #fff;
}

@media (max-width: 680px) {
  .page {
    scroll-margin-top: 126px;
  }

  .page:not(#page-home) {
    padding-top: 10px;
  }

  .school-logo {
    width: 68px;
    height: 68px;
  }
}

/* ─── Minimal technical refresh ───────────────────────── */

body {
  background-color: #f7f7f5;
  background-image: radial-gradient(rgba(0, 0, 0, 0.075) 1px, transparent 1px);
  background-size: 22px 22px;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  color: #050505;
}

nav {
  position: static;
  background: transparent;
  border-bottom: 1px solid #deded8;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

nav.scrolled {
  border-bottom-color: #deded8;
}

.nav-inner,
.hero-inner,
.section-inner,
.page-header-inner,
.footer-inner,
.divider {
  max-width: 1060px;
}

.nav-inner {
  padding: 1.45rem 2rem;
  align-items: center;
}

.nav-brand {
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.nav-links {
  gap: 2rem;
}

.nav-links a,
.section-label,
.achieve-tag,
.sport-highlight,
.contact-label,
.footer-left,
.project-kicker {
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links a {
  padding: 0;
  border-radius: 0;
  color: #8f8f8b;
  font-size: 0.72rem;
  font-weight: 500;
  transition: color 0.18s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: transparent;
  color: #050505;
  transform: none;
}

header {
  padding: 96px 0 58px;
}

.hero-inner {
  align-items: flex-start;
  gap: 4rem;
}

.hero-name {
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(3.3rem, 9vw, 7.25rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.88;
  color: #050505;
  margin-bottom: 1.35rem;
}

.hero-philosophy,
.page-subtitle,
.coming-soon-large,
.coming-soon-sub {
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-style: normal;
}

.hero-philosophy {
  max-width: 36rem;
  font-size: 0.92rem;
  color: #777775;
}

.hero-image-wrap {
  width: 210px;
  padding: 0;
  border: 1px solid #d9d9d3;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: none;
}

.hero-image-wrap:hover {
  transform: none;
  border-color: #d9d9d3;
  box-shadow: none;
}

.hero-portrait {
  height: 292px;
  border-radius: 0;
  box-shadow: none;
}

.divider,
.full-divider {
  background: #deded8;
}

section {
  padding: 24px 0;
}

.section-inner {
  border-radius: 0;
  transition: none;
}

section:hover .section-inner {
  background: transparent;
  box-shadow: none;
  transform: none;
}

.section-label {
  min-width: 130px;
  color: #999995;
  font-size: 0.68rem;
  font-weight: 600;
}

.body-text,
.edu-detail,
.achieve-desc,
.sport-achievement,
.contact-link,
.work-card p,
.fun-project-list {
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

.body-text {
  max-width: 650px;
  font-size: 0.96rem;
  line-height: 1.85;
  color: #262626;
}

.inline-age,
.edu-school,
.achieve-title,
.sport-name,
.work-card h2,
.fun-project-list strong,
.page-title {
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

.wiki-hover {
  color: #111;
  border-bottom-color: #b8b8b2;
}

.wiki-hover:hover {
  background: transparent;
  border-color: #050505;
}

.wiki-hover::after,
.hover-card {
  box-shadow: none;
}

.achieve-block,
.sport-block,
.contact-row,
.fun-project-list li {
  transition: none;
}

.achieve-block:hover,
.sport-block:hover,
.contact-row:hover,
.fun-project-list li:hover {
  background: transparent;
  transform: none;
}

.edu-tag,
.scholarship-badge {
  border-color: #d9d9d3;
  border-radius: 0;
  background: transparent;
  color: #777775;
}

.page-header {
  padding: 40px 0 20px;
}

.page-title {
  font-size: clamp(2.6rem, 7vw, 5.7rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
  text-transform: uppercase;
}

.contact-photo {
  border-radius: 0;
  box-shadow: none;
  border: 1px solid #d9d9d3;
}

.project-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.large-works-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.work-card {
  max-width: 360px;
  transition: none;
}

.work-card:hover {
  transform: none;
}

.work-image {
  border: 1px solid #d6d6d1;
  border-radius: 0;
  box-shadow: none;
  transition: none;
}

.work-card:hover .work-image {
  border-color: #050505;
  filter: none;
  box-shadow: none;
}

.work-card h2 {
  margin-top: 0.95rem;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.work-card p {
  max-width: 320px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #777775;
}

.footer-icon:hover {
  color: #050505;
}

@media (max-width: 680px) {
  .nav-inner {
    padding: 1rem;
  }

  header {
    padding: 62px 0 42px;
  }

  .hero-name {
    font-size: clamp(2.75rem, 14vw, 4.2rem);
  }

  .hero-image-wrap {
    width: min(210px, 62vw);
  }

  .hero-portrait {
    height: 292px;
  }

  .work-card {
    max-width: none;
  }
}

/* ─── Cinematic premium interaction pass ───────────────── */

:root {
  --bg: #f7f7f4;
  --bg-soft: rgba(255, 255, 255, 0.74);
  --text: #050505;
  --muted: #777a80;
  --faint: #d9d9d2;
  --line: rgba(8, 8, 8, 0.1);
  --dot: rgba(10, 10, 10, 0.075);
  --accent: #111;
  --card: rgba(255, 255, 255, 0.78);
  --shadow: 0 22px 70px rgba(16, 24, 40, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #08090b;
  --bg-soft: rgba(15, 16, 20, 0.78);
  --text: #f4f4f1;
  --muted: #9ba0aa;
  --faint: #2a2d34;
  --line: rgba(255, 255, 255, 0.11);
  --dot: rgba(255, 255, 255, 0.08);
  --accent: #f4f4f1;
  --card: rgba(18, 19, 24, 0.76);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 26rem),
    radial-gradient(circle at 84% 30%, color-mix(in srgb, #7c8cff 10%, transparent), transparent 24rem),
    radial-gradient(var(--dot) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 22px 22px, auto;
  color: var(--text);
  transition: background-color 0.45s ease, color 0.45s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

:root[data-theme="dark"] body::before {
  opacity: 0.08;
  mix-blend-mode: screen;
}

nav {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background 0.45s ease, border-color 0.45s ease;
}

.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
}

.nav-brand,
.nav-links a,
.theme-toggle,
.section-label,
.contact-label,
.footer-left {
  color: var(--text);
}

.nav-links {
  justify-content: center;
}

.nav-links a {
  position: relative;
  color: var(--muted);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.42rem;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.24s ease;
}

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

.theme-toggle {
  position: relative;
  width: 42px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.45s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--text) 32%, transparent);
}

.theme-icon {
  position: absolute;
  font-size: 0.9rem;
  transition: transform 0.34s ease, opacity 0.34s ease;
}

.theme-moon {
  opacity: 0;
  transform: translateY(16px) rotate(-20deg);
}

:root[data-theme="dark"] .theme-sun {
  opacity: 0;
  transform: translateY(-16px) rotate(20deg);
}

:root[data-theme="dark"] .theme-moon {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

.page.active {
  animation: pageIn 0.36s ease both;
}

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

.hero-inner {
  min-height: clamp(440px, 64vh, 660px);
  display: grid;
  grid-template-columns: 1fr clamp(240px, 28vw, 320px);
  align-items: start;
  gap: 3rem;
}

.hero-text {
  min-width: 0;
}

.hero-name {
  color: var(--text);
  animation: heroNameIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-philosophy {
  color: var(--muted);
  animation: revealUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.16s both;
}

.hero-image-wrap {
  --parallax-y: 0px;
  width: clamp(220px, 20vw, 330px);
  max-width: 34vw;
  border-radius: var(--radius-xl);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: none;
  transform: translateY(var(--parallax-y));
  animation: imageIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.45s ease;
}

.hero-image-wrap:hover {
  transform: translateY(calc(var(--parallax-y) - 4px)) scale(1.018);
  border-color: color-mix(in srgb, var(--text) 20%, transparent);
  box-shadow: var(--shadow);
}

.hero-portrait {
  width: 100%;
  height: auto;
  max-height: min(54vh, 460px);
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius-xl);
}

@keyframes heroNameIn {
  from { opacity: 0; transform: translateY(28px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes imageIn {
  from { opacity: 0; transform: translateY(28px) scale(0.96); filter: blur(8px); }
  to { opacity: 1; transform: translateY(var(--parallax-y)) scale(1); filter: blur(0); }
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(18px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

[data-reveal],
.reveal,
.section-inner {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.68s ease, transform 0.68s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.divider,
.full-divider {
  background: var(--line);
}

.body-text,
.achieve-desc,
.sport-achievement,
.edu-detail,
.contact-link,
.coming-copy {
  color: var(--muted);
}

.edu-school,
.achieve-title,
.sport-name,
.page-title,
.inline-age,
.contact-link:hover {
  color: var(--text);
}

.info-token {
  position: relative;
  display: inline-block;
  color: var(--text);
  font-weight: 600;
  border-bottom: 1px solid color-mix(in srgb, var(--text) 28%, transparent);
  cursor: help;
  outline: none;
}

.info-token:hover,
.info-token:focus-visible {
  border-bottom-color: var(--text);
}

.info-card {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.75rem);
  z-index: 20;
  width: min(280px, calc(100vw - 2rem));
  padding: 0.95rem;
  display: grid;
  gap: 0.35rem;
  color: var(--text);
  background: color-mix(in srgb, var(--card) 92%, var(--bg));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.45s ease;
}

.info-token:hover .info-card,
.info-token:focus-visible .info-card {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.info-card strong {
  font-size: 0.82rem;
  line-height: 1.2;
}

.info-card span {
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
}

.info-card-person {
  width: 300px;
}

.info-card-person img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 0.35rem;
}

.coming-projects {
  position: relative;
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.8rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--text) 7%, transparent), transparent 12rem),
    linear-gradient(135deg, color-mix(in srgb, var(--card) 76%, transparent), transparent);
  transition: border-color 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease, background 0.45s ease;
}

.coming-projects:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--text) 18%, transparent);
  box-shadow: var(--shadow);
}

.coming-projects::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.35;
  mask-image: radial-gradient(circle, black, transparent 74%);
  animation: gridDrift 12s linear infinite;
}

.coming-orbit {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.coming-orbit::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  top: -4px;
  left: 50%;
  border-radius: 50%;
  background: var(--text);
  transform-origin: 0 26px;
  animation: orbit 2.8s linear infinite;
}

.coming-title {
  position: relative;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--text);
}

.coming-copy {
  position: relative;
  max-width: 28rem;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.65;
}

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

@keyframes gridDrift {
  to { background-position: 42px 42px; }
}

.contact-shell {
  display: block;
}

.contact-list {
  max-width: 680px;
}

.contact-row {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-row:hover {
  background: transparent;
  transform: none;
}

.contact-photo {
  display: none;
}

.work-image,
.hero-portrait,
.contact-photo,
.project-card,
.work-card,
.coming-projects,
.info-card {
  border-radius: var(--radius-xl);
}

@media (max-width: 900px) {
  .hero-inner {
    min-height: auto;
    align-items: flex-start;
  }

  .hero-image-wrap {
    max-width: 42vw;
  }
}

@media (max-width: 680px) {
  .nav-inner {
    grid-template-columns: auto auto;
  }

  .nav-links {
    grid-column: 1 / -1;
    order: 3;
    max-width: 100%;
    justify-content: flex-start;
  }

  .theme-toggle {
    justify-self: end;
  }

  .hero-inner {
    align-items: center;
  }

  .hero-image-wrap {
    width: min(250px, 74vw);
    max-width: none;
  }

  .hero-portrait {
    max-height: none;
  }

}

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

/* ─── Final minimalist single-page refinement ──────────── */

:root {
  --bg: #f7f7f4;
  --text: #050505;
  --muted: #74777d;
  --line: rgba(5, 5, 5, 0.13);
  --card: #ffffff;
  --dot: rgba(5, 5, 5, 0.065);
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.13);
  --radius-xl: 28px;
  --radius-lg: 22px;
  color-scheme: light;
}

body {
  overflow-x: hidden;
  background:
    radial-gradient(var(--dot) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.78), rgba(247,247,244,0.92)),
    var(--bg);
  background-size: 19px 19px, auto, auto;
}

body::before {
  opacity: 0.045;
}

nav {
  position: sticky;
  top: 0;
}

.nav-inner {
  grid-template-columns: auto 1fr;
  min-height: 92px;
}

.nav-brand {
  text-decoration: none;
}

.page {
  display: block;
  min-height: auto;
  scroll-margin-top: 110px;
}

.page.active {
  display: block;
}

.page:not(#page-home) {
  padding-top: 0;
}

#page-home {
  min-height: calc(100vh - 92px);
}



.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(240px, 24vw, 340px);
  min-height: calc(100vh - 170px);
  gap: clamp(2rem, 5vw, 5rem);
  padding-top: 0;
  padding-bottom: clamp(3rem, 8vh, 6rem);
  align-content: start;
}

.hero-name {
  max-width: 100%;
  font-size: clamp(3.6rem, 7.1vw, 7.2rem);
  letter-spacing: -0.055em;
  line-height: 0.92;
  white-space: nowrap;
}

.hero-philosophy {
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
}

.hero-image-wrap {
  width: 100%;
  max-width: none;
  align-self: center;
  border-radius: var(--radius-xl);
  background: var(--card);
  padding: 0;
}

.hero-portrait {
  display: block;
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: contain;
  border-radius: var(--radius-xl);
}

.hero-image-wrap:hover {
  transform: translateY(calc(var(--parallax-y) - 3px)) scale(1.012);
  box-shadow: var(--shadow);
}

.section-inner {
  overflow: visible;
}

.body-text {
  font-size: clamp(1.05rem, 2vw, 1.55rem);
  line-height: 1.78;
  max-width: 820px;
}

.info-token {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(5, 5, 5, 0.32);
  text-underline-offset: 0.16em;
}

.info-token::after {
  content: "↗";
  font-size: 0.55em;
  margin-left: 0.12em;
  opacity: 0.55;
}

.info-card {
  background: #fff;
  color: #050505;
  border: 1px solid rgba(5, 5, 5, 0.12);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
  opacity: 0;
  backdrop-filter: none;
}

.info-card::after {
  content: none;
}

.info-card span {
  color: #5f636a;
}

.info-card-person img {
  border-radius: 18px;
}

.school-title {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.school-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 12px;
}

.page-title {
  font-size: clamp(2.6rem, 5vw, 4.6rem);
}

.coming-projects {
  min-height: 220px;
  border-radius: var(--radius-xl);
}

#page-contact .page-header {
  padding-bottom: 32px;
}

.contact-shell {
  max-width: 1080px;
}

.contact-list {
  max-width: none;
}

.contact-row:first-child {
  display: block;
  padding: clamp(2rem, 4vw, 3.4rem) 0;
}

.contact-row:first-child .contact-label {
  display: block;
  margin-bottom: 1rem;
  font-size: clamp(1rem, 1.7vw, 1.45rem);
}

.contact-row:first-child .contact-link {
  display: inline-block;
  max-width: 100%;
  font-size: clamp(2.1rem, 5.2vw, 5.3rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  word-break: break-word;
  border-bottom: 0;
}

.contact-row:not(:first-child) {
  display: inline-flex;
  width: auto;
  margin-right: clamp(1.5rem, 4vw, 3.5rem);
  border-bottom: 0;
  padding: 1.1rem 0;
}

.contact-row:not(:first-child) .contact-label {
  display: none;
}

.contact-row:not(:first-child) .contact-link {
  font-size: clamp(1.05rem, 2.1vw, 1.7rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
}

.contact-row:not(:first-child) .contact-link:hover {
  border-color: var(--text);
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-name {
    white-space: normal;
    font-size: clamp(3.3rem, 13vw, 6.5rem);
  }

  .hero-image-wrap {
    width: min(320px, 72vw);
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .nav-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-inner {
    padding-top: 2.5rem;
  }

  .hero-image-wrap {
    justify-self: center;
  }

  .body-text {
    font-size: 1.04rem;
  }

  .contact-row:not(:first-child) {
    display: block;
    margin-right: 0;
  }
}

/* ═══════════════════════════════════════════
   PREMIUM EFFECTS & ANIMATIONS
   ═══════════════════════════════════════════ */

/* ─── Smooth scroll ───────────────────────── */
html {
  scroll-behavior: smooth;
}

/* ─── Hero name: stagger letter reveal ───── */
.hero-name {
  animation: heroNameIn 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-philosophy {
  animation: revealUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}

.hero-image-wrap {
  animation: imageIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

/* ─── Page transition on nav click ────────── */
.page {
  animation: pageFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

/* ─── Page title entrance ──────────────────── */
.page-title {
  animation: titleReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

.page-subtitle {
  animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}

@keyframes titleReveal {
  from { opacity: 0; transform: translateY(22px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

/* ─── Section reveal on scroll ─────────────── */
.section-inner {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ─── Nav link hover: smooth lift ──────────── */
.nav-links a {
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.nav-links a:hover {
  transform: translateY(-1px);
  opacity: 1;
}

/* ─── Footer icon hover ─────────────────────── */
.footer-icon {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-icon:hover {
  opacity: 1 !important;
  transform: translateY(-2px);
}

/* ─── Info token hover: smooth ──────────────── */
.info-token {
  transition: border-color 0.2s ease, color 0.2s ease;
}

/* ─── Achieve / sport block hover ───────────── */
.achieve-block,
.sport-block {
  transition: background 0.24s ease, transform 0.24s ease;
}

/* ─── Cal link smooth ───────────────────────── */
.cal-link {
  transition: opacity 0.24s ease, gap 0.24s ease;
}

/* ─── Cursor glow on hero ───────────────────── */
@keyframes heroNameIn {
  from { opacity: 0; transform: translateY(32px); filter: blur(10px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(20px); filter: blur(5px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

@keyframes imageIn {
  from { opacity: 0; transform: translateY(30px) scale(0.97); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    filter: blur(0); }
}

/* ─── Respect reduced motion ────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-name,
  .hero-philosophy,
  .hero-image-wrap,
  .page,
  .page-title,
  .page-subtitle,
  .section-inner {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* ─── CAL.COM LINK ────────────────────────── */
.cal-link {
  gap: 0.6rem;
}

.cal-arrow {
  width: 0.72em;
  height: 0.72em;
  flex-shrink: 0;
  opacity: 0.5;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.cal-link:hover .cal-arrow {
  transform: translateX(3px);
  opacity: 0.9;
}

/* ═══════════════════════════════════════════
   PREMIUM POLISH ADDITIONS (Implementation)
   ═══════════════════════════════════════════ */

/* ─── Scroll Progress ─── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--text);
  width: 0%;
  z-index: 1000;
  transition: width 0.1s ease-out;
  pointer-events: none;
}
:root[data-theme="dark"] #scroll-progress {
  background: var(--text);
}

/* ─── Nav Slider ─── */
.nav-links {
  position: relative;
}
.nav-links a::after {
  display: none !important; /* Hide old underline logic */
}
.nav-slider {
  position: absolute;
  bottom: -0.42rem;
  left: 0;
  height: 1.5px;
  background: var(--text);
  transition: left 0.4s cubic-bezier(0.25, 1, 0.5, 1), width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

/* ─── Word-by-word Reveal ─── */
.word-reveal {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.char-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: revealWordUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes revealWordUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Base override to stop original hero/title animations hiding the text */
.hero-name, .page-title {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/* ─── Focus Visible Accessibility ─── */
:focus-visible {
  outline: 2px solid var(--text) !important;
  outline-offset: 4px;
}
a:focus-visible, button:focus-visible {
  border-radius: 4px;
}
.nav-links a:focus-visible {
  outline-offset: 8px;
}

/* ─── Back to top button ─── */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  border: none;
  cursor: pointer;
  z-index: 100;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
  display: grid;
  place-items: center;
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#back-to-top:hover {
  background: var(--muted);
  transform: translateY(-2px);
}
#back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ─── Info card flip: show below when space is tight above ─── */
.info-token.card-flip .info-card,
.info-token.card-flip.info-token-thiel .info-card {
  bottom: auto;
  top: calc(100% + 0.75rem);
  transform: translateX(-50%) translateY(-8px) scale(0.98);
}

.info-token.card-flip:hover .info-card,
.info-token.card-flip:focus-visible .info-card {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* ═══════════════════════════════════════════════════════════
   MOBILE POLISH — Premium Responsive Overhaul
   Applies to phones ≤ 480px and small tablets ≤ 680px
   ═══════════════════════════════════════════════════════════ */

/* ─── Shared mobile base (≤ 680px) ─────────────────────── */
@media (max-width: 680px) {

  /* --- Body & global --- */
  body {
    overflow-x: hidden;
  }

  /* --- Navigation --- */
  nav {
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .nav-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.25rem 0.75rem;
    min-height: auto;
  }

  .nav-brand {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    align-self: center;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.2rem 0.75rem;
    max-width: 100%;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .nav-links a {
    flex: 0 0 auto;
    font-size: 0.64rem;
    letter-spacing: 0.13em;
    padding: 0.28rem 0.4rem;
    white-space: nowrap;
  }

  /* Keep the slider hidden on mobile — wrapping nav breaks absolute positioning */
  .nav-slider {
    display: none;
  }

  /* --- Hero section --- */
  header {
    padding: 0;
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    padding: 2rem 1.25rem 2.5rem;
    min-height: auto;
  }

  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero-name {
    font-size: clamp(2.6rem, 11.5vw, 3.8rem);
    letter-spacing: -0.03em;
    line-height: 0.92;
    white-space: normal;
    word-break: break-word;
    margin-bottom: 1.1rem;
    max-width: 100%;
  }

  .hero-philosophy {
    font-size: 0.88rem;
    line-height: 1.7;
    max-width: 30rem;
    text-align: center;
  }

  .hero-image-wrap {
    width: min(200px, 56vw);
    max-width: none;
    align-self: center;
    justify-self: center;
    order: -1; /* portrait above name on mobile */
  }

  .hero-portrait {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    object-position: top center;
  }

  /* --- Sections --- */
  section {
    padding: 40px 0;
  }

  .section-inner {
    flex-direction: column;
    gap: 0.6rem;
    padding: 0 1.25rem;
    align-items: flex-start;
  }

  .section-label {
    min-width: unset;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    padding-top: 0;
    margin-bottom: 0.2rem;
  }

  .section-content {
    width: 100%;
  }

  /* --- Body text --- */
  .body-text {
    font-size: 0.92rem;
    line-height: 1.82;
    max-width: 100%;
  }

  .body-text + .body-text {
    margin-top: 1.1rem;
  }

  /* --- Dividers --- */
  .divider {
    max-width: calc(100% - 2.5rem);
    margin: 0 1.25rem;
  }

  /* --- Page headers (non-home pages) --- */
  .page-header {
    padding: 2rem 0 1.75rem;
  }

  .page-header-inner {
    padding: 0 1.25rem;
  }

  .page-title {
    font-size: clamp(2.2rem, 10vw, 3.4rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
  }

  .page-subtitle {
    font-size: 0.84rem;
    margin-top: 0.45rem;
    line-height: 1.6;
  }

  /* --- Achievement blocks --- */
  .achieve-block {
    flex-direction: column;
    gap: 0.35rem;
    padding-left: 0;
    padding-right: 0;
  }

  .achieve-tag {
    font-size: 0.58rem;
  }

  .achieve-title {
    font-size: 0.95rem;
  }

  .achieve-desc {
    font-size: 0.84rem;
  }

  /* --- Sports blocks --- */
  .sport-block {
    padding: 1.1rem 0;
  }

  .sport-name {
    font-size: 0.95rem;
  }

  .sport-achievement {
    font-size: 0.84rem;
  }

  /* --- Education --- */
  .school-title {
    gap: 0.75rem;
  }

  .school-logo {
    width: 52px;
    height: 52px;
  }

  .edu-school {
    font-size: 0.94rem;
  }

  /* --- Contact --- */
  .contact-shell {
    display: block;
    max-width: 100%;
  }

  .contact-list {
    max-width: 100%;
  }

  .contact-row {
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.85rem 0;
  }

  .contact-row:first-child {
    padding: 1.4rem 0;
  }

  .contact-row:first-child .contact-link {
    font-size: clamp(1.8rem, 8vw, 3rem);
    letter-spacing: -0.035em;
    line-height: 1.1;
    word-break: break-all;
  }

  .contact-row:not(:first-child) {
    display: flex;
    width: 100%;
    margin-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0.85rem 0;
  }

  .contact-label {
    display: block !important;
    font-size: 0.6rem;
    margin-bottom: 0.25rem;
  }

  .contact-link {
    font-size: 0.92rem;
  }

  /* --- Projects grid --- */
  .project-grid,
  .large-works-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .work-card {
    max-width: 100%;
  }

  /* --- Footer --- */
  .footer-inner {
    padding: 1.25rem 1.25rem 0;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    text-align: center;
  }

  /* --- Info cards: prevent overflow on mobile --- */
  .info-card {
    width: min(260px, calc(100vw - 2.5rem));
  }

  .info-card-person {
    width: min(260px, calc(100vw - 2.5rem));
  }

  /* --- Coming soon blocks --- */
  .coming-projects {
    min-height: 140px;
  }

  .coming-title {
    font-size: clamp(1.7rem, 8vw, 2.6rem);
  }

  .coming-copy {
    font-size: 0.84rem;
    text-align: left;
    max-width: 100%;
  }
}

/* ─── Extra small phones (≤ 400px) ─────────────────────── */
@media (max-width: 400px) {

  .nav-inner {
    padding: 0.7rem 1rem 0.65rem;
  }

  .nav-links a {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    padding: 0.24rem 0.32rem;
  }

  .hero-name {
    font-size: clamp(2.2rem, 12vw, 3rem);
  }

  .hero-image-wrap {
    width: min(170px, 52vw);
  }

  .hero-portrait {
    max-height: 240px;
  }

  .body-text {
    font-size: 0.89rem;
  }

  .page-title {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .contact-row:first-child .contact-link {
    font-size: clamp(1.5rem, 9vw, 2.2rem);
  }
}


/* ─── Footer changelog note ─────────────────── */
.footer-updated {
  font-size: 0.68em;
  letter-spacing: 0.06em;
  color: var(--muted, #aaa);
  opacity: 0.55;
  margin-left: 0.4em;
}

/* --- Compact overview hero layout --- */
header#overview {
  padding: clamp(1.6rem, 4vh, 2.8rem) 0 clamp(2.2rem, 5vh, 3.6rem);
}

header#overview .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(300px, 25vw, 360px);
  column-gap: clamp(3.5rem, 8vw, 7rem);
  align-items: start;
  min-height: 0;
  padding: 0 2rem;
}

header#overview .hero-text {
  max-width: min(100%, 860px);
}

header#overview .hero-name {
  font-size: clamp(4rem, 5.9vw, 6.35rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  white-space: nowrap;
  margin-bottom: clamp(1rem, 2vh, 1.4rem);
}

header#overview .hero-philosophy {
  max-width: 36rem;
  margin-bottom: clamp(0.9rem, 2vh, 1.35rem);
}

header#overview .about-text-container {
  margin-top: 0;
}

header#overview .about-label {
  display: block;
  min-width: 0;
  margin-bottom: 0.85rem;
  padding-top: 0;
}

header#overview .body-text {
  max-width: 100%;
  font-size: clamp(0.96rem, 1.18vw, 1.08rem);
  line-height: 1.74;
}

header#overview .body-text + .body-text {
  margin-top: 1rem;
}

header#overview .hero-image-wrap {
  width: 100%;
  max-width: none;
  align-self: start;
  justify-self: end;
  order: initial;
  overflow: hidden;
  padding: 0;
  margin-top: 0.2rem;
  border-radius: var(--radius-xl);
}

header#overview .hero-portrait {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  filter: contrast(1.04);
}

header#overview + .divider {
  opacity: 0.75;
}

#education {
  padding-top: clamp(2rem, 4vh, 3rem);
}

.edu-capsules {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.edu-capsule {
  font-family: Inter, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.35rem 0.85rem;
  background: var(--bg-soft, rgba(255, 255, 255, 0.4));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  cursor: default;
  user-select: none;
}

.edu-capsule:hover {
  transform: translateY(-1px) scale(1.02);
  border-color: var(--text);
  color: var(--text);
  background: var(--bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.capsule-bold {
  font-weight: 700;
  color: var(--text);
}

@media (max-width: 680px) {
  .edu-capsules {
    gap: 0.5rem;
  }
  .edu-capsule {
    font-size: 0.68rem;
    padding: 0.3rem 0.75rem;
  }
}

@media (max-width: 980px) {
  header#overview {
    padding-top: 1.75rem;
  }

  header#overview .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 30vw);
    column-gap: clamp(2rem, 4vw, 3rem);
  }

  header#overview .hero-name {
    font-size: clamp(3.2rem, 6vw, 4.75rem);
  }
}

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .nav-inner {
    max-width: 100%;
    overflow: hidden;
  }

  .nav-links {
    max-width: 100%;
    overflow-x: auto;
  }

  header#overview {
    padding: 1.75rem 0 1.25rem;
  }

  header#overview .hero-inner {
    display: flex;
    flex-direction: column;
    padding: 0 1.25rem;
    text-align: center;
    overflow: hidden;
  }

  header#overview .hero-text {
    align-items: center;
  }

  header#overview .hero-name {
    max-width: 100%;
    font-size: clamp(2rem, 10vw, 2.35rem);
    line-height: 0.9;
    letter-spacing: -0.035em;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  header#overview .hero-philosophy {
    max-width: min(100%, 22rem);
    margin: 0 auto;
    font-size: 0.84rem;
    line-height: 1.55;
  }

  header#overview .about-text-container {
    width: 100%;
    max-width: 38rem;
    align-self: center;
    text-align: left;
  }

  header#overview .body-text {
    overflow-wrap: break-word;
  }

  header#overview .hero-image-wrap {
    width: min(230px, 60vw);
    align-self: center;
    order: -1;
    margin-top: 0;
  }

  header#overview .hero-portrait {
    height: auto;
    min-height: 0;
    max-height: 300px;
    object-fit: cover;
    object-position: top center;
  }
}

@media (max-width: 400px) {
  header#overview .hero-name {
    font-size: clamp(1.95rem, 9.5vw, 2.25rem);
  }

  header#overview .hero-image-wrap {
    width: min(180px, 54vw);
  }
}

/* ═══════════════════════════════════════════
   INTERESTS PORTAL — CINEMATIC ARCHIVE
   ═══════════════════════════════════════════ */

#interests-portal .section-inner {
  max-width: 1200px;
}

#interests-portal .section-content {
  flex: 1;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  padding-bottom: 6rem;
  width: 100%;
}

.portal-card {
  position: relative;
  aspect-ratio: 16/10;
  background: #000;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #e0e0db;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.4s ease,
              box-shadow 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: #050505;
  box-shadow: 0 40px 80px rgba(0,0,0,0.12);
}

.card-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.6);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.8s ease;
}

.portal-centered-container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0.5rem 2rem 8rem 2rem;
}

.portal-card:hover .card-media img {
  transform: scale(1.1);
  filter: grayscale(0.4) brightness(0.8);
}

.media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.85) 100%);
  opacity: 0.9;
}

.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: clamp(1.5rem, 5vw, 3rem);
  color: #fff;
  z-index: 5;
  box-sizing: border-box;
}

.card-num {
  font-family: monospace;
  font-size: 0.75rem;
  opacity: 0.6;
  display: block;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 0.5rem;
  letter-spacing: -0.04em;
  color: #fff;
  word-wrap: break-word;
}

.card-kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.7;
}

/* --- Animated Overlays --- */
.telemetry-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portal-card:hover .telemetry-overlay {
  opacity: 0.4;
}

.line-svg {
  width: 100%;
  height: 100%;
  stroke: #fff;
  stroke-width: 0.5;
  fill: none;
  stroke-dasharray: 100;
  animation: lineFlow 4s linear infinite;
}

@keyframes lineFlow {
  to { stroke-dashoffset: -200; }
}

.terminal-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,255,0,0.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portal-card:hover .terminal-overlay {
  opacity: 1;
}

.grain-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
}

/* --- Immersive Portal View --- */
.portal-immersive-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              visibility 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-immersive-modal.active {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: #f7f7f5;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
}

.modal-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  border: none;
  background: transparent;
  padding: 0;
  box-shadow: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.modal-close {
  position: fixed;
  top: 2.5rem;
  left: 2.5rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0,0,0,0.05);
  padding: 0.8rem 1.5rem;
  border-radius: 40px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: Inter, "Helvetica Neue", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #111;
  cursor: pointer;
  z-index: 20000;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, color 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.modal-close:hover {
  background: #111;
  color: #fff;
  transform: translateY(-2px);
  border-color: #111;
}

/* --- Dynamic Media Covers --- */
.dynamic-media-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

.media-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 2.5s cubic-bezier(0.25, 1, 0.5, 1), transform 12s ease-out;
  pointer-events: none;
  filter: grayscale(0.5) brightness(0.6);
  will-change: opacity, transform;
}

.media-layer.active {
  opacity: 1;
  transform: scale(1);
  filter: grayscale(0.2) brightness(0.8);
}

/* Specific section styling overlays */
[data-portal="people"] .media-layer {
  filter: saturate(1.05) brightness(0.82) contrast(1.04);
}
[data-portal="people"] .media-layer.active {
  filter: saturate(1.08) brightness(0.94) contrast(1.02);
}

[data-portal="movies"] .media-layer {
  filter: grayscale(0.6) brightness(0.5) sepia(0.2);
}
[data-portal="movies"] .media-layer.active {
  filter: grayscale(0.3) brightness(0.8) sepia(0.1);
}

.portal-view-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10vh 2rem;
}

.view-header {
  margin-bottom: 6rem;
}

.view-label {
  font-family: monospace;
  font-size: 0.8rem;
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 1rem;
}

.view-title {
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.85;
  margin-bottom: 2rem;
}

.view-intro {
  font-size: 1.5rem;
  max-width: 40rem;
  line-height: 1.5;
  color: #444;
}

/* --- Internal Section Template --- */
.editorial-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 4rem;
  margin-top: 6rem;
}

.editorial-block {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.editorial-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.editorial-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
  z-index: 1;
}

.banner-title {
  position: relative;
  z-index: 10;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.editorial-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.content-group {
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.content-group h4 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  font-family: Inter, sans-serif;
  letter-spacing: -0.01em;
}

.content-group p {
  color: #555;
  line-height: 1.7;
  font-size: 1rem;
}

/* --- Specific Sports UI Elements --- */
.telemetry-ui {
  position: absolute;
  inset: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(200, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.t-label {
  font-family: monospace;
  font-size: 0.75rem;
  color: #ff3333;
  letter-spacing: 0.2em;
}

.t-line-svg {
  width: 100%;
  height: 40px;
  stroke: #ff3333;
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 200;
  animation: lineFlow 3s linear infinite;
  opacity: 0.5;
}

.tactical-ui {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 40px),
              linear-gradient(180deg, rgba(0, 50, 20, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.tac-node {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 15px rgba(255,255,255,0.5);
  animation: pulseNode 2s infinite alternate;
}

.tac-node:nth-child(2) { animation-delay: 0.5s; transform: translateY(-30px); }
.tac-node:nth-child(3) { animation-delay: 1s; transform: translateY(20px); }

@keyframes pulseNode {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 1; }
}

.probability-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  font-size: 2rem;
  color: rgba(255,255,255,0.1);
  letter-spacing: 0.5em;
  background: radial-gradient(circle at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
}

/* --- F1 Dashboard UI --- */
.f1-ui {
  background: #080808;
  color: #00ff00;
  padding: 3rem;
  font-family: monospace;
  border: 1px solid #333;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
  .portal-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .portal-card {
    aspect-ratio: 16/9;
  }
  .card-title {
    font-size: 2rem;
  }
}

@media (max-width: 680px) {
  .portal-view-inner {
    padding: 6vh 1.5rem;
  }
  .subsection-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .view-title {
    font-size: 3.5rem;
  }
}

/* --- Experience Section Extensions --- */
.exp-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.exp-logo-large {
  width: 58px !important;
  height: 58px !important;
  flex-shrink: 0;
}

.exp-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.exp-company-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(34, 197, 94, 0.08);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.15);
  margin-top: 2px;
}

.status-label {
  font-family: Inter, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  color: #16a34a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: #22c55e;
  border-radius: 50%;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: #22c55e;
  opacity: 0.4;
  animation: statusPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes statusPulse {
  0% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

@media (max-width: 680px) {
  .exp-header {
    gap: 1rem;
  }
  .exp-logo-large {
    width: 48px !important;
    height: 48px !important;
  }
}

/* ==============================================
   Research Notebook Typography System
   IBM Plex Mono + Inter + Inter Tight
   ============================================== */

:root {
  --bg: #f8f8f6;
  --bg-soft: #ffffff;
  --text: #080808;
  --muted: #666;
  --faint: #e2e2de;
  --line: rgba(8, 8, 8, 0.14);
  --dot: rgba(8, 8, 8, 0.055);
  --accent: #080808;
  --card: #ffffff;
  --shadow: none;
  --radius-xl: 0;
  --radius-lg: 0;
  --radius-md: 0;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Tight", "Inter", "Helvetica Neue", Arial, sans-serif;
}

:root[data-theme="dark"] {
  --bg: #080808;
  --bg-soft: #101010;
  --text: #f5f5f0;
  --muted: #a8a8a0;
  --faint: #252525;
  --line: rgba(245, 245, 240, 0.16);
  --dot: rgba(245, 245, 240, 0.06);
  --accent: #f5f5f0;
  --card: #101010;
  --shadow: none;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.8;
}

body::before,
.cursor-bg {
  display: none;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

nav {
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

nav.scrolled {
  border-bottom-color: var(--line);
}

.nav-inner,
.hero-inner,
.section-inner,
.page-header-inner,
.footer-inner,
.divider {
  max-width: 1120px;
}

.nav-inner {
  grid-template-columns: auto 1fr auto;
  min-height: 72px;
  padding: 1rem 2rem;
}

.nav-brand,
.nav-links a {
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.nav-brand {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.nav-links {
  gap: clamp(1rem, 2.4vw, 2.2rem);
}

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1;
  padding: 0.4rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a::after {
  bottom: -0.38rem;
  background: var(--text);
}

#scroll-progress {
  background: var(--text);
}

header,
header#overview {
  padding: clamp(3.8rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem);
}

.hero-inner,
header#overview .hero-inner {
  grid-template-columns: minmax(0, 1fr) clamp(260px, 24vw, 340px);
  column-gap: clamp(3rem, 7vw, 6rem);
  align-items: start;
}

.hero-name,
header#overview .hero-name,
.page-title,
.coming-title,
.view-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.05em;
  text-transform: none;
}

.hero-name,
header#overview .hero-name {
  max-width: 9.5ch;
  font-size: clamp(4.1rem, 8.4vw, 8.2rem);
  line-height: 0.82;
  margin-bottom: clamp(1.6rem, 4vw, 3rem);
  white-space: normal;
}

.page-title {
  max-width: 10ch;
  font-size: clamp(3.2rem, 7vw, 6.6rem);
  line-height: 0.86;
}

.page-header {
  padding: clamp(3.2rem, 7vw, 5.8rem) 0 clamp(2.2rem, 5vw, 3.7rem);
}

.page-subtitle,
.hero-identity,
.hero-philosophy,
.coming-soon-sub,
.banner-copy {
  font-family: var(--font-mono);
  font-style: normal;
  letter-spacing: 0;
}

.page-subtitle,
.hero-philosophy {
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 1.75;
}

.section-label,
.about-label,
.achieve-tag,
.sport-highlight,
.contact-label,
.footer-left,
.footer-updated,
.project-kicker,
.blog-card-meta,
.blog-article-meta,
.blog-read-more,
.blog-back-link,
.edu-detail,
.edu-capsule,
.card-num,
.card-kicker,
.status-label,
.placeholder-text {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section-label,
.about-label {
  min-width: 142px;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
  padding-top: 0.25rem;
}

section {
  padding: clamp(2.2rem, 5vw, 4rem) 0;
}

.section-inner {
  gap: clamp(2rem, 6vw, 5rem);
  border-radius: 0;
}

section:hover .section-inner {
  background: transparent;
  box-shadow: none;
  transform: none;
}

.divider,
.full-divider {
  background: var(--line);
}

.section-content,
.body-text,
.achieve-desc,
.sport-achievement,
.work-card p,
.blog-card p,
.blog-markdown p,
.blog-markdown blockquote,
.contact-link,
.fun-project-list {
  font-family: var(--font-mono);
  color: var(--text);
  line-height: 1.8;
}

.body-text,
header#overview .body-text {
  max-width: 720px;
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.8;
}

.info-token {
  border-bottom-color: var(--text);
}

.inline-age,
.edu-school,
.achieve-title,
.sport-name,
.work-card h2,
.blog-card h2,
.card-title,
.banner-title {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.inline-age {
  font-size: 1em;
  color: var(--text);
}

.edu-school,
.achieve-title,
.sport-name {
  font-size: clamp(1rem, 1.5vw, 1.22rem);
}

.edu-detail,
.achieve-desc,
.sport-achievement {
  color: var(--muted);
}

.edu-capsules {
  gap: 0.55rem;
}

.edu-capsule,
.contact-row,
.blog-card,
.hero-image-wrap,
.contact-photo,
.work-image {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.edu-capsule {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.38rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.edu-capsule:hover {
  background: transparent;
  box-shadow: none;
  transform: none;
}

.hero-image-wrap,
header#overview .hero-image-wrap {
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.hero-image-wrap:hover,
header#overview .hero-image-wrap:hover {
  border-color: var(--text);
  box-shadow: none;
  transform: none;
}

.hero-portrait,
header#overview .hero-portrait {
  border-radius: 0;
  box-shadow: none;
  filter: grayscale(1) contrast(1.08);
}

.blog-card {
  border-width: 0 0 1px;
  border-style: solid;
  border-color: var(--line);
  padding: clamp(1.6rem, 4vw, 2.6rem) 0;
}

.blog-card:hover {
  background: transparent;
  border-color: var(--text);
  box-shadow: none;
  transform: none;
}

.blog-card-meta,
.blog-article-meta {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
}

.blog-card h2 {
  max-width: 20ch;
  color: var(--text);
  font-size: clamp(1.7rem, 3.3vw, 2.7rem);
  line-height: 1.05;
}

.blog-card p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1rem;
}

.blog-read-more,
.blog-back-link {
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
}

.blog-article {
  max-width: 820px;
}

.blog-markdown {
  max-width: 700px;
}

.blog-markdown p,
.blog-markdown blockquote {
  color: var(--text);
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  line-height: 1.9;
}

.blog-markdown blockquote {
  border-left: 1px solid var(--text);
  color: var(--muted);
}

.contact-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.contact-link {
  font-weight: 500;
}

.contact-row:hover {
  background: transparent;
}

.footer-left {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
}

.footer-icon {
  color: var(--muted);
}

.footer-icon:hover {
  color: var(--text);
}

.portal-card {
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.portal-card:hover {
  border-color: var(--text);
  box-shadow: none;
}

.card-title {
  font-size: clamp(1.8rem, 5vw, 2.65rem);
  line-height: 1;
}

.card-num,
.card-kicker {
  font-size: 0.72rem;
  font-weight: 700;
}

.theme-toggle {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 760px) {
  .nav-inner {
    min-height: auto;
    padding: 0.95rem 1.25rem;
  }

  .nav-links {
    gap: 0.3rem 0.8rem;
  }

  .nav-links a {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  header,
  header#overview {
    padding: 2.25rem 0 2.75rem;
  }

  .hero-inner,
  header#overview .hero-inner {
    gap: 2rem;
    padding: 0 1.25rem;
  }

  .hero-name,
  header#overview .hero-name {
    max-width: 100%;
    font-size: clamp(2.85rem, 14vw, 4.6rem);
    line-height: 0.88;
    letter-spacing: -0.045em;
  }

  .page-title {
    max-width: 100%;
    font-size: clamp(2.8rem, 13vw, 4.3rem);
  }

  .section-inner {
    gap: 0.85rem;
  }

  .section-label,
  .about-label {
    min-width: 0;
    font-size: 0.66rem;
  }

  .body-text,
  header#overview .body-text,
  .blog-markdown p,
  .blog-markdown blockquote {
    font-size: 0.98rem;
  }

  .blog-card h2 {
    font-size: clamp(1.45rem, 8vw, 2.35rem);
  }
}

@media (max-width: 400px) {
  .nav-links a {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
  }

  .hero-name,
  header#overview .hero-name {
    font-size: clamp(2.35rem, 13vw, 3.15rem);
  }

  .page-title {
    font-size: clamp(2.25rem, 12vw, 3.25rem);
  }
}

/* Hero rhythm correction after legacy animation rules. */
header,
header#overview {
  padding-top: clamp(2.6rem, 5vw, 4.6rem);
}

.hero-name,
header#overview .hero-name {
  line-height: 0.9;
  overflow: visible;
}

.hero-image-wrap,
header#overview .hero-image-wrap {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 760px) {
  .hero-name,
  header#overview .hero-name {
    line-height: 0.98;
    margin-bottom: 1.35rem;
  }
}

/* ==============================================
   Requested polish pass: one-line name, rounded media,
   uppercase headings, education chips
   ============================================== */

.hero-name,
header#overview .hero-name {
  grid-column: 1 / -1;
  max-width: none;
  width: 100%;
  white-space: nowrap;
  font-size: clamp(3.2rem, 5.9vw, 6.6rem);
  line-height: 0.92;
  word-spacing: 0.08em;
  text-align: center;
}

.about-text-container {
  grid-column: 1;
}

.hero-image-wrap,
header#overview .hero-image-wrap {
  grid-column: 2;
}

.hero-text,
header#overview .hero-text {
  max-width: 100%;
}

img,
video,
picture,
iframe,
.card-media,
.dynamic-media-container,
.portal-card,
.hero-image-wrap,
.hero-portrait,
.contact-photo,
.work-image {
  border-radius: 18px;
}

.hero-portrait,
header#overview .hero-portrait,
.card-media img {
  filter: none;
}

.hero-portrait,
header#overview .hero-portrait {
  filter: grayscale(1) contrast(1.08);
  transition: filter 0.28s ease;
}

.hero-image-wrap:hover .hero-portrait,
header#overview .hero-image-wrap:hover .hero-portrait {
  filter: grayscale(0) contrast(1);
}

.hero-image-wrap,
header#overview .hero-image-wrap {
  overflow: hidden;
  border-radius: 20px;
}

.hero-portrait,
header#overview .hero-portrait {
  border-radius: 18px;
}

.school-logo {
  border-radius: 14px;
}

.portal-card {
  border-radius: 18px;
}

.card-media,
.card-media img,
.dynamic-media-container img,
.dynamic-media-container video {
  border-radius: inherit;
}

.section-label,
.about-label,
.page-title,
.card-title,
.blog-card h2,
.achieve-title,
.sport-name,
.edu-school,
.coming-soon-large {
  text-transform: uppercase;
}

.page-title {
  letter-spacing: -0.045em;
}

.edu-detail {
  width: fit-content;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#experience .section-content > .edu-detail {
  color: var(--text) !important;
  font-family: var(--font-mono) !important;
  font-size: 0.82rem;
  font-weight: 700 !important;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.edu-capsules {
  align-items: center;
  gap: 0.55rem;
}

.edu-capsule {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  padding: 0.48rem 0.78rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 88%, var(--bg));
  box-shadow: none;
}

.edu-capsule:hover {
  border-color: var(--text);
  background: var(--card);
  transform: translateY(-1px);
}

.capsule-bold {
  font-family: var(--font-mono);
}

.live-status {
  border-radius: 999px;
}

.exp-entry + .exp-entry {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.6rem, 3vw, 2.4rem);
  border-top: 1px solid var(--line);
}

.stealth-logo {
  position: relative;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #050505;
}

.stealth-logo::before,
.stealth-logo::after,
.stealth-logo span {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 3px;
  transform: rotate(45deg);
}

.stealth-logo::before {
  background: linear-gradient(135deg, #f5f5f5, #707070);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.stealth-logo::after {
  width: 20px;
  height: 28px;
  background: rgba(255, 255, 255, 0.42);
  transform: translate(-6px, 3px) rotate(45deg);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.stealth-logo span {
  width: 18px;
  height: 28px;
  background: rgba(255, 255, 255, 0.24);
  transform: translate(7px, 3px) rotate(45deg);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.stealth-logo-img {
  width: 44px !important;
  height: 44px !important;
  flex: 0 0 44px;
  object-fit: cover;
  border: 0 !important;
  border-radius: 14px !important;
  background: #050505;
  padding: 0 !important;
}

/* --- Inspirations page --- */
.portal-card[data-page] {
  cursor: pointer;
}

.inspirations-header .page-subtitle {
  max-width: 42rem;
}

.inspiration-list {
  display: grid;
  gap: 0.9rem;
  max-width: 760px;
}

.inspiration-list.compact {
  gap: 0.72rem;
}

.inspiration-row {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 1.15rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.inspiration-row:hover {
  background: color-mix(in srgb, var(--card) 70%, transparent);
  border-color: var(--text);
  transform: translateX(8px);
}

.inspiration-num,
.inspiration-row h2 {
  font-family: var(--font-mono);
  font-weight: 700;
}

.inspiration-num {
  color: #0f766e;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  line-height: 1.7;
}

.inspiration-row h2 {
  margin: 0 0 0.22rem;
  color: var(--text);
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.035em;
}

.inspiration-row p {
  max-width: 620px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: clamp(0.92rem, 1.2vw, 1.02rem);
  line-height: 1.7;
}

.inspiration-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.inspiration-card {
  display: grid;
  gap: 0.8rem;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.24s ease, filter 0.24s ease;
}

.inspiration-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 0;
  filter: none;
  transition: filter 0.24s ease, border-color 0.24s ease, transform 0.24s ease;
}

.inspiration-card span {
  font-family: var(--font-mono);
  font-size: clamp(0.86rem, 1.4vw, 1.08rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.inspiration-card:hover {
  transform: translateY(-8px);
}

.inspiration-card:hover img {
  border-color: var(--text);
  filter: none;
  transform: rotate(-1deg);
}

.inspiration-card:hover span {
  color: #0f766e;
}

.inspiration-card.obvious img {
  aspect-ratio: 1 / 1.08;
}

.person-hero {
  display: grid;
  grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
}

.person-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 0;
  filter: grayscale(1) contrast(1.08);
}

.person-kicker {
  display: inline-flex;
  margin-bottom: 1rem;
  color: #0f766e;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.person-notes {
  display: grid;
  gap: 0.9rem;
  max-width: 720px;
}

.person-note {
  margin: 0;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  line-height: 1.8;
}

/* --- Kill List --- */
#kill-list {
  padding-top: clamp(2.6rem, 5vw, 4.4rem);
  padding-bottom: clamp(2.6rem, 5vw, 4.4rem);
}

.kill-list-shell {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 4.5rem);
}

.kill-list-column {
  min-width: 0;
}

.kill-list-heading {
  margin-bottom: 0.85rem;
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--text);
}

.kill-list-items {
  display: grid;
  gap: 0.42rem;
  list-style: none;
}

.kill-item {
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  align-items: baseline;
  column-gap: 0.62rem;
  padding: 0.12rem 0.25rem 0.12rem 0;
  border-radius: 6px;
  color: var(--text);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.kill-text {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.75;
}

.kill-marker {
  display: inline-grid;
  place-items: center;
  width: 0.82rem;
  height: 0.82rem;
  margin-top: 0.42em;
  border: 1px solid color-mix(in srgb, var(--text) 28%, transparent);
  border-radius: 3px;
  color: transparent;
  font-size: 0;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.kill-marker::after {
  content: "";
  color: #0f766e;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
}

.kill-text {
  position: relative;
  width: fit-content;
  max-width: 100%;
  transition: transform 0.2s ease, color 0.2s ease;
}

.kill-text em {
  color: #0f766e;
  font-style: normal;
  font-size: 0.86em;
  letter-spacing: 0;
}

.kill-item:hover {
  background: color-mix(in srgb, var(--card) 72%, transparent);
  transform: translateX(4px);
}

.kill-item:hover .kill-marker {
  border-color: #0f766e;
  transform: rotate(-6deg) scale(1.04);
}

.kill-item:hover .kill-text {
  color: #0f766e;
}

.kill-item.is-done {
  color: color-mix(in srgb, var(--text) 44%, transparent);
}

.kill-item.is-done .kill-marker {
  border-color: #0f766e;
  background: color-mix(in srgb, #0f766e 9%, transparent);
}

.kill-item.is-done .kill-marker::after {
  content: "x";
}

.kill-item.is-done .kill-text::after {
  content: "";
  position: absolute;
  left: -0.08em;
  right: -0.08em;
  top: 54%;
  height: 2px;
  background: currentColor;
  opacity: 0.55;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.kill-item.is-done:hover .kill-text::after {
  opacity: 0.8;
  transform: scaleX(0.92);
}

header#overview .hero-image-wrap,
header#overview .hero-portrait {
  border-radius: 0 !important;
}

.live-status--current {
  color: #16a34a;
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.22);
}

.live-status--current .status-label {
  color: #16a34a;
}

.live-status--past {
  color: var(--text);
  background: color-mix(in srgb, var(--card) 88%, var(--bg));
  border-color: var(--line);
}

.live-status--past .status-label {
  color: var(--text);
}

@media (max-width: 980px) {
  .hero-name,
  header#overview .hero-name {
    font-size: clamp(2.7rem, 7.6vw, 4.8rem);
  }
}

@media (max-width: 760px) {
  .hero-name,
  header#overview .hero-name {
    grid-column: auto;
    width: 100%;
    font-size: clamp(2.15rem, 9.4vw, 3.15rem);
    letter-spacing: -0.055em;
    text-align: center;
  }

  .about-text-container,
  .hero-image-wrap,
  header#overview .hero-image-wrap {
    grid-column: auto;
  }

  .edu-detail {
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    white-space: normal;
  }

  .edu-capsule {
    font-size: 0.62rem;
    padding: 0.42rem 0.66rem;
  }

  .kill-list-shell {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .kill-item {
    grid-template-columns: 1.1rem minmax(0, 1fr);
  }

  .kill-text {
    font-size: 0.92rem;
  }

  .inspiration-row {
    grid-template-columns: 2.2rem minmax(0, 1fr);
    gap: 0.85rem;
    padding: 0.9rem 0;
  }

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

  .person-hero {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .person-photo {
    max-width: 260px;
  }
}

@media (max-width: 400px) {
  .hero-name,
  header#overview .hero-name {
    font-size: clamp(1.95rem, 8.7vw, 2.35rem);
  }
}

/* --- Final typography system: quiet mono portfolio --- */
html,
body {
  font-family: var(--font-mono);
}

.hero-name,
header#overview .hero-name,
.page-title,
.coming-title,
.view-title {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.hero-name,
header#overview .hero-name {
  font-size: clamp(3.6rem, 6.35vw, 7.2rem);
  line-height: 0.98;
  word-spacing: 0;
  white-space: nowrap;
}

.page-title {
  max-width: 13ch;
  font-size: clamp(2.6rem, 5vw, 4.9rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.page-subtitle,
.hero-philosophy,
.body-text,
header#overview .body-text,
.achieve-desc,
.sport-achievement,
.work-card p,
.blog-card p,
.blog-markdown p,
.blog-markdown blockquote,
.contact-link,
.fun-project-list,
.kill-text {
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: -0.015em;
}

.body-text,
header#overview .body-text,
.blog-markdown p,
.blog-markdown blockquote {
  font-size: clamp(0.95rem, 1.05vw, 1.03rem);
  line-height: 1.82;
}

.page-subtitle,
.hero-philosophy,
.achieve-desc,
.sport-achievement,
.blog-card p {
  color: var(--muted);
}

.inline-age,
.edu-school,
.achieve-title,
.sport-name,
.work-card h2,
.blog-card h2,
.card-title,
.banner-title,
.kill-list-heading {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-label,
.about-label,
.contact-label,
.edu-detail,
.edu-capsule,
.status-label,
.project-kicker,
.blog-card-meta,
.blog-article-meta,
.blog-read-more,
.blog-back-link,
.card-kicker,
.card-num {
  font-family: var(--font-mono);
  letter-spacing: 0.11em;
}

#page-contact .page-header {
  padding-bottom: clamp(1.8rem, 4vw, 3rem);
}

#page-contact .page-subtitle {
  max-width: 44rem;
}

.contact-shell {
  max-width: 1080px;
}

.contact-list {
  display: grid;
  gap: 0;
  max-width: 1080px;
}

.contact-row:first-child,
.contact-row:not(:first-child) {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  width: 100%;
  margin-right: 0;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-row:first-child .contact-label,
.contact-row:not(:first-child) .contact-label {
  display: none;
}

.contact-row:first-child .contact-link,
.contact-row:not(:first-child) .contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  width: fit-content;
  max-width: 100%;
  color: var(--text);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  text-transform: none;
  word-break: break-word;
  border-bottom: 1px solid transparent;
}

.contact-row:first-child {
  padding: clamp(1.35rem, 3vw, 2rem) 0;
}

.contact-row:first-child .contact-link {
  font-size: clamp(2.1rem, 4.8vw, 4.9rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.contact-row:first-child .contact-link:hover,
.contact-row:not(:first-child) .contact-link:hover {
  border-color: var(--text);
}

.kill-list-shell {
  align-items: start;
  gap: clamp(2.5rem, 8vw, 6rem);
}

.kill-list-heading {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.kill-list-items {
  gap: 0.56rem;
}

.kill-item {
  grid-template-columns: 1rem minmax(0, 1fr);
  align-items: start;
  column-gap: 0.72rem;
  padding: 0;
}

.kill-marker {
  width: 0.78rem;
  height: 0.78rem;
  margin-top: 0.42rem;
  border-radius: 3px;
}

.kill-text {
  font-size: clamp(0.92rem, 1.05vw, 1rem);
  line-height: 1.72;
}

.kill-item:hover {
  background: transparent;
  transform: translateX(3px);
}

@media (max-width: 980px) {
  .hero-name,
  header#overview .hero-name {
    font-size: clamp(2.6rem, 8vw, 4.5rem);
  }
}

@media (max-width: 760px) {
  .hero-name,
  header#overview .hero-name {
    font-size: clamp(1.95rem, 10.5vw, 3.2rem);
    letter-spacing: -0.045em;
  }

  .page-title {
    font-size: clamp(2.15rem, 11vw, 3.3rem);
  }

  .contact-row:first-child,
  .contact-row:not(:first-child) {
    padding: 1rem 0;
  }

  .contact-row:first-child .contact-link {
    font-size: clamp(1.55rem, 8.5vw, 2.6rem);
  }

  .contact-row:not(:first-child) .contact-link {
    font-size: 1rem;
  }

  .kill-list-shell {
    gap: 2rem;
  }
}

/* Hidden from top navigation; pages stay reachable via direct URL/routing */
.nav-links a.nav-hidden {
  display: none;
}

