/* ============================================
   Dra. Ana Matumoto — Hero
   Editorial luxe · dark cinematic
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
  background: var(--bg);
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

:root {
  /* Surfaces */
  --bg: #0a0807;
  --bg-2: #15110e;

  /* Ink */
  --ink: #f4eee3;
  --ink-soft: rgba(244, 238, 227, 0.74);
  --ink-mute: rgba(244, 238, 227, 0.46);
  --line: rgba(244, 238, 227, 0.14);
  --line-strong: rgba(244, 238, 227, 0.28);

  /* Accent — champagne / warm gold */
  --accent: #cba36b;
  --accent-2: #e3c79c;
  --accent-soft: rgba(203, 163, 107, 0.18);

  /* Type */
  --f-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --f-sans: "Hanken Grotesk", "Inter", system-ui, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ============================================
   TOPBAR
   ============================================ */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: clamp(18px, 2.2vw, 26px) clamp(20px, 4vw, 56px);
  pointer-events: none;
}

.topbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  justify-self: start;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--f-display);
  font-weight: 400;
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: rgba(10, 8, 7, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.brand-name {
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.brand-name em {
  font-style: italic;
  color: var(--accent-2);
  font-weight: 400;
}

.topbar-nav {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 8, 7, 0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.topbar-nav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease);
  position: relative;
}

.topbar-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease-out);
}

.topbar-nav a:hover {
  color: var(--ink);
}

.topbar-nav a:hover::after {
  transform: scaleX(1);
}

.topbar-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 12px 20px 12px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(10, 8, 7, 0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.4s var(--ease);
}

.topbar-cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.4s var(--ease);
}

.topbar-cta:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}

.topbar-cta:hover svg {
  transform: translateX(3px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100svh;
  z-index: -2;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% center;
  filter: contrast(1.02) saturate(0.92);
  transform: scale(1);
  animation: heroPan 18s var(--ease-out) forwards;
}

.hero-img--mobile {
  display: none;
}

@keyframes heroPan {
  0% {
    transform: scale(1.035);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes heroPanMobile {
  0% {
    transform: scale(0.85);
  }
  100% {
    transform: scale(0.82);
  }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 100% at -10% 60%,
      rgba(10, 8, 7, 0.96) 0%,
      rgba(10, 8, 7, 0.6) 35%,
      transparent 65%),
    linear-gradient(100deg,
      rgba(10, 8, 7, 0.92) 0%,
      rgba(10, 8, 7, 0.7) 25%,
      rgba(10, 8, 7, 0.32) 50%,
      rgba(10, 8, 7, 0.1) 75%,
      transparent 100%),
    linear-gradient(to bottom,
      rgba(10, 8, 7, 0.35) 0%,
      transparent 22%,
      transparent 70%,
      rgba(10, 8, 7, 0.6) 100%);
  pointer-events: none;
}

.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.22;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-frame {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
  padding: clamp(96px, 11vh, 130px) clamp(20px, 4vw, 64px) clamp(56px, 7vh, 90px);
}

/* ---------- Content column ---------- */
.hero-content {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 9px 18px 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 8, 7, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: clamp(28px, 4vh, 40px);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 4px var(--accent-soft);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(203, 163, 107, 0.08);
  }
}

.eyebrow-text strong {
  color: var(--ink);
  font-weight: 600;
}

/* Headline */
.headline {
  font-family: var(--f-display);
  font-weight: 350;
  font-size: clamp(46px, 7.4vw, 128px);
  line-height: 0.94;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 40;
}

.headline .line {
  display: block;
  overflow: hidden;
}

.headline .line-inner {
  display: inline-block;
}

.headline em {
  font-style: italic;
  font-weight: 350;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.headline .strike {
  position: relative;
  color: var(--ink-mute);
  font-weight: 350;
}

.headline .strike::after {
  content: "";
  position: absolute;
  left: -0.05em;
  right: -0.05em;
  top: 56%;
  height: 1px;
  background: var(--ink-mute);
  transform: scaleX(0);
  transform-origin: left center;
  animation: strike 0.9s 1.4s var(--ease-out) forwards;
}

@keyframes strike {
  to {
    transform: scaleX(1);
  }
}

.headline .line--accent {
  font-style: italic;
  color: var(--accent-2);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.headline .period {
  color: var(--accent);
  margin-left: -0.04em;
}

/* Lede */
.lede {
  margin-top: clamp(28px, 4vh, 40px);
  max-width: 540px;
  font-size: clamp(15.5px, 1.15vw, 18.5px);
  line-height: 1.58;
  font-weight: 300;
  color: var(--ink-soft);
}

.lede strong {
  color: var(--ink);
  font-weight: 500;
}

.lede em {
  font-family: var(--f-display);
  font-style: italic;
  color: var(--accent-2);
  font-weight: 400;
}

/* Urgency line */
.urgency {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.urgency::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

/* CTAs */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: clamp(24px, 3.2vh, 36px);
}

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 19px 32px;
  border-radius: 999px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
  white-space: nowrap;
}

.cta-label,
.cta-arrow {
  position: relative;
  z-index: 2;
}

.cta--primary {
  background: var(--ink);
  color: var(--bg);
}

.cta--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--accent-2) 0%, var(--accent) 100%);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-out);
  z-index: 1;
}

.cta--primary:hover::before {
  transform: translateY(0);
}

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

.cta-arrow svg {
  width: 22px;
  height: 10px;
  transition: transform 0.4s var(--ease);
}

.cta--primary:hover .cta-arrow svg {
  transform: translateX(5px);
}

