/* ========== HERO — physician-led editorial composition ========== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--nav-height));
  overflow: hidden;
  padding: 72px var(--space-3) 80px;
  background:
    radial-gradient(48% 52% at 88% 8%, rgba(184, 115, 51, 0.09), transparent 72%),
    var(--bg-white);
}

.hero::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -240px;
  bottom: -290px;
  border: 1px solid rgba(184, 115, 51, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 56px rgba(184, 115, 51, 0.025), 0 0 0 112px rgba(184, 115, 51, 0.018);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 54fr) minmax(420px, 46fr);
  gap: clamp(56px, 7vw, 104px);
  align-items: center;
}

.hero-copy { text-align: left; }

.hero-eyebrow {
  margin-bottom: var(--space-3);
  animation: heroFade 0.2s ease forwards;
  opacity: 0;
}

.hero-title {
  max-width: 15ch;
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.hero-title .line:has(.hero-accent) { padding-bottom: 0.2em; }

.hero-title .line-inner {
  display: inline-block;
  transform: translateY(110%);
  animation: heroMask 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.hero-title .line:nth-child(2) .line-inner { animation-delay: 0.09s; }

.hero-accent {
  padding-right: 0.08em;
  font-family: var(--font-accent);
  font-size: 1.02em;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0;
  background: linear-gradient(100deg, #8A5524 0%, #B87333 35%, #D89B6A 50%, #B87333 65%, #8A5524 100%);
  background-size: 220% 100%;
  background-position: 120% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: heroMask 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.09s forwards,
             heroGlint 0.9s ease-out 1.2s 1 forwards;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-accent { background: none; color: var(--copper-600); }
}

.hero-sub {
  max-width: 52ch;
  margin-bottom: var(--space-4);
  font-family: var(--font-text);
  font-size: clamp(16px, 1.3vw, 19px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-600);
  animation: fadeInUp 0.45s ease-out 0.2s forwards;
  opacity: 0;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  animation: fadeInUp 0.45s ease-out 0.26s forwards;
  opacity: 0;
}

.hero-cta .cta-primary {
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  background: var(--metal-copper);
  text-decoration: none;
}

.hero-cta .cta-primary:hover { background: var(--copper-600); }
.hero-cta .cta-ghost { border-radius: var(--radius-pill); text-decoration: none; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: var(--space-3);
  row-gap: 6px;
  margin: var(--space-4) 0 0;
  padding: var(--space-3) 0 0;
  border-top: 1px solid var(--border-soft);
  list-style: none;
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink-500);
  animation: fadeInUp 0.45s ease-out 0.32s forwards;
  opacity: 0;
}

.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }

.hero-trust li:not(:last-child)::after {
  content: "\00B7";
  color: var(--ink-400);
}

.hero-trust strong { color: var(--copper-700); font-weight: 700; }

.hero-trust .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-300);
  animation: heroPulse 2s ease-in-out infinite;
}

/* ===== portrait composition ===== */

.hero-visual {
  position: relative;
  width: min(100%, 520px);
  justify-self: end;
  padding: 28px 28px 34px 0;
  animation: fadeInScale 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s forwards;
  opacity: 0;
}

.hero-portrait {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(184, 115, 51, 0.28);
  border-radius: 34px 34px 92px 34px;
  background: #0D2940;
  box-shadow: 0 3px 8px rgba(30, 21, 14, 0.10), 0 34px 80px rgba(30, 21, 14, 0.22);
}

.hero-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 54%, rgba(7, 18, 29, 0.22) 70%, rgba(7, 18, 29, 0.94) 100%);
  pointer-events: none;
}

.hero-portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
}

.hero-founder-card {
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 190px;
  bottom: 25px;
  display: flex;
  flex-direction: column;
  color: #FFFFFF;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.28);
}

.hero-founder-label {
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #E8B58E;
}

.hero-founder-card strong {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.hero-founder-card > span:last-child {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.76);
}

.hero-brand-card {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  width: 184px;
  aspect-ratio: 1.12;
  overflow: hidden;
  padding: 7px;
  border: 1px solid rgba(216, 155, 106, 0.38);
  border-radius: 24px;
  background: #101116;
  box-shadow: 0 18px 44px rgba(12, 18, 24, 0.30);
}

.hero-brand-card img {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  object-fit: cover;
}

.hero-proof-card {
  position: absolute;
  z-index: 3;
  top: 0;
  left: -34px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-lift);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: var(--font-text);
}

.hero-proof-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 11px;
  background: var(--metal-copper);
  color: #FFFFFF;
  font-size: 22px;
  line-height: 1;
  box-shadow: var(--shadow-copper);
}

.hero-proof-card > span:last-child {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  line-height: 1.35;
  color: var(--ink-500);
}

.hero-proof-card strong {
  font-size: 12px;
  color: var(--ink-800);
}

@keyframes heroFade { to { opacity: 1; } }
@keyframes heroMask { to { transform: translateY(0); } }
@keyframes heroGlint { to { background-position: 0% 0; } }
@keyframes heroPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero-sub, .hero-cta, .hero-trust, .hero-visual {
    opacity: 1;
    animation: none;
  }
  .hero-title .line-inner { transform: none; animation: none; }
  .hero-accent { animation: none; background-position: 50% 0; }
  .hero-trust .live-dot { animation: none; }
}

@media (max-width: 1050px) {
  .hero-content {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.82fr);
    gap: 44px;
  }
  .hero-proof-card { left: -18px; }
  .hero-portrait { min-height: 520px; }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 48px var(--space-2) var(--space-8);
  }
  .hero-content { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 680px; }
  .hero-cta { flex-direction: column; }
  .hero-cta a { width: 100%; }
  .hero-visual { width: min(100%, 560px); justify-self: center; }
}

@media (max-width: 560px) {
  .hero { padding-top: 38px; }
  .hero-title { font-size: clamp(38px, 12vw, 52px); }
  .hero-visual { padding: 20px 16px 24px 0; }
  .hero-portrait { min-height: 440px; border-radius: 26px 26px 68px 26px; }
  .hero-portrait-img { object-position: 50% 45%; }
  .hero-founder-card { left: 20px; right: 132px; bottom: 18px; }
  .hero-founder-card strong { font-size: 17px; }
  .hero-founder-card > span:last-child { font-size: 10px; }
  .hero-brand-card { width: 128px; padding: 5px; border-radius: 18px; }
  .hero-brand-card img { border-radius: 13px; }
  .hero-proof-card { left: -4px; padding: 9px 11px 9px 9px; }
  .hero-proof-icon { width: 30px; height: 30px; border-radius: 9px; }
  .hero-proof-card > span:last-child { font-size: 9.5px; }
  .hero-proof-card strong { font-size: 11px; }
}
