:root {
  --blue: #33658a;
  --blue-dark: #183b55;
  --blue-deep: #0e293d;
  --teal: #4da1a9;
  --teal-dark: #337b83;
  --pink: #d85480;
  --ink: #142533;
  --muted: #5d6d78;
  --paper: #f4f7f8;
  --white: #ffffff;
  --line: #d8e2e6;
  --shadow: 0 22px 55px rgba(14, 41, 61, 0.13);
  --radius: 18px;
  --max-width: 1180px;
  --sans: Inter, Aptos, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: Montserrat, Aptos, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--display);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 14ch;
  margin-bottom: 28px;
  font-size: clamp(2.65rem, 5.8vw, 5.3rem);
  font-weight: 780;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3.55rem);
  font-weight: 760;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 720;
}

::selection {
  color: var(--white);
  background: var(--pink);
}

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  color: var(--white);
  background: var(--blue-deep);
  border-radius: 6px;
  transform: translateY(-160%);
}

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

.container {
  width: min(100% - 48px, var(--max-width));
  margin-inline: auto;
}

.section {
  padding: 112px 0;
  scroll-margin-top: 86px;
}

.section-light {
  background: var(--paper);
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--blue);
  font-family: var(--display);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.76);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.75fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 52px;
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.05rem;
}

.text-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--blue);
  font-family: var(--display);
  font-size: 0.94rem;
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.text-link span {
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.button {
  display: inline-flex;
  min-height: 52px;
  padding: 13px 24px;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--pink);
  box-shadow: 0 12px 28px rgba(216, 84, 128, 0.26);
}

.button-primary:hover {
  background: #c84671;
  box-shadow: 0 16px 34px rgba(216, 84, 128, 0.33);
}

.button-dark {
  margin-top: 22px;
  color: var(--white);
  background: var(--blue-deep);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: rgba(24, 59, 85, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
}

.nav-shell {
  position: relative;
  display: flex;
  min-height: 78px;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  flex: none;
  line-height: 1.15;
  text-decoration: none;
}

.brand-name {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-role {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: clamp(13px, 2vw, 26px);
  align-items: center;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--white);
}

.site-nav .nav-contact {
  padding: 9px 15px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  padding: 8px 12px;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 750;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  padding: 90px 0 68px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 88% 15%, rgba(77, 161, 169, 0.62), transparent 34rem),
    radial-gradient(circle at 10% 92%, rgba(216, 84, 128, 0.2), transparent 30rem),
    linear-gradient(135deg, var(--blue-deep), var(--blue));
}

.hero::after {
  position: absolute;
  right: -12vw;
  bottom: -24vw;
  width: 52vw;
  height: 52vw;
  min-width: 430px;
  min-height: 430px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.62fr);
  gap: 76px;
  align-items: center;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.hero h1 {
  color: var(--white);
}

.hero-lede {
  max-width: 67ch;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.06rem, 1.5vw, 1.24rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.hero .text-link {
  color: var(--white);
}

.trust-line {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 54px 0 0;
  padding: 25px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  list-style: none;
}

.trust-line li {
  min-width: 0;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.73rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.trust-line li:first-child {
  padding-left: 0;
}

.trust-line li + li {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.trust-line strong {
  display: block;
  margin-bottom: 3px;
  color: var(--white);
  font-family: var(--display);
  font-size: 0.82rem;
}

.hero-profile {
  position: relative;
  align-self: center;
  display: flex;
  min-height: 480px;
  flex-direction: column;
  justify-content: flex-end;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 160px 160px var(--radius) var(--radius);
  box-shadow: var(--shadow);
}

.hero-profile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  background: var(--blue-deep);
}

.hero-profile::after {
  position: absolute;
  inset: 42% 0 0;
  content: "";
  background: linear-gradient(transparent, rgba(14, 41, 61, 0.96));
}

.profile-caption {
  position: relative;
  z-index: 1;
  display: flex;
  padding: 24px;
  flex-direction: column;
}

.profile-caption span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-caption strong {
  margin-top: 5px;
  color: var(--white);
  font-family: var(--display);
  font-size: 1rem;
}

/* Services */
.card-grid {
  display: grid;
  gap: 24px;
}

.card-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  display: flex;
  min-width: 0;
  padding: 34px;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(14, 41, 61, 0.06);
}

.service-card-accent {
  border-top: 4px solid var(--pink);
}

.card-index {
  margin-bottom: 30px;
  color: var(--teal-dark);
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.clean-list {
  display: grid;
  gap: 10px;
  margin: 6px 0 28px;
  padding: 0;
  color: var(--muted);
  font-size: 0.94rem;
  list-style: none;
}

.clean-list li {
  position: relative;
  padding-left: 18px;
}

.clean-list li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 6px;
  height: 6px;
  content: "";
  background: var(--teal);
  border-radius: 50%;
}

.service-card .text-link {
  margin-top: auto;
}

/* Projects */
.projects {
  display: grid;
  gap: 28px;
}

.project {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(14, 41, 61, 0.06);
}

.project-kicker {
  display: flex;
  min-height: 52px;
  padding: 13px 26px;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  color: var(--blue);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.project-body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr);
  gap: 60px;
  padding: 38px;
}

