:root {
  --black: #0A0A0A;
  --white: #FFFFFF;
  --bg-light: #F4F2ED;
  --gray-200: #E2E2E2;
  --gray-400: #9B9B9B;
  --gray-600: #5E5E5E;
  --gray-800: #2A2A2A;
  --error: #FF5C5C;
  --radius-sm: 6px;
  --radius-md: 0;
  --radius-lg: 0;
}

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

html, body {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ─── SCROLL SNAP LAYOUT ────────────────────────────────── */

.snap-container {
  height: 100vh;
  height: 100dvh;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
}

.snap-section {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* ─── HERO SECTION ──────────────────────────────────────── */

.hero-section {
  display: flex;
  flex-direction: column;
}


/* ─── BACKGROUND VIDEO ──────────────────────────────────── */

.video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 40%, rgba(0,0,0,0.7) 100%);
}

/* ─── HEADER ────────────────────────────────────────────── */

.header {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 20px 12px;
  flex-shrink: 0;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: -1;
}

.header-logo {
  height: 15px;
  width: auto;
}

.menu-toggle {
  position: absolute;
  left: 20px;
  top: calc(50% + 6px);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.header-bag-mobile {
  position: absolute;
  right: 20px;
  top: calc(50% + 6px);
  transform: translateY(-50%);
}

.header-bag-mobile svg {
  width: 28px;
  height: 28px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--white);
  transition: width 0.2s ease;
}

.menu-toggle span:last-child {
  width: 65%;
}

.menu-toggle:hover span:last-child {
  width: 100%;
}

.header-nav {
  display: none;
}

.header-icons {
  display: none;
}

@media (min-width: 900px) {
  .header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 28px 48px 12px;
  }

  .header-logo {
    height: 18px;
    justify-self: start;
    margin-left: 24px;
  }

  .menu-toggle {
    display: none;
  }

  .header-bag-mobile {
    display: none;
  }

  .header-nav {
    display: flex;
    justify-self: center;
    gap: 42px;
  }

  .header-nav a {
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s ease;
  }

  .header-nav a:hover {
    opacity: 1;
    font-weight: 700;
  }

  .header-icons {
    display: flex;
    justify-self: end;
    gap: 18px;
  }
}

.icon-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--white);
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.icon-btn:hover {
  opacity: 1;
}

.icon-btn svg {
  width: 19px;
  height: 19px;
  display: block;
}

/* ─── MOBILE DRAWER ─────────────────────────────────────── */

.drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(10, 10, 10, 0.5);
}

.drawer-backdrop.is-open {
  display: block;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 41;
  width: 78vw;
  max-width: 300px;
  background: var(--black);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  transform: translateX(-100%);
  transition: transform 0.35s ease;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.drawer-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 24px;
}

.drawer-links a {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 300;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none;
}

.drawer-icons {
  display: flex;
  gap: 22px;
  margin-top: auto;
}

.drawer-icons .icon-btn svg {
  width: 21px;
  height: 21px;
}

@media (min-width: 900px) {
  .drawer-backdrop,
  .mobile-drawer {
    display: none !important;
  }
}

/* ─── "EM BREVE" MODAL ──────────────────────────────────── */

.soon-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.85);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.soon-backdrop.is-open {
  display: flex;
}

.soon-modal {
  position: relative;
  width: 100%;
  max-width: 340px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 32px 26px 26px;
  text-align: center;
  color: var(--black);
}

.soon-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--gray-600);
  cursor: pointer;
}

.soon-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

.soon-cta {
  display: inline-block;
  width: 100%;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 13px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.soon-cta:hover {
  opacity: 0.85;
}

/* ─── MODAL ─────────────────────────────────────────────── */

.modal-backdrop {
  position: relative;
  z-index: 5;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  overflow-y: auto;
}

.modal-backdrop.is-hidden {
  display: none;
}

.modal {
  width: 100%;
  max-width: 300px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 18px 18px 16px;
  color: var(--black);
  margin: auto;
}

.modal-title {
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  margin-bottom: 10px;
}

.modal-subtitle {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--black);
  text-align: center;
  text-wrap: balance;
  margin: 0 auto 12px;
  max-width: 28ch;
  line-height: 1.3;
}

.modal-tagline {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black);
  text-align: center;
  margin: 0 auto 12px;
}

.modal-body {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--gray-600);
  text-align: center;
  margin: 0 auto 14px;
  line-height: 1.4;
}

