:root {
  --home-jungle: #09381F;
  --home-lilac: #E6D4E6;
  --home-jungle-soft: #0d4b32;
  --home-panel: rgba(255, 255, 255, 0.04);
  --home-line: rgba(230, 212, 230, 0.18);
}

/* Home page only */
body {
  background: var(--home-jungle);
  color: var(--home-lilac);
}

body.light-mode {
  --home-jungle: #09381F;
  --home-lilac: #E6D4E6;
  --home-jungle-soft: #0d4b32;
  --home-panel: rgba(9, 56, 31, 0.04);
  --home-line: rgba(9, 56, 31, 0.18);
  background: var(--home-lilac);
  color: var(--home-jungle);
}

body.light-mode .hero {
  background: radial-gradient(circle at top left, rgba(9, 56, 31, 0.08), transparent 18%),
    radial-gradient(circle at bottom right, rgba(9, 56, 31, 0.08), transparent 26%),
    var(--home-lilac);
}

body.light-mode .hero::before {
  background-image: linear-gradient(rgba(9, 56, 31, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 56, 31, 0.06) 1px, transparent 1px);
  opacity: 0.8;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 70px;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(230, 212, 230, 0.08), transparent 20%),
    radial-gradient(circle at bottom right, rgba(230, 212, 230, 0.06), transparent 25%),
    var(--home-jungle);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(230, 212, 230, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 212, 230, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 90%);
  -webkit-mask-image: radial-gradient(circle at center, black 35%, transparent 90%);
  opacity: 0.7;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 390px);
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 24px;
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(230, 212, 230, 0.18);
  background: linear-gradient(120deg, rgba(230, 212, 230, 0.1), rgba(230, 212, 230, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.12);
  color: var(--home-lilac);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(230, 212, 230, 0.18);
  overflow: hidden;
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  isolation: isolate;
}

.hero-subtitle::before {
  content: "";
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5e7f5, #d9ddff);
  box-shadow: 0 0 12px rgba(230, 212, 230, 0.8);
  flex-shrink: 0;
  animation: badgePulse 2.4s ease-in-out infinite;
}

.hero-subtitle::after {
  content: "|";
  display: inline-block;
  margin-left: 1px;
  color: var(--home-lilac);
  font-weight: 400;
  animation: heroCursorBlink 0.9s steps(1) infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.hero-title {
  margin: 0 0 24px;
  font-size: clamp(3.1rem, 5.6vw, 5.3rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  font-weight: 800;
  color: var(--home-lilac);
}

.hero-title span {
  background: linear-gradient(135deg, var(--home-lilac) 0%, rgba(230, 212, 230, 0.62) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.light-mode .hero-title,
body.light-mode .hero-description,
body.light-mode .hero-subtitle,
body.light-mode .hero-actions .btn,
body.light-mode .hero-actions .btn-outline,
body.light-mode .nav-link,
body.light-mode .header-cta {
  color: var(--home-jungle);
}

body.light-mode .hero-subtitle {
  border-color: rgba(9, 56, 31, 0.18);
  background: rgba(9, 56, 31, 0.06);
}

body.light-mode .hero-title span {
  background: linear-gradient(135deg, var(--home-jungle) 0%, rgba(9, 56, 31, 0.72) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.light-mode .hero-description {
  color: rgba(9, 56, 31, 0.8);
}

body.light-mode .hero-actions .btn {
  background: var(--home-jungle);
  color: var(--home-lilac);
  border-color: rgba(9, 56, 31, 0.2);
}

body.light-mode .hero-actions .btn-outline {
  background: rgba(9, 56, 31, 0.04);
  color: var(--home-jungle);
  border-color: rgba(9, 56, 31, 0.18);
}

.hero-description {
  max-width: 620px;
  margin: 0 0 32px;
  color: rgba(230, 212, 230, 0.8);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions .btn,
.hero-actions .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 14px;
  border: 1px solid rgba(230, 212, 230, 0.2);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: 0.25s ease;
}

.hero-actions .btn {
  background: linear-gradient(135deg, var(--home-lilac) 0%, rgba(230, 212, 230, 0.8) 100%);
  color: var(--home-jungle);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.hero-actions .btn-outline {
  background: rgba(230, 212, 230, 0.04);
  color: var(--home-lilac);
}

.hero-portrait {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 1;
  justify-self: end;
}

.hero-banner-overlay,
.hero-banner-typed,
.hero-banner-title {
  display: none;
}

.hero-orbit {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: heroFloat 9s ease-in-out infinite;
}

.orbit-ring {
  position: absolute;
  inset: 50% auto auto 50%;
  border-radius: 50%;
  border: 1px solid rgba(230, 212, 230, 0.25);
  transform: translate(-50%, -50%);
}

.ring-a {
  width: 100%;
  height: 100%;
  animation: orbitSpin 20s linear infinite;
}

.ring-b {
  width: 72%;
  height: 72%;
  border-style: dashed;
  animation: orbitSpinReverse 16s linear infinite;
}

.ring-c {
  width: 86%;
  height: 86%;
  animation: pulseRing 7s ease-in-out infinite;
}

.profile-glow {
  position: absolute;
  inset: 26%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 212, 230, 0.32), rgba(230, 212, 230, 0.08) 35%, transparent 72%);
  filter: blur(10px);
  animation: glowPulse 6s ease-in-out infinite;
}

.profile-frame {
  position: absolute;
  inset: 20%;
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid rgba(230, 212, 230, 0.35);
  background: linear-gradient(140deg, rgba(9, 56, 31, 0.7), rgba(230, 212, 230, 0.08));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45), 0 0 0 10px rgba(230, 212, 230, 0.04);
}

.profile-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transform: scale(1.05);
}

.orbit-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--home-lilac);
  box-shadow: 0 0 18px rgba(230, 212, 230, 0.8);
}

.dot-a { top: 12%; left: 62%; }
.dot-b { top: 70%; left: 22%; }
.dot-c { top: 38%; left: 82%; width: 7px; height: 7px; }

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes orbitSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes orbitSpinReverse {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to { transform: translate(-50%, -50%) rotate(0deg); }
}

@keyframes pulseRing {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.65; }
  50% { transform: translate(-50%, -50%) scale(1.06); opacity: 1; }
}

