:root {
  --background: #06354a;
  --background-deep: #042b3d;
  --foreground: #fff;
  --muted: rgba(255, 255, 255, 0.62);
  --soft: rgba(255, 255, 255, 0.78);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.26);
  --display: "Instrument Serif", Georgia, serif;
  --body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --content: 80rem;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  background: var(--background-deep);
}

body {
  min-width: 20rem;
  margin: 0;
  overflow-x: hidden;
  background: var(--background-deep);
  color: var(--foreground);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.04em;
}

em {
  color: var(--muted);
  font-style: normal;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 300;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: #061a22;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.section-shell {
  width: min(100%, calc(var(--content) + (var(--gutter) * 2)));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.liquid-glass {
  position: relative;
  overflow: hidden;
  border: 0;
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.liquid-glass::before {
  position: absolute;
  inset: 0;
  padding: 1.4px;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.15) 20%,
    transparent 40%,
    transparent 60%,
    rgba(255, 255, 255, 0.15) 80%,
    rgba(255, 255, 255, 0.45) 100%
  );
  content: "";
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.web-header {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 50%;
  display: flex;
  width: min(calc(100% - 2rem), 80rem);
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.6rem 0.5rem 1.15rem;
  border-radius: 999px;
  background: rgba(3, 31, 44, 0.08);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
  transform: translateX(-50%);
  transition:
    background 220ms ease,
    box-shadow 220ms ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.web-header::before {
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.42),
    transparent 45%,
    rgba(255, 255, 255, 0.16)
  );
  content: "";
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.web-header.is-scrolled,
.web-header.is-open {
  background: rgba(3, 31, 44, 0.84);
  box-shadow:
    0 1rem 3rem rgba(0, 0, 0, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

.web-wordmark {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: baseline;
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.web-wordmark sup {
  margin-left: 0.08rem;
  font-family: var(--body);
  font-size: 0.45em;
  letter-spacing: 0;
  vertical-align: super;
}

.web-wordmark span {
  margin-left: 0.75rem;
  color: rgba(255, 255, 255, 0.56);
  font-family: var(--body);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.web-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.web-nav a {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.web-nav a:hover,
.web-nav a:focus-visible {
  color: #fff;
}

.web-nav .apps-link {
  color: #fff;
}

.web-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  color: #fff;
}

.web-nav .nav-cta:hover {
  transform: scale(1.03);
}

.menu-button {
  position: relative;
  z-index: 3;
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.menu-button span:not(.sr-only) {
  position: absolute;
  left: 50%;
  width: 1rem;
  height: 1px;
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-button span:nth-child(2) {
  transform: translate(-50%, -0.18rem);
}

.menu-button span:nth-child(3) {
  transform: translate(-50%, 0.18rem);
}

.menu-button[aria-expanded="true"] span:nth-child(2) {
  transform: translate(-50%, 0) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:nth-child(3) {
  transform: translate(-50%, 0) rotate(-45deg);
}

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  padding: 8.5rem var(--gutter) 7rem;
  background: var(--background);
  text-align: center;
}

.hero-video {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  max-width: 88rem;
  flex-direction: column;
  align-items: center;
}

.hero-kicker,
.eyebrow {
  margin-bottom: 1.7rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 78rem;
  margin-bottom: 0;
  font-size: clamp(3.6rem, 7vw, 7rem);
  line-height: 0.92;
}

.hero-copy {
  max-width: 44rem;
  margin: 2rem auto 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  padding: 1.15rem 3.25rem;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: transform 180ms ease;
}

.hero-cta:hover {
  transform: scale(1.03);
}

.canvasui-glass-host {
  position: relative;
  display: inline-block;
  width: max-content;
  max-width: 100%;
}

.hero-cta-glass {
  margin-top: 2.8rem;
}

.nav-cta-glass {
  flex: 0 0 auto;
}

.form-submit-glass {
  display: block;
  width: max-content;
  margin-top: 0.4rem;
}

.form-submit-glass .canvasui-glass-content {
  width: max-content;
  max-width: 100%;
}

.form-submit-glass .form-submit {
  margin-top: 0;
}

.canvasui-glass-content {
  position: relative;
  z-index: 1;
}

.canvasui-glass-source,
.canvasui-glass-output {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.canvasui-glass-output {
  pointer-events: none;
}

.canvasui-glass-source,
.canvasui-glass-output {
  display: none;
}

.canvasui-glass-host.is-native .canvasui-glass-source,
.canvasui-glass-host.is-native .canvasui-glass-output {
  display: block;
}

.canvasui-glass-host.is-native .canvasui-glass-content {
  width: 100%;
  height: 100%;
}

.canvasui-glass-host.is-native .hero-cta {
  margin-top: 0;
}

.hero-meta {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: 1.8rem;
  left: var(--gutter);
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.services,
.process,
.pricing {
  padding-top: clamp(6rem, 10vw, 10rem);
  padding-bottom: clamp(6rem, 10vw, 10rem);
}

.services {
  background: var(--background-deep);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(10rem, 0.6fr) minmax(20rem, 1.5fr) minmax(16rem, 0.8fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.section-intro h2 {
  max-width: 46rem;
  margin-bottom: 0;
  font-size: clamp(3.2rem, 6vw, 6rem);
  line-height: 0.92;
}

.section-intro > p:last-child {
  max-width: 29rem;
  margin: 0;
  color: var(--muted);
}

.section-intro.compact {
  grid-template-columns: minmax(10rem, 0.6fr) minmax(20rem, 2.3fr);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  min-height: 22rem;
  padding: 2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition:
    background 220ms ease,
    transform 220ms ease;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.035);
  transform: translateY(-0.35rem);
}

.service-card > span {
  display: block;
  margin-bottom: 6rem;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
}

.service-card h3 {
  margin-bottom: 1.2rem;
  font-size: 2rem;
  line-height: 1;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

.manifesto {
  padding-bottom: clamp(6rem, 10vw, 10rem);
  background: var(--background-deep);
}

.manifesto-panel {
  padding: clamp(3rem, 8vw, 7rem);
  border: 1px solid var(--line);
  background: var(--background);
}

.manifesto-quote {
  max-width: 68rem;
  margin-bottom: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 6.5rem);
  letter-spacing: -0.04em;
  line-height: 0.94;
}

.process {
  background: #072f42;
}

.process-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: minmax(4rem, 0.35fr) minmax(18rem, 2fr) minmax(8rem, 0.5fr);
  gap: 2rem;
  align-items: center;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--line);
}

.process-list > li > span,
.process-list small {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.process-list small {
  text-align: right;
}

.process-list h3 {
  margin-bottom: 0.55rem;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.9;
}

.process-list p {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--muted);
}

.pricing {
  background: var(--background-deep);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1rem;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.price-card.featured {
  background: var(--background);
}

.price-label {
  margin-bottom: 3rem;
  color: var(--soft);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.price {
  margin-bottom: 1.2rem;
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.price strong {
  font-weight: 400;
}

.price small {
  color: var(--muted);
  font-family: var(--body);
  font-size: 0.85rem;
  letter-spacing: 0;
}

.price-card > div > p:last-child {
  max-width: 34rem;
  color: var(--muted);
}

.price-card ul {
  display: grid;
  gap: 0;
  margin: 2.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.price-card li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.88rem;
}

.price-card li::before {
  margin-right: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
  content: "—";
}

.price-card > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-strong);
  font-size: 0.9rem;
}

.price-card > a span {
  transition: transform 180ms ease;
}

.price-card > a:hover span {
  transform: translate(0.2rem, -0.2rem);
}

.contact {
  padding-top: clamp(2rem, 5vw, 5rem);
  padding-bottom: clamp(2rem, 5vw, 5rem);
  background: var(--background-deep);
}

.contact-panel {
  display: flex;
  min-height: min(42rem, 78svh);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 8vw, 8rem) var(--gutter);
  background: var(--background);
  text-align: center;
}

.contact-panel h2 {
  max-width: 60rem;
  margin-bottom: 1.7rem;
  font-size: clamp(3.6rem, 8vw, 8rem);
  line-height: 0.88;
}

.contact-panel > p:not(.eyebrow) {
  max-width: 39rem;
  margin-bottom: 2.5rem;
  color: var(--muted);
}

.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.1rem 1.5rem;
  border-radius: 999px;
  font-size: 0.88rem;
  transition: transform 180ms ease;
}

.contact-cta:hover {
  transform: scale(1.03);
}

.web-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--line);
  background: var(--background-deep);
}

.web-footer nav {
  display: flex;
  gap: 1.5rem;
}

.web-footer nav a,
.web-footer p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.72rem;
}

.web-footer p {
  text-align: right;
}

.web-footer-legal {
  display: grid;
  gap: 0.35rem;
  justify-items: end;
  text-align: right;
}

.web-footer-legal p {
  margin: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-rise {
  animation: fade-rise 800ms ease-out both;
}

.animate-fade-rise-delay {
  animation: fade-rise 800ms ease-out 200ms both;
}

.animate-fade-rise-delay-two {
  animation: fade-rise 800ms ease-out 400ms both;
}

@media (max-width: 980px) {
  .section-intro {
    grid-template-columns: 1fr 2fr;
  }

  .section-intro > p:last-child {
    grid-column: 2;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .web-footer {
    grid-template-columns: 1fr auto;
  }

  .web-footer p {
    grid-column: 1 / -1;
    text-align: left;
  }

  .web-footer-legal {
    grid-column: 1 / -1;
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 800px) {
  .web-header {
    align-items: flex-start;
    padding: 0.62rem 0.62rem 0.62rem 1rem;
  }

  .web-header.is-open {
    flex-wrap: wrap;
    border-radius: 1.5rem;
    background: rgba(3, 31, 44, 0.94);
  }

  .menu-button {
    display: block;
    flex: 0 0 auto;
  }

  .web-nav {
    display: none;
    width: 100%;
    padding: 1rem 0.5rem 0.5rem;
  }

  .web-header.is-open .web-nav {
    display: grid;
  }

  .web-nav a {
    padding: 0.8rem 0.45rem;
    border-bottom: 1px solid var(--line);
  }

  .web-nav .nav-cta {
    display: flex;
    width: 100%;
    min-height: 3.6rem;
    align-items: center;
    justify-content: space-between;
    justify-self: stretch;
    margin-top: 0.8rem;
    padding: 1rem;
    border: 1px solid rgba(226, 205, 168, 0.38);
    border-radius: 1rem;
    background: rgba(226, 205, 168, 0.07);
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 0.12),
      0 0.75rem 2rem rgba(0, 0, 0, 0.12);
  }

  .web-nav .nav-cta-glass {
    display: block;
    width: 100%;
    max-width: none;
  }

  .web-nav .nav-cta::after {
    position: relative;
    z-index: 1;
    color: var(--accent, #e2cda8);
    content: "↗";
    font-size: 1rem;
    line-height: 1;
    transition: transform 180ms ease;
  }

  .web-nav .nav-cta:hover,
  .web-nav .nav-cta:focus-visible {
    border-color: rgba(226, 205, 168, 0.62);
    background: rgba(226, 205, 168, 0.11);
    transform: none;
  }

  .web-nav .nav-cta:hover::after,
  .web-nav .nav-cta:focus-visible::after {
    transform: translate(0.12rem, -0.12rem);
  }

  .hero {
    padding-top: 8rem;
  }

  .section-intro,
  .section-intro.compact {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .section-intro > p:last-child {
    grid-column: auto;
  }

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

  .price-card {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .web-wordmark {
    font-size: 1.45rem;
  }

  .web-wordmark span {
    display: inline;
    margin-left: 0.55rem;
    color: var(--accent-muted, rgba(226, 205, 168, 0.5));
    font-size: 0.56rem;
    letter-spacing: 0.12em;
  }

  .hero {
    min-height: 100svh;
    padding: 8rem 1.25rem 5.5rem;
  }

  .hero h1 {
    font-size: clamp(3.3rem, 13vw, 4.3rem);
  }

  .hero h1 br {
    display: none;
  }

  .hero-copy {
    font-size: 0.96rem;
  }

  .hero-meta {
    display: none;
  }

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

  .service-card {
    min-height: 15rem;
    padding: 1.5rem;
  }

  .service-card > span {
    margin-bottom: 2.75rem;
  }

  .process-list li {
    grid-template-columns: 2.5rem 1fr;
    gap: 1rem;
    align-items: start;
  }

  .process-list small {
    display: none;
  }

  .manifesto-panel {
    padding-inline: 1.5rem;
  }

  .web-footer {
    grid-template-columns: 1fr;
  }

  .web-footer nav {
    flex-wrap: wrap;
  }

  .contact-cta {
    gap: 0.6rem;
    font-size: 0.76rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero-video {
    object-position: center;
  }
}