.modal-body strong {
  font-weight: 700;
  color: var(--black);
}

/* ─── FORM ──────────────────────────────────────────────── */

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-800);
}

.field-label-compact {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-600);
  display: block;
  margin-bottom: 2px;
}

.required {
  color: var(--error);
  margin-left: 2px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  background: rgba(10, 10, 10, 0.03);
  border: 1px solid rgba(10, 10, 10, 0.15);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--black);
  font-size: 0.8rem;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field input::placeholder {
  color: var(--gray-400);
}

.field input:focus {
  outline: none;
  border-color: var(--black);
  background: rgba(10, 10, 10, 0.05);
}

.segmented {
  display: flex;
  background: rgba(10, 10, 10, 0.05);
  border: 1px solid rgba(10, 10, 10, 0.1);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}

.segment {
  flex: 1;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  padding: 7px 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 400px) {
  .segment {
    font-size: 0.62rem;
    padding: 7px 2px;
  }
}

.segment input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.segment:has(input:checked) {
  background: var(--white);
  color: var(--black);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.65rem;
  color: var(--gray-600);
  line-height: 1.4;
  cursor: pointer;
  margin-top: 2px;
}

.checkbox-option input {
  transform: scale(0.85);
  margin-top: 2px;
  accent-color: var(--black);
  flex-shrink: 0;
}

.checkbox-option a {
  text-decoration: underline;
  color: var(--gray-800);
}

.form-error {
  font-size: 0.8rem;
  color: var(--error);
  min-height: 1em;
  display: none;
}

.form-error.visible {
  display: block;
}

.submit-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 6px;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: color 0.4s ease;
}

.btn-label {
  position: relative;
  z-index: 1;
  color: var(--white);
}

.submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.submit-btn:hover {
  background: #4A4A4A;
}

.submit-btn:hover::before {
  transform: scaleX(1);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-fineprint {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--gray-400);
  text-align: center;
  margin: 6px 0 0;
  line-height: 1.3;
}

.success-state {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 4px 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.success-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.success-body {
  color: var(--gray-700, var(--gray-600));
}

.success-cta {
  width: 100%;
  margin-top: 10px;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.success-no {
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 0.72rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 2px;
}

.extra-form {
  display: none;
  flex-direction: column;
  gap: 8px;
}

.segmented-6 {
  flex-wrap: wrap;
}

.segmented-6 .segment {
  flex: 1 1 30%;
}

#academia + .checkbox-option {
  margin-top: 6px;
}

/* ─── MODAL STATE MACHINE ───────────────────────────────── */

.modal.is-success .lead-form,
.modal.is-extra .lead-form,
.modal.is-done .lead-form {
  display: none;
}

.modal.is-success .modal-title,
.modal.is-extra .modal-title,
.modal.is-done .modal-title,
.modal.is-success .modal-subtitle,
.modal.is-extra .modal-subtitle,
.modal.is-done .modal-subtitle,
.modal.is-success .modal-tagline,
.modal.is-extra .modal-tagline,
.modal.is-done .modal-tagline,
.modal.is-success .modal-body,
.modal.is-extra .modal-body,
.modal.is-done .modal-body {
  display: none;
}

.modal.is-success #success-state {
  display: flex;
}

.modal.is-success,
.modal.is-done {
  max-width: 320px;
}

.modal.is-extra #success-state {
  display: none;
}

.modal.is-extra .extra-form {
  display: flex;
}

.modal.is-extra .extra-form .modal-subtitle {
  display: block;
}

.modal.is-done .extra-form {
  display: none;
}

.modal.is-done #success-final {
  display: flex;
}

/* ─── FOOTER ────────────────────────────────────────────── */

.page-footer {
  text-align: center;
  margin-top: 36px;
  font-size: 0.7rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.page-footer--hero {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  z-index: 6;
  margin-top: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.6rem;
  padding: 0 10px;
}

@media (min-width: 640px) {
  .modal {
    padding: 22px 24px 20px;
  }

  .modal-title {
    font-size: 1.55rem;
  }

  .modal-body {
    font-size: 0.8rem;
  }
}

@media (min-width: 900px) {
  .modal,
  .modal.is-success,
  .modal.is-done {
    max-width: 440px;
    padding: 34px 36px 32px;
  }

  .lead-form {
    gap: 12px;
  }

  .field input[type="text"],
  .field input[type="email"],
  .field input[type="tel"] {
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .checkbox-option {
    font-size: 0.75rem;
  }

  .submit-btn {
    padding: 15px;
    font-size: 0.78rem;
  }
}

/* ─── SECTION TITLES (shared) ───────────────────────────── */

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--black);
  text-align: center;
  margin-bottom: 12px;
}

