:root {
  --void: #0b0a09;
  --ink: #141210;
  --fog: #c8c2b8;
  --paper: #f2eee6;
  --stage-blue: #5b8fb8;
  --stage-blue-deep: #2a4a66;
  --amber: #d4a84b;
  --ember: #c45e2c;
  --line: rgba(242, 238, 230, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Figtree", system-ui, sans-serif;
  color: var(--paper);
  background: var(--void);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--amber);
  color: var(--ink);
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- Nav ---------- */

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem clamp(1.2rem, 4vw, 2.5rem);
  background: linear-gradient(
    180deg,
    rgba(11, 10, 9, 0.88) 0%,
    rgba(11, 10, 9, 0.35) 70%,
    transparent 100%
  );
}

.brand {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav nav a {
  text-decoration: none;
  opacity: 0.82;
  transition: opacity 0.25s var(--ease);
}

.site-nav nav a:hover,
.site-nav nav a:focus-visible {
  opacity: 1;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.04);
  animation: hero-drift 22s var(--ease) infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(11, 10, 9, 0.35) 0%,
      rgba(11, 10, 9, 0.15) 35%,
      rgba(11, 10, 9, 0.55) 68%,
      rgba(11, 10, 9, 0.94) 100%
    ),
    linear-gradient(
      105deg,
      rgba(42, 74, 102, 0.35) 0%,
      transparent 45%,
      rgba(196, 94, 44, 0.18) 100%
    );
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(40rem, 92vw);
  padding: 0 clamp(1.2rem, 4vw, 2.5rem) clamp(3.5rem, 8vh, 5.5rem);
  animation: rise-in 1s var(--ease) both;
}

.eyebrow {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 0.85rem;
}

.hero h1 {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  max-width: 14ch;
}

.lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--fog);
  max-width: 36ch;
  margin: 0 0 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 999px;
  transition:
    transform 0.25s var(--ease),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.btn-primary {
  background: var(--amber);
  color: var(--ink);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
  background: #e0b65a;
}

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(11, 10, 9, 0.35);
  color: var(--paper);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgba(242, 238, 230, 0.4);
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.09) translate3d(0, -1.5%, 0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Sections ---------- */

.section-label {
  font-family: "Syne", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stage-blue);
  margin: 0 0 0.6rem;
}

.bio,
.works,
.contact {
  padding: clamp(3.5rem, 9vw, 6rem) clamp(1.2rem, 4vw, 2.5rem);
}

.bio {
  background:
    radial-gradient(
      ellipse 70% 80% at 10% 20%,
      rgba(91, 143, 184, 0.12),
      transparent 55%
    ),
    var(--ink);
  border-top: 1px solid var(--line);
}

.bio-inner,
.works-head,
.contact-inner {
  width: min(44rem, 100%);
}

.bio h2,
.works-head h2,
.contact h2 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.bio-text {
  font-size: 1.12rem;
  color: var(--fog);
  margin: 0 0 1rem;
}

.bio-note {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(200, 194, 184, 0.65);
  font-style: italic;
}

/* ---------- Works ---------- */

.works {
  border-top: 1px solid var(--line);
  background: var(--void);
}

.works-lede {
  color: var(--fog);
  margin: 0 0 3rem;
  max-width: 40ch;
}

.work {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  animation: rise-in 0.8s var(--ease) both;
}

.work:nth-child(2) {
  animation-delay: 0.05s;
}

.work:nth-child(3) {
  animation-delay: 0.1s;
}

.work:nth-child(4) {
  animation-delay: 0.15s;
}

.work-alt {
  direction: rtl;
}

.work-alt > * {
  direction: ltr;
}

.work-visual {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 5;
  background: #1a1714;
}

.work-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.work:hover .work-visual img {
  transform: scale(1.03);
}

.work-index {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  color: var(--ember);
  letter-spacing: 0.08em;
  margin: 0 0 0.35rem;
}

.work h3 {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.work-meta {
  margin: 0 0 0.9rem;
  color: var(--amber);
  font-size: 0.92rem;
  font-weight: 600;
}

.work-body > p {
  color: var(--fog);
  margin: 0 0 1.1rem;
}

.embed-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.embed-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.embed-fallback {
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
}

.embed-fallback a {
  color: var(--stage-blue);
  text-underline-offset: 0.2em;
}

.audio-pending {
  border: 1px dashed rgba(212, 168, 75, 0.45);
  background: rgba(212, 168, 75, 0.06);
  padding: 1.1rem 1.2rem;
  border-radius: 4px;
}

.pending-label {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 0.45rem;
}

.audio-pending p {
  margin: 0;
  color: var(--fog);
  font-size: 0.95rem;
}

.audio-pending code {
  font-size: 0.85em;
  color: var(--paper);
}

/* ---------- Contact / footer ---------- */

.contact {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(
      ellipse 60% 70% at 90% 80%,
      rgba(196, 94, 44, 0.14),
      transparent 55%
    ),
    var(--ink);
}

.contact p {
  color: var(--fog);
  font-size: 1.08rem;
}

.placeholder {
  color: var(--amber);
  font-style: italic;
}

.contact-placeholder-box {
  margin-top: 1.25rem !important;
  display: inline-block;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.92rem !important;
  color: rgba(200, 194, 184, 0.75) !important;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.5rem clamp(1.2rem, 4vw, 2.5rem) 2.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: rgba(200, 194, 184, 0.7);
}

.site-footer a {
  color: var(--stage-blue);
  text-underline-offset: 0.2em;
}

@media (max-width: 820px) {
  .work,
  .work-alt {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .work-visual {
    aspect-ratio: 16 / 11;
    max-height: 320px;
  }

  .site-nav nav {
    font-size: 0.82rem;
    gap: 0.65rem 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media img,
  .hero-copy,
  .work,
  .work-visual img {
    animation: none !important;
    transition: none !important;
  }
}
