:root {
  --content-max: calc(var(--layout-max) - var(--space-9));
}

#page {
  min-height: 100vh;
  background: var(--surface-page);
}

.kicker {
  color: var(--text-accent);
  font-family: var(--font-mono);
  font-size: var(--type-kicker);
  font-weight: var(--font-bold);
  line-height: 16px;
  letter-spacing: var(--tracking-kicker);
  text-transform: uppercase;
}

.section-title {
  display: flex;
  flex-direction: column;
  font-size: var(--type-section);
  font-weight: var(--font-bold);
  line-height: var(--line-section);
  letter-spacing: var(--tracking-section);
}

.accent-rule {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--surface-accent);
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border: 0;
  border-radius: var(--radius-control);
  cursor: pointer;
  font-size: var(--type-button);
  font-weight: var(--font-semibold);
  line-height: 20px;
  transition:
    background-color var(--duration-ui) var(--ease-out),
    color var(--duration-ui) var(--ease-out),
    transform var(--duration-ui) var(--ease-out);
}

.btn svg {
  flex: 0 0 auto;
  transition: transform var(--duration-ui) var(--ease-out);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  cursor: wait;
  color: var(--text-muted);
  background: var(--ink-700);
}

.btn--primary {
  color: var(--text-on-accent);
  background: var(--surface-accent);
}

.btn--primary:hover {
  background: var(--surface-accent-hover);
}

.btn--primary:active {
  background: var(--surface-accent-pressed);
}

.btn--full {
  width: 100%;
}

.text-button {
  width: max-content;
  padding: 0;
  border: 0;
  color: var(--text-accent);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: var(--type-meta);
  letter-spacing: var(--tracking-meta);
}

.text-button:hover {
  color: var(--olive-400);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  background: var(--surface-header-rest);
  border-bottom: var(--border-width) solid var(--border-subtle);
  transition:
    background-color var(--duration-ui) var(--ease-out),
    backdrop-filter var(--duration-ui) var(--ease-out);
}

.site-header.is-scrolled,
.site-header.is-open {
  background: var(--surface-header-glass);
  -webkit-backdrop-filter: blur(var(--header-blur));
  backdrop-filter: blur(var(--header-blur));
}

.site-header__inner {
  position: relative;
  z-index: 52;
  width: min(calc(100% - (2 * var(--gutter-desktop))), var(--content-max));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  padding-block: var(--space-1);
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: var(--font-extra);
  line-height: 30px;
  letter-spacing: 0;
}

.nav {
  height: 100%;
  display: flex;
  align-items: stretch;
  gap: var(--space-4);
}

.nav__link {
  position: relative;
  width: 104px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: var(--type-nav);
  font-weight: var(--font-medium);
  line-height: 20px;
  transition: color var(--duration-ui) var(--ease-out);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--surface-accent);
  opacity: 0;
  transform: translateX(-50%) scaleX(0.6);
  transition:
    opacity var(--duration-ui) var(--ease-out),
    transform var(--duration-ui) var(--ease-out);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--text-strong);
}

.nav__link.is-active::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.instagram-link {
  color: var(--text-secondary);
  transition: color var(--duration-ui) var(--ease-out);
}

.instagram-link svg {
  display: block;
  flex: 0 0 auto;
}

.instagram-link:hover {
  color: var(--text-strong);
}

.instagram-link--nav {
  position: relative;
  width: 52px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.instagram-link--nav::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--surface-accent);
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity var(--duration-ui) var(--ease-out);
}

.instagram-link--nav:hover::after {
  opacity: 0.45;
}

.instagram-link--icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.instagram-link--footer {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  color: var(--icon-default);
  background: transparent;
  cursor: pointer;
}

.drawer-backdrop {
  position: fixed;
  inset: var(--header-height) 0 0;
  z-index: 48;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background: var(--overlay-strong);
  transition:
    opacity var(--duration-drawer) var(--ease-out),
    visibility 0s linear var(--duration-drawer);
}

