/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  --bg:       #FFF4E0;
  --accent:   #EA871E;
  --text:     #2B2B2B;
  --text-muted: color-mix(in oklab, var(--text) 50%, var(--bg));
  --border:   color-mix(in oklab, var(--text) 12%, var(--bg));

  --font-serif: 'Syne', system-ui, sans-serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --space-xs:  0.5rem;
  --space-s:   1rem;
  --space-m:   2rem;
  --space-l:   4rem;
  --space-xl:  7rem;
  --space-2xl: 12rem;

  --radius:    4px;
  --max-w:     1100px;
  --transition: 0.3s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 300;
}

em {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
}

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

ul {
  list-style: none;
}

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

/* ============================================
   SCREEN READER ONLY
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   SCROLL REVEAL ANIMATION
   ============================================ */
.reveal {
  opacity: 0;
  translate: 0 24px;
  transition: opacity 0.7s ease, translate 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  translate: 0 0;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    translate: 0 0;
    transition: none;
  }
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-s) var(--space-m);
  background-color: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

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

.nav__logo {
  display: inline-flex;
  align-items: center;
  width: clamp(4.75rem, 10vw, 6.5rem);
  min-width: 4.75rem;
}

.nav__logo img {
  width: 100%;
  height: auto;
}

.nav__cta {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--accent);
  border-radius: 100px;
  transition: background var(--transition), color var(--transition);
}

.nav__cta:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(10rem, 18vh, 13rem) var(--space-m) clamp(5rem, 10vh, 7rem);
  max-width: var(--max-w);
  margin-inline: auto;
  width: 100%;
}

.hero__eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-s);
}

.hero__heading {
  font-family: var(--font-serif);
  font-size: clamp(4.25rem, 6.4vw, 6.75rem);
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: var(--space-m);
  max-width: 14ch;
}

.hero__heading > span {
  padding-bottom: 0.08em;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 40ch;
  font-weight: 300;
}

.hero__scroll {
  display: none;
  margin-top: var(--space-xl);
  width: 1px;
  height: 64px;
  position: relative;
  overflow: hidden;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: translateY(-100%); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}

/* ============================================
   SECTION BASE
   ============================================ */
.section {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: clamp(5rem, 8vw, 7rem) var(--space-m);
  width: 100%;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: minmax(10rem, 0.34fr) minmax(0, 1fr);
  column-gap: var(--space-l);
  align-items: start;
}

.section__label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0;
  padding-top: 0.7em;
}

/* ============================================
   SKILLS
   ============================================ */
.skills__list {
  grid-column: 2;
  display: grid;
  gap: 0.85rem;
  max-width: 100%;
  margin: 0;
}

.skills__item {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 3.6vw, 4rem);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* ============================================
   CONTACT
   ============================================ */
.contact__body {
  grid-column: 2;
  max-width: 46rem;
  margin: 0;
}

.contact__heading {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 4.8vw, 5rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-m);
}

.contact__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: gap var(--transition), opacity var(--transition);
}

.contact__link:hover {
  gap: var(--space-s);
  opacity: 0.8;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: var(--space-l) var(--space-m);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  justify-content: center;
  align-items: center;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer__handle {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  gap: var(--space-s);
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--text-muted);
  transition: color var(--transition), opacity var(--transition);
}

.footer__links img {
  width: 1.25rem;
  height: 1.25rem;
  opacity: 0.72;
  transition: opacity var(--transition);
}

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

.footer__links a:hover img {
  opacity: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
  :root {
    --space-l: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 7rem;
  }

  .nav {
    padding: var(--space-s);
  }

  .hero {
    display: flex;
    min-height: auto;
    justify-content: flex-start;
    padding: 8.5rem var(--space-s) var(--space-xl);
  }

  .hero__heading {
    font-size: clamp(3rem, 12vw, 4.25rem);
    line-height: 1.32;
    margin-bottom: var(--space-s);
    max-width: 9.5ch;
  }

  .hero__eyebrow {
    margin-bottom: var(--space-s);
  }

  .hero__sub {
    max-width: 32ch;
  }

  .hero__scroll {
    display: none;
  }

  .section {
    padding-inline: var(--space-s);
    display: block;
  }

  .section__label {
    margin-bottom: var(--space-l);
    padding-top: 0;
  }

  .skills__list {
    margin: 0;
  }

  .contact__body {
    margin: 0;
  }

  .footer {
    padding-inline: var(--space-s);
  }
}
