:root {
  color-scheme: light;
  --page-bg: #071018;
  --page-edge: #14222f;
  --text-strong: #eef5f8;
  --text-soft: rgba(232, 242, 248, 0.82);
  --text-dim: rgba(220, 232, 240, 0.58);
  --overlay-bg: rgba(7, 18, 28, 0.56);
  --overlay-line: rgba(184, 219, 255, 0.16);
  --badge-bg: rgba(9, 21, 33, 0.72);
  --badge-line: rgba(188, 221, 255, 0.28);
  --badge-hover: rgba(22, 46, 70, 0.84);
  --shadow-frame: 0 26px 90px rgba(0, 0, 0, 0.35);
  --focus-ring: 0 0 0 3px rgba(148, 210, 255, 0.22);
  --radius-frame: 28px;
  --radius-overlay: 22px;
  --overlay-top: clamp(18px, 3vw, 34px);
  --overlay-left: clamp(18px, 3vw, 34px);
  --overlay-width: min(24vw, 340px);
  --overlay-top-mobile: max(16px, env(safe-area-inset-top));
  --overlay-left-mobile: 14px;
  --overlay-width-mobile: min(100% - 28px, 286px);
  --overlay-opacity: 0.52;
  --overlay-blur: 10px;
  --title-contrast: 0.94;
  --body-contrast: 0.9;
  --meta-contrast: 0.86;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  font-family: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--text-strong);
  background: linear-gradient(180deg, var(--page-bg) 0%, var(--page-edge) 100%);
}

a {
  color: inherit;
}

a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.landing-shell {
  width: min(100% - 20px, 1440px);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(10px, 2vw, 18px) 0;
  display: flex;
  align-items: stretch;
}

.hero-frame {
  flex: 1;
  position: relative;
  min-height: calc(100svh - clamp(20px, 4vw, 36px));
  overflow: hidden;
  border-radius: var(--radius-frame);
  box-shadow: var(--shadow-frame);
  isolation: isolate;
}

.hero-media {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.hero-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 14, 22, 0.68) 0%, rgba(6, 14, 22, 0.34) 28%, rgba(6, 14, 22, 0.08) 52%, rgba(6, 14, 22, 0.06) 100%),
    linear-gradient(180deg, rgba(4, 10, 16, 0.1) 0%, rgba(4, 10, 16, 0) 32%, rgba(4, 10, 16, 0.14) 100%);
  pointer-events: none;
}

.fixed-linkedin {
  position: absolute;
  z-index: 2;
  top: clamp(14px, 2vw, 22px);
  right: clamp(14px, 2vw, 22px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(133, 197, 255, 0.36);
  border-radius: 999px;
  background: rgba(6, 18, 30, 0.66);
  color: rgba(229, 242, 252, 0.96);
  text-decoration: none;
  backdrop-filter: blur(6px);
}

.fixed-linkedin:hover,
.fixed-linkedin:focus-visible {
  border-color: rgba(155, 210, 255, 0.62);
  background: rgba(10, 28, 44, 0.84);
}

.fixed-linkedin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(35, 136, 255, 0.86);
  color: #f4faff;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
}