.project-body p {
  color: var(--muted);
}

.project-body .text-link {
  margin-top: 10px;
}

.project-links {
  display: flex;
  gap: 4px 24px;
  align-items: baseline;
  flex-wrap: wrap;
}

.fact-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.fact-list li {
  position: relative;
  padding-left: 23px;
}

.fact-list li::before {
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 10px;
  height: 2px;
  content: "";
  background: var(--pink);
}

.techline {
  margin: 0;
  padding: 15px 38px;
  color: var(--blue);
  background: #f9fbfc;
  border-top: 1px solid var(--line);
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.025em;
}

.project-rd {
  border-color: rgba(77, 161, 169, 0.65);
}

.project-rd .project-kicker {
  color: var(--white);
  background: var(--teal-dark);
  border-color: transparent;
}

blockquote {
  margin-bottom: 0;
  padding: 26px;
  background: var(--paper);
  border-left: 4px solid var(--teal);
  border-radius: 0 12px 12px 0;
}

blockquote p {
  color: var(--ink) !important;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 650;
}

blockquote p + p {
  margin-top: 16px;
}

blockquote footer {
  color: var(--muted);
  font-size: 0.8rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: 24px;
  gap: 14px;
}

.testimonial-author img {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  object-fit: cover;
  border: 2px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(14, 41, 61, 0.16);
}

.testimonial-author > span {
  display: grid;
  gap: 2px;
}

.testimonial-author strong {
  color: var(--ink);
  font-size: 0.88rem;
}

/* Experience */
.section-blue {
  color: rgba(255, 255, 255, 0.83);
  background:
    linear-gradient(120deg, rgba(77, 161, 169, 0.16), transparent 45%),
    var(--blue-dark);
}

.section-blue h2 {
  color: var(--white);
}

.experience-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.8fr);
  gap: 90px;
  align-items: start;
}

.large-copy {
  max-width: 66ch;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.16rem;
}

.experience-facts {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  list-style: none;
}

.experience-facts li {
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 22px;
  padding: 19px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.experience-facts strong {
  color: var(--white);
  font-family: var(--display);
  font-size: 0.88rem;
}

.experience-facts span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.91rem;
}

/* Academic */
.academic-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.05fr);
  gap: 90px;
  align-items: start;
}

.academic-copy {
  padding-top: 38px;
  color: var(--muted);
}

.academic-copy strong {
  color: var(--ink);
}

.academic-facts {
  display: flex;
  gap: 9px;
  margin: 28px 0;
  flex-wrap: wrap;
}

.academic-facts span {
  padding: 7px 12px;
  color: var(--blue);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 720;
}

/* Technologies */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 45px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tech-grid article {
  min-width: 0;
  padding: 30px 26px;
}

.tech-grid article + article {
  border-left: 1px solid var(--line);
}

.tech-grid h3 {
  color: var(--blue);
  font-size: 1rem;
}

.tech-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.91rem;
  overflow-wrap: anywhere;
}

/* Working style */
.section-teal {
  color: rgba(255, 255, 255, 0.86);
  background: var(--teal-dark);
}

.section-teal h2 {
  color: var(--white);
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.05fr);
  gap: 100px;
  align-items: start;
}

.work-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  list-style: none;
}

.work-list li {
  position: relative;
  padding: 17px 0 17px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.work-list li::before {
  position: absolute;
  top: 28px;
  left: 2px;
  width: 10px;
  height: 2px;
  content: "";
  background: var(--white);
}

/* HEPHAUSTOS teaser */
.hephaustos-teaser {
  background:
    linear-gradient(115deg, rgba(77, 161, 169, 0.14), transparent 52%),
    #eef4f6;
}

.teaser-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 90px;
  align-items: center;
}

.teaser-grid p {
  color: var(--muted);
}

/* Contact */
.contact-section {
  color: rgba(255, 255, 255, 0.8);
  background:
    radial-gradient(circle at 10% 10%, rgba(77, 161, 169, 0.22), transparent 30rem),
    var(--blue-deep);
}

.contact-section h2 {
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(430px, 1fr);
  gap: 88px;
  align-items: start;
}

.contact-direct {
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.contact-direct a {
  color: var(--white);
  font-weight: 700;
  text-underline-offset: 4px;
}

.contact-form {
  display: grid;
  gap: 20px;
  padding: 34px;
  color: var(--ink);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--ink);
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 750;
}

.field label span {
  color: var(--muted);
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #c8d5da;
  border-radius: 8px;
}

.field textarea {
  min-height: 142px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  background: var(--white);
  border-color: var(--teal-dark);
  outline: 3px solid rgba(77, 161, 169, 0.17);
}

