:root {
  --ink-deep: #432323;
  --pine: #2f5755;
  --sea-mist: #5a9690;
  --shell: #e0d9d9;
  --paper: #f7f4f2;
  --space-3xs: 0.25rem;
  --space-2xs: 0.4rem;
  --space-xs: 0.55rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.35rem;
  --space-xl: 1.85rem;
  --space-2xl: 2.6rem;
  --space-3xl: 3.5rem;
  --radius-sm: 0.35rem;
  --radius-md: 0.65rem;
  --radius-lg: 1.15rem;
  --radius-pill: 999px;
  --shadow-soft: 0 0.35rem 1.1rem rgba(67, 35, 35, 0.12);
  --shadow-lift: 0 0.85rem 2rem rgba(47, 87, 85, 0.18);
  --font-display: "Fraunces", serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --text-xs: 0.7rem;
  --text-sm: 0.8rem;
  --text-base: 0.88rem;
  --text-md: 0.98rem;
  --text-lg: 1.12rem;
  --text-xl: 1.35rem;
  --text-2xl: clamp(1.45rem, 4.2vw, 2.35rem);
  --text-3xl: clamp(1.65rem, 5.5vw, 2.85rem);
  --line-tight: 1.2;
  --line-body: 1.55;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.28s;
  --dur-mid: 0.55s;
  --max-read: 38rem;
  --max-wide: 72rem;
  --gutter: 0.6rem;
  --section-pad-y: 1.65rem;
  --section-tight-y: 1.35rem;
  --touch-min: 2.75rem;
}

@media (min-width: 360px) {
  :root {
    --gutter: 0.7rem;
    --text-xs: 0.72rem;
    --text-sm: 0.82rem;
    --text-base: 0.9rem;
    --text-md: 1rem;
    --text-lg: 1.18rem;
    --text-xl: 1.48rem;
    --section-pad-y: 1.85rem;
    --section-tight-y: 1.55rem;
  }
}

@media (min-width: 400px) {
  :root {
    --gutter: 0.8rem;
    --space-sm: 0.8rem;
    --section-pad-y: 2.1rem;
    --section-tight-y: 1.75rem;
  }
}

@media (min-width: 480px) {
  :root {
    --gutter: 0.95rem;
    --text-base: 0.92rem;
    --text-xl: 1.52rem;
    --section-pad-y: 2.35rem;
    --section-tight-y: 2rem;
  }
}

@media (min-width: 640px) {
  :root {
    --gutter: 1rem;
    --space-lg: 1.35rem;
    --section-pad-y: 2.65rem;
    --section-tight-y: 2.25rem;
  }
}

@media (min-width: 768px) {
  :root {
    --gutter: 1.1rem;
    --section-pad-y: 2.9rem;
    --section-tight-y: 2.45rem;
  }
}

@media (min-width: 900px) {
  :root {
    --gutter: 1.2rem;
    --section-pad-y: 3.15rem;
    --section-tight-y: 2.55rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --gutter: 1.25rem;
    --section-pad-y: 3.35rem;
    --section-tight-y: 2.6rem;
    --text-lg: 1.2rem;
  }
}

@media (min-width: 1200px) {
  :root {
    --gutter: 1.35rem;
    --section-pad-y: 3.5rem;
    --section-tight-y: 2.6rem;
  }
}

@media (min-width: 1440px) {
  :root {
    --max-wide: 76rem;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--line-body);
  color: var(--ink-deep);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.nav-locked {
  overflow: hidden;
}


img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--pine);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--dur-fast) var(--ease-out),
    opacity var(--dur-fast) var(--ease-out);
}

a:hover {
  color: var(--sea-mist);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--line-tight);
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-sm);
}
h1 {
  font-size: var(--text-lg);
}

p {
  margin: 0 0 var(--space-md);
}

ul {
  margin: 0 0 var(--space-md);
  padding-left: 1.1rem;
}