.drawer-backdrop.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.mobile-drawer {
  position: fixed;
  inset: var(--header-height) 0 0;
  z-index: 49;
  visibility: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-8) var(--gutter-mobile) var(--space-10);
  border-top: var(--border-width) solid var(--border-subtle);
  background: var(--surface-drawer);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition:
    opacity var(--duration-drawer) var(--ease-out),
    transform var(--duration-drawer) var(--ease-out),
    visibility 0s linear var(--duration-drawer);
}

.mobile-drawer.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

.mobile-drawer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mobile-drawer__link {
  width: max-content;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: var(--font-extra);
  line-height: 1;
  letter-spacing: -0.02em;
  padding-block: var(--space-1);
}

.mobile-drawer__link.is-active {
  color: var(--text-accent);
}

.mobile-drawer .btn {
  margin-top: auto;
}

.mobile-drawer__instagram {
  display: flex;
  justify-content: center;
}

/* Hero */

.hero {
  position: relative;
  height: clamp(900px, 90.3vw, 1300px);
  overflow: hidden;
  background: var(--surface-page);
  scroll-margin-top: var(--header-height);
}

.hero__media {
  position: absolute;
  inset: 0 0 0 auto;
  width: 61.12%;
  overflow: hidden;
  transform-origin: center;
  background: var(--fallback-hero-desktop);
}

.hero__picture,
.hero__picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero__picture img {
  object-fit: cover;
  object-position: 50% 50%;
}

.hero__scrim,
.hero__bottom-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__scrim {
  background: var(--scrim-hero);
}

.hero__bottom-scrim {
  top: auto;
  height: 420px;
  background: var(--scrim-bottom);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(calc(100% - (2 * var(--gutter-desktop))), var(--content-max));
  height: 100%;
  margin-inline: auto;
  padding-top: 180px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__kicker {
  margin-bottom: 44px;
}

.hero__title {
  width: 690px;
  max-width: 61%;
  font-size: var(--type-hero);
  font-weight: var(--font-extra);
  line-height: var(--line-hero);
  letter-spacing: var(--tracking-hero);
}

.hero__title span {
  display: block;
}

.hero .accent-rule {
  width: 68px;
  margin-top: 36px;
}

.hero__lead {
  width: 440px;
  max-width: 45%;
  margin-top: 44px;
  color: var(--text-secondary);
  font-size: var(--type-lead);
  line-height: var(--line-lead);
}

.hero__cta {
  width: 250px;
  margin-top: 48px;
}

.hero__practice {
  margin-top: 36px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--type-meta);
  line-height: 18px;
  letter-spacing: var(--tracking-meta);
}

html.js .hero__media {
  animation: hero-media-in 560ms var(--ease-out) both;
}

html.js [data-hero-reveal] {
  animation: hero-support-in 480ms var(--ease-out) both;
}

html.js [data-hero-reveal="title"] {
  animation-delay: 60ms;
}

html.js [data-hero-reveal="lead"] {
  animation-delay: 180ms;
}

html.js [data-hero-reveal="cta"] {
  animation-delay: 240ms;
}

html.js [data-hero-reveal="practice"] {
  animation-delay: 300ms;
}

