* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: #f6f1e8;
  background: #08111d;
  overflow-x: hidden;
}

/* =========================
   HERO
========================= */

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 12, 22, 0.30), rgba(7, 12, 22, 0.46)),
    url("/images/take51-hero.jpg") center center / cover no-repeat;
  transform: scale(1.02);
  filter: brightness(0.92) saturate(1.02) contrast(1.04);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 12, 22, 0.34) 0%, rgba(8, 15, 28, 0.12) 46%, rgba(7, 12, 22, 0.30) 100%),
    radial-gradient(circle at 18% 24%, rgba(198, 150, 76, 0.09), transparent 24%),
    radial-gradient(circle at 52% 68%, rgba(130, 92, 44, 0.10), transparent 24%),
    radial-gradient(circle at 78% 26%, rgba(235, 205, 146, 0.08), transparent 18%);
  z-index: 1;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 48% 72%, rgba(207, 164, 86, 0.12), transparent 20%),
    radial-gradient(circle at 30% 46%, rgba(162, 112, 49, 0.08), transparent 16%),
    radial-gradient(circle at 74% 52%, rgba(242, 221, 177, 0.07), transparent 14%);
  filter: blur(22px);
  opacity: 0.92;
  z-index: 2;
}

.hero-ribbons {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: screen;
}

.ribbon {
  opacity: 0.28;
}

.ribbon-1 {
  animation: ribbonFloat1 14s ease-in-out infinite;
}

.ribbon-2 {
  animation: ribbonFloat2 18s ease-in-out infinite;
  opacity: 0.22;
}

.ribbon-3 {
  animation: ribbonFloat3 16s ease-in-out infinite;
  opacity: 0.18;
}

@keyframes ribbonFloat1 {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(12px, -8px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes ribbonFloat2 {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(-14px, 10px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes ribbonFloat3 {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(10px, -6px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.hero-inner {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 28px 28px 34px;
}

/* =========================
   THREE COLUMN LAYOUT
========================= */

.hero-layout {
  display: grid;
  grid-template-columns: 280px minmax(520px, 1fr) 280px;
  gap: 20px;
  align-items: center;
  min-height: calc(100vh - 56px);
}

.side-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.centre-column {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-copy {
  width: 100%;
  max-width: 760px;
}

/* =========================
   CENTRE CONTENT
========================= */

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.80);
  text-align: center;
}

h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.1rem, 4.2vw, 4.9rem);
  line-height: 0.92;
  letter-spacing: 0.08em;
  max-width: 760px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.subtitle {
  margin: 10px 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.90);
  text-align: center;
}

/* =========================
   SCREEN SWITCHING
========================= */

.story-screen,
.focus-screen {
  display: none;
  width: 100%;
}

.story-screen.is-visible,
.focus-screen.is-visible {
  display: block;
}

/* =========================
   MATCHED FEATURE PANELS
========================= */

.story-panel,
.focus-panel {
  margin-top: 18px;
  height: 540px;
  padding: 24px 26px 22px;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(18, 24, 34, 0.52) 0%, rgba(10, 15, 24, 0.36) 100%);
  border: 1px solid rgba(255, 245, 224, 0.09);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 246, 226, 0.04);
}

.story-panel::after,
.focus-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 247, 231, 0.02), transparent 28%),
    radial-gradient(circle at 50% 78%, rgba(204, 164, 88, 0.08), transparent 34%),
    radial-gradient(circle at 18% 24%, rgba(155, 107, 49, 0.06), transparent 22%),
    radial-gradient(circle at 82% 18%, rgba(236, 214, 164, 0.05), transparent 20%);
}

/* =========================
   STORY PANEL - TEXT LED
========================= */

.story-panel--text {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
}

.story-panel--text::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(215, 183, 118, 0.05) 0%, transparent 34%),
    radial-gradient(circle at 28% 34%, rgba(150, 106, 53, 0.08), transparent 24%),
    radial-gradient(circle at 76% 28%, rgba(239, 219, 176, 0.06), transparent 20%),
    radial-gradient(circle at 52% 70%, rgba(192, 147, 72, 0.10), transparent 36%);
}

.story-copy {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 1fr auto;
  height: 100%;
}

.story-copy-main {
  width: 100%;
  max-width: 610px;
  align-self: start;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 6px 0 0;
}

.story-kicker,
.focus-kicker {
  margin: 0 0 10px;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.64);
}

.story-copy h2,
.focus-copy h2 {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 2.2vw, 2.45rem);
  line-height: 0.96;
  letter-spacing: -0.01em;
  color: #f6f1e8;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.18);
}

.story-body {
  width: 100%;
  max-width: 610px;
}

.story-body p {
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.68;
  color: rgba(246, 241, 232, 0.92);
  text-wrap: pretty;
}

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

.story-track,
.focus-track {
  position: relative;
  z-index: 1;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 245, 224, 0.10);
}

.story-track-copy,
.focus-track-copy {
  width: 100%;
  max-width: none;
  margin: 0 0 12px;
  text-align: left;
}

.story-track-copy h3,
.focus-track-copy h3 {
  margin: 0 0 7px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.28rem;
  line-height: 1;
  color: #f6f1e8;
}

.story-track-copy p,
.focus-track-copy p {
  margin: 0 0 12px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(246, 241, 232, 0.76);
}

