:root {
  --bg: #f5efe4;
  --bg-deep: #ebe1cf;
  --surface: rgba(255, 250, 242, 0.8);
  --surface-strong: rgba(255, 250, 242, 0.92);
  --ink: #1f1a17;
  --muted: #61584f;
  --line: rgba(86, 69, 51, 0.14);
  --accent: #b95a3c;
  --accent-deep: #8c3f2a;
  --accent-soft: rgba(185, 90, 60, 0.12);
  --shadow: 0 24px 60px rgba(61, 39, 22, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.65), transparent 32%),
    linear-gradient(135deg, #f7f0e5 0%, #efe2cf 46%, #ead9c4 100%);
}

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

button,
input {
  font: inherit;
}

code {
  font-family: "SFMono-Regular", "Consolas", monospace;
  font-size: 0.92em;
}

.ambient {
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  filter: blur(32px);
  opacity: 0.65;
  pointer-events: none;
}

.ambient-left {
  top: 8%;
  left: -10rem;
  width: 24rem;
  height: 24rem;
  background: rgba(208, 136, 94, 0.26);
}

.ambient-right {
  right: -12rem;
  bottom: 12%;
  width: 30rem;
  height: 30rem;
  background: rgba(117, 156, 142, 0.18);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.gate-panel,
.content-card,
.video-card,
.portrait-card {
  backdrop-filter: blur(20px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.gate-panel {
  width: min(100%, 720px);
  margin: 10vh auto 0;
  padding: 2.4rem;
  border-radius: var(--radius-xl);
  animation: rise-in 700ms ease both;
}

.eyebrow,
.section-kicker,
.portrait-label {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.gate-panel h1,
.hero-copy h1,
.section-intro h2 {
  margin: 0;
  font-family: "Instrument Serif", "Georgia", serif;
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.gate-panel h1 {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  max-width: 12ch;
}

.gate-copy,
.lead,
.content-card p,
.portrait-copy p,
.closing-note,
.placeholder-copy {
  color: var(--muted);
  line-height: 1.72;
}

.gate-copy {
  max-width: 56ch;
  margin: 1rem 0 0;
  font-size: 1.04rem;
}

.password-form {
  margin-top: 2rem;
}

.field-label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.password-row {
  display: flex;
  gap: 0.9rem;
}

.password-input {
  flex: 1;
  min-width: 0;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(84, 66, 48, 0.2);
  background: rgba(255, 255, 255, 0.7);
}

.password-input:focus {
  outline: 2px solid rgba(185, 90, 60, 0.28);
  outline-offset: 2px;
}

.primary-button {
  border: 0;
  border-radius: 16px;
  padding: 0.95rem 1.3rem;
  background: linear-gradient(135deg, var(--accent) 0%, #d67553 100%);
  color: #fffaf5;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 18px 30px rgba(185, 90, 60, 0.24);
}

.primary-button:hover {
  transform: translateY(-1px);
}

.password-feedback {
  min-height: 1.25rem;
  margin: 0.8rem 0 0;
  color: var(--accent-deep);
  font-size: 0.94rem;
}

.gate-note {
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.application {
  animation: fade-in 400ms ease both;
}

.hidden {
  display: none;
}

.video-placeholder.hidden {
  display: none;
}

.hero-section {
  display: grid;
  gap: 1.6rem;
}

.hero-copy {
  padding: 0;
  max-width: none;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  max-width: none;
  line-height: 1;
}

.hero-copy h1 span {
  display: block;
  color: rgba(31, 26, 23, 0.68);
}

.lead {
  margin-top: 1rem;
  max-width: 74ch;
  font-size: 0.98rem;
}

.hero-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.hero-pillars span {
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 248, 240, 0.8);
  border: 1px solid rgba(117, 95, 74, 0.15);
  font-size: 0.92rem;
  font-weight: 700;
}

.media-stack {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.72fr);
  gap: 1rem;
  align-items: stretch;
}

.video-card,
.portrait-card,
.content-card {
  border-radius: var(--radius-xl);
}

.video-card {
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  height: 100%;
}

.section-intro h2 {
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
  max-width: none;
  text-wrap: balance;
}

.video-shell {
  position: relative;
  margin-top: 1rem;
  flex: 1;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(36, 29, 24, 0.94), rgba(74, 49, 31, 0.95));
  aspect-ratio: 16 / 9;
  min-height: 22rem;
}

.motivation-video,
.video-placeholder {
  width: 100%;
  height: 100%;
}

.motivation-video {
  object-fit: cover;
  background: #201813;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  padding: 2rem;
  text-align: center;
  background:
    linear-gradient(140deg, rgba(27, 21, 18, 0.8), rgba(84, 56, 35, 0.72)),
    url("./assets/images/portrait-from-doc.jpg") center/cover;
}

.video-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32, 24, 19, 0.2), rgba(32, 24, 19, 0.72));
}

.placeholder-title,
.placeholder-copy {
  position: relative;
  z-index: 1;
}

.placeholder-title {
  margin: 0 0 0.65rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff6ee;
}

.placeholder-copy {
  max-width: 34ch;
  margin: 0 auto;
  color: rgba(255, 245, 236, 0.86);
}

.portrait-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 0;
  height: 100%;
  padding: 0;
}

.portrait-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: inherit;
}

.portrait-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem 1rem 1rem;
  color: #fff7f0;
  background: linear-gradient(180deg, rgba(25, 20, 16, 0), rgba(25, 20, 16, 0.86));
}

.portrait-copy p {
  color: rgba(255, 244, 235, 0.86);
}

.portrait-label {
  color: #ffd9c8;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.content-card {
  padding: 1.45rem;
}

.facts-card {
  background:
    linear-gradient(180deg, rgba(255, 249, 242, 0.94), rgba(255, 246, 236, 0.88));
}

.facts-list {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 0;
}

.facts-list div {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.facts-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.facts-list dt {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.facts-list dd {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}

.contact-link {
  display: inline-flex;
  margin-top: 0.6rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  text-decoration: none;
  font-weight: 800;
}

.closing-note {
  margin-top: 1rem;
  font-size: 0.95rem;
}

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

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 1040px) {
  .media-stack,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .video-shell {
    min-height: 0;
  }

  .portrait-card img {
    min-height: 0;
    height: min(78vw, 32rem);
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 1rem), var(--max-width));
    padding-top: 1rem;
  }

  .gate-panel,
  .video-card,
  .content-card,
  .portrait-card {
    border-radius: 24px;
  }

  .gate-panel {
    margin-top: 4vh;
    padding: 1.4rem;
  }

  .password-row {
    flex-direction: column;
  }

  .hero-copy h1 {
    font-size: clamp(2.2rem, 13vw, 3.2rem);
    max-width: none;
  }

  .portrait-card img {
    width: 100%;
    height: min(86vw, 460px);
  }

  .video-shell {
    aspect-ratio: 16 / 10;
  }
}