@keyframes hero-media-in {
  from {
    opacity: 0.86;
    transform: scale(1.035);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes hero-support-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Process */

.process {
  position: relative;
  min-height: 808px;
  overflow: hidden;
  border-block: var(--border-width) solid var(--border-subtle);
  background: var(--surface-page);
  scroll-margin-top: var(--header-height);
}

.process__texture,
.process__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.process__texture {
  background: var(--fallback-process-desktop);
  opacity: 0.82;
}

.process__picture,
.process__picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.process__picture img {
  object-fit: cover;
  object-position: 50% 50%;
}

.process__scrim {
  background: var(--scrim-process);
}

.process__inner {
  position: relative;
  z-index: 2;
  width: min(calc(100% - (2 * var(--gutter-desktop))), var(--content-max));
  margin-inline: auto;
  padding-block: 94px 80px;
}

.process__intro {
  max-width: 920px;
}

.process .section-title {
  width: 720px;
  max-width: 100%;
  margin-top: 32px;
}

.process__scope {
  max-width: 920px;
  margin-top: 28px;
  color: var(--text-secondary);
  font-size: var(--type-base);
  line-height: var(--line-body);
}

.process__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 52px;
  padding: 0;
  margin-top: 132px;
  border-top: var(--border-width) solid var(--border-accent);
  list-style: none;
}

.process-step {
  position: relative;
  padding-top: 32px;
}

.process-step__marker {
  position: absolute;
  top: -5px;
  left: 0;
  width: 10px;
  height: 10px;
  border: 2px solid var(--border-accent);
  border-radius: var(--radius-pill);
  background: var(--surface-page);
}

.process-step__number {
  position: absolute;
  top: -44px;
  left: 0;
  color: var(--text-accent);
  font-family: var(--font-mono);
  font-size: var(--type-kicker);
  font-weight: var(--font-medium);
  line-height: 16px;
  letter-spacing: var(--tracking-index);
}

.process-step__title {
  font-size: var(--type-step);
  font-weight: var(--font-semibold);
  line-height: 24px;
  letter-spacing: 0;
}

.process-step__body {
  max-width: 300px;
  margin-top: var(--space-3);
  color: var(--text-secondary);
  font-size: var(--type-small);
  line-height: var(--line-small);
}

/* AI consultation helper */

.ai-help {
  background: var(--surface-page);
  scroll-margin-top: var(--header-height);
}

.ai-help__inner {
  width: min(calc(100% - (2 * var(--gutter-desktop))), var(--content-max));
  margin-inline: auto;
  padding-block: var(--space-9);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: var(--space-8);
  align-items: start;
}

.ai-help__intro .section-title {
  margin-top: var(--space-6);
}

.ai-help__intro .accent-rule {
  margin-top: var(--space-6);
}

.ai-help__lead {
  width: 500px;
  max-width: 100%;
  margin-top: var(--space-6);
  color: var(--text-secondary);
  font-size: var(--type-base);
  line-height: var(--line-body);
}

.ai-help__safety {
  width: 500px;
  max-width: 100%;
  margin-top: var(--space-5);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--type-meta);
  line-height: 18px;
  letter-spacing: var(--tracking-meta);
}

.ai-help__panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-6);
  border: var(--border-width) solid var(--border-field);
  border-radius: var(--radius-field);
  background: var(--surface-field);
}

.ai-help__panel-title {
  font-size: var(--type-step);
  font-weight: var(--font-semibold);
  line-height: 24px;
}

.ai-help__panel-intro {
  color: var(--text-secondary);
  font-size: var(--type-small);
  line-height: var(--line-small);
}

.ai-help__prompt {
  padding: var(--space-4);
  border: var(--border-width) solid var(--border-subtle);
  border-radius: var(--radius-field);
  background: var(--surface-page);
}

.ai-help__prompt-label,
.ai-help__status {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--type-meta);
  line-height: 18px;
  letter-spacing: var(--tracking-meta);
}

.ai-help__prompt-label {
  text-transform: uppercase;
}

.ai-help__prompt-text {
  margin-top: var(--space-3);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: var(--type-small);
  line-height: var(--line-small);
}

.ai-help__prompt-text:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: var(--space-1);
}

