/* ==========================================================================
   AQE Capital Management GmbH
   style.css

   1.  Tokens
   2.  Base
   3.  Layout helpers
   4.  Buttons and links
   5.  Header and navigation
   6.  Hero
   7.  About
   8.  Services
   9.  Why AQE
   10. Contact
   11. Footer
   12. Dialogs
   13. Motion
   14. Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* Colour: warm stone neutrals, charcoal ink, one forest-green accent */
  --stone: #EDE9E0;
  --stone-deep: #E1DCCF;
  --charcoal: #252523;
  --smoke: #5E5C56;
  --forest: #1F4D3B;
  --forest-deep: #163628;
  --sage: #A9C5B3;
  --line: #CBC5B6;
  --error: #9F2A22;

  /* Type: system fonts only, so no third-party requests are made.
     To use a self-hosted font, add an @font-face rule and put it first here. */
  --font-head: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  /* Space and layout */
  --container: 80rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --gap: clamp(1rem, 2vw, 1.75rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --header-h: 4.75rem;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 2. Base ------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--stone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

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

h1, h2, h3, p, figure, dl, dd, ul, ol {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: -0.03em;
}

address {
  font-style: normal;
}

::selection {
  background: var(--forest);
  color: var(--stone);
}

:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
}

.section--dark :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--sage);
}

#main:focus {
  outline: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--charcoal);
  color: var(--stone);
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

/* 3. Layout helpers -------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section--dark {
  background: var(--forest-deep);
  color: var(--stone);
}

/* Editorial section head: a margin note on the left, the headline on the right */
.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding-top: 1.25rem;
  border-top: 1px solid var(--charcoal);
}

.section--dark .section-head {
  border-top-color: rgba(237, 233, 224, 0.35);
}

.margin-note {
  grid-column: 1 / 4;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: 0.55rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.margin-note::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--forest);
}

.section--dark .margin-note::before {
  background: var(--sage);
}

.section-title {
  font-size: clamp(2rem, 4.4vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.section-head .section-title {
  grid-column: 4 / 13;
  max-width: 20em;
}

.section-intro {
  grid-column: 4 / 9;
  margin-top: 1.5rem;
  color: var(--smoke);
  max-width: 34rem;
}

.section--dark .section-intro {
  color: rgba(237, 233, 224, 0.75);
}

.lead {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.5;
}

/* 4. Buttons and links ----------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn--primary {
  background: var(--forest);
  color: var(--stone);
}

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

.btn--outline {
  border-color: var(--charcoal);
  color: var(--charcoal);
  background: transparent;
}

.btn--outline:hover {
  background: var(--charcoal);
  color: var(--stone);
}

.btn--small {
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
}

.text-link {
  padding-bottom: 0.2rem;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.25s var(--ease), color 0.25s var(--ease);
}

.text-link:hover {
  color: var(--forest);
  background-size: 100% 3px;
}

.plain-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease);
}

.plain-link:hover {
  color: var(--forest);
}

/* 5. Header and navigation ------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 1.25rem;
  border-bottom: 1px solid transparent;
  transition: padding 0.3s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  padding-block: 0.7rem;
  background: rgba(237, 233, 224, 0.97);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.logo-mark {
  position: relative;
  padding-right: 0.55rem;
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.logo-mark::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.05em;
  width: 0.26em;
  height: 0.26em;
  background: var(--forest);
}

.logo-text {
  padding-left: 0.85rem;
  border-left: 1px solid var(--line);
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--smoke);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-list {
  display: flex;
  gap: 1.75rem;
}

.nav-link {
  position: relative;
  padding-block: 0.25rem;
  font-size: 0.9375rem;
  text-decoration: none;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.1rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid var(--charcoal);
  border-radius: var(--radius);
  cursor: pointer;
}

.menu-toggle-bar {
  display: block;
  width: 1.25rem;
  height: 1.5px;
  background: var(--charcoal);
  transition: transform 0.3s var(--ease);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:first-child {
  transform: translateY(0.2rem) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:last-child {
  transform: translateY(-0.2rem) rotate(-45deg);
}

/* 6. Hero ------------------------------------------------------------------ */
.hero {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5.5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: center;
}

.hero-copy {
  grid-column: 1 / 8;
}

.hero-title {
  font-size: clamp(2.3rem, 5.2vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  overflow-wrap: break-word;
}

.hero-line {
  display: block;
}

.hero-line--indent {
  padding-left: clamp(1rem, 3.2vw, 3rem);
}

.hero-lead {
  max-width: 34rem;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.55;
  color: var(--smoke);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-top: 2.25rem;
}

.hero-visual {
  grid-column: 8 / 13;
  position: relative;
  padding-bottom: 3.5rem;
}

.hv-main {
  width: 86%;
  aspect-ratio: 4 / 5;
  margin-left: auto;
  overflow: hidden;
  background: var(--stone-deep);
}

.hv-main svg,
.hv-second svg {
  width: 100%;
  height: 100%;
}

.hv-second {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 0.6rem solid var(--stone);
  background: var(--stone);
}

.hv-tag {
  position: absolute;
  top: 2.5rem;
  left: 0;
  max-width: 11.5rem;
  padding: 0.9rem 1.1rem;
  background: var(--charcoal);
  color: var(--stone);
}

.hv-tag strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.25;
}

.hv-tag span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: rgba(237, 233, 224, 0.72);
}

.hv-caption {
  position: absolute;
  right: 0;
  bottom: 0.25rem;
  max-width: 50%;
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: right;
  color: var(--smoke);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--gap);
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--charcoal);
}

