@font-face {
  font-family: 'MaskingRenta';
  src: url('fonts/MaskingRenta-MAxjJ.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --orange: #F26522;
  --dark-bg: #FAF9F7;
  --text-primary: #111111;
  --text-secondary: #999999;
  --text-muted: #C0BDB9;
  --divider: rgba(0, 0, 0, 0.07);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--dark-bg);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* ------------------------------------------------------------------ HERO */

.hero {
  position: fixed;
  inset: 0;
  background: #F26522;
  z-index: 0;
  overflow: hidden;
  cursor: default;
}

#wave-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 1;
}


.hero-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
}

.nav-logo {
  font-family: 'MaskingRenta', sans-serif;
  font-size: 18px;
  color: #000;
  user-select: none;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #000;
  text-decoration: none;
  opacity: 0.65;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 0 48px;
  margin-top: calc(50vh - 180px);
}

.hero-headline {
  font-family: 'MaskingRenta', sans-serif;
  font-size: clamp(60px, 9vw, 96px);
  line-height: 0.88;
  color: #000;
  font-weight: normal;
  display: flex;
  flex-direction: column;
}

.hero-subline {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.subline-rule {
  width: 48px;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.subline-text {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(0, 0, 0, 0.55);
}

.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-size: 18px;
  color: rgba(0, 0, 0, 0.35);
  transition: opacity 0.5s ease;
  animation: hint-bounce 2.2s ease-in-out infinite;
  pointer-events: none;
}

.scroll-hint.hidden {
  opacity: 0;
}

@keyframes hint-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* -------------------------------------------------------- CONTENT WRAPPER */

.content-wrapper {
  position: relative;
  z-index: 10;
  margin-top: 100vh;
  background: var(--dark-bg);
  border-radius: 20px 20px 0 0;
}

/* --------------------------------------------------------------- SECTIONS */

.dark-section {
  padding: 80px 48px;
  max-width: 960px;
  margin: 0 auto;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--orange);
  margin-bottom: 52px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--orange);
  flex-shrink: 0;
}

/* ------------------------------------------------------------------ ABOUT */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.section-headline {
  font-family: 'MaskingRenta', sans-serif;
  font-size: clamp(36px, 4vw, 54px);
  font-weight: normal;
  line-height: 1.0;
  color: var(--text-primary);
}

.about-body-col p {
  font-size: 15px;
  line-height: 1.72;
  color: var(--text-primary);
  font-weight: 300;
  margin-bottom: 18px;
}

.about-body-col p:last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------------------- WORK */

.work-section {
  border-top: 1px solid var(--divider);
}

.timeline {
  border-top: 1px solid var(--divider);
}

.timeline-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--divider);
}

.timeline-company {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.timeline-role {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
  font-weight: 400;
}

.timeline-year {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 0.07em;
  flex-shrink: 0;
}

.education-line {
  margin-top: 36px;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.resume-link {
  margin-top: 40px;
}

.resume-link a {
  font-size: 12px;
  color: var(--orange);
  text-decoration: none;
  letter-spacing: 0.06em;
  font-weight: 500;
  border-bottom: 1px solid rgba(242, 101, 34, 0.35);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.resume-link a:hover {
  border-color: var(--orange);
}

/* --------------------------------------------------------------- CONTACT */

.contact-section {
  border-top: 1px solid var(--divider);
  padding-bottom: 120px;
}

.contact-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-headline {
  font-family: 'MaskingRenta', sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: normal;
  line-height: 1;
  color: var(--text-primary);
}

.contact-email {
  font-size: 14px;
  color: var(--orange);
  text-decoration: none;
  font-weight: 400;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.contact-email:hover {
  opacity: 0.7;
}

.social-links {
  display: flex;
  gap: 28px;
  margin-top: 48px;
}

.social-link {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.social-link:hover {
  color: var(--text-primary);
}

.footer-note {
  margin-top: 88px;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* --------------------------------------------------------------- LOADER */

#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.45s ease;
}

#loader.done {
  opacity: 0;
  pointer-events: none;
}

.loader-spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(242, 101, 34, 0.18);
  border-top-color: var(--orange);
  animation: loader-spin 0.8s linear infinite;
}

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

/* ---------------------------------------------------- PAGE SLIDE-IN */

/* Start both layers below the screen */
.hero,
.content-wrapper {
  opacity: 0;
  transform: translateY(100vh);
  transition:
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    opacity   0.6s ease;
}

/* Content wrapper slides in 60ms behind the hero */
.content-wrapper {
  transition-delay: 0.06s;
}

/* JS adds .page-in to <body> to trigger the slide */
body.page-in .hero,
body.page-in .content-wrapper {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------------------- MOBILE */

@media (max-width: 680px) {
  .hero-nav { padding: 20px 24px; }
  .hero-content { padding: 0 24px; margin-top: calc(50vh - 140px); }
  .dark-section { padding: 60px 24px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-row {
    flex-direction: column;
    gap: 16px;
  }
}