.shell-wrap {
  width: 100%;
  max-width: var(--max-wide);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

.kite-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--pine);
  color: var(--shell);
  padding: var(--space-xs) var(--space-sm);
  z-index: 60;
}

.kite-skip:focus {
  left: var(--space-sm);
}

.ridge-head {
  position: sticky;
  top: 0;
  z-index: 45;
  background: var(--paper);
  border-bottom: 1px solid rgba(67, 35, 35, 0.12);
  box-sizing: border-box;
}

.ridge-head__bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-top: max(var(--space-sm), env(safe-area-inset-top, 0px));
  padding-bottom: var(--space-sm);
  background: var(--paper);
}

.ridge-head--menu-open .ridge-head__bar {
  z-index: 95;
  box-shadow: 0 1px 0 rgba(67, 35, 35, 0.1);
}

.ridge-head__logo {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--ink-deep);
  text-decoration: none;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.ridge-head__logo:hover {
  color: var(--pine);
}

.ridge-head__desk {
  display: none;
}

.ridge-head__desk-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-xs) var(--space-lg);
}

.ridge-head__desk-list a {
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-deep);
}

.ridge-head__desk-list a:hover {
  color: var(--pine);
}

.ridge-head__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  min-height: var(--touch-min, 2.75rem);
  padding: var(--space-2xs) var(--space-sm);
  border: 1px solid rgba(67, 35, 35, 0.22);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-deep);
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}

.ridge-head__toggle:hover {
  background: rgba(90, 150, 144, 0.12);
  border-color: rgba(47, 87, 85, 0.35);
}

.ridge-head__toggle-label {
  display: inline;
}

.ridge-head__ico--close {
  display: none;
}

.ridge-head__toggle.is-active .ridge-head__ico--menu {
  display: none;
}

.ridge-head__toggle.is-active .ridge-head__ico--close {
  display: block;
}

.ridge-head__toggle.is-active .ridge-head__toggle-label {
  display: none;
}

@media (min-width: 768px) {
  .ridge-head__desk {
    display: block;
    flex: 1;
  }
  .ridge-head__toggle {
    display: none;
  }
}

.ridge-head__panel {
  display: none !important;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .ridge-head__panel {
    position: fixed;
    inset: 0;
    z-index: 80;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    padding-top: max(3.85rem, calc(env(safe-area-inset-top, 0px) + 2.85rem));
    border: none;
    background: var(--paper);
    overflow-x: hidden;
    overflow-y: auto;
    align-items: stretch;
    justify-content: flex-start;
    box-sizing: border-box;
  }
  .ridge-head__panel.is-open {
    display: flex !important;
    flex-direction: column;
  }
}

@media (min-width: 768px) {
  .ridge-head__panel {
    display: none !important;
  }
}

.ridge-head__panel-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: var(--space-md);
  padding-bottom: max(var(--space-xl), env(safe-area-inset-bottom, 0px));
}

.ridge-head__panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1;
}

.ridge-head__panel-list a {
  display: block;
  padding: var(--space-xs) 0;
  font-size: var(--text-md);
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-deep);
  border-bottom: 1px solid rgba(47, 87, 85, 0.08);
}

.ridge-head__panel-list li:last-child a {
  border-bottom: none;
}

.ridge-head__panel-list a:hover {
  color: var(--pine);
}

.hero-gen {
  position: relative;
  min-height: clamp(14.5rem, 58dvh, 28rem);
  overflow: hidden;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

@media (min-width: 480px) {
  .hero-gen {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
}

@media (orientation: landscape) and (max-height: 28rem) {
  .hero-gen,
  .hero-gen canvas {
    min-height: clamp(11rem, 48dvh, 22rem);
  }
}

.hero-gen canvas {
  width: 100%;
  height: 100%;
  display: block;
  min-height: clamp(14.5rem, 58dvh, 28rem);
}

.hero-gen canvas.is-static-fallback {
  display: none;
}

.hero-gen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(67, 35, 35, 0.05) 0%,
    rgba(47, 87, 85, 0.35) 100%
  );
}