.hero-meta > div {
  padding: 1rem 1rem 0 0;
}

.hero-meta dt {
  font-size: 0.875rem;
  color: var(--smoke);
}

.hero-meta dd {
  margin-top: 0.25rem;
  font-size: 1.0625rem;
  font-weight: 500;
}

/* 7. About ----------------------------------------------------------------- */
.about {
  padding-bottom: calc(var(--section-y) + 3rem);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.about-text {
  grid-column: 4 / 9;
  grid-row: 1;
}

.about-text p + p {
  margin-top: 1.25rem;
  color: var(--smoke);
}

.facts {
  grid-column: 10 / 13;
  grid-row: 1;
}

.facts > div {
  padding-block: 0.9rem;
  border-top: 1px solid var(--line);
}

.facts > div:first-child {
  padding-top: 0.9rem;
  border-top-color: var(--charcoal);
}

.facts dt {
  font-size: 0.8125rem;
  color: var(--smoke);
}

.facts dd {
  font-weight: 500;
  line-height: 1.4;
}

.about-media {
  grid-column: 1 / 9;
  grid-row: 2;
  margin-top: clamp(3rem, 6vw, 5rem);
}

.about-media svg {
  width: 100%;
  aspect-ratio: 16 / 10;
}

figcaption {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--smoke);
}

.about-statement {
  grid-column: 8 / 13;
  grid-row: 2;
  align-self: end;
  position: relative;
  z-index: 2;
  margin-bottom: -3rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--stone);
  border: 1px solid var(--charcoal);
  border-top: 5px solid var(--forest);
}

.about-statement p {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.3;
}

/* 8. Services -------------------------------------------------------------- */
.service-icon {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: square;
  stroke-linejoin: miter;
  color: var(--forest);
}

.feature {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: center;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-block: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--charcoal);
  border-bottom: 1px solid var(--line);
}

.feature-body {
  grid-column: 1 / 6;
}

.feature-title {
  margin-top: 1.25rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.04;
}

.feature-lead {
  margin-top: 1.25rem;
  max-width: 30rem;
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  line-height: 1.55;
}

.feature-list {
  margin-top: 1.75rem;
  max-width: 30rem;
}

.feature-list li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-block: 0.65rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

.feature-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.feature-list li::before {
  content: "";
  flex: none;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--forest);
}

.feature-media {
  grid-column: 7 / 13;
}

.feature-media svg {
  width: 100%;
  aspect-ratio: 15 / 11;
  background: var(--stone-deep);
  border: 1px solid var(--line);
}

.service {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: start;
  padding-block: 2rem;
  border-bottom: 1px solid var(--line);
}

.service::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -0.5);
  z-index: -1;
  background: var(--stone-deep);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.service .service-icon {
  grid-column: 1 / 2;
  transition: transform 0.3s var(--ease);
}

.service-title {
  grid-column: 2 / 7;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  transition: transform 0.3s var(--ease);
}

.service-text {
  grid-column: 7 / 13;
  max-width: 34rem;
  color: var(--smoke);
}

.service:hover::before {
  opacity: 1;
}

.service:hover .service-icon,
.service:hover .service-title {
  transform: translateX(0.4rem);
}