.ai-help__copy {
  color: var(--text-accent);
  font-family: var(--font-body);
  font-size: var(--type-base);
  font-weight: var(--font-semibold);
  letter-spacing: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ai-help__copy:disabled {
  cursor: wait;
  color: var(--text-muted);
}

/* Contact */

.contact {
  min-height: 640px;
  border-top: var(--border-width) solid var(--border-subtle);
  background: var(--surface-page);
  scroll-margin-top: var(--header-height);
}

.contact__inner {
  width: min(calc(100% - (2 * var(--gutter-desktop))), var(--content-max));
  min-height: 639px;
  margin-inline: auto;
  padding-block: 107px 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 64px;
  align-items: start;
}

.contact__intro .section-title {
  margin-top: 32px;
}

.contact__intro .accent-rule {
  margin-top: 28px;
}

.contact__lead {
  width: 390px;
  max-width: 100%;
  margin-top: 36px;
  color: var(--text-secondary);
  font-size: var(--type-base);
  line-height: var(--line-body);
}

.contact__form-shell {
  width: 100%;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field__control {
  width: 100%;
  height: 52px;
  padding: 0 var(--space-4);
  border: var(--border-width) solid var(--border-field);
  border-radius: var(--radius-field);
  outline: 0;
  color: var(--text-default);
  background: var(--surface-field);
  font-size: var(--type-small);
  line-height: 21px;
  transition:
    border-color var(--duration-ui) var(--ease-out),
    background-color var(--duration-ui) var(--ease-out),
    box-shadow var(--duration-ui) var(--ease-out);
}

.field__control:hover {
  background: var(--surface-field-hover);
}

.field__control:focus {
  border-color: var(--border-accent);
  box-shadow: var(--focus-shadow);
}

.field__control::placeholder {
  color: var(--text-secondary);
  opacity: 1;
}

textarea.field__control {
  min-height: 112px;
  padding-block: var(--space-4);
  resize: vertical;
}

.field__control[aria-invalid="true"] {
  border-color: var(--status-error);
}

.field__help,
.field__error {
  font-family: var(--font-mono);
  font-size: var(--type-meta);
  line-height: 18px;
  letter-spacing: var(--tracking-meta);
}

.field__help {
  color: var(--text-muted);
}

.field__error {
  display: none;
  color: var(--status-error);
}

.field__error:not(:empty) {
  display: block;
}

.form-message {
  display: none;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: var(--type-meta);
  line-height: 18px;
  letter-spacing: var(--tracking-meta);
}

.form-message:not(:empty) {
  display: block;
}

.contact-form[data-state="error"] .form-message,
.contact-form[data-state="rate"] .form-message {
  color: var(--status-error);
}

.form-note {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--type-meta);
  line-height: 18px;
  letter-spacing: var(--tracking-meta);
}

.form-note a {
  color: var(--text-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-success {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-6);
  border: var(--border-width) solid var(--border-accent);
  border-radius: var(--radius-field);
  background: var(--surface-field);
}

.form-success__icon {
  color: var(--status-success);
}

.form-success h3 {
  font-size: var(--type-step);
  font-weight: var(--font-semibold);
  line-height: 24px;
}

.form-success p {
  color: var(--text-secondary);
  font-size: var(--type-small);
  line-height: var(--line-small);
}

/* Footer */

.site-footer {
  min-height: 196px;
  display: flex;
  align-items: center;
  background: var(--surface-page);
}

.site-footer__inner {
  width: min(calc(100% - (2 * var(--gutter-desktop))), var(--content-max));
  min-height: 104px;
  margin-inline: auto;
  border-top: var(--border-width) solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.site-footer__tagline {
  color: var(--text-muted);
  font-size: var(--type-small);
  line-height: 21px;
}

.site-footer__legal {
  display: flex;
  gap: var(--space-4);
  color: var(--text-secondary);
  font-size: var(--type-small);
  line-height: 21px;
}

.site-footer__legal a,
.site-footer__privacy {
  transition: color var(--duration-ui) var(--ease-out);
}

.site-footer__privacy {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.site-footer__legal a:hover,
.site-footer__privacy:hover {
  color: var(--text-strong);
}

/* Cookie consent */

.cookie-consent {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  padding: 0 var(--gutter-desktop) var(--space-5);
  pointer-events: none;
}

body.is-drawer-open .cookie-consent {
  visibility: hidden;
}

.cookie-consent__panel {
  width: min(100%, var(--content-max));
  max-height: calc(100vh - (2 * var(--space-5)));
  max-height: calc(100dvh - (2 * var(--space-5)));
  margin-inline: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-6);
  border: var(--border-width) solid var(--border-subtle);
  border-radius: var(--radius-control);
  background: var(--surface-page);
  opacity: 0;
  pointer-events: auto;
  transform: translateY(var(--space-4));
  transition:
    opacity var(--duration-ui) var(--ease-out),
    transform var(--duration-ui) var(--ease-out);
}

.cookie-consent.is-visible .cookie-consent__panel {
  opacity: 1;
  transform: translateY(0);
}

.cookie-consent__view {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.cookie-consent__title {
  color: var(--text-strong);
  font-family: var(--font-body);
  font-size: var(--type-step);
  font-weight: var(--font-semibold);
  line-height: 24px;
}

.cookie-consent__text {
  color: var(--text-default);
  font-size: var(--type-base);
  line-height: var(--line-body);
}

.cookie-consent__summary-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.cookie-consent__policy-link {
  flex: 0 0 auto;
  color: var(--text-accent);
  font-size: var(--type-nav);
  font-weight: var(--font-medium);
  line-height: 20px;
  transition: color var(--duration-ui) var(--ease-out);
}

.cookie-consent__policy-link:hover {
  color: var(--olive-400);
}

.cookie-consent__actions,
.cookie-consent__preferences-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.cookie-consent__preferences-actions {
  justify-content: flex-end;
}

.cookie-consent__action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-5);
  border: var(--border-width) solid transparent;
  border-radius: var(--radius-control);
  background: transparent;
  cursor: pointer;
  font-size: var(--type-button);
  font-weight: var(--font-semibold);
  line-height: 20px;
  transition:
    border-color var(--duration-ui) var(--ease-out),
    background-color var(--duration-ui) var(--ease-out),
    color var(--duration-ui) var(--ease-out),
    transform var(--duration-ui) var(--ease-out);
}

.cookie-consent__action:active {
  transform: translateY(1px);
}

.cookie-consent__action--quiet {
  color: var(--text-secondary);
}

.cookie-consent__action--quiet:hover {
  color: var(--text-strong);
  background: var(--surface-field);
}

.cookie-consent__action--outline {
  border-color: var(--border-field);
  color: var(--text-default);
}

.cookie-consent__action--outline:hover {
  border-color: var(--border-accent);
  background: var(--surface-field);
}

.cookie-consent__action--primary {
  color: var(--text-on-accent);
  background: var(--surface-accent);
}

.cookie-consent__action--primary:hover {
  background: var(--surface-accent-hover);
}

.cookie-consent__categories {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4);
  border: var(--border-width) solid var(--border-subtle);
  border-radius: var(--radius-field);
  background: var(--surface-field);
}

.cookie-option__copy {
  min-width: 0;
}

.cookie-option__heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.cookie-option h3 {
  color: var(--text-strong);
  font-family: var(--font-body);
  font-size: var(--type-step);
  font-weight: var(--font-semibold);
  line-height: 24px;
}

.cookie-option__status {
  color: var(--text-accent);
  font-family: var(--font-mono);
  font-size: var(--type-meta);
  line-height: 18px;
  letter-spacing: var(--tracking-meta);
  text-transform: uppercase;
}

.cookie-option p {
  margin-top: var(--space-2);
  color: var(--text-secondary);
  font-size: var(--type-small);
  line-height: var(--line-small);
}

.cookie-consent__status {
  color: var(--text-muted);
  font-size: var(--type-small);
  line-height: var(--line-small);
}

.consent-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex: 0 0 44px;
}

