:root {
  --bg: #02040a;
  --bg-soft: #071020;
  --stage: rgba(5, 8, 16, 0.84);
  --stage-line: rgba(255, 255, 255, 0.08);
  --ink: #f5f7ff;
  --muted: rgba(228, 234, 255, 0.74);
  --muted-soft: rgba(228, 234, 255, 0.5);
  --orange: #ff7a1a;
  --blue: #3d7aff;
  --cyan: #63d8ff;
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.4);
  --radius-xl: 42px;
  --radius-lg: 30px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 122, 26, 0.18), transparent 18%),
    radial-gradient(circle at 78% 18%, rgba(61, 122, 255, 0.14), transparent 22%),
    radial-gradient(circle at 52% 74%, rgba(99, 216, 255, 0.08), transparent 18%),
    linear-gradient(180deg, #04060d 0%, #060913 35%, #02040a 100%);
  color: var(--ink);
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

.shell {
  width: min(1220px, calc(100vw - 28px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px 0;
}

.stage {
  --stage-x: 0px;
  --stage-y: 0px;
  position: relative;
  min-height: calc(100vh - 28px);
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--stage-line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.03), transparent 28%),
    var(--stage);
  box-shadow: var(--shadow);
  display: grid;
  align-content: space-between;
  gap: 34px;
}

.noise {
  position: absolute;
  border-radius: 999px;
  filter: blur(28px);
  pointer-events: none;
  transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.noise-one {
  top: -12%;
  left: -8%;
  width: 40vw;
  height: 40vw;
  min-width: 280px;
  min-height: 280px;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 122, 26, 0.28), rgba(255, 122, 26, 0.04) 56%, transparent 72%);
  transform: translate3d(calc(var(--stage-x) * -0.28), calc(var(--stage-y) * -0.22), 0);
}

.noise-two {
  top: 6%;
  right: -8%;
  width: 34vw;
  height: 34vw;
  min-width: 240px;
  min-height: 240px;
  background:
    radial-gradient(circle at 45% 45%, rgba(61, 122, 255, 0.2), rgba(61, 122, 255, 0.02) 58%, transparent 74%);
  transform: translate3d(calc(var(--stage-x) * 0.24), calc(var(--stage-y) * -0.18), 0);
}

.noise-three {
  bottom: -14%;
  left: 36%;
  width: 30vw;
  height: 24vw;
  min-width: 220px;
  min-height: 180px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02) 60%, transparent 80%);
  transform: translate3d(calc(var(--stage-x) * 0.18), calc(var(--stage-y) * 0.2), 0);
}

.brand,
.hero-copy,
.entry-grid {
  position: relative;
  z-index: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
}

.brand-mark {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 17px;
  background: linear-gradient(135deg, #ff9348, var(--orange));
  color: white;
  font-weight: 700;
  box-shadow: 0 16px 34px rgba(255, 122, 26, 0.28);
}

.brand-copy {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy span {
  color: var(--muted-soft);
}

.hero-copy {
  display: grid;
  gap: 0;
  align-self: center;
}

.eyebrow,
.entry-kicker {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--orange);
}

h1,
h2 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
}

h1 {
  max-width: none;
  font-size: clamp(3rem, 6.3vw, 5rem);
  letter-spacing: -0.026em;
  word-spacing: 0.035em;
  line-height: 0.96;
  white-space: nowrap;
}

h2 {
  letter-spacing: -0.05em;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
}

.entry-card {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 50%;
  --scan-x: 0px;
  --scan-y: 0px;
  --lens-x: 0px;
  --lens-y: 0px;
  --glare-x: 0px;
  --glare-y: 0px;
  position: relative;
  min-height: clamp(360px, 34vw, 440px);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(0);
  transform-style: preserve-3d;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
  will-change: transform;
}

.entry-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 34px;
}