@keyframes glowPulse {
  0%, 100% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes portraitReveal {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes glowReveal {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes heroCursorBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ============================================================
   TABLET (<=900px) — desktop layout slightly tightened
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 240px;
    gap: 18px;
  }

  .hero-title {
    font-size: clamp(2.7rem, 7vw, 4.1rem);
  }
}

/* ============================================================
   MOBILE — Editorial "cover" hero
   Portrait becomes a wide cinematic banner at the top.
   Text flows beneath it in a single column.
   ============================================================ */
@media (max-width: 768px) {
  .hero-subtitle,
  .hero-title {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding-top: 88px;
    padding-bottom: 40px;
    display: block;
    overflow: hidden;
  }

  .hero-inner {
    width: 100%;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    width: min(100%, calc(100% - 28px));
    margin: 0 auto;
    padding-top: 4px;
    gap: 18px;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    display: block;
    max-width: 100%;
    padding: 0;
    margin: 0;
    order: 2;
  }

  .hero-portrait {
    display: block !important;
    position: relative !important;
    order: 1;
    width: 100% !important;
    height: 360px !important;
    max-width: 100% !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    transform: none !important;
    box-shadow:
      0 0 0 1px rgba(230, 212, 230, 0.14),
      0 20px 44px rgba(0, 0, 0, 0.5);
    background: linear-gradient(160deg, rgba(230, 212, 230, 0.08), rgba(9, 56, 31, 0.55));
    z-index: 0;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .hero-portrait:active {
    transform: scale(0.985);
  }

  .hero-orbit {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    animation: none !important;
    transform: none !important;
  }

  .orbit-ring,
  .orbit-dot,
  .profile-glow {
    display: none !important;
  }

  .profile-frame {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  .profile-photo {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 20px !important;
    object-fit: cover !important;
    object-position: center 22% !important;
    transform: scale(1.01) !important;
    filter: saturate(1.05) contrast(1.03) !important;
    transition: filter 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  .hero-banner-overlay,
  .hero-banner-typed,
  .hero-banner-title {
    display: block;
  }

  .hero-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(5, 13, 10, 0.88) 0%, rgba(5, 13, 10, 0.7) 24%, rgba(5, 13, 10, 0.18) 54%, rgba(5, 13, 10, 0.9) 100%),
      linear-gradient(90deg, rgba(230, 212, 230, 0.12), rgba(230, 212, 230, 0.02), rgba(230, 212, 230, 0.12));
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .hero-banner-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02) 35%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.04));
    mix-blend-mode: screen;
    opacity: 0.9;
  }

  .hero-banner-typed {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: calc(100% - 28px);
    width: fit-content;
    padding: 7px 12px 7px 10px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    line-height: 1.4;
    color: #F2E8F2;
    background: linear-gradient(120deg, rgba(4, 26, 14, 0.5), rgba(4, 26, 14, 0.28));
    border: 1px solid rgba(230, 212, 230, 0.18);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 20px rgba(0, 0, 0, 0.28);
    white-space: nowrap;
    text-align: left;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .hero-banner-typed::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5e7f5, #d4d9ff);
    box-shadow: 0 0 12px rgba(230, 212, 230, 0.8);
    vertical-align: middle;
    animation: badgePulse 2.4s ease-in-out infinite;
  }

  .hero-banner-typed::after {
    content: '|';
    display: inline-block;
    margin-left: 2px;
    color: #F2E8F2;
    font-weight: 400;
    animation: heroCursorBlink 0.85s steps(1) infinite;
  }

    .hero-banner-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    margin: 0;
    padding: 22px 18px 20px;
    border-radius: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.2rem, 9vw, 3rem);
    line-height: 0.96;
    letter-spacing: -0.045em;
    font-weight: 800;
    color: #F2E8F2;
    background: linear-gradient(
      180deg,
      rgba(5, 20, 12, 0) 0%,
      rgba(5, 20, 12, 0.55) 35%,
      rgba(5, 20, 12, 0.85) 100%
    );
    text-wrap: balance;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .hero-banner-title span {
    background: linear-gradient(135deg, #E6D4E6 0%, rgba(230, 212, 230, 0.68) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }

  .hero-portrait.is-revealed .hero-banner-title {
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
  }

  .hero-portrait.is-revealed .hero-banner-typed {
    opacity: 0;
    pointer-events: none;
  }

  .hero-portrait.is-revealed .hero-banner-overlay {
    opacity: 0;
  }

  .hero-portrait.is-revealed .profile-photo {
    filter: saturate(1.1) contrast(1.06) brightness(1.04) !important;
    transform: scale(1.03) !important;
  }

  .hero-description {
    position: relative;
    z-index: 2;
    font-size: 0.94rem;
    line-height: 1.6;
    margin: 0 0 22px;
    max-width: 100%;
    color: rgba(230, 212, 230, 0.82);
  }

  .hero-actions {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 0;
    width: 100%;
  }

  .hero-actions .btn,
  .hero-actions .btn-outline {
    width: 100%;
    min-height: 50px;
  }
}

/* ============================================================
   SMALL PHONES
   ============================================================ */
@media (max-width: 500px) {
  .hero{
    padding-top: 84px;
    padding-bottom: 34px;
  }

  .hero-grid {
    width: min(100%, calc(100% - 22px));
    gap: 16px;
  }

  .hero-portrait {
    aspect-ratio: 4 / 3 !important;
    border-radius: 18px !important;
  }

  .hero-orbit,
  .profile-frame,
  .profile-photo {
    border-radius: 18px !important;
  }

  .profile-photo {
    object-position: center 20% !important;
  }

  .hero-banner-typed {
    top: 12px;
    left: 12px;
    right: 12px;
    padding: 5px 10px;
    font-size: 0.56rem;
    letter-spacing: 0.1em;
    max-width: calc(100% - 24px);
  }

  .hero-banner-title {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px 16px 18px;
    font-size: clamp(2.2rem, 10vw, 3.2rem);
    line-height: 0.9;
  }

  .hero-banner-overlay {
    border-radius: 18px;
  }

  .hero-description {
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 20px;
  }

  .hero-actions .btn,
  .hero-actions .btn-outline {
    min-height: 48px;
    padding: 13px 22px;
    font-size: 0.9rem;
  }
}

/* ============================================================
   VERY SMALL PHONES
   ============================================================ */
@media (max-width: 380px) {
  .hero {
    padding-top: 78px;
    padding-bottom: 30px;
  }

  .hero-grid {
    width: min(100%, calc(100% - 18px));
    gap: 14px;
  }

  .hero-portrait {
    aspect-ratio: 3 / 2 !important;    /* wider still so it's not too tall */
    border-radius: 16px !important;
  }

  .hero-orbit,
  .profile-frame,
  .profile-photo {
    border-radius: 16px !important;
  }

  .profile-photo {
    object-position: center 20% !important;
  }

  .hero-banner-title {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 12px 16px;
    font-size: clamp(1.9rem, 9vw, 2.7rem);
    line-height: 0.92;
  }

  .hero-description {
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 18px;
  }

  .hero-actions .btn,
  .hero-actions .btn-outline {
    min-height: 46px;
    font-size: 0.86rem;
  }
}