:root {
  --ink: #122d40;
  --paper: #fff7eb;
  --coral: #ff574a;
  --sky: #a8d9e7;
  --lime: #d8ee84;
  --paper-muted: rgba(255, 247, 235, 0.68);
  --paper-faint: rgba(255, 247, 235, 0.12);
  --line: rgba(255, 247, 235, 0.2);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--ink);
  color-scheme: dark;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at 80% 10%,
      rgba(168, 217, 231, 0.08),
      transparent 30rem
    ),
    var(--ink);
  color: var(--paper);
  font-family: Manrope, system-ui, sans-serif;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}
button {
  color: inherit;
}

.site-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow-x: clip;
  min-height: 100vh;
  min-height: 100svh;
  padding: max(24px, env(safe-area-inset-top))
    max(28px, calc((100vw - 1440px) / 2 + 40px))
    max(24px, env(safe-area-inset-bottom));
}

.site-shell::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(var(--paper-faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-faint) 1px, transparent 1px);
  background-size: 84px 84px;
  content: "";
  opacity: 0.18;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

.site-header {
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  color: var(--paper);
  text-decoration: none;
}

.logo {
  display: block;
  width: clamp(96px, 10vw, 132px);
  height: auto;
}
.logo__primary {
  fill: currentcolor;
}
.logo__accent {
  fill: var(--coral);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  padding-top: 11px;
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.site-nav__item {
  white-space: nowrap;
}

.site-nav__item--active {
  color: var(--coral);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(350px, 0.88fr);
  align-items: center;
  gap: clamp(30px, 5vw, 90px);
  padding: clamp(50px, 8vh, 100px) 0 clamp(46px, 7vh, 82px);
}

.hero__copy {
  z-index: 2;
  max-width: 820px;
}

.eyebrow {
  display: none;
  align-items: center;
  margin-bottom: clamp(22px, 4vh, 42px);
  color: var(--coral);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1 {
  max-width: 11ch;
  font-family: Sora, sans-serif;
  font-size: clamp(3.25rem, 6.7vw, 7.25rem);
  font-weight: 800;
  line-height: 0.91;
  letter-spacing: -0.065em;
  overflow-wrap: anywhere;
}

.rotating-line {
  display: block;
  min-height: 1em;
  color: var(--coral);
}

.rotating-word {
  display: inline-block;
  transform-origin: left center;
  transition:
    transform 0.45s var(--ease-out),
    opacity 0.3s ease;
}

.rotating-word.is-changing {
  transform: translateY(0.35em) rotate(2deg);
  opacity: 0;
}

.hero__description {
  max-width: 570px;
  margin-top: clamp(24px, 4vh, 38px);
  color: var(--paper-muted);
  font-size: clamp(0.98rem, 1.35vw, 1.18rem);
  line-height: 1.65;
}

.hero__description strong {
  color: var(--paper);
  font-weight: 600;
}

.notify-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  width: min(100%, 560px);
  margin-top: clamp(28px, 4.5vh, 46px);
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 247, 235, 0.06);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(16px);
}

.notify-form input {
  min-width: 0;
  padding: 14px 18px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--paper);
  font-size: 15px;
}

.notify-form input::placeholder {
  color: rgba(255, 247, 235, 0.48);
}
.notify-form:focus-within {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 87, 74, 0.18);
}

.notify-form button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--coral);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease-out),
    background 0.25s ease;
}

.notify-form button::after {
  content: "↗";
  font-size: 17px;
  line-height: 1;
}
.notify-form button:hover {
  transform: translateY(-2px) rotate(-1deg);
  background: #ff6c61;
}

.notify-form button:focus-visible,
.brand-mark:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}

.form-message {
  min-height: 1.5em;
  margin: 10px 0 0 18px;
  color: var(--sky);
  font-size: 13px;
}

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  margin-left: 43.0207px;
  margin-bottom: -69.6349px;
}

.editorial-geometry {
  position: relative;
  width: min(43vw, 600px);
  min-width: 360px;
  aspect-ratio: 1.08;
  isolation: isolate;
}

.editorial-geometry__circle {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  will-change: transform;
}

.editorial-geometry__circle--coral {
  z-index: 2;
  right: -12%;
  bottom: -10%;
  width: 64%;
  background: var(--coral);
  animation: geometry-drift-large 14s ease-in-out infinite;
}

.editorial-geometry__circle--paper {
  z-index: 3;
  right: 42%;
  bottom: 4%;
  width: 28%;
  background: var(--paper);
  animation: geometry-drift-small 11s ease-in-out infinite;
}

.editorial-geometry__circle--outline {
  z-index: 1;
  top: 9%;
  left: 10%;
  width: 43%;
  border: 1px solid rgba(255, 247, 235, 0.22);
  background: rgba(255, 247, 235, 0.025);
}

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-top: 22px;
  color: var(--paper-muted);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-footer strong {
  color: var(--paper);
  font-family: Sora, sans-serif;
  font-size: clamp(14px, 1.4vw, 18px);
  letter-spacing: -0.02em;
  text-transform: none;
}
.site-footer__services {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: reveal 0.9s var(--ease-out) forwards;
}
.reveal:nth-child(2) {
  animation-delay: 0.08s;
}
.reveal:nth-child(3) {
  animation-delay: 0.16s;
}
.reveal:nth-child(4) {
  animation-delay: 0.24s;
}
.reveal:nth-child(5) {
  animation-delay: 0.32s;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes geometry-drift-large {
  50% {
    transform: translate(-10px, -8px) scale(1.025);
  }
}
@keyframes geometry-drift-small {
  50% {
    transform: translate(7px, -10px);
  }
}

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
    gap: 20px;
  }
  .editorial-geometry {
    width: min(100%, 500px);
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .site-shell {
    padding: max(20px, env(safe-area-inset-top)) 20px
      max(20px, env(safe-area-inset-bottom));
  }
  .logo {
    width: 88px;
  }
  .site-nav {
    gap: 0;
    padding-top: 8px;
    font-size: 10px;
  }
  .site-nav__item:not(.site-nav__item--active) {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 58px 0 54px;
  }
  h1 {
    max-width: 10ch;
    font-size: clamp(3.2rem, 15.5vw, 5.2rem);
  }
  .hero__description {
    max-width: 34rem;
  }
  .notify-form {
    grid-template-columns: 1fr;
    padding: 6px;
    border-radius: 26px;
  }
  .notify-form input {
    padding: 14px 13px 10px;
  }
  .notify-form button {
    justify-content: space-between;
    width: 100%;
    padding: 14px 17px;
  }
  .hero__visual {
    justify-self: center;
    width: min(100%, 520px);
    margin-left: 0;
    margin-bottom: 0;
  }
  .editorial-geometry {
    width: min(100%, 500px);
    min-width: 0;
    aspect-ratio: 1.35;
  }
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .site-footer__services {
    justify-content: flex-start;
  }
}

@media (max-width: 400px) {
  .editorial-geometry {
    width: min(100%, 370px);
  }
}

@media (max-height: 760px) and (min-width: 721px) {
  .site-shell {
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .logo {
    width: 88px;
  }
  .hero {
    padding: 28px 0 34px;
  }
  .eyebrow {
    margin-bottom: 18px;
  }
  h1 {
    font-size: clamp(3rem, 6vw, 5.4rem);
  }
  .hero__description {
    margin-top: 20px;
    line-height: 1.5;
  }
  .notify-form {
    margin-top: 24px;
  }
  .editorial-geometry {
    width: min(65vh, 500px);
  }
}

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