@font-face {
  font-family: Outfit;
  src: url("/assets/fonts/Outfit-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url("/assets/fonts/Outfit-500.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url("/assets/fonts/Outfit-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Cormorant;
  src: url("/assets/fonts/CormorantGaramond-500.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #0c0e13;
  --surface: #141821;
  --fg: #ebe6da;
  --muted: #9c9d9b;
  --line: rgba(235, 230, 218, 0.14);
  --accent: #f2a65a;
  --display: Cormorant, Georgia, serif;
  --body: Outfit, system-ui, sans-serif;
  --gutter: 40px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  color: var(--fg);
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  transition: background-color 0.9s var(--ease), color 0.9s var(--ease);
}
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection {
  background: var(--accent);
  color: var(--bg);
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 30;
  padding: 10px 14px;
  background: var(--fg);
  color: var(--bg);
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: none;
}

/* Stage */
.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
.has-stage .stage {
  opacity: 1;
}
html:not(.themed) [data-theme] {
  background: var(--bg);
}

/* Header */
.bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gutter);
  background: linear-gradient(var(--bg) 62%, color-mix(in srgb, var(--bg) 0%, transparent));
  transition: background 0.9s var(--ease);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--fg);
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.04em;
}
.bar nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}
.bar nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}
.bar nav a:hover,
.bar nav a[aria-current] {
  color: var(--fg);
}
.bar nav a[aria-current] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}
.bar .lang {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

/* Shared blocks */
main,
.foot {
  position: relative;
  z-index: 1;
}
.panel {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 18vh 0 14vh;
}
.narrow-left > * {
  max-width: 560px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.02em;
}
.pulse {
  width: 7px;
  height: 7px;
  background: var(--accent);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}
.section-heading h2,
.statement h2,
.contact h2,
.not-found h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.7rem, 5.6vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
}
.section-heading p {
  margin-top: 26px;
  color: var(--muted);
  font-size: 18px;
}
.lede {
  max-width: 540px;
  color: color-mix(in srgb, var(--fg) 86%, transparent);
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  line-height: 1.55;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 22px;
  border: 1px solid var(--fg);
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.button:hover {
  background: var(--fg);
  color: var(--bg);
}
.text-link {
  font-weight: 500;
}

/* Hero */
.hero .wrap {
  position: relative;
}
.hero h1 {
  margin-bottom: 34px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(3.8rem, 9.4vw, 9.2rem);
  line-height: 0.86;
  letter-spacing: -0.025em;
}
.hero h1 span {
  color: var(--muted);
}
.hero .copy {
  max-width: 760px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-top: 40px;
}
.scroll-cue {
  position: absolute;
  bottom: -9vh;
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}
.scroll-cue span {
  position: relative;
  width: 1px;
  height: 44px;
  overflow: hidden;
  background: var(--line);
}
.scroll-cue span::after {
  position: absolute;
  inset: 0;
  background: var(--fg);
  content: "";
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(100%);
  }
}

/* What I do */
.disciplines,
.timeline,
.highlights {
  margin: 0;
  padding: 0;
  list-style: none;
}
.disciplines {
  margin-top: 56px;
  border-bottom: 1px solid var(--line);
}
.disciplines li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.index,
.when,
.project-index {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.disciplines h3 {
  margin-bottom: 8px;
  font-size: 21px;
  font-weight: 500;
}
.disciplines p,
.timeline p {
  color: var(--muted);
}

/* Experience */
.timeline {
  margin-top: 56px;
}
.timeline li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.timeline h3 {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.1;
}
.timeline .org {
  margin: 6px 0 10px;
  color: var(--accent);
  font-weight: 500;
}
.statement h2 {
  margin-bottom: 30px;
  font-size: clamp(3rem, 6.4vw, 5.6rem);
}
.skills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 40px;
  margin: 56px 0 0;
}
.skills dt {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.skills dd {
  margin: 0;
}
.skills ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 17px;
}

/* Projects */
.projects-intro {
  min-height: 80vh;
}
.project {
  position: relative;
  min-height: 240vh;
  padding: 14vh 0 0;
}
.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 470px) 1fr;
  align-items: start;
  min-height: 226vh;
}
.project-copy {
  position: sticky;
  top: max(92px, calc(50vh - 320px));
}
.project-index span {
  opacity: 0.6;
}
.project-copy .kicker {
  margin: 18px 0 14px;
}
.project h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(3.4rem, 6vw, 5.4rem);
  line-height: 0.9;
}
.tagline {
  margin: 14px 0 24px;
  color: var(--accent);
  font-family: var(--display);
  font-size: 26px;
}
.project-copy > p:not([class]) {
  color: color-mix(in srgb, var(--fg) 82%, transparent);
}
.highlights {
  margin: 26px 0;
  border-top: 1px solid var(--line);
}
.highlights li {
  position: relative;
  padding: 9px 0 9px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.highlights li::before {
  position: absolute;
  top: 18px;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--accent);
  content: "";
}
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 0 0 30px;
}
.facts dt {
  color: var(--muted);
  font-size: 13px;
}
.facts dd {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 4px 0 0;
  font-weight: 500;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.caption {
  position: sticky;
  top: calc(100vh - 92px);
  justify-self: end;
  max-width: 300px;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}
.next {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 14vh;
  padding-bottom: 6vh;
  color: var(--muted);
  font-family: var(--display);
  font-size: 30px;
}
.next span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px dashed var(--muted);
  font-family: var(--body);
  font-size: 20px;
}

/* Contact */
.contact h2 {
  margin-bottom: 26px;
  font-size: clamp(3.6rem, 10vw, 9rem);
}
.mail {
  display: inline-block;
  margin-top: 44px;
  font-family: var(--display);
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  line-height: 1.1;
  text-decoration-color: var(--accent);
  overflow-wrap: anywhere;
}
.contact-links {
  margin-top: 28px;
}
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 28px;
  padding-bottom: 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.not-found .button {
  margin: 34px 0 22px;
}

/* Reveal */
.can-reveal [data-reveal] {
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.can-reveal [data-reveal]:not(.is-revealed) {
  opacity: 0;
  transform: translateY(26px);
}

@media (max-width: 959px) {
  :root {
    --gutter: 20px;
  }
  .has-stage .stage {
    opacity: 0.42;
  }
  .bar {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .brand-name {
    display: none;
  }
  .bar nav {
    gap: 16px;
    font-size: 13px;
  }
  .bar nav a:not(.lang):not([aria-current]) {
    display: none;
  }
  .bar nav a[aria-current] {
    text-decoration: none;
  }
  .bar .lang {
    padding-left: 16px;
  }
  .panel {
    min-height: auto;
    padding: 16vh 0 10vh;
  }
  .hero {
    min-height: 100svh;
  }
  .scroll-cue {
    display: none;
  }
  .has-stage[data-theme="luma"] .stage {
    opacity: 1;
  }
  .project {
    min-height: auto;
    padding-top: 12vh;
  }
  .project-grid {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }
  .caption {
    position: sticky;
    top: 78px;
    order: -1;
    max-width: none;
    margin-bottom: 64vh;
    text-align: left;
  }
  .project-copy {
    position: relative;
    top: auto;
    margin: 0 calc(var(--gutter) * -1);
    padding: 28px var(--gutter) 40px;
    background: color-mix(in srgb, var(--bg) 84%, transparent);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
  .skills {
    grid-template-columns: 1fr;
  }
  .timeline li {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
@media (max-width: 420px) {
  .disciplines li {
    grid-template-columns: 40px 1fr;
  }
  .facts {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