.entry-card::before,
.entry-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.entry-card-info {
  border-radius: var(--radius-lg);
  color: white;
  background:
    radial-gradient(circle at 16% 20%, rgba(93, 145, 255, 0.32), transparent 22%),
    radial-gradient(circle at 82% 18%, rgba(99, 216, 255, 0.14), transparent 18%),
    radial-gradient(circle at 78% 72%, rgba(72, 91, 255, 0.2), transparent 28%),
    linear-gradient(145deg, #061231 0%, #0a1f53 52%, #11317d 100%);
  box-shadow: 0 28px 68px rgba(8, 20, 56, 0.42);
}

.entry-card-info::before {
  inset: 16px;
  border-radius: 24px;
  border: 1px solid rgba(155, 196, 255, 0.14);
}

.entry-card-info::after {
  inset: 0;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(126, 181, 255, 0.22), transparent 0 24%),
    linear-gradient(112deg, transparent 8%, rgba(190, 226, 255, 0.22) 44%, transparent 66%);
  opacity: 0.52;
  transform: translate3d(var(--scan-x), var(--scan-y), 0);
  transition: transform 320ms ease, opacity 320ms ease;
}

.entry-card-mirror {
  color: white;
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.05), transparent 20%),
    linear-gradient(160deg, rgba(4, 5, 8, 0.96) 0%, rgba(10, 12, 18, 0.92) 42%, rgba(18, 22, 30, 0.86) 100%);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.52);
}

.entry-card-mirror::before {
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.11), transparent 0 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 22%, rgba(255, 255, 255, 0.03) 100%);
  opacity: 0.94;
  transition: opacity 320ms ease, transform 320ms ease;
}

.entry-card-mirror::after {
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 42%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -24px 46px rgba(0, 0, 0, 0.26);
}

.mirror-shell {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}

.mirror-lens,
.mirror-glare {
  position: absolute;
  pointer-events: none;
}

.mirror-lens {
  top: 24px;
  right: 18px;
  width: min(48%, 248px);
  aspect-ratio: 0.9;
  border-radius: 43% 57% 46% 54% / 38% 40% 60% 62%;
  background:
    radial-gradient(circle at 36% 24%, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.08) 22%, transparent 40%),
    radial-gradient(circle at 65% 66%, rgba(110, 125, 164, 0.18), transparent 48%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.14) 0%, rgba(132, 141, 166, 0.08) 32%, rgba(10, 12, 18, 0.34) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -22px 40px rgba(0, 0, 0, 0.24),
    0 24px 54px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px) saturate(1.08);
  transform: translate3d(var(--lens-x), var(--lens-y), 0) rotate(-10deg);
  animation: lensFloat 11s ease-in-out infinite;
}

.mirror-lens::before,
.mirror-lens::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.mirror-lens::before {
  inset: 13% 14% 18% 18%;
  border-radius: 48% 52% 55% 45% / 41% 44% 56% 59%;
  background:
    radial-gradient(circle at 38% 24%, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 38%, transparent 72%);
  opacity: 0.74;
  filter: blur(2px);
}

.mirror-lens::after {
  right: 12%;
  bottom: 10%;
  width: 38%;
  height: 24%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 72%);
  opacity: 0.44;
  filter: blur(10px);
}

.mirror-glare {
  top: 42px;
  right: 72px;
  width: 118px;
  height: 44px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08) 58%, transparent 82%);
  filter: blur(7px);
  opacity: 0.72;
  transform: translate3d(var(--glare-x), var(--glare-y), 0) rotate(-12deg);
  animation: glarePulse 8s ease-in-out infinite;
}

.mirror-content {
  max-width: min(58%, 320px);
}

.entry-card h2 {
  font-size: clamp(3rem, 5.4vw, 4.5rem);
  line-height: 0.92;
}

.entry-kicker {
  color: rgba(229, 236, 255, 0.72);
}

.entry-note {
  margin: 0;
  color: rgba(245, 247, 255, 0.92);
  font-size: 1.05rem;
  line-height: 1.58;
}

.entry-detail {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.68;
  max-width: 19rem;
}

.entry-card-mirror .entry-note,
.entry-card-mirror .entry-detail {
  text-wrap: pretty;
  max-width: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 54px;
  margin-top: auto;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease, opacity 160ms ease;
  align-self: flex-start;
}

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