.consent-switch__input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.consent-switch__input:disabled {
  cursor: not-allowed;
}

.consent-switch__track {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: var(--border-width) solid var(--border-field);
  border-radius: var(--radius-pill);
  background: var(--surface-field);
  transition:
    border-color var(--duration-ui) var(--ease-out),
    background-color var(--duration-ui) var(--ease-out);
}

.consent-switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-pill);
  background: var(--text-secondary);
  transition:
    background-color var(--duration-ui) var(--ease-out),
    transform var(--duration-ui) var(--ease-out);
}

.consent-switch__input:checked + .consent-switch__track {
  border-color: var(--border-accent);
  background: var(--surface-accent);
}

.consent-switch__input:checked + .consent-switch__track::after {
  background: var(--text-on-accent);
  transform: translateX(20px);
}

.consent-switch__input:focus-visible + .consent-switch__track {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

/* Legal routes */

.legal-page {
  min-height: calc(100vh - var(--header-height));
  padding: var(--space-9) var(--gutter-desktop) var(--space-10);
}

.legal {
  width: min(100%, var(--content-max));
  margin-inline: auto;
}

.legal__header {
  max-width: 900px;
}

.legal__header h1 {
  margin-top: var(--space-6);
  font-size: var(--type-section);
  font-weight: var(--font-bold);
  line-height: var(--line-section);
  letter-spacing: var(--tracking-section);
}

.legal__updated {
  margin-top: var(--space-6);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--type-meta);
  line-height: 18px;
  letter-spacing: var(--tracking-meta);
}