.story-track audio,
.focus-track audio {
  display: block;
  width: 100%;
  max-width: 520px;
  height: 42px;
  opacity: 0.95;
  margin: 0 auto;
}

/* =========================
   FOCUS PANEL
========================= */

.focus-panel {
  display: grid;
  grid-template-rows: auto 1fr;
}

.focus-image-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: 15px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 245, 224, 0.08);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 246, 226, 0.04);
}

.focus-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.02) contrast(1.02);
}

.focus-copy {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 0;
  row-gap: 8px;
  padding-top: 0;
}

.focus-copy-main {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  min-height: 0;
  width: 100%;
  max-width: none;
}

.focus-description {
  margin: 0;
  width: 100%;
  max-width: none;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(246, 241, 232, 0.88);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.focus-track-copy {
  padding-top: 2px;
}

.focus-track-copy h3 {
  width: 100%;
  max-width: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.focus-track-copy p {
  width: 100%;
  max-width: none;
}

.focus-copy h2 {
  width: 100%;
  max-width: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================
   ACTIONS
========================= */

.hero-actions {
  margin-top: 18px;
  text-align: center;
}

.cta {
  display: inline-block;
  margin-top: 0;
  padding: 11px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: #f6f1e8;
  background: rgba(255, 248, 236, 0.10);
  border: 1px solid rgba(255, 243, 217, 0.18);
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
  cursor: pointer;
}

.cta:hover {
  background: rgba(255, 248, 236, 0.16);
  transform: translateY(-2px);
}

.secondary-cta {
  appearance: none;
  font-family: inherit;
}

/* =========================
   SIDE MINI CARDS
========================= */

.mini-voice-card {
  appearance: none;
  width: 100%;
  text-align: left;
  background: rgba(255, 248, 236, 0.05);
  border: 1px solid rgba(255, 243, 217, 0.08);
  border-radius: 18px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  padding: 14px;
  color: inherit;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.mini-voice-card:hover {
  transform: translateY(-2px);
  border-color: rgba(239, 216, 168, 0.18);
  background: rgba(255, 248, 236, 0.08);
}

.mini-voice-card.active {
  border-color: rgba(218, 186, 118, 0.42);
  background: rgba(255, 248, 236, 0.10);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.mini-voice-top {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.mini-voice-top img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(255, 243, 217, 0.10);
}

.mini-voice-copy h3 {
  margin: 0 0 5px;
  font-size: 0.95rem;
  font-weight: 600;
}

.mini-voice-copy p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(246, 241, 232, 0.76);
}

.mini-voice-player {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 243, 217, 0.08);
}

.mini-voice-player h4 {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 600;
}

.mini-voice-player audio {
  display: block;
  width: 100%;
  height: 32px;
  opacity: 0.92;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1300px) {
  .hero-layout {
    grid-template-columns: 250px minmax(440px, 1fr) 250px;
    gap: 18px;
  }

  h1 {
    font-size: clamp(2.7rem, 3.8vw, 4.2rem);
  }

  .story-panel,
  .focus-panel {
    height: 500px;
  }
}

@media (max-width: 1080px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
    min-height: auto;
  }

  .centre-column { order: 1; }
  .left-column { order: 2; }
  .right-column { order: 3; }

  .side-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .story-panel,
  .focus-panel {
    height: auto;
    min-height: auto;
  }
}

@media (max-width: 900px) {
  .hero {
    align-items: flex-start;
  }

  .hero-inner {
    padding: 24px 14px 34px;
  }

  .side-column {
    grid-template-columns: 1fr;
  }

  .eyebrow {
    font-size: 0.68rem;
    margin-bottom: 8px;
  }

  h1 {
    font-size: clamp(2rem, 7.5vw, 3rem);
    max-width: 100%;
  }

  .subtitle {
    font-size: 0.74rem;
    margin-top: 8px;
  }

  .story-panel,
  .focus-panel {
    margin-top: 16px;
    height: auto;
    min-height: auto;
    padding: 14px 14px 16px;
    border-radius: 16px;
  }

  .story-copy,
  .focus-copy {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: auto;
  }

  .story-copy h2,
  .focus-copy h2 {
    font-size: 1.5rem;
  }

  .story-copy-main {
    max-width: 100%;
    padding: 0;
  }

  .story-body p,
  .focus-description {
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .story-track,
  .focus-track {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 243, 217, 0.08);
  }

  .story-track-copy h3,
  .focus-track-copy h3 {
    font-size: 1.08rem;
  }

  .story-track-copy p,
  .focus-track-copy p {
    font-size: 0.8rem;
    margin-bottom: 8px;
  }

  .story-track audio,
  .focus-track audio,
  .mini-voice-player audio {
    width: 100%;
    max-width: 520px;
    height: 34px;
    margin: 0 auto;
  }

  .cta {
    padding: 10px 16px;
    font-size: 0.8rem;
  }

  .mini-voice-card {
    padding: 12px;
  }

  .mini-voice-top {
    grid-template-columns: 58px 1fr;
    gap: 10px;
  }

  .mini-voice-top img {
    width: 58px;
    height: 58px;
  }

  .mini-voice-copy h3 {
    font-size: 0.9rem;
  }

  .mini-voice-copy p {
    font-size: 0.78rem;
  }

  .mini-voice-player h4 {
    font-size: 0.78rem;
  }
}