.fixed-linkedin-text {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-overlay {
  position: absolute;
  z-index: 1;
  top: var(--overlay-top);
  left: var(--overlay-left);
  width: var(--overlay-width);
  max-width: calc(100% - (var(--overlay-left) * 2));
  padding: clamp(12px, 1.5vw, 18px);
  border: 1px solid var(--overlay-line);
  border-radius: var(--radius-overlay);
  background: color-mix(in srgb, var(--overlay-bg) calc(var(--overlay-opacity) * 100%), transparent);
  backdrop-filter: blur(var(--overlay-blur));
}

.overlay-brand,
.overlay-eyebrow,
.overlay-title,
.overlay-summary,
.overlay-meta p,
.frame-note {
  margin: 0;
}

.overlay-brand {
  margin-bottom: 8px;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: clamp(1.1rem, 1vw + 0.9rem, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: color-mix(in srgb, var(--text-strong) calc(var(--title-contrast) * 100%), #7b8f9f);
  text-shadow: 0 1px 10px rgba(4, 10, 16, calc(var(--title-contrast) * 0.32));
}

.overlay-eyebrow {
  margin-bottom: 10px;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  white-space: nowrap;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text-dim) calc(var(--meta-contrast) * 100%), #6f8596);
}

.overlay-title {
  max-width: 11ch;
  margin-bottom: 12px;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: clamp(2rem, 2.2vw + 1rem, 3.7rem);
  line-height: 0.93;
  letter-spacing: -0.03em;
  color: color-mix(in srgb, var(--text-strong) calc(var(--title-contrast) * 100%), #8ca1b1);
  text-shadow: 0 2px 12px rgba(4, 10, 16, calc(var(--title-contrast) * 0.34));
  text-wrap: balance;
}

.overlay-summary {
  max-width: 27ch;
  margin-bottom: 16px;
  font-size: clamp(0.9rem, 0.5vw + 0.82rem, 1rem);
  line-height: 1.5;
  color: color-mix(in srgb, var(--text-soft) calc(var(--body-contrast) * 100%), #8ca1b1);
}

.overlay-rule {
  width: 56px;
  height: 3px;
  margin-bottom: 14px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(38, 156, 255, 0.95) 0%, rgba(38, 156, 255, 0.36) 100%);
}

.overlay-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--text-strong);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.overlay-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(79, 172, 255, 0.72);
  background: rgba(8, 24, 38, 0.74);
  color: rgba(219, 239, 255, 0.95);
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.overlay-cta:hover .overlay-cta-icon,
.overlay-cta:focus-visible .overlay-cta-icon {
  transform: translateX(1px);
  border-color: rgba(123, 199, 255, 0.96);
  background: rgba(17, 42, 62, 0.92);
}

.mini-ux-menu {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.mini-ux-menu[hidden] {
  display: none !important;
}

.overlay-cta[hidden] {
  display: none !important;
}

.mini-ux-menu a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  border-radius: 10px;
  border: 1px solid rgba(156, 208, 255, 0.18);
  background: rgba(8, 20, 31, 0.44);
  text-decoration: none;
  padding: 5px 4px;
}

.mini-ux-menu a:hover,
.mini-ux-menu a:focus-visible {
  border-color: rgba(156, 208, 255, 0.34);
  background: rgba(12, 32, 49, 0.64);
}

.mini-ux-icon {
  color: rgba(68, 171, 255, 0.92);
  font-size: 0.72rem;
}

.mini-ux-label {
  text-align: center;
  font-size: 0.48rem;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text-dim) calc(var(--meta-contrast) * 100%), #688094);
}

.frame-footer {
  position: absolute;
  z-index: 1;
  right: clamp(16px, 2.5vw, 28px);
  bottom: clamp(14px, 2.5vw, 22px);
  left: clamp(16px, 2.5vw, 28px);
  display: flex;
  align-items: end;
  justify-content: flex-start;
  gap: 14px;
}

.frame-note {
  padding: 6px 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 251, 253, 0.84);
}

.frame-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--badge-line);
  border-radius: 12px;
  background: var(--badge-bg);
  color: var(--text-strong);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.frame-link:hover,
.frame-link:focus-visible {
  background: var(--badge-hover);
  border-color: rgba(188, 221, 255, 0.44);
  transform: translateY(-1px);
}

@media (min-width: 720px) {
  .landing-shell {
    width: min(100% - 28px, 1600px);
  }

  .hero-frame {
    min-height: calc(100svh - 28px);
  }
}

@media (min-width: 980px) {
  :root {
    --overlay-top: clamp(20px, 2.7vw, 34px);
    --overlay-left: clamp(18px, 2.7vw, 34px);
    --overlay-width: min(24vw, 340px);
  }

  .hero-overlay {
    max-width: 340px;
  }

  .frame-note {
    font-size: 0.78rem;
  }
}

@media (max-width: 700px) {
  :root {
    --overlay-top: var(--overlay-top-mobile);
    --overlay-left: var(--overlay-left-mobile);
    --overlay-width: var(--overlay-width-mobile);
  }

  .landing-shell {
    width: 100%;
    padding: 0;
  }

  .hero-frame {
    min-height: 100svh;
    border-radius: 0;
  }

  .hero-image {
    object-position: 62% center;
  }

  .fixed-linkedin {
    top: max(10px, env(safe-area-inset-top));
    right: 10px;
    padding: 6px 8px;
    gap: 6px;
  }

  .fixed-linkedin-icon {
    width: 20px;
    height: 20px;
    font-size: 0.74rem;
  }

  .fixed-linkedin-text {
    font-size: 0.56rem;
  }

  .hero-overlay {
    padding: 12px;
  }

  .overlay-title {
    max-width: 10ch;
  }

  .overlay-eyebrow {
    font-size: 0.6rem;
    letter-spacing: 0.11em;
  }

  .overlay-summary {
    max-width: 24ch;
  }

  .mini-ux-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .frame-footer {
    right: 14px;
    left: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* styles.css: full-image hero landing with configurable overlay geometry and contrast. */