:root {
  --ink: #080b12;
  --ink-soft: oklch(0.14 0.018 260);
  --paper: oklch(0.94 0.012 95);
  --paper-muted: oklch(0.72 0.008 95);
  --blue: oklch(0.75 0.12 265);
  --line: oklch(0.94 0.012 95 / 0.16);
  --duration-fast: 150ms;
  --duration-normal: 200ms;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --radius-pill: 999px;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
  --mono: "DM Mono", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

html {
  background: var(--ink);
}

body {
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 44%, rgba(74, 91, 156, 0.11), transparent 23rem),
    var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

.noise {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.hero {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  height: 100dvh;
  min-height: 620px;
  padding: 0 clamp(1.25rem, 3.4vw, 3.75rem);
  overflow: hidden;
}

.header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: clamp(5.25rem, 9.2vh, 7.25rem);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand__symbol {
  width: 1.25rem;
  height: 1.25rem;
}

a:focus-visible {
  border-radius: 0.25rem;
  outline: none;
  box-shadow:
    0 0 0 2px var(--ink),
    0 0 0 4px var(--blue);
}

.availability {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  gap: 0.58rem;
  color: var(--paper-muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 240ms ease;
}

.availability:hover {
  color: var(--paper);
}

.availability__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--blue);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 0.75fr);
  align-items: center;
  min-height: 0;
}

.hero__copy {
  position: relative;
  z-index: 4;
  max-width: 54rem;
  transform: translateY(-1.5vh);
}