.hero-fallback {
  display: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--ink-deep),
    var(--pine) 45%,
    var(--sea-mist)
  );
}

.hero-gen canvas.is-static-fallback ~ .hero-fallback,
.hero-gen:has(canvas.is-static-fallback) .hero-fallback {
  display: block;
}

.hero-stack {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}

.hero-copy {
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding-top: var(--space-lg);
  padding-bottom: max(var(--space-xl), env(safe-area-inset-bottom, 0px));
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  pointer-events: auto;
  color: var(--shell);
  box-sizing: border-box;
}

.hero-copy h1 {
  color: var(--shell);
  font-size: var(--text-3xl);
  max-width: min(18ch, 100%);
  text-wrap: balance;
  animation: drift-up var(--dur-mid) var(--ease-out) both;
}

.hero-lede {
  max-width: var(--max-read);
  font-size: var(--text-sm);
  opacity: 0.95;
  animation: drift-up var(--dur-mid) var(--ease-out) 0.08s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  animation: drift-up var(--dur-mid) var(--ease-out) 0.14s both;
}

@media (max-width: 399px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn-solid,
  .hero-actions .btn-ghost {
    justify-content: center;
    width: 100%;
    min-height: var(--touch-min);
  }
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(224, 217, 217, 0.55);
  color: var(--shell);
  text-decoration: none;
  font-size: var(--text-sm);
  background: rgba(67, 35, 35, 0.15);
  backdrop-filter: blur(6px);
  min-height: 2.5rem;
  box-sizing: border-box;
}

.btn-ghost:hover {
  color: var(--paper);
  border-color: var(--shell);
}

.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-pill);
  border: none;
  background: var(--shell);
  color: black!important;
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  min-height: 2.5rem;
  box-sizing: border-box;
}

.btn-solid:hover {
  background: var(--paper);
  color: var(--ink-deep);
}

.btn-ghost-muted {
  border-color: rgba(47, 87, 85, 0.35);
  color: var(--pine);
  background: rgba(90, 150, 144, 0.12);
}

.btn-ghost-muted:hover {
  color: var(--ink-deep);
  border-color: rgba(67, 35, 35, 0.35);
}

.section-pad {
  padding: var(--section-pad-y) 0;
}

.section-tight {
  padding: var(--section-tight-y) 0;
}

.section-label {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sea-mist);
  margin-bottom: var(--space-xs);
}

.tile-grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .tile-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 640px) and (max-width: 899px) {
  .tile-grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .tile-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.soft-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(47, 87, 85, 0.08);
  transition: transform var(--dur-mid) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out);
}

.soft-card:hover {
  box-shadow: var(--shadow-lift);
}

.soft-card h3 {
  font-size: var(--text-md);
}

.soft-card p:last-child {
  margin-bottom: 0;
}

