.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: calc(var(--header-height) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  padding-inline: var(--gutter);
  border-bottom: 1px solid transparent;
  transition:
    transform 0.4s var(--ease-out),
    min-height 0.45s var(--ease-out),
    background-color 0.45s ease,
    border-color 0.45s ease,
    color 0.45s ease;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header.is-scrolled {
  min-height: calc(4.5rem + env(safe-area-inset-top, 0px));
  border-color: var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  backdrop-filter: blur(24px) saturate(1.2);
}

.site-header.is-dark {
  border-color: var(--line-dark);
  background: rgba(5, 6, 7, 0.76);
  color: var(--paper-bright);
  -webkit-backdrop-filter: blur(24px) saturate(1.15);
  backdrop-filter: blur(24px) saturate(1.15);
}

.site-header.is-menu-open {
  min-height: calc(4.5rem + env(safe-area-inset-top, 0px));
  border-color: var(--line-dark);
  background: rgba(5, 6, 7, 0.94);
  color: var(--paper-bright);
  -webkit-backdrop-filter: blur(24px) saturate(1.15);
  backdrop-filter: blur(24px) saturate(1.15);
}

.site-header.is-dark .brand small {
  color: var(--muted-light);
}

.site-header.is-menu-open .brand small {
  color: var(--muted-light);
}

.site-header.is-dark .desktop-nav a::after,
.site-header.is-dark .services-toggle::after,
.site-header.is-menu-open .desktop-nav a::after,
.site-header.is-menu-open .services-toggle::after {
  background: var(--paper-bright);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  justify-self: start;
  line-height: 1.05;
}

.brand span {
  font-size: 0.94rem;
  font-weight: 680;
  letter-spacing: -0.025em;
}

.brand small {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 2rem;
  font-size: 0.78rem;
  font-weight: 620;
}

.desktop-nav a,
.services-toggle {
  position: relative;
  padding: 0.55rem 0;
}

.desktop-nav a::after,
.services-toggle::after {
  position: absolute;
  right: 0;
  bottom: 0.2rem;
  left: 0;
  height: 1px;
  background: var(--ink);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}

.desktop-nav a:hover::after,
.desktop-nav a[aria-current="page"]::after,
.services-toggle:hover::after,
.services-toggle[aria-expanded="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.services-toggle,
.menu-toggle,
.menu-close {
  border: 0;
  background: none;
  cursor: pointer;
}

.header-mail {
  justify-self: end;
  font-size: 0.76rem;
  font-weight: 620;
}

.services-popover {
  position: fixed;
  z-index: 105;
  top: 4.25rem;
  left: 50%;
  width: min(44rem, calc(100vw - (var(--gutter) * 2)));
  padding: 1rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--paper-bright);
  box-shadow: 0 2rem 6rem rgba(5, 6, 7, 0.32);
  transform: translate(-50%, -1rem);
  transition:
    opacity 0.3s ease,
    transform 0.5s var(--ease-out);
}

.services-popover[hidden] {
  display: block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.services-popover:not([hidden]) {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.services-popover__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.services-popover a {
  padding: 1.3rem;
  border-radius: 1rem;
  transition:
    color 0.3s ease,
    background-color 0.3s ease;
}

.services-popover a:hover {
  background: var(--paper-bright);
  color: var(--ink);
}

.services-popover small {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--muted-light);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.services-popover strong {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.menu-toggle {
  display: none;
  justify-self: end;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 100%;
  height: 1px;
  margin-block: 0.32rem;
  background: currentColor;
  content: "";
}

.site-header.is-dark .menu-toggle,
.site-header.is-menu-open .menu-toggle {
  border-color: var(--line-dark);
}

.mobile-menu {
  position: fixed;
  z-index: 110;
  inset: 0;
  display: grid;
  align-content: space-between;
  overflow-y: auto;
  padding: calc(1.5rem + env(safe-area-inset-top, 0px)) var(--gutter)
    calc(3rem + env(safe-area-inset-bottom, 0px));
  background: var(--ink);
  color: var(--paper-bright);
  overscroll-behavior: contain;
  transition:
    visibility 0s linear,
    opacity 0.35s ease,
    clip-path 0.85s var(--ease-out);
  clip-path: inset(0 0 100% 0);
}

.mobile-menu[hidden] {
  display: grid;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition-delay: 0.8s, 0s, 0s;
}

.mobile-menu:not([hidden]) {
  visibility: visible;
  opacity: 1;
  clip-path: inset(0);
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-close {
  color: inherit;
  font-size: 0.8rem;
}

.mobile-menu nav {
  display: grid;
  gap: 0.5rem;
}

.mobile-menu nav a {
  padding-block: 0.25rem;
  font-family: var(--display);
  font-size: clamp(2.6rem, 12vw, 5rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.mobile-menu__services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-dark);
}

.mobile-menu__label {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted-light);
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.mobile-menu__services a {
  display: grid;
  gap: 0.4rem;
}

.mobile-menu__services a span {
  font-family: var(--display);
  font-size: clamp(1.45rem, 5.5vw, 1.9rem);
  letter-spacing: -0.035em;
  line-height: 1;
}

.mobile-menu__services a small {
  color: var(--muted-light);
  font-size: 0.72rem;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 100svh;
  padding: calc(var(--header-height) + 4rem) var(--gutter) 7vh;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin-inline: auto;
}

.hero__intro {
  max-width: 35rem;
  margin: 0 0 1rem auto;
  color: var(--muted);
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  line-height: 1.5;
  letter-spacing: -0.025em;
}

.hero--compact {
  min-height: 82svh;
}

.hero--dark {
  background: var(--ink);
  color: var(--paper-bright);
}

.hero--dark .hero__intro {
  color: var(--muted-light);
}

.hero-orbit {
  position: absolute;
  z-index: 0;
  top: 8%;
  right: -18vw;
  width: min(65vw, 58rem);
  aspect-ratio: 1;
  border: 1px solid rgba(0, 189, 231, 0.22);
  border-radius: 50%;
  opacity: 0.72;
}

.hero-orbit::before,
.hero-orbit::after {
  position: absolute;
  border: 1px solid rgba(0, 189, 231, 0.14);
  border-radius: inherit;
  content: "";
}

.hero-orbit::before {
  inset: 12%;
}

.hero-orbit::after {
  inset: 28%;
  background: radial-gradient(circle, rgba(0, 189, 231, 0.1), transparent 68%);
  box-shadow: 0 0 8rem rgba(0, 189, 231, 0.12);
}

.section {
  position: relative;
  padding-block: var(--section-space);
}

.section--dark {
  background: var(--ink);
  color: var(--paper-bright);
}

.service-overview .editorial-grid {
  align-items: start;
}

.service-overview .editorial-grid__intro {
  position: sticky;
  top: calc(4.5rem + 12vh);
  align-self: start;
}

.service-overview .editorial-grid__body > .lead {
  margin-bottom: clamp(5rem, 10vh, 8rem);
}

.service-overview .editorial-block {
  display: grid;
  align-content: center;
  min-height: 32svh;
}

.statement {
  display: grid;
  min-height: 90svh;
  place-items: center;
  padding: var(--section-space) var(--gutter);
  text-align: center;
}

.statement h2 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3.5rem, 9vw, 9rem);
  line-height: 0.9;
}

.statement p {
  max-width: 37rem;
  margin: 2rem auto 0;
  color: var(--muted-light);
  font-size: 1.1rem;
}

.service-list {
  margin-top: 5rem;
  border-top: 1px solid var(--line);
}

.service-link {
  position: relative;
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  align-items: center;
  gap: 2rem;
  min-height: 10rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.service-link::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--ink);
  content: "";
  transform: translateY(101%);
  transition: transform 0.7s var(--ease-out);
}

.service-link:hover {
  color: var(--paper-bright);
}

.service-link:hover::before {
  transform: translateY(0);
}

.service-link__number {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.service-link h3 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 5rem);
  line-height: 0.95;
}

.service-link__arrow {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  place-items: center;
  transition: transform 0.45s var(--ease-out);
}

.service-link:hover .service-link__arrow {
  transform: rotate(-35deg);
}

.story {
  position: relative;
  min-height: var(--story-height, 320svh);
  background: var(--ink);
  color: var(--paper-bright);
}

.story__sticky {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: minmax(15rem, 0.75fr) minmax(20rem, 1.25fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: center;
  min-height: 100svh;
  min-height: 100dvh;
  padding: calc(var(--header-height) + 2rem) var(--gutter) 3rem;
  overflow: hidden;
}

.story__meta {
  position: relative;
  z-index: 2;
}

.story__title {
  color: var(--muted-light);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.story__meta .lead {
  max-width: 22rem;
  margin-top: 1.4rem;
  color: var(--paper-bright);
}

.story__indicator {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem;
  align-items: center;
  width: min(100%, 20rem);
  margin-top: 3rem;
  color: var(--muted-light);
  font-size: 0.66rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.14em;
}

.story__current {
  color: var(--cyan-soft);
}

.story__track {
  height: 1px;
  overflow: hidden;
  background: var(--line-dark);
}

.story__track > span {
  display: block;
  width: calc(var(--story-progress, 0) * 100%);
  height: 100%;
  background: var(--cyan);
  transform-origin: left;
}

.story__steps {
  position: relative;
  z-index: 2;
  min-height: 24rem;
}

.story__step {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  opacity: var(--step-opacity, 0);
  filter: blur(var(--step-blur, 6px));
  transition:
    opacity 0.08s linear,
    filter 0.08s linear;
  will-change: opacity, filter;
  pointer-events: none;
}

.story__step.is-active {
  --step-opacity: 1;
  --step-y: 0px;
  --step-blur: 0px;
  pointer-events: auto;
}

.story__step small,
.story__step h3,
.story__step p {
  transform: translate3d(0, var(--step-y, 3rem), 0);
  will-change: transform;
}

.story__step small {
  margin-bottom: 1rem;
  color: var(--cyan-soft);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: transform 0.05s linear;
}

.story__step h3 {
  max-width: 11ch;
  margin-bottom: 1.5rem;
  font-size: clamp(3.5rem, 7vw, 7rem);
  line-height: 0.9;
  transition: transform 0.08s linear;
}

.story__step p {
  max-width: 34rem;
  color: var(--muted-light);
  font-size: 1.08rem;
  transition: transform 0.11s linear;
}

html:not(.is-ready) .story {
  min-height: auto;
  padding: var(--section-space) var(--gutter);
}

html:not(.is-ready) .story__sticky {
  position: static;
  display: block;
  min-height: auto;
  padding: 0;
}

html:not(.is-ready) .story__steps {
  display: grid;
  gap: 5rem;
  min-height: auto;
  margin-top: 4rem;
}

html:not(.is-ready) .story__step {
  position: static;
  opacity: 1;
  filter: none;
  transform: none;
  pointer-events: auto;
}

html:not(.is-ready) .story__step small,
html:not(.is-ready) .story__step h3,
html:not(.is-ready) .story__step p {
  transform: none;
}

html:not(.is-ready) .story__indicator {
  display: none;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.editorial-grid__intro {
  grid-column: 1 / span 5;
}

.editorial-grid__body {
  grid-column: 7 / -1;
}

.editorial-block {
  padding-block: 2.2rem;
  border-top: 1px solid var(--line);
}

.editorial-block h3 {
  margin-bottom: 0.75rem;
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 660;
  letter-spacing: -0.02em;
}

.editorial-block p {
  margin-bottom: 0;
  color: var(--muted);
}

.profile-frame {
  position: relative;
  grid-column: 7 / -1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink);
}

.profile-frame img {
  width: 100%;
  height: min(72svh, 52rem);
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(1) contrast(1.04);
}

.profile-frame::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 60%, rgba(5, 6, 7, 0.45)),
    radial-gradient(circle at 80% 10%, rgba(0, 189, 231, 0.13), transparent 40%);
  pointer-events: none;
  content: "";
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(4rem, 9vw, 10rem);
}

.contact-email {
  display: inline-block;
  margin-top: 2rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid currentColor;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 3rem);
  letter-spacing: -0.045em;
}