.prose {
  margin-top: var(--space-9);
}

.prose section {
  display: grid;
  grid-template-columns: 280px minmax(0, 680px);
  gap: var(--space-8);
  padding-block: var(--space-6);
  border-top: var(--border-width) solid var(--border-subtle);
}

.prose h2 {
  font-size: var(--type-step);
  font-weight: var(--font-semibold);
  line-height: 24px;
}

.prose p {
  grid-column: 2;
  color: var(--text-secondary);
  font-size: var(--type-base);
  line-height: var(--line-body);
}

.prose section p + p {
  margin-top: calc(-1 * var(--space-4));
}

.prose strong {
  color: var(--text-default);
  font-weight: var(--font-semibold);
}

.prose a {
  color: var(--text-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Progressive section reveal */

html.js.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--duration-reveal) var(--ease-out),
    transform var(--duration-reveal) var(--ease-out);
}

html.js.reveal-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .site-header__inner,
  .hero__content,
  .process__inner,
  .ai-help__inner,
  .contact__inner,
  .site-footer__inner {
    width: calc(100% - (2 * var(--space-7)));
  }

  .hero__content {
    padding-top: 150px;
  }

  .hero__title {
    max-width: 66%;
  }

  .contact__inner {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
    gap: var(--space-8);
  }
}