.split-flow {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 768px) {
  .split-flow {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.frame-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  border: 3px solid rgba(224, 217, 217, 0.9);
}

.icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.icon-chip {
  flex: 1 1 12rem;
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  background: rgba(90, 150, 144, 0.12);
}

.icon-chip i {
  font-size: var(--text-lg);
  color: var(--pine);
  margin-top: 0.1rem;
}

.quote-list {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 480px) and (max-width: 719px) {
  .quote-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 720px) {
  .quote-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.quote-card {
  background: linear-gradient(
    145deg,
    rgba(224, 217, 217, 0.55),
    #fff 55%
  );
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid rgba(67, 35, 35, 0.08);
  font-size: var(--text-sm);
}

.quote-card strong {
  display: block;
  margin-top: var(--space-sm);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pine);
}

.voice-disclaimer {
  margin-top: var(--space-md);
  margin-bottom: 0;
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(67, 35, 35, 0.72);
}

.ribbon-cta {
  background: var(--pine);
  color: var(--shell);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  box-shadow: var(--shadow-lift);
}

@media (min-width: 640px) {
  .ribbon-cta {
    padding: var(--space-xl);
  }
}

@media (max-width: 639px) {
  .ribbon-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .ribbon-cta .btn-solid {
    width: 100%;
    min-height: var(--touch-min);
  }
}

.ribbon-cta h2 {
  color: var(--shell);
  font-size: var(--text-xl);
}

.ribbon-cta p {
  margin: 0;
  max-width: 28rem;
  font-size: var(--text-sm);
}

.ribbon-cta a {
  color: var(--shell);
  text-decoration: underline;
}

.ribbon-cta .btn-solid {
  background: var(--shell);
}

.map-slab {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(47, 87, 85, 0.2);
  box-shadow: var(--shadow-soft);
  min-height: 12rem;
}

.map-slab iframe {
  width: 100%;
  height: clamp(11rem, 42vw, 18rem);
  min-height: 11rem;
  border: 0;
}

@media (min-width: 480px) {
  .map-slab iframe {
    height: clamp(12rem, 40vw, 18rem);
    min-height: 12rem;
  }
}

.mini-foot {
  padding: var(--space-lg) 0 var(--space-xl);
  font-size: var(--text-xs);
  color: rgba(67, 35, 35, 0.75);
}

.mini-foot .shell-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 479px) {
  .mini-foot .shell-wrap {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

.mini-foot a {
  font-size: var(--text-xs);
}

.privacy-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding-top: max(var(--space-md), env(safe-area-inset-top, 0px));
  padding-right: max(var(--space-md), env(safe-area-inset-right, 0px));
  padding-bottom: max(var(--space-md), env(safe-area-inset-bottom, 0px));
  padding-left: max(var(--space-md), env(safe-area-inset-left, 0px));
  background: rgba(67, 35, 35, 0.55);
  box-sizing: border-box;
}

@media (min-width: 480px) {
  .privacy-overlay {
    align-items: center;
  }
}

.privacy-overlay.is-visible {
  display: flex;
}

.privacy-card {
  background: #fff;
  max-width: 28rem;
  width: 100%;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lift);
  animation: rise-in var(--dur-mid) var(--ease-out) both;
}

.privacy-card h2 {
  font-size: var(--text-md);
}

.privacy-card p {
  font-size: var(--text-sm);
}

.privacy-card button {
  margin-top: var(--space-sm);
}

.form-vessel {
  display: grid;
  gap: var(--space-sm);
  max-width: 32rem;
}

.form-vessel label {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pine);
}

.form-vessel input,
.form-vessel textarea {
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(67, 35, 35, 0.2);
  padding: var(--space-xs) var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  background: #fff;
}

@media (max-width: 639px) {
  .form-vessel input,
  .form-vessel textarea {
    font-size: 1rem;
  }
}

.form-vessel textarea {
  min-height: 7rem;
  resize: vertical;
}

.check-line {
  display: flex;
  gap: var(--space-xs);
  align-items: flex-start;
  font-size: var(--text-xs);
}

.check-line input {
  width: auto;
  margin-top: 0.2rem;
}

.contact-drift {
  position: relative;
  padding: var(--section-pad-y) 0;
}

.contact-blob {
  position: absolute;
  width: 70%;
  max-width: 11rem;
  aspect-ratio: 1;
  border-radius: 40% 60% 55% 45%;
  background: rgba(90, 150, 144, 0.22);
  top: 4%;
  left: -18%;
  z-index: 0;
  animation: morph 18s ease-in-out infinite;
}

@media (min-width: 480px) {
  .contact-blob {
    width: 55%;
    max-width: 14rem;
    left: -10%;
  }
}

@media (min-width: 768px) {
  .contact-blob {
    width: 42%;
    max-width: 16rem;
    top: 8%;
    left: -6%;
  }
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 880px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lift);
  border: 1px solid rgba(47, 87, 85, 0.12);
  transform: none;
}

@media (min-width: 880px) {
  .contact-card {
    padding: var(--space-xl);
    transform: rotate(-0.6deg);
  }
}