.contact-form {
  display: grid;
  gap: 1.7rem;
}

.field {
  display: grid;
  gap: 0.55rem;
}

.field label {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 1rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  outline: none;
  transition: border-color 0.3s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--cyan-deep);
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field-error {
  min-height: 1.25rem;
  margin: 0;
  color: #a71d2a;
  font-size: 0.78rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: max-content;
  min-height: 3.3rem;
  padding: 0.8rem 1.4rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper-bright);
  cursor: pointer;
  transition:
    color 0.35s ease,
    background-color 0.35s ease,
    transform 0.45s var(--ease-out);
}

.button:hover {
  background: var(--cyan);
  color: var(--ink);
  transform: translateY(-0.2rem);
}

.form-note,
.form-status {
  color: var(--muted);
  font-size: 0.82rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: clamp(3rem, 8vw, 9rem);
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  display: grid;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.legal-copy {
  max-width: 48rem;
}

.legal-copy section {
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
}

.legal-copy h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.site-footer {
  padding: 5rem var(--gutter) 2rem;
  background: var(--ink);
  color: var(--paper-bright);
}

.site-footer .button {
  border-color: var(--paper-bright);
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--line-dark);
}

.site-footer__title {
  max-width: 10ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.5rem, 8vw, 8rem);
  letter-spacing: -0.06em;
  line-height: 0.85;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 2rem;
  color: var(--muted-light);
  font-size: 0.72rem;
}

.site-footer__links {
  display: flex;
  gap: 1.5rem;
}
