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

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

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

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

* {
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

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

a:hover {
  color: #737373;
}

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

/* Fixed top navigation bar. */
.nav-shell {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 1200px);
  z-index: 30;
  padding: 0 32px;
  background: var(--bg);
}

.top-nav {
  width:100%;
  height: 80px;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
}

.logo {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid var(--text);
  font-size: 18px;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.nav-title {
  margin: 0;
  color: var(--muted);
  flex: 1;
}

.nav-links a {
  font-size: 20px;
  line-height: 1.3;
}

.nav-links a.active {
  color: #737373;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

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

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

.chips span {
  border: 2px solid rgb(255, 255, 255);
  padding: 0.4rem 0.65rem;

}

.skills-heading {
  font-family: "KH Teka Medium", sans-serif;
  font-size: clamp(28px, 3.3vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  max-width: 14ch;
}

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

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

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

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

/* Hero section with video background and headline text. */
.hero {
  margin: 16px;
  padding: 80px 32px 1px;
  height: 98vh;
  display: flex;
  flex-direction: column;
}

.hero-media {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #0b0b0b00;
  height: 100%;
}

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

.hero-overlay {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
}

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

.hero-right {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex: 1;
}

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

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

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

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

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

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

.panel {
  padding: 0 32px;
}

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

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

.card {
  border: 1px solid var(--line);
  background: linear-gradient(130deg, #161616 0%, #090909 100%);
  padding: 18px;
}

.card h3,
.card p {
  margin: 0;
}

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

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

.timeline-tiles-wrap {
  margin-top: 30px;
  padding-top: 10px;
  position: relative;
}

.timeline-axis {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, #2e2e2e 0%, #7a7a7a 50%, #2e2e2e 100%);
  opacity: 0.8;
  position: relative;
}

.timeline-axis::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 90px;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.7) 45%, transparent 100%);
  filter: blur(0.4px);
  animation: axis-scan 6s linear infinite;
}

@keyframes axis-scan {
  0% {
    left: -90px;
  }
  100% {
    left: calc(100% + 90px);
  }
}

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

.timeline-tile {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: flex-end;
  min-height: 136px;
  padding: 14px;
  border: 1px solid #3b3b3b;
  background: linear-gradient(145deg, #202020 0%, #111111 100%);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

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

.timeline-tile:nth-child(odd) {
  margin-top: 16px;
}

.timeline-tile:nth-child(even) {
  margin-top: -14px;
}

.timeline-tile:nth-child(even)::after {
  top: auto;
  bottom: -17px;
}

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

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

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

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

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

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

.experience-details {
  margin-top: 40px;
}

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

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

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

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

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

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

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

/* Main content sections below the hero. */
.content-stack {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 0 32px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: 16px;
}

.work-card {
  display: flex;
  padding-bottom: 64px;
}

.work-link {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.work-title-row {
  display: flex;
  align-items: center;
  gap: 2px;
}

.work-title {
  margin: 0;
}

.work-arrow {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  font-size: 16px;
  transform: translate(-20px, 20px);
  transition: transform 0.2s ease;
}

.work-link:hover .work-arrow,
.news-card:hover .work-arrow {
  transform: translate(0, 0);
}

.work-category {
  
  margin: 0;
  opacity: 0.44;
}

.work-intro-category {
  margin: 0;
  gap: 16px;
  opacity: 0.44;
}

.work-media {
  width: 100%;
  aspect-ratio: 1.50134;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  background: linear-gradient(140deg, #1e1e1e 0%, #0b0b0b 100%);
  border: 1px solid #0f0f0f;
  color: #d2d2d2;
}

.work-media-video {
  background: linear-gradient(140deg, #111 0%, #222 100%);
}

/* Split layout blocks for focus/facts sections. */
.split-block {
  border-top: 0.5px solid var(--line);
  padding-top: 16px;
  display: flex;
  gap: 16px;
}

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

.split-main {
  flex: 1 0 0;
}

.split-main-large {
  font-family: "KH Teka Medium", sans-serif;
  font-size: 60px;
  letter-spacing: -0.03em;
  line-height: 1.1;
  white-space: pre-wrap;
  border: 1px;
}

.featured-block {
  border-top: 0.5px solid var(--line);
  padding-top: 16px;
  display: flex;
  margin: 16px;
  align-items: center;
  flex-direction: column;
  gap: 16px;
}

#about {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(320px, 1.2fr);
  gap: 16px;
  align-items: start;
}

#about .split-left,
#about .split-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: center;
}

#about h2 {
  font-family: "KH Teka Medium", sans-serif;
  font-size: clamp(30px, 4.4vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.03;
}

#about .split-right p {
  color: #c3c3c3;
  text-wrap: pretty;
}

.featured-kicker {
  margin: 0;
  letter-spacing: 0.15em;

}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(200px, 1fr));
  gap: 16px;
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-media {
  width: 100%;
  aspect-ratio: 1;
  background: radial-gradient(circle at 25% 15%, #414141 0%, #0f0f0f 62%);
}

.news-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.news-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-title,
.news-text {
  margin: 0;
}

.news-text {
  opacity: 0.5;
  width: 100%;
}

.facts-block .split-main-copy {
  max-width: 768px;
  white-space: pre-wrap;
}

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

.footer-top {
  border-top: 0.5px solid var(--line);
  padding: 16px 32px 0;
  display: flex;
  gap: 16px;
}

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

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

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

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

.footer-spacer {
  height: 10vh;
}

.footer-sign {
  width: 100%;
  padding: 0 20px;
  font-family: "KH Teka Medium", sans-serif;
  font-size: clamp(20px, 15vw, 20px);
  line-height: 0.8;
  letter-spacing: -0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

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

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

.footer-heading {
  padding: 0 32px;
  font-family: "KH Teka Medium", sans-serif;
  font-size: clamp(40px, 6.2vw, 78px);
  letter-spacing: -0.04em;
  line-height: 0.95;
  max-width: 12ch;
}

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

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

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

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

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

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

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

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

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

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

  .nav-shell,
  .hero,
  .content-stack,
  .footer-top,
  .footer-bottom {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {

    padding-top: 64px;
  }

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

  .stack {
    grid-template-columns: 1fr;
  }

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

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

  #about {
    grid-template-columns: 1fr;
  }

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

  .work-card {
    padding-bottom: 44px;
  }

  .featured-grid {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
  }

  .content-stack {
    gap: 40px;
  }

  .split-main-large {
    font-size: 40px;
    letter-spacing: -0.04em;
  }
}

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

  .h2-bold {
    font-size: 42px;
    line-height: 0.98;
  }
  .news-media {
  margin: 0 auto; /* Centers horizontally */
  max-width: 60%; /* Optional: Limit width for readability */
  aspect-ratio: 1;
  background: radial-gradient(circle at 25% 15%, #414141 0%, #0f0f0f 62%);
  }

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

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

  .top-nav {
    height: 64px;
    padding: 16PX;
    padding-left: 16PX;
    display: flex;
    align-items: center; 
    justify-content: space-between;
  }

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

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

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

  .nav-title {
    margin-top: 10px;
    flex: none;
  }

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

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

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

  #about h2 {
    font-size: 42px;
    line-height: 0.98;
  }

  .content-stack {
    padding: 0 16px;
    gap: 20px;
  }

  .panel {
    padding: 0 16px;
  }

  #about {
    grid-template-columns: 1fr;
  }

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

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

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

  .work-grid,
  .featured-grid {
    grid-template-columns: 1fr;
  }

  .work-card {
    padding-bottom: 24px;
  }

  .split-main-large {
    font-size: 32px;
    letter-spacing: -0.02em;
  }

  .news-card {
    gap: 12px;
  }

  .featured-grid {
    gap: 40px;
  }

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

  .footer-heading {
    padding: 0 16px;
    padding-bottom: 16px;
    margin: 0 0 16px;
    font-family: "KH Teka Medium", sans-serif;
    font-size: 40px;
    line-height: 34px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--muted);
  }

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

  .footer-spacer {
    height: 2vh;
  }

  .footer-sign {
    padding: 4px 14px;
    font-size: clamp(20px, 18vw, 20px);
  }

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