:root {
  color-scheme: dark;
  --black: #090a0d;
  --off-white: #f6f4f0;
  --muted: #c9cbd2;
  --soft-blue: #a9c7ea;
  --silver: #d9dde5;
  --glass: rgba(15, 18, 25, 0.58);
  --line: rgba(231, 237, 247, 0.22);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
}

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

html {
  min-width: 320px;
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--off-white);
  background: var(--black);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 22%, rgba(95, 127, 166, 0.34), transparent 38%),
    linear-gradient(145deg, #11151c 0%, #090a0d 54%, #050608 100%);
}

.hero__backdrop,
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__backdrop {
  background-color: #0b0d12;
  background-image: url("ella-main.png");
  background-position: center 28%;
  background-size: cover;
  transform: scale(1.015);
  animation: image-arrival 1.8s cubic-bezier(.2, .7, .2, 1) both;
}

.hero__overlay {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 7, 10, 0.34) 0%, rgba(6, 7, 10, 0.44) 36%, rgba(6, 7, 10, 0.9) 82%, #07080b 100%),
    linear-gradient(90deg, rgba(8, 10, 14, 0.25), transparent 50%, rgba(8, 10, 14, 0.25));
}

.page-shell {
  width: min(100%, 540px);
  margin-inline: auto;
  padding-inline: max(22px, env(safe-area-inset-left));
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding-top: max(36px, calc(env(safe-area-inset-top) + 20px));
  padding-bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px));
  opacity: 0;
  transform: translateY(10px);
}

.is-loaded .hero__content {
  animation: content-arrival 700ms 100ms ease-out forwards;
}

.identity {
  margin-top: auto;
  text-align: center;
}

.profile-frame {
  width: 140px;
  aspect-ratio: 1;
  margin: 0 auto 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background:
    radial-gradient(circle at 55% 30%, #a9c7ea 0%, #53667d 37%, #171b23 72%);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), 0 0 0 5px rgba(255, 255, 255, 0.07);
}

.profile-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  color: transparent;
  font-size: 0;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--soft-blue);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Iowan Old Style, Baskerville, "Times New Roman", serif;
  font-size: clamp(3.35rem, 16vw, 5.4rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.92;
  text-wrap: balance;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.42);
}

.handle {
  margin: 11px 0 0;
  color: var(--silver);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.subtitle {
  margin: 9px 0 0;
  color: rgba(246, 244, 240, 0.78);
  font-family: Iowan Old Style, Baskerville, "Times New Roman", serif;
  font-size: clamp(1rem, 4.2vw, 1.14rem);
  font-style: normal;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.links {
  width: 100%;
  margin-top: clamp(26px, 6vh, 42px);
}

.primary-link,
.secondary-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.primary-link {
  min-height: 58px;
  gap: 12px;
  padding: 15px 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: #11151b;
  background: linear-gradient(105deg, #f7f5f1 0%, #dbe8f5 100%);
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  font-weight: 720;
  letter-spacing: 0.01em;
}

.link-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.secondary-links {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.secondary-link {
  width: min(100%, 220px);
  min-height: 46px;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(246, 244, 240, 0.9);
  background: var(--glass);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.secondary-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.secondary-link .icon-dot {
  fill: currentColor;
  stroke: none;
}

.page-bottom {
  margin-top: auto;
  padding-top: clamp(32px, 7vh, 58px);
}

.disclosure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 13px;
  color: rgba(217, 221, 229, 0.62);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.disclosure__mark {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--soft-blue);
  box-shadow: 0 0 10px rgba(169, 199, 234, 0.62);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(217, 221, 229, 0.52);
  font-size: 0.65rem;
  letter-spacing: 0.045em;
}

footer p {
  margin: 0;
}

footer nav {
  display: flex;
  gap: 8px;
}

footer a {
  text-underline-offset: 3px;
  text-decoration-color: transparent;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.primary-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.45), 0 0 24px rgba(169, 199, 234, 0.12);
}

.secondary-link:hover {
  transform: translateY(-1px);
  border-color: rgba(217, 221, 229, 0.44);
  background: rgba(31, 37, 48, 0.7);
}

footer a:hover {
  color: var(--off-white);
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 3px solid var(--soft-blue);
  outline-offset: 4px;
}

.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;
}

@keyframes content-arrival {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes image-arrival {
  from { transform: scale(1.045); }
  to { transform: scale(1.015); }
}

/* iPhone-sized screens: refine portrait framing, vertical rhythm, and tap targets. */
@media (max-width: 599px) {
  .hero__backdrop {
    background-position: 62% center;
  }

  .hero__content {
    padding-top: max(48px, calc(env(safe-area-inset-top) + 30px));
  }

  .profile-frame {
    width: 112px;
    margin-bottom: 20px;
  }

  .eyebrow {
    margin-bottom: 9px;
  }

  .handle {
    margin-top: 13px;
  }

  .subtitle {
    margin-top: 10px;
  }

  .links {
    margin-top: clamp(30px, 5.5vh, 40px);
  }

  .secondary-link {
    width: min(100%, 260px);
    min-height: 50px;
    padding-block: 13px;
    font-size: 0.88rem;
  }

  .page-bottom {
    padding-top: clamp(28px, 5vh, 46px);
  }

  footer {
    font-size: 0.7rem;
    line-height: 1.4;
  }
}

/* Short phones and landscape layouts: keep every action visible without clipping. */
@media (max-height: 720px) {
  .hero__content {
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(3rem, 13vh, 4.1rem);
  }

  .links {
    margin-top: 20px;
  }

  .page-bottom {
    margin-top: 26px;
    padding-top: 0;
  }
}

@media (min-width: 700px) {
  .page-shell {
    width: min(100%, 590px);
  }

  .hero__backdrop {
    background-position: center 24%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__content {
    opacity: 1;
    transform: none;
  }
}

/* Print a clean identity card instead of a full-bleed dark page. */
@media print {
  .hero {
    min-height: auto;
  }
}