.form-privacy {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.form-privacy a {
  color: var(--blue);
}

.form-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.form-status {
  flex: 1;
  min-width: 180px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.form-status.is-success {
  color: #236b50;
}

.form-status.is-error {
  color: #a22d52;
}

/* Footer */
.site-footer {
  padding: 32px 0;
  color: var(--muted);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 30px;
  align-items: center;
}

.footer-grid > div {
  display: flex;
  flex-direction: column;
}

.footer-grid strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 0.86rem;
}

.footer-grid span,
.footer-grid p,
.footer-grid a {
  font-size: 0.75rem;
}

.footer-grid p {
  margin-bottom: 0;
}

.footer-grid nav {
  display: flex;
  gap: 18px;
}

.footer-grid a {
  color: var(--blue);
  text-underline-offset: 4px;
}

@media (max-width: 1050px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.58fr);
    gap: 44px;
  }

  .trust-line {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 22px;
  }

  .trust-line li:nth-child(4) {
    padding-left: 0;
    border-left: 0;
  }

  .card-grid-three {
    grid-template-columns: 1fr 1fr;
  }

  .service-card-accent {
    grid-column: 1 / -1;
  }

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

  .tech-grid article:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .tech-grid article:nth-child(4) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 900px) {
  .section {
    padding: 88px 0;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    left: 0;
    display: grid;
    padding: 16px 24px 22px;
    gap: 0;
    color: var(--white);
    background: var(--blue-dark);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow);
  }

  html.js .site-nav {
    display: none;
  }

  html.js .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 12px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  }

  .site-nav .nav-contact {
    margin-top: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.48);
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
  }

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

  .hero-profile {
    min-height: 480px;
    max-width: 420px;
  }

  .section-heading,
  .experience-grid,
  .academic-grid,
  .work-grid,
  .teaser-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .academic-copy {
    padding-top: 0;
  }

  .project-body {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 660px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(100% - 32px, var(--max-width));
  }

  .section {
    padding: 72px 0;
  }

  .nav-shell {
    min-height: 70px;
  }

  .brand-role {
    display: none;
  }

  .hero {
    padding: 60px 0 52px;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3.65rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-actions .text-link {
    justify-content: center;
  }

  .trust-line {
    grid-template-columns: 1fr 1fr;
  }

  .trust-line li {
    padding: 0 10px;
  }

  .trust-line li:nth-child(3),
  .trust-line li:nth-child(5) {
    padding-left: 0;
    border-left: 0;
  }

  .trust-line li:nth-child(4) {
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
  }

  .hero-profile {
    min-height: 420px;
    border-radius: 120px 120px var(--radius) var(--radius);
  }

  .card-grid-three,
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .service-card-accent {
    grid-column: auto;
  }

  .service-card {
    padding: 28px 24px;
  }

  .project-kicker {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .project-body {
    padding: 28px 23px;
  }

  .techline {
    padding: 14px 23px;
    overflow-wrap: anywhere;
  }

  .experience-facts li {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .tech-grid article + article,
  .tech-grid article:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 24px 20px;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-actions .button {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

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

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

/* Legal pages */
.legal-nav {
  display: flex;
  min-height: 78px;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.legal-home {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--white);
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.035em;
  text-decoration: none;
}

.legal-home span {
  color: var(--pink);
}

.legal-hero {
  padding: clamp(74px, 11vw, 138px) 0 clamp(58px, 9vw, 104px);
  background: linear-gradient(135deg, #eef4f5 0%, #ffffff 62%);
  border-bottom: 1px solid var(--line);
}

.legal-shell {
  max-width: 880px;
}

.legal-hero h1 {
  max-width: none;
  margin-bottom: 18px;
  font-size: clamp(2.65rem, 6vw, 4.7rem);
}

.legal-intro {
  max-width: 62ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.legal-content {
  padding: clamp(54px, 8vw, 98px) 0 clamp(72px, 10vw, 122px);
}

.legal-stack {
  display: grid;
  gap: 22px;
}

.legal-card {
  padding: clamp(26px, 4vw, 42px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(14, 41, 61, 0.06);
  overflow-wrap: anywhere;
}

.legal-card h2 {
  margin-bottom: 20px;
  font-size: clamp(1.45rem, 2.8vw, 2.2rem);
}

.legal-card p:last-child,
.legal-card dl:last-child,
.legal-card address:last-child {
  margin-bottom: 0;
}

.legal-card a {
  color: var(--blue);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.legal-card code {
  padding: 0.1em 0.34em;
  color: var(--blue-deep);
  background: var(--paper);
  border-radius: 4px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.88em;
}

.legal-address {
  margin: 0;
  color: var(--muted);
  font-style: normal;
}

.legal-address strong {
  color: var(--ink);
}

.legal-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 30px;
  margin: 0;
}

.legal-facts > div {
  min-width: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.legal-facts dt {
  margin-bottom: 6px;
  color: var(--blue-dark);
  font-family: var(--display);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-facts dd {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 660px) {
  .legal-nav {
    min-height: 70px;
    gap: 14px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .legal-home {
    margin-left: auto;
    font-size: 0.72rem;
  }

  .legal-facts {
    grid-template-columns: 1fr;
  }
}