.button:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.18),
    0 0 0 7px rgba(61, 122, 255, 0.18);
}

.button-dark {
  background: rgba(222, 235, 255, 0.12);
  border-color: rgba(160, 196, 255, 0.18);
  color: white;
  box-shadow: 0 16px 34px rgba(8, 18, 51, 0.26);
}

.button-dark:hover {
  background: rgba(222, 235, 255, 0.18);
}

.button-light {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(230, 233, 242, 0.92));
  border-color: rgba(255, 255, 255, 0.76);
  color: #090b12;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.entry-card-mirror .button-light {
  min-width: 176px;
}

.entry-card:hover {
  transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-8px);
}

.entry-card-info:hover {
  border-color: rgba(155, 196, 255, 0.2);
  box-shadow: 0 34px 84px rgba(10, 31, 83, 0.48);
}

.entry-card-info:hover::after {
  opacity: 0.72;
}

.entry-card-mirror:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 38px 88px rgba(0, 0, 0, 0.56);
}

.entry-card:focus-within {
  border-color: rgba(255, 255, 255, 0.16);
}

.entry-card-mirror:hover::before {
  opacity: 1;
}

.entry-card-mirror:hover .mirror-lens {
  transform: translate3d(var(--lens-x), var(--lens-y), 0) rotate(-9deg) scale(1.02);
}

.entry-card-mirror:hover .mirror-glare {
  opacity: 0.92;
}

.button-light:hover {
  background: rgba(255, 255, 255, 1);
}

@keyframes lensFloat {
  0%, 100% {
    transform: translate3d(var(--lens-x), calc(var(--lens-y) - 4px), 0) rotate(-10deg);
  }

  50% {
    transform: translate3d(calc(var(--lens-x) + 2px), calc(var(--lens-y) + 6px), 0) rotate(-7deg);
  }
}

@keyframes glarePulse {
  0%, 100% {
    opacity: 0.58;
  }

  44% {
    opacity: 0.88;
  }
}

@media (max-width: 980px) {
  h1 {
    font-size: clamp(2.6rem, 6vw, 4.2rem);
  }

  .entry-grid {
    gap: 20px;
  }

  .entry-card-mirror {
    min-height: 404px;
  }

  .mirror-lens {
    width: min(45%, 220px);
  }

  .mirror-content {
    max-width: min(60%, 288px);
  }
}

@media (max-width: 860px) {
  .entry-grid {
    grid-template-columns: 1fr;
  }

  .entry-card-info,
  .entry-card-mirror {
    width: 100%;
    min-height: 340px;
  }

  .entry-card-mirror {
    min-height: 380px;
  }

  .mirror-lens {
    top: 18px;
    right: 16px;
    width: min(46%, 224px);
  }

  .mirror-glare {
    right: 52px;
  }

  .mirror-content {
    max-width: min(64%, 320px);
  }

  h1 {
    max-width: 9ch;
    font-size: clamp(3.3rem, 14vw, 5.4rem);
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100vw - 16px, 100%);
    padding: 8px 0;
  }

  .stage {
    min-height: calc(100vh - 16px);
    padding: 20px;
    gap: 28px;
  }

  .brand {
    gap: 12px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .entry-card-info {
    min-height: 320px;
  }

  .entry-card-mirror {
    min-height: 348px;
  }

  .entry-content {
    padding: 24px;
  }

  .mirror-content {
    max-width: min(68%, 260px);
  }

  .mirror-lens {
    width: min(48%, 182px);
    top: 16px;
    right: 10px;
  }

  .mirror-glare {
    top: 34px;
    right: 34px;
    width: 92px;
  }

  .entry-card h2 {
    font-size: clamp(2.7rem, 12vw, 4rem);
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .noise,
  .entry-card,
  .entry-card::before,
  .entry-card::after,
  .mirror-lens,
  .mirror-glare,
  .button {
    animation: none;
    transition: none;
    transform: none;
  }
}