/* 9. Why AQE --------------------------------------------------------------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--gap);
  margin-top: clamp(3rem, 6vw, 5rem);
}

.benefit {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(237, 233, 224, 0.35);
}

.benefit:nth-child(even) {
  margin-top: 3.5rem;
}

.benefit-num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(4rem, 7vw, 6.25rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums;
  color: var(--sage);
}

.benefit-title {
  margin-top: 1.5rem;
  font-size: 1.4rem;
  line-height: 1.15;
}

.benefit p {
  margin-top: 0.75rem;
  font-size: 0.9688rem;
  color: rgba(237, 233, 224, 0.75);
}

/* 10. Contact -------------------------------------------------------------- */
.contact {
  background: var(--stone-deep);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: start;
}

.contact-info {
  grid-column: 1 / 6;
}

.contact-info .lead {
  margin-top: 1.5rem;
  max-width: 28rem;
}

.contact-details {
  margin-top: 2.5rem;
  border-top: 1px solid var(--charcoal);
}

.contact-details > div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}

.contact-details dt {
  font-size: 0.875rem;
  color: var(--smoke);
}

.contact-details dd {
  font-weight: 500;
}

.contact-panel {
  grid-column: 7 / 13;
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  background: var(--stone);
  border: 1px solid var(--line);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.5rem;
}

.field {
  margin-bottom: 1.4rem;
}

.field label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.req {
  color: var(--forest);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  padding: 0.7rem 0.75rem;
  background: rgba(37, 37, 35, 0.04);
  border: 0;
  border-bottom: 1px solid var(--charcoal);
  border-radius: 0;
  outline: none;
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

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

.field input[type="text"]:focus,
.field input[type="email"]:focus,
.field input[type="tel"]:focus,
.field textarea:focus {
  background: rgba(31, 77, 59, 0.07);
  box-shadow: 0 2px 0 0 var(--forest);
}

.field.has-error input,
.field.has-error textarea {
  border-bottom-color: var(--error);
  box-shadow: 0 2px 0 0 var(--error);
}

.field-error {
  min-height: 0;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--error);
}

.field-error:empty {
  display: none;
}

.field--check {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.75rem;
  align-items: start;
}

.field--check label {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
}

.field--check label a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.field--check .field-error {
  grid-column: 2;
}

.field--check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-content: center;
  width: 1.2rem;
  height: 1.2rem;
  margin: 0.15rem 0 0;
  background: transparent;
  border: 1px solid var(--charcoal);
  border-radius: 0;
  cursor: pointer;
}

.field--check input[type="checkbox"]::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  background: var(--stone);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform: scale(0);
  transition: transform 0.15s var(--ease);
}

.field--check input[type="checkbox"]:checked {
  background: var(--forest);
  border-color: var(--forest);
}

.field--check input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.field--check.has-error input[type="checkbox"] {
  border-color: var(--error);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.5rem;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--smoke);
}

.form-status {
  font-size: 0.9375rem;
  line-height: 1.5;
}

.form-status.is-success,
.form-status.is-error {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid;
}

.form-status.is-success {
  color: var(--forest);
  background: rgba(31, 77, 59, 0.09);
  border-color: var(--forest);
}

.form-status.is-error {
  color: var(--error);
  background: rgba(159, 42, 34, 0.08);
  border-color: var(--error);
}

/* 11. Footer --------------------------------------------------------------- */
.site-footer {
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
  background: var(--charcoal);
  color: rgba(237, 233, 224, 0.75);
}