.eyebrow {
  margin: 0 0 clamp(1.4rem, 3vh, 2.8rem);
  color: var(--paper-muted);
  font-family: var(--mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow span {
  margin: 0 0.7rem;
  color: var(--blue);
}

.title {
  margin: 0;
  font-size: clamp(5.1rem, 9.6vw, 10.5rem);
  font-weight: 500;
  line-height: 0.82;
  letter-spacing: -0.03em;
}

.title__line {
  display: block;
  white-space: nowrap;
}

.title__line--serif {
  margin-left: clamp(2.2rem, 7vw, 7.5rem);
  padding-top: 0.15em;
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.03em;
  color: var(--paper);
}

.hero__bottom {
  display: grid;
  grid-template-columns: minmax(15rem, 25rem) auto;
  align-items: end;
  gap: clamp(2rem, 5vw, 5.5rem);
  margin-top: clamp(2.2rem, 5vh, 4.5rem);
  margin-left: clamp(2.2rem, 7vw, 7.5rem);
}

.intro {
  max-width: 25rem;
  margin: 0;
  color: oklch(0.82 0.008 95);
  font-size: clamp(1rem, 1.05vw, 1.125rem);
  line-height: 1.6;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: clamp(13.5rem, 15vw, 16.5rem);
  height: 3.7rem;
  padding: 0 0.75rem 0 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition:
    border-color var(--duration-normal) var(--ease-out),
    background var(--duration-normal) var(--ease-out);
}

.contact svg {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0.55rem;
  border-radius: 50%;
  background: var(--paper);
  stroke: var(--ink);
  stroke-width: 1.5;
  fill: none;
  transition: transform 220ms ease;
}

.contact:hover {
  border-color: rgba(240, 237, 228, 0.55);
  background: rgba(240, 237, 228, 0.06);
}

.celestial {
  position: absolute;
  z-index: 1;
  right: clamp(1.5rem, 3vw, 3.5rem);
  width: min(44vw, 42rem);
  aspect-ratio: 1;
  opacity: 0.88;
}

.celestial__chart {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.orbit,
.compass,
.constellation {
  vector-effect: non-scaling-stroke;
  stroke: rgba(240, 237, 228, 0.12);
  stroke-width: 1;
}

.orbit--middle {
  stroke-dasharray: 3 9;
}

.orbit--inner {
  stroke: rgba(141, 162, 255, 0.2);
}

.constellation {
  stroke: rgba(240, 237, 228, 0.32);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.constellation--fine {
  stroke: rgba(240, 237, 228, 0.12);
  stroke-width: 0.8;
}

.stars {
  fill: var(--paper);
  filter: drop-shadow(0 0 7px rgba(240, 237, 228, 0.35));
}

.stars circle:nth-child(2),
.stars circle:nth-child(6),
.stars circle:nth-child(8) {
  fill: var(--blue);
  filter: drop-shadow(0 0 9px rgba(141, 162, 255, 0.75));
}

.compass {
  opacity: 0.38;
  stroke-dasharray: 2 11;
}

.compass circle {
  fill: none;
  stroke-dasharray: none;
}

.celestial__label {
  position: absolute;
  display: flex;
  justify-content: space-between;
  color: oklch(0.72 0.008 95);
  font-family: var(--mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.celestial__label--top {
  top: 12.5%;
  left: 24%;
  width: 52%;
}

.celestial__label--bottom {
  right: 16%;
  bottom: 16%;
  width: 48%;
}

.celestial__core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.5rem;
  height: 1.5rem;
  transform: translate(-50%, -50%);
}

.celestial__ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--blue);
  border-radius: 50%;
}

.celestial__cross {
  position: absolute;
  background: var(--blue);
  opacity: 0.6;
}

.celestial__cross--x {
  top: 50%;
  left: -0.55rem;
  width: 2.6rem;
  height: 1px;
}

.celestial__cross--y {
  top: -0.55rem;
  left: 50%;
  width: 1px;
  height: 2.6rem;
}

.footer {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: clamp(4.4rem, 8vh, 6.25rem);
  border-top: 1px solid var(--line);
  color: var(--paper-muted);
  font-family: var(--mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.services {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.6vw, 3rem);
}

.services span {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.6vw, 3rem);
}

.services span:not(:last-child)::after {
  content: "";
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--blue);
}

@media (prefers-reduced-motion: no-preference) {
  .celestial__chart {
    animation: drift 18s ease-in-out infinite alternate;
  }

  @keyframes drift {
    from {
      transform: rotate(-1deg) scale(1);
    }
    to {
      transform: rotate(2deg) scale(1.018);
    }
  }
}

@media (max-width: 980px) {
  body {
    overflow-y: auto;
  }

  .hero {
    min-height: 720px;
  }

  .hero__content {
    grid-template-columns: 1fr;
  }

  .hero__copy {
    align-self: center;
  }

  .title {
    font-size: clamp(4.6rem, 13vw, 8.2rem);
  }

  .celestial {
    right: -12rem;
    width: min(70vw, 39rem);
    opacity: 0.42;
  }

  .hero__bottom {
    grid-template-columns: minmax(14rem, 24rem) auto;
  }
}

@media (max-width: 680px) {
  body {
    background:
      radial-gradient(circle at 84% 24%, rgba(74, 91, 156, 0.12), transparent 16rem),
      var(--ink);
  }

  .hero {
    height: 100dvh;
    min-height: 640px;
    padding: 0 1.15rem;
  }

  .header {
    height: 5.1rem;
  }

  .brand {
    font-size: 0.76rem;
  }

  .availability span:last-child {
    display: none;
  }

  .availability {
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--line);
    border-radius: 50%;
  }

  .hero__copy {
    align-self: start;
    padding-top: 10vh;
  }

  .eyebrow {
    max-width: 17rem;
    margin-bottom: 1.6rem;
    line-height: 1.6;
  }

  .eyebrow span {
    margin: 0 0.3rem;
  }

  .title {
    font-size: clamp(3.55rem, 16.5vw, 4.5rem);
    line-height: 0.82;
  }

  .title__line--serif {
    margin-left: 0.75rem;
  }

  .hero__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.2rem;
    margin-left: 0.75rem;
  }

  .intro {
    max-width: 13.5rem;
    font-size: 0.875rem;
    line-height: 1.55;
  }

  .contact {
    flex: 0 0 auto;
    position: relative;
    z-index: 6;
    width: 3.7rem;
    min-width: 3.7rem;
    height: 3.7rem;
    padding: 0.72rem;
  }

  .contact span {
    display: none;
  }

  .celestial {
    right: -13.5rem;
    top: 7%;
    width: 31rem;
    opacity: 0.27;
  }

  .celestial__label {
    display: none;
  }

  .footer {
    height: 5.1rem;
  }

  .services {
    gap: 0.7rem;
  }

  .services span {
    display: none;
  }

  .services span:first-child {
    display: flex;
  }

  .services span:first-child::after {
    display: none;
  }

  .coordinate {
    max-width: 14rem;
    margin-left: auto;
    text-align: right;
    font-size: 0.6875rem;
    line-height: 1.5;
  }
}

@media (max-height: 700px) and (min-width: 681px) {
  .hero {
    min-height: 600px;
  }

  .header {
    height: 4.7rem;
  }

  .footer {
    height: 4.2rem;
  }

  .eyebrow {
    margin-bottom: 1.2rem;
  }

  .title {
    font-size: clamp(4.8rem, 9vw, 8.5rem);
  }

  .hero__bottom {
    margin-top: 2rem;
  }
}

@media (max-width: 680px) and (max-height: 700px) {
  .hero {
    height: 100dvh;
    min-height: 0;
  }

  .header {
    height: 4.25rem;
  }

  .hero__copy {
    padding-top: 4vh;
  }

  .eyebrow {
    margin-bottom: 1.1rem;
  }

  .hero__bottom {
    margin-top: 1.4rem;
  }

  .footer {
    height: 4.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .celestial__chart {
    animation: none;
  }
}
