:root {
  --color-bg: #121a24;
  --color-bg-soft: #1a2430;
  --color-bg-deep: #0b1118;
  --color-surface: rgba(255, 255, 255, 0.68);
  --color-surface-strong: rgba(255, 255, 255, 0.82);
  --color-line: rgba(190, 205, 222, 0.12);
  --color-line-strong: rgba(214, 226, 239, 0.24);
  --color-text: #1f2933;
  --color-muted: #5b6673;
  --color-soft: #7f8a96;
  --color-accent: #17324d;
  --color-accent-soft: rgba(23, 50, 77, 0.08);
  --shadow-soft: 0 30px 90px rgba(4, 10, 18, 0.38);
  --shadow-glow: 0 0 160px rgba(69, 104, 145, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
  color: var(--color-text);
  background:
    radial-gradient(circle at 18% 16%, rgba(76, 107, 143, 0.32), transparent 24%),
    radial-gradient(circle at 82% 22%, rgba(41, 63, 90, 0.34), transparent 28%),
    linear-gradient(180deg, #202d3b 0%, var(--color-bg-soft) 26%, var(--color-bg) 58%, var(--color-bg-deep) 100%);
}

::selection {
  background: rgba(23, 50, 77, 0.14);
  color: var(--color-text);
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(1rem, 2.6vw, 2rem);
  display: flex;
  flex-direction: column;
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: clamp(0.75rem, 1.6vw, 1.25rem);
  border: 1px solid rgba(211, 224, 239, 0.1);
  border-radius: 2rem;
  pointer-events: none;
}

.page-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.82;
  background:
    linear-gradient(90deg, rgba(206, 220, 236, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(206, 220, 236, 0.04) 1px, transparent 1px);
  background-size: 128px 128px;
  -webkit-mask-image: radial-gradient(circle at center, black 36%, transparent 88%);
  mask-image: radial-gradient(circle at center, black 36%, transparent 88%);
  pointer-events: none;
  animation: gridPulse 18s ease-in-out infinite;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(28px);
  opacity: 1;
  z-index: -2;
}

.ambient-one {
  top: -10rem;
  left: -8rem;
  width: 34rem;
  height: 34rem;
  background: radial-gradient(circle, rgba(90, 124, 165, 0.56), transparent 72%);
  animation: drift 18s ease-in-out infinite;
}

.ambient-two {
  right: -12rem;
  top: 14%;
  width: 32rem;
  height: 32rem;
  background: radial-gradient(circle, rgba(49, 73, 102, 0.58), transparent 70%);
  animation: drift 20s ease-in-out infinite reverse;
}

.ambient-three {
  bottom: -12rem;
  left: 16%;
  width: 28rem;
  height: 28rem;
  background: radial-gradient(circle, rgba(36, 54, 77, 0.66), transparent 72%);
  animation: drift 22s ease-in-out infinite;
}

.frame-line {
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.frame-line-top {
  top: clamp(1.6rem, 4vw, 2.8rem);
  left: clamp(1.8rem, 4vw, 3.2rem);
  width: min(20rem, 32vw);
  height: 1px;
  background: linear-gradient(90deg, rgba(223, 234, 244, 0.42), transparent);
}

.frame-line-left {
  top: clamp(1.8rem, 4vw, 3rem);
  left: clamp(1.8rem, 4vw, 3.2rem);
  width: 1px;
  height: min(12rem, 22vh);
  background: linear-gradient(180deg, rgba(223, 234, 244, 0.4), transparent);
}

.strata-pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(214, 228, 242, 0.19);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.92;
  transform: translateY(-2%);
  z-index: -1;
  animation: patternFloat 20s ease-in-out infinite;
}

.hero {
  position: relative;
  width: min(100%, 76rem);
  margin: auto;
  padding: clamp(1.8rem, 4vw, 3.5rem);
  border: 1px solid rgba(23, 50, 77, 0.1);
  border-radius: 2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.93) 0%, rgba(249, 250, 251, 0.84) 100%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft), var(--shadow-glow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0.8rem;
  border: 1px solid rgba(23, 50, 77, 0.07);
  border-radius: 1.35rem;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto clamp(2rem, 4vw, 3rem) clamp(2rem, 4vw, 3rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(23, 50, 77, 0.18), transparent);
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(18rem, 0.86fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.hero-content {
  min-width: 0;
  display: grid;
  align-content: start;
  padding-right: clamp(0rem, 0.8vw, 0.7rem);
}

.founder-figure {
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 1rem;
}

.founder-portrait {
  display: block;
  width: min(100%, 29rem);
  height: auto;
  transform: rotate(-4deg);
  transform-origin: center center;
}

.founder-caption {
  width: min(100%, 24rem);
  display: grid;
  gap: 0.28rem;
  color: var(--color-accent);
  text-align: left;
}

.founder-name,
.founder-title {
  display: block;
}

.founder-name {
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.founder-title {
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 2rem;
  padding: 0.55rem 0.85rem 0.55rem 0.7rem;
  border: 1px solid rgba(23, 50, 77, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--color-accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow-mark {
  display: grid;
  gap: 0.22rem;
}

.eyebrow-mark span {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, rgba(23, 50, 77, 0.35), var(--color-accent));
}

.eyebrow-mark span:nth-child(1) {
  width: 0.95rem;
}

.eyebrow-mark span:nth-child(2) {
  width: 1.35rem;
}

.eyebrow-mark span:nth-child(3) {
  width: 1.05rem;
}

.brand-block {
  display: grid;
  gap: 0.7rem;
}

.brand,
.tagline,
.hero-copy h1,
.lead,
.supporting,
.closing,
.site-footer p {
  margin: 0;
}

.brand {
  color: var(--color-accent);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.tagline {
  color: var(--color-muted);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-style: italic;
}

.divider {
  width: min(18rem, 42%);
  height: 1px;
  margin: 2.2rem 0;
  background: linear-gradient(90deg, rgba(23, 50, 77, 0.26), rgba(23, 50, 77, 0.06));
}

.hero-copy {
  max-width: 34rem;
}

.hero-copy h1 {
  max-width: 8.8ch;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  font-weight: 600;
  text-wrap: balance;
}

.headline-accent {
  color: var(--color-accent);
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

.lead,
.supporting {
  color: var(--color-muted);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.78;
  max-width: 34rem;
}

.lead {
  margin-top: 1.85rem;
}

.lead span {
  color: var(--color-accent);
  font-weight: 600;
}

.supporting {
  margin-top: 1.25rem;
  max-width: 31rem;
}

.closing {
  margin-top: 2.1rem;
  color: var(--color-accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.site-footer {
  position: relative;
  z-index: 2;
  width: min(100%, 78rem);
  margin: 2rem auto 0;
  padding: 0 0.35rem 0.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--color-muted);
  font-size: 0.88rem;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1.15rem;
  left: 0.35rem;
  width: min(11rem, 26%);
  height: 1px;
  background: linear-gradient(90deg, rgba(23, 50, 77, 0.16), transparent);
}

.site-footer a {
  position: relative;
  text-decoration: none;
  color: var(--color-muted);
  transition: color 180ms ease;
}

.site-footer a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
  transform: scaleX(0.45);
  transform-origin: left;
  transition:
    transform 220ms ease,
    opacity 220ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--color-accent);
}

.site-footer a:hover::after,
.site-footer a:focus-visible::after {
  opacity: 0.8;
  transform: scaleX(1);
}

.site-footer a:focus-visible {
  outline: 2px solid rgba(23, 50, 77, 0.28);
  outline-offset: 0.32rem;
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(3.6rem, -2.4rem, 0) scale(1.1);
  }
}

@keyframes patternFloat {
  0%,
  100% {
    transform: translateY(-2%);
  }

  50% {
    transform: translateY(3.4%);
  }
}

@keyframes gridPulse {
  0%,
  100% {
    opacity: 0.72;
  }

  50% {
    opacity: 0.92;
  }
}

@media (max-width: 980px) {
  .page-shell::after {
    background-size: 112px 112px;
    opacity: 0.86;
  }

  .hero {
    width: min(100%, 54rem);
    padding: 1.8rem;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 1.7rem;
  }

  .hero-content {
    padding-right: 0;
  }

  .hero-copy,
  .lead,
  .supporting {
    max-width: 40rem;
  }

  .hero-copy h1 {
    max-width: 11ch;
  }

  .founder-figure {
    justify-content: flex-start;
    align-items: flex-start;
  }

  .founder-portrait {
    width: min(100%, 31rem);
  }

  .founder-caption {
    width: min(100%, 31rem);
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 0.85rem;
  }

  .page-shell::before {
    border-radius: 1.35rem;
  }

  .page-shell::after {
    background-size: 86px 86px;
    -webkit-mask-image: radial-gradient(circle at center, black 28%, transparent 88%);
    mask-image: radial-gradient(circle at center, black 28%, transparent 88%);
  }

  .ambient-one {
    width: 23rem;
    height: 23rem;
    top: -8rem;
    left: -7rem;
  }

  .ambient-two {
    width: 20rem;
    height: 20rem;
    right: -8rem;
    top: 24%;
  }

  .ambient-three {
    width: 18rem;
    height: 18rem;
    bottom: -7rem;
    left: 10%;
  }

  .frame-line-top {
    width: 8rem;
  }

  .frame-line-left {
    height: 5.5rem;
  }

  .strata-pattern {
    opacity: 0.7;
  }

  .hero {
    border-radius: 1.45rem;
    padding: 1.4rem;
  }

  .hero::before {
    inset: 0.6rem;
    border-radius: 1rem;
  }

  .eyebrow {
    margin-bottom: 1.5rem;
    font-size: 0.66rem;
    letter-spacing: 0.15em;
  }

  .brand {
    letter-spacing: 0.18em;
    line-height: 1.35;
  }

  .divider {
    width: 100%;
    margin: 1.6rem 0;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2.4rem, 13vw, 3.8rem);
    line-height: 1;
  }

  .founder-figure {
    margin-top: 0.35rem;
    justify-content: center;
    align-items: center;
  }

  .founder-portrait {
    width: min(100%, 22.5rem);
    transform: rotate(-2.5deg);
  }

  .founder-caption {
    width: min(100%, 22.5rem);
    text-align: center;
  }

  .founder-name {
    font-size: 0.88rem;
    letter-spacing: 0.07em;
  }

  .founder-title {
    font-size: 0.86rem;
  }

  .lead,
  .supporting {
    font-size: 0.98rem;
    line-height: 1.72;
  }

  .site-footer {
    margin-top: 1.6rem;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .site-footer::before {
    width: 7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient,
  .strata-pattern {
    animation: none;
  }

  .site-footer a,
  .site-footer a::after {
    transition: none;
  }
}