.contact-side {
  background: var(--ink-deep);
  color: var(--shell);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transform: none;
  box-shadow: var(--shadow-lift);
}

@media (min-width: 880px) {
  .contact-side {
    padding: var(--space-xl);
    transform: rotate(0.8deg) translateY(1.5rem);
  }
}

.contact-side h2 {
  color: var(--shell);
}

.contact-side p,
.contact-side a {
  color: rgba(224, 217, 217, 0.92);
}

.contact-side a:hover {
  color: #fff;
}

.mosaic-shift {
  position: relative;
  padding: var(--section-pad-y) 0;
}

.mosaic-shift .tilt-a {
  transform: rotate(-1.2deg);
  margin-left: 4%;
}

.mosaic-shift .tilt-b {
  transform: rotate(0.9deg) translateY(-1rem);
  margin-right: 3%;
}

.mosaic-shift .overlap-card {
  margin-top: -2.5rem;
  margin-left: 10%;
  max-width: 26rem;
}

.stack-pull {
  margin-top: var(--space-lg);
}

@media (max-width: 719px) {
  .mosaic-shift .tilt-a,
  .mosaic-shift .tilt-b {
    transform: none;
    margin: 0;
  }
  .mosaic-shift .overlap-card {
    margin: var(--space-lg) 0 0;
    max-width: none;
  }
}

.product-stack {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .product-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.price-tag {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--pine);
}

.legal-flow {
  max-width: 50rem;
  margin: 0 auto;
  padding: var(--section-tight-y) var(--gutter) var(--section-pad-y);
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .legal-flow {
    padding: var(--space-2xl) var(--space-lg) var(--space-3xl);
    padding-left: max(var(--space-lg), env(safe-area-inset-left, 0px));
    padding-right: max(var(--space-lg), env(safe-area-inset-right, 0px));
  }
}

.legal-flow h1 {
  font-size: var(--text-2xl);
}

.legal-flow h2 {
  font-size: var(--text-md);
  margin-top: var(--space-xl);
}

.legal-flow p,
.legal-flow li {
  font-size: var(--text-sm);
}

.thanks-hero {
  min-height: 55dvh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .thanks-hero {
    min-height: 60vh;
    padding: var(--space-3xl) var(--space-md);
  }
}

.thanks-hero h1 {
  font-size: var(--text-2xl);
}

.miss-block {
  min-height: 50dvh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .miss-block {
    min-height: 55vh;
    padding: var(--space-3xl) var(--space-md);
  }
}

.miss-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  align-items: center;
  margin-top: var(--space-md);
}

@keyframes drift-up {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes morph {
  0%,
  100% {
    border-radius: 40% 60% 55% 45%;
    transform: rotate(0deg);
  }
  50% {
    border-radius: 58% 42% 48% 52%;
    transform: rotate(6deg);
  }
}

@media (max-width: 320px) {
  :root {
    --gutter: 0.5rem;
    --text-3xl: clamp(1.45rem, 12vw, 1.85rem);
    --touch-min: 2.6rem;
  }
  .ridge-head__logo {
    font-size: 1.05rem;
  }
  .ridge-head__toggle {
    font-size: 0.75rem;
    padding: var(--space-3xs) var(--space-xs);
    min-height: 2.5rem;
  }
  .ridge-head__toggle-label {
    display: none;
  }
  .soft-card {
    padding: var(--space-md);
  }
  .privacy-card {
    padding: var(--space-md);
  }
  .privacy-card .btn-solid {
    width: 100%;
  }
}

@media (min-width: 321px) and (max-width: 359px) {
  :root {
    --gutter: 0.55rem;
  }
}

@media (hover: hover) and (pointer: fine) {
  .soft-card:hover {
    transform: translateY(-0.15rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .ridge-head__toggle,
  .ridge-head__panel,
  .soft-card,
  .hero-copy h1,
  .hero-lede,
  .hero-actions,
  .privacy-card {
    animation: none;
    transition: none;
  }
  .contact-blob {
    animation: none;
  }
}