.cta--ghost {
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  background: rgba(10, 8, 7, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: none;
  font-size: 14px;
  padding: 18px 26px;
}

.cta--ghost .cta-arrow svg {
  width: 18px;
  height: 9px;
  opacity: 0.6;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

.cta--ghost:hover {
  color: var(--ink);
  border-color: var(--accent);
}

.cta--ghost:hover .cta-arrow svg {
  transform: translateX(4px);
  opacity: 1;
  color: var(--accent-2);
}

/* Trust strip */
.trust {
  display: flex;
  gap: clamp(28px, 4vw, 56px);
  flex-wrap: wrap;
  margin-top: clamp(48px, 7vh, 72px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
  width: 100%;
  max-width: 620px;
}

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

.trust .label {
  font-family: var(--f-display);
  font-weight: 400;
  font-style: italic;
  font-size: 19px;
  color: var(--ink);
  font-variation-settings: "opsz" 36, "SOFT" 80;
}

.trust .sub {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- Meta column (right edge) ---------- */
.hero-meta {
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding-bottom: 8px;
  color: var(--ink-mute);
}

.meta-year {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  font-variation-settings: "opsz" 24, "SOFT" 100;
}

.meta-divider {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, var(--line-strong), transparent);
}

.meta-vert {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.meta-vert--accent {
  color: var(--accent-2);
}

/* ---------- Bottom ticker ---------- */
.hero-ticker {
  position: relative;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
  background: rgba(10, 8, 7, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-ticker::before,
.hero-ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.hero-ticker::before {
  left: 0;
  background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
}

.hero-ticker::after {
  right: 0;
  background: linear-gradient(to left, var(--bg) 0%, transparent 100%);
}

.ticker-track {
  display: flex;
  gap: 38px;
  white-space: nowrap;
  animation: ticker 48s linear infinite;
  width: max-content;
}

.ticker-track span {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  font-variation-settings: "opsz" 24, "SOFT" 80;
}

.ticker-track .dot {
  color: var(--accent);
  font-style: normal;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* ============================================
   ENTRANCE ANIMATIONS
   ============================================ */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes lineReveal {
  from {
    transform: translateY(105%);
  }
  to {
    transform: translateY(0);
  }
}

.topbar { animation: fadeIn 1.4s 0.1s var(--ease-out) backwards; }
.eyebrow { animation: rise 0.9s 0.25s var(--ease-out) backwards; }

.headline .line-inner {
  animation: lineReveal 1s var(--ease-out) backwards;
}
.headline .line:nth-child(1) .line-inner { animation-delay: 0.4s; }
.headline .line:nth-child(2) .line-inner { animation-delay: 0.55s; }
.headline .line:nth-child(3) .line-inner { animation-delay: 0.7s; }

.lede { animation: rise 1s 0.95s var(--ease-out) backwards; }
.urgency { animation: rise 1s 1.05s var(--ease-out) backwards; }
.cta-row { animation: rise 1s 1.15s var(--ease-out) backwards; }
.trust { animation: rise 1s 1.3s var(--ease-out) backwards; }
.hero-meta { animation: fadeIn 1.4s 1.4s var(--ease-out) backwards; }
.hero-ticker { animation: fadeIn 1.4s 1.5s var(--ease-out) backwards; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-img { transform: none; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1080px) {
  .topbar-nav { display: none; }
  .topbar-inner { grid-template-columns: 1fr auto; }

  .hero-meta { display: none; }
  .hero-frame { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  /* Reduce hero-bg height: less cover upscaling = head naturally smaller, no side bars */
  .hero-bg {
    height: 64vh;
    height: 64svh;
  }

  .hero-img--desktop { display: none; }
  .hero-img--mobile {
    display: block;
    object-position: 60% 26%;
  }

  /* —— Saved fallback A: tighter mobile crop with scale-down (creates dark vignette on sides) ——
  .hero-img--mobile {
    display: block;
    object-position: 60% 22%;
    transform: scale(0.82);
    transform-origin: 50% 26%;
    animation: heroPanMobile 18s var(--ease-out) forwards;
  }
  */

  /* —— Saved fallback B: wider source (v1.png) on mobile — head stays similar size, more horizontal context ——
  .hero-img--desktop {
    display: block;
    object-position: 78% 28%;
  }
  .hero-img--mobile {
    display: none;
  }
  */

  .brand-name { display: none; }

  .hero-veil {
    background:
      linear-gradient(to bottom,
        rgba(10, 8, 7, 0.3) 0%,
        rgba(10, 8, 7, 0.05) 18%,
        rgba(10, 8, 7, 0.1) 40%,
        rgba(10, 8, 7, 0.78) 58%,
        rgba(10, 8, 7, 0.97) 72%,
        var(--bg) 100%);
  }

  .hero-frame {
    padding: 58vh 22px 32px;
    align-items: start;
  }

  .eyebrow {
    font-size: 10px;
    padding: 8px 14px 8px 12px;
    margin-bottom: 22px;
  }

  .headline {
    font-size: clamp(40px, 11.8vw, 60px);
    line-height: 0.98;
  }

  .lede {
    font-size: 15px;
    margin-top: 22px;
  }

  .cta-row {
    margin-top: 28px;
    width: 100%;
  }

  .cta--primary,
  .cta--ghost {
    flex: 1 1 100%;
    justify-content: center;
  }

  .trust {
    margin-top: 40px;
    padding-top: 24px;
    gap: 20px 36px;
  }

  .trust li {
    flex: 1 1 calc(50% - 36px);
  }

  .trust .label { font-size: 16px; }

  .ticker-track span { font-size: 12px; }
}

@media (max-width: 420px) {
  .topbar { padding: 16px 18px; }
  .topbar-cta { padding: 10px 16px; font-size: 11px; }
  .hero-frame { padding: 52vh 20px 28px; }
}