.section-support {
  font-size: 0.95rem;
  color: var(--gray-600);
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.45;
}

.section-title.light { color: var(--white); }
.section-support.light { color: var(--gray-200); }

/* ─── JOURNAL SECTION ───────────────────────────────────── */

.journal-section {
  background: var(--bg-light);
  overflow-y: auto;
  padding: clamp(20px, 5vh, 56px) 0;
  display: flex;
  align-items: center;
}

.journal-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.journal-header {
  margin-bottom: clamp(14px, 3vh, 28px);
}

.journal-cards {
  list-style: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: clamp(14px, 3vh, 32px);
  padding: 6px 20px 26px;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-padding-left: 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

@media (min-width: 900px) {
  .journal-cards {
    padding: 6px 48px 26px;
    scroll-padding-left: 48px;
  }
}

.journal-cards::-webkit-scrollbar {
  display: none;
}

.journal-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  text-align: left;
  background: var(--white);
  box-shadow: 0 2px 4px rgba(17, 17, 16, 0.05), 0 18px 36px -18px rgba(17, 17, 16, 0.22);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.journal-card:has(a:hover) {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(17, 17, 16, 0.07), 0 26px 48px -18px rgba(17, 17, 16, 0.3);
}

.journal-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: var(--black);
}

.journal-card-img {
  display: block;
  position: relative;
  height: clamp(170px, 28vh, 290px);
  overflow: hidden;
  background: var(--gray-200);
}

.journal-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.28), rgba(10, 10, 10, 0) 45%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.journal-card a:hover .journal-card-img::after {
  opacity: 1;
}

.journal-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.journal-card a:hover .journal-card-img img {
  transform: scale(1.06);
}

.journal-card-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 16px 18px;
}

.journal-card-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.journal-card-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--gray-600);
}

.journal-card.skeleton {
  height: clamp(230px, 36vh, 340px);
  background: rgba(17, 17, 16, 0.04);
  box-shadow: none;
}

.journal-row-error {
  padding: 20px 2px;
  color: var(--gray-600);
}

@media (min-width: 640px) {
  .journal-card {
    flex: 0 0 260px;
  }

  .journal-card-title {
    font-size: 1.1rem;
  }
}

.journal-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-bottom: 20px;
}

.journal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(17, 17, 16, 0.18);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.journal-dot.active {
  background: var(--black);
  transform: scale(1.35);
}

@media (min-width: 640px) {
  .journal-dots {
    display: none;
  }
}

.journal-link {
  display: inline-block;
  border: 1px solid rgba(17, 17, 16, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--black);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.journal-link:hover {
  background: var(--black);
  color: var(--white);
}

/* ─── INSTAGRAM SECTION ─────────────────────────────────── */

.instagram-section {
  background: var(--black);
  overflow-y: auto;
  padding: 56px 24px;
}

.instagram-inner {
  max-width: 1400px;
  min-width: 0;
  margin: 0 auto;
  text-align: center;
}

.instagram-inner .section-title {
  margin-bottom: 12px;
  text-align: center;
}

.instagram-inner .section-support {
  margin-bottom: 32px;
  text-align: center;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.instagram-grid {
  width: calc(100% + 48px);
  min-width: 0;
  margin-left: -24px;
  margin-right: -24px;
  overflow-x: auto;
  overflow-y: hidden;
  overflow-anchor: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.instagram-grid::-webkit-scrollbar {
  display: none;
}

.instagram-track {
  display: flex;
  gap: 10px;
  width: max-content;
}

.instagram-grid .instagram-tile {
  flex: 0 0 220px;
  scroll-snap-align: start;
}

@media (min-width: 900px) {
  .instagram-grid .instagram-tile {
    flex: 0 0 300px;
  }
}

.instagram-tile {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--gray-800);
}

.instagram-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.instagram-tile:hover img {
  transform: scale(1.05);
}

.instagram-btn {
  display: inline-block;
  margin-top: 32px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.instagram-btn:hover {
  background: var(--white);
  color: var(--black);
}
