@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,500&family=Inter:wght@400;500;600&display=swap");

:root {
  --bg: #100d0f;
  --bg-alt: #17131a;
  --ink: #f3ece2;
  --ink-dim: #cabfae;
  --accent: #c1673b;
  --accent-2: #e2a34d;
  --accent-3: #7c2d3a;
  --line: rgba(243, 236, 226, 0.14);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --frame-shadow:
    0 25px 55px -20px rgba(0, 0, 0, 0.65),
    inset 0 0 0 2px rgba(226, 163, 77, 0.45),
    inset 0 0 0 9px rgba(16, 13, 15, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  margin: 0;
  letter-spacing: -0.01em;
}

.icon {
  width: 1.4em;
  height: 1.4em;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

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

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
  isolation: isolate;
}

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

.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-media video.visible {
  opacity: 1;
}

.hero-fallback {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  background:
    radial-gradient(60% 50% at 20% 30%, rgba(193, 103, 59, 0.55), transparent 60%),
    radial-gradient(50% 60% at 85% 20%, rgba(124, 45, 58, 0.55), transparent 65%),
    radial-gradient(70% 60% at 50% 90%, rgba(226, 163, 77, 0.35), transparent 60%),
    #100d0f;
  background-size: 200% 200%, 220% 220%, 200% 200%, 100% 100%;
  animation: drift 22s ease-in-out infinite alternate;
}

.hero-fallback.visible {
  opacity: 1;
}

@keyframes drift {
  0% { background-position: 0% 0%, 100% 0%, 50% 100%, 0 0; }
  100% { background-position: 40% 60%, 60% 40%, 60% 60%, 0 0; }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(16, 13, 15, 0.35) 0%,
    rgba(16, 13, 15, 0.55) 55%,
    rgba(16, 13, 15, 0.95) 100%
  );
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1.25rem;
  animation: fade-up 1s var(--ease) both;
}

.hero h1 {
  font-size: clamp(3.5rem, 12vw, 9rem);
  font-weight: 600;
  line-height: 0.95;
  background: linear-gradient(120deg, var(--ink) 30%, var(--accent-2) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fade-up 1.1s 0.1s var(--ease) both;
}

.hero-tagline {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  color: var(--ink-dim);
  max-width: 42ch;
  animation: fade-up 1.1s 0.25s var(--ease) both;
}

.hero-subtext {
  margin-top: 0.6rem;
  font-style: italic;
  font-family: "Fraunces", serif;
  color: var(--accent-2);
  font-size: clamp(1rem, 2vw, 1.15rem);
  animation: fade-up 1.1s 0.35s var(--ease) both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-cue {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  animation: bob 2.4s ease-in-out infinite;
}

.scroll-cue .icon {
  transform: rotate(90deg);
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

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

section {
  padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 5vw, 5rem);
}

.section-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 600;
  margin-bottom: 2.5rem;
}

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.bio-photo-group {
  position: relative;
}

.bio-photo-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--frame-shadow);
}

.bio-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.bio-photo-wrap:hover img {
  transform: scale(1.05);
}

.bio-photo-primary {
  aspect-ratio: 4 / 5;
}

.bio-photo-secondary {
  position: absolute;
  right: -8%;
  bottom: -10%;
  width: 48%;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius) - 4px);
  transform: rotate(3deg);
  transition: transform 0.5s var(--ease);
}

.bio-photo-secondary:hover {
  transform: rotate(0deg) scale(1.03);
}

.bio-text p {
  color: var(--ink-dim);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 56ch;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--ink);
  background: rgba(243, 236, 226, 0.04);
}

.badge .icon {
  width: 1.1em;
  height: 1.1em;
  color: var(--accent-2);
}

/* ---------- Carousel ---------- */

.gallery {
  background: var(--bg-alt);
}

.carousel {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: var(--frame-shadow), 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.7s var(--ease);
}

.slide {
  min-width: 100%;
  height: 100%;
  margin: 0;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(1.2rem, 3vw, 2.5rem);
  font-family: "Fraunces", serif;
  font-size: clamp(1.1rem, 2.5vw, 1.8rem);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.65));
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(243, 236, 226, 0.3);
  background: rgba(16, 13, 15, 0.45);
  backdrop-filter: blur(6px);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-nav:hover {
  background: rgba(193, 103, 59, 0.8);
  transform: translateY(-50%) scale(1.08);
}

.carousel-prev {
  left: clamp(0.6rem, 2vw, 1.5rem);
}

.carousel-next {
  right: clamp(0.6rem, 2vw, 1.5rem);
}

.carousel-next .icon {
  transform: none;
}

.carousel-prev .icon {
  transform: rotate(180deg);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  background: var(--line);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.dot.active {
  background: var(--accent-2);
  transform: scale(1.3);
}

/* ---------- Choices ---------- */

.choices-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  max-width: 1200px;
  margin: 0 auto;
}

.choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(243, 236, 226, 0.05), rgba(243, 236, 226, 0.01));
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.choice-card::before {
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, var(--accent-2), transparent 65%);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.choice-card:hover {
  transform: translateY(-10px);
  border-color: rgba(226, 163, 77, 0.6);
  box-shadow: 0 30px 60px -25px rgba(193, 103, 59, 0.5);
}

.choice-card:hover::before {
  opacity: 0.25;
}

.choice-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(226, 163, 77, 0.12);
  color: var(--accent-2);
  margin-bottom: 0.5rem;
}

.choice-icon .icon {
  width: 1.6em;
  height: 1.6em;
}

.choice-title {
  font-family: "Fraunces", serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
}

.choice-subtitle {
  color: var(--ink-dim);
}

.choice-cta {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.choice-cta-arrow {
  display: inline-flex;
  transition: transform 0.4s var(--ease);
}

.choice-card:hover .choice-cta-arrow {
  transform: translateX(6px);
}

/* ---------- Footer ---------- */

.site-footer {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--ink-dim);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

.site-footer strong {
  color: var(--ink);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .about {
    grid-template-columns: 1fr;
  }

  .bio-photo-group {
    max-width: 340px;
    margin: 0 auto 1.5rem;
  }

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

  .carousel {
    aspect-ratio: 4 / 5;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 5rem 1.25rem 3rem;
  }

  section {
    padding: 3.5rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