.site-footer a {
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.site-footer a:hover {
  color: var(--stone);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer .logo {
  color: var(--stone);
}

.site-footer .logo-text {
  color: rgba(237, 233, 224, 0.7);
  border-left-color: rgba(237, 233, 224, 0.3);
}

.site-footer .logo-mark::after {
  background: var(--sage);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 2.5rem;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.footer-brand {
  grid-column: 1 / 6;
}

.footer-brand p {
  max-width: 24rem;
  margin-top: 1.5rem;
  font-size: 0.9375rem;
}

.footer-nav {
  grid-column: 7 / 10;
}

.footer-contact {
  grid-column: 10 / 13;
}

.footer-nav h2,
.footer-contact h2 {
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--stone);
}

.footer-nav li + li {
  margin-top: 0.4rem;
}

.footer-contact address,
.footer-contact p {
  font-size: 0.9375rem;
}

.footer-contact p {
  margin-top: 0.75rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(237, 233, 224, 0.2);
  font-size: 0.8125rem;
}

.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}

/* 12. Dialogs (Privacy Policy, Terms) -------------------------------------- */
.legal-dialog {
  width: min(42rem, calc(100% - 2rem));
  max-height: calc(100vh - 4rem);
  max-height: calc(100dvh - 4rem);
  padding: 0;
  overflow: auto;
  color: var(--charcoal);
  background: var(--stone);
  border: 1px solid var(--charcoal);
  border-radius: var(--radius);
}

.legal-dialog::backdrop {
  background: rgba(37, 37, 35, 0.6);
}

.legal-inner {
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.legal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.legal-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.05;
}

.dialog-close {
  flex: none;
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: transparent;
  border: 1px solid var(--charcoal);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.dialog-close:hover {
  background: var(--charcoal);
  color: var(--stone);
}

.legal-inner h3 {
  margin: 1.75rem 0 0.4rem;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.legal-inner p {
  max-width: 62ch;
  font-size: 0.9688rem;
  color: var(--smoke);
}

.legal-inner p a {
  color: var(--charcoal);
}

/* 13. Motion --------------------------------------------------------------- */
/* Reveal-on-scroll: only active when JavaScript has added the "js" class */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* 14. Responsive ----------------------------------------------------------- */

/* Tablet and below */
@media (max-width: 960px) {
  .section-head .section-title,
  .section-intro {
    grid-column: 1 / -1;
  }

  .margin-note {
    grid-column: 1 / -1;
    margin-bottom: 1.25rem;
  }

  .hero-copy,
  .hero-visual {
    grid-column: 1 / -1;
  }

  .hero-visual {
    width: min(100%, 30rem);
    margin: 3.5rem 0 0 auto;
  }

  .about-text,
  .facts,
  .about-media {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .facts {
    margin-top: 2.5rem;
  }

  .about {
    padding-bottom: var(--section-y);
  }

  .about-statement {
    grid-column: 1 / -1;
    grid-row: auto;
    align-self: auto;
    margin: -2.5rem 0 0 clamp(1rem, 8vw, 4rem);
  }

  .feature-body,
  .feature-media {
    grid-column: 1 / -1;
  }

  .feature-media {
    margin-top: 2.5rem;
  }

  .service {
    grid-template-columns: 3rem minmax(0, 1fr);
    row-gap: 0.75rem;
  }

  .service .service-icon {
    grid-column: 1;
    grid-row: 1;
  }

  .service-title {
    grid-column: 2;
    grid-row: 1;
  }

  .service-text {
    grid-column: 2;
    grid-row: 2;
  }

  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2.5rem;
  }

  .benefit:nth-child(even) {
    margin-top: 2.5rem;
  }

  .contact-info,
  .contact-panel {
    grid-column: 1 / -1;
  }

  .contact-panel {
    margin-top: 3rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-nav {
    grid-column: 1 / 7;
  }

  .footer-contact {
    grid-column: 7 / -1;
  }
}

/* Mobile navigation */
@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

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

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2rem;
    padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem;
    overflow-y: auto;
    background: var(--stone);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-list li {
    border-bottom: 1px solid var(--line);
  }

  .nav-link {
    display: block;
    padding-block: 1rem;
    font-family: var(--font-head);
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link.is-active {
    color: var(--forest);
  }

  .nav-cta {
    align-self: flex-start;
    padding: 0.85rem 1.4rem;
    font-size: 0.9375rem;
  }
}

/* Phones */
@media (max-width: 600px) {
  .hero-meta {
    grid-template-columns: 1fr;
    row-gap: 0.25rem;
  }

  .hero-meta > div {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
  }

  .hero-meta > div:first-child {
    padding-top: 1rem;
  }

  .hv-tag {
    top: 1.25rem;
    max-width: 9.5rem;
    padding: 0.75rem 0.9rem;
  }

  .hv-caption {
    max-width: 52%;
  }

  .about-statement {
    margin-left: 0;
  }

  .benefits {
    grid-template-columns: 1fr;
    row-gap: 2.5rem;
  }

  .benefit:nth-child(even) {
    margin-top: 0;
  }

  .contact-details > div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

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

  .footer-nav,
  .footer-contact {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo-text {
    font-size: 0.6875rem;
  }
}