@media (max-width: 880px) {
  :root {
    --header-height: 72px;
  }

  .section-title {
    font-size: var(--type-section-mobile);
    line-height: var(--line-section-mobile);
    letter-spacing: -0.015em;
  }

  .site-header__inner,
  .hero__content,
  .process__inner,
  .ai-help__inner,
  .contact__inner,
  .site-footer__inner {
    width: calc(100% - (2 * var(--gutter-mobile)));
  }

  .nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    height: 960px;
  }

  .hero__media {
    width: 100%;
    background: var(--fallback-hero-mobile);
  }

  .hero__picture img {
    object-position: 60% 50%;
  }

  .hero__scrim {
    background: var(--scrim-hero-mobile);
  }

  .hero__bottom-scrim {
    height: 50%;
  }

  .hero__content {
    padding-top: 128px;
  }

  .hero__kicker {
    margin-bottom: 36px;
  }

  .hero__title {
    width: 100%;
    max-width: none;
    font-size: var(--type-hero-mobile);
    line-height: var(--line-hero-mobile);
    letter-spacing: -0.021em;
  }

  .hero .accent-rule {
    width: 48px;
    margin-top: 28px;
  }

  .hero__lead {
    width: 310px;
    max-width: 100%;
    margin-top: 34px;
    font-size: var(--type-base);
    line-height: var(--line-body);
  }

  .hero__cta {
    width: 100%;
    margin-top: 34px;
  }

  .hero__practice {
    margin-top: 28px;
    color: var(--text-secondary);
  }

  .process {
    min-height: 1100px;
  }

  .process__texture {
    background: var(--fallback-process-mobile);
  }

  .process__scrim {
    background: var(--scrim-process-mobile);
  }

  .process__inner {
    padding-block: 63px 72px;
  }

  .process .section-title {
    margin-top: 32px;
  }

  .process__scope {
    width: 330px;
    max-width: 100%;
    margin-top: 28px;
    font-size: var(--type-small);
    line-height: var(--line-small);
  }

  .process__steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 76px 0 0 9px;
    padding-left: 30px;
    border-top: 0;
    border-left: var(--border-width) solid var(--border-accent);
  }

  .process-step {
    min-height: 204px;
    padding: 0 0 var(--space-8) var(--space-2);
  }

  .process-step:last-child {
    min-height: auto;
    padding-bottom: 0;
  }

  .process-step__marker {
    top: 0;
    left: -36px;
  }

  .process-step__number {
    position: static;
    display: block;
    margin-bottom: var(--space-7);
  }

  .process-step__body {
    width: 250px;
    max-width: 100%;
  }

  .ai-help__inner {
    padding-block: var(--space-8);
    display: block;
  }

  .ai-help__intro .section-title,
  .ai-help__intro .accent-rule {
    margin-top: var(--space-5);
  }

  .ai-help__lead {
    margin-top: var(--space-5);
  }

  .ai-help__safety {
    margin-top: var(--space-5);
  }

  .ai-help__panel {
    margin-top: var(--space-7);
    gap: var(--space-5);
    padding: var(--space-5);
  }

  .contact {
    min-height: 820px;
  }

  .contact__inner {
    min-height: 819px;
    padding-block: 63px;
    display: block;
  }

  .contact__intro .section-title {
    margin-top: 32px;
    font-size: 39px;
    letter-spacing: -0.02em;
  }

  .contact__intro .accent-rule {
    margin-top: 28px;
  }

  .contact__lead {
    width: 330px;
    margin-top: 32px;
  }

  .contact__lead-extra {
    display: none;
  }

  .contact__form-shell {
    margin-top: 40px;
  }

  .site-footer {
    min-height: 260px;
  }

  .site-footer__inner {
    width: 100%;
    min-height: 260px;
    padding: 0 var(--gutter-mobile);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-5);
    text-align: center;
  }

  .site-footer__legal {
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
  }

  .cookie-consent {
    padding: 0 var(--gutter-mobile) var(--space-3);
  }

  .cookie-consent__panel {
    max-height: calc(100vh - var(--header-height) - (2 * var(--space-3)));
    max-height: calc(100dvh - var(--header-height) - (2 * var(--space-3)));
    padding: var(--space-5);
  }

  .cookie-consent__view {
    gap: var(--space-4);
  }

  .cookie-consent__summary-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-consent__actions,
  .cookie-consent__preferences-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-consent__action {
    width: 100%;
  }

  .legal-page {
    padding: var(--space-8) var(--gutter-mobile) var(--space-10);
  }

  .legal__header h1 {
    font-size: var(--type-section-mobile);
    line-height: var(--line-section-mobile);
  }

  .prose {
    margin-top: var(--space-8);
  }

  .prose section {
    display: block;
    padding-block: var(--space-6);
  }

  .prose p {
    margin-top: var(--space-4);
  }

  .prose section p + p {
    margin-top: var(--space-4);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js .hero__media,
  html.js [data-hero-reveal] {
    animation: none;
  }

  html.js.reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
