/* ==========================================================================
   LiebTech — design tokens
   Brand colours sampled from the Soft Heart L logo board.
   ========================================================================== */
:root {
  --black: #0a0a0a;          /* logo background */
  --dark: #111512;
  --dark-2: #161a17;         /* logo dark panel */
  --dark-3: #1f2520;
  --green: #2bd66f;          /* logo heart */
  --green-hover: #4fe08a;
  --green-deep: #0b7a3e;     /* logo heart, light variation */
  --green-ink: #0a5f30;      /* green text on light backgrounds */
  --white: #ffffff;
  --light: #f3f5f3;
  --line-light: #dfe4e0;
  --line-dark: rgba(255, 255, 255, 0.1);
  --muted-dark: #a6ada8;     /* body copy on dark */
  --muted-light: #4b524d;    /* body copy on light */
  --ink: #0a0a0a;

  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;

  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
[role="list"] { list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}
.section--light :focus-visible,
.section--tint :focus-visible { outline-color: var(--green-deep); }
.section--green :focus-visible { outline-color: var(--black); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--gutter); top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--green);
  color: var(--black);
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 24px; height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ==========================================================================
   Section surfaces
   ========================================================================== */
.section { padding-block: var(--section-y); }
.section--dark { background: var(--dark); color: var(--white); }
.section--light { background: var(--white); }
.section--tint { background: var(--light); }
.section--green { background: var(--green); color: var(--black); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-ink);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.eyebrow--on-dark { color: var(--green); }
.eyebrow--on-green { color: var(--black); }
.eyebrow img { width: 20px; height: auto; }
.eyebrow:has(img)::before { display: none; }

.section-title {
  font-size: clamp(2rem, 4.2vw, 3.125rem);
  font-weight: 800;
  max-width: 18ch;
}

.section-lede {
  margin-top: 20px;
  max-width: 60ch;
  font-size: 1.125rem;
  color: var(--muted-light);
}
.section--dark .section-lede { color: var(--muted-dark); }

.section-head { margin-bottom: clamp(40px, 6vw, 64px); }

.split {
  display: grid;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-media { grid-template-columns: 1.15fr 1fr; }
}

/* ==========================================================================
   Buttons & links
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 24px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: 0.9375rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--green); color: var(--black); }
.btn--primary:hover { background: var(--green-hover); }

.btn--ghost { border-color: rgba(255, 255, 255, 0.28); color: var(--white); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); }

.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: var(--green-deep); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--green-ink);
  text-decoration: none;
}
.text-link .icon { width: 18px; height: 18px; transition: transform .18s var(--ease); }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover .icon { transform: translateX(3px); }

.link-button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-decoration: none;
}
.link-button:hover { color: var(--green); }

/* ==========================================================================
   Header & navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line-dark); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand { display: block; padding: 4px 0; border-radius: 6px; }
.brand img { width: 148px; height: auto; }

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

.site-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: 12px var(--gutter) 28px;
  background: var(--black);
  border-bottom: 1px solid var(--line-dark);
  display: none;
}
.site-nav.is-open { display: block; }
.site-nav__list { list-style: none; }

.site-nav__list a {
  display: block;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line-dark);
  color: var(--white);
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
}
.site-nav__list a:hover,
.site-nav__list a.is-active { color: var(--green); }
.site-nav__cta { margin-top: 20px; width: 100%; }

@media (min-width: 1120px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0;
    max-height: none;
    overflow: visible;
    background: none;
    border: 0;
  }
  .site-nav__list { display: flex; gap: 4px; }
  .site-nav__list a {
    position: relative;
    padding: 8px 10px;
    border: 0;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.78);
  }
  .site-nav__list a::after {
    content: "";
    position: absolute;
    left: 10px; right: 10px; bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--green);
    transform: scaleX(0);
    transition: transform .2s var(--ease);
  }
  .site-nav__list a:hover { color: var(--white); }
  .site-nav__list a.is-active { color: var(--white); }
  .site-nav__list a.is-active::after { transform: scaleX(1); }
  .site-nav__cta { margin: 0; width: auto; }
}

/* ==========================================================================
   Photo placeholders
   Drop a file at the path in data-src and js/main.js swaps it in.
   ========================================================================== */
.photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: #e9ede9;
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(10, 10, 10, 0.035) 14px 15px);
  border: 1px solid var(--line-light);
  aspect-ratio: 4 / 3;
}
.photo--portrait { aspect-ratio: 4 / 5; }
.photo--landscape { aspect-ratio: 4 / 3; }
.photo--square { aspect-ratio: 1 / 1; }
.photo--dark {
  background-color: var(--dark-2);
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 255, 255, 0.03) 14px 15px);
  border-color: var(--line-dark);
}

.photo > img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.photo.has-photo { border-color: transparent; }
.photo.has-photo .photo__placeholder { display: none; }

.photo__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  color: var(--muted-light);
}
.photo--dark .photo__placeholder { color: var(--muted-dark); }
.photo__placeholder .icon { width: 32px; height: 32px; color: var(--green-deep); }
.photo--dark .photo__placeholder .icon { color: var(--green); }
.photo__label { max-width: 30ch; font-weight: 600; font-size: 0.9375rem; line-height: 1.45; }
.photo__path {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  opacity: 0.8;
  overflow-wrap: anywhere;
}

/* ==========================================================================
   1. Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--black);
  padding-block: clamp(56px, 8vw, 112px) clamp(72px, 9vw, 120px);
}

.hero__mark {
  position: absolute;
  right: -6%;
  bottom: -14%;
  width: min(62vw, 720px);
  opacity: 0.045;
  pointer-events: none;
  user-select: none;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: clamp(48px, 7vw, 80px);
  align-items: center;
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr); }
}

.definition {
  margin-top: 8px;
  padding-left: clamp(18px, 2.5vw, 28px);
  border-left: 2px solid var(--green);
}
.definition__term {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 18px;
}
.definition__term dfn {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3.25rem, 8vw, 5.25rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--white);
}
.definition__ipa {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--muted-dark);
}
.definition__pos {
  margin-top: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}
.definition__meaning {
  margin-top: 10px;
  max-width: 34ch;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.125rem, 1.8vw, 1.3125rem);
  line-height: 1.5;
  color: #d5ddd7;
}

.hero__title {
  margin-top: clamp(36px, 5vw, 52px);
  font-size: clamp(2.5rem, 5.6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.hero__title .accent { display: block; color: var(--green); }

.hero__lede {
  margin-top: 24px;
  max-width: 56ch;
  font-size: 1.125rem;
  color: var(--muted-dark);
}

.hero__photo { max-width: 460px; width: 100%; justify-self: center; }
@media (max-width: 959px) {
  .hero__photo { aspect-ratio: 4 / 3; max-width: none; }
}

/* ==========================================================================
   2. About
   ========================================================================== */
.icon-chip {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(43, 214, 111, 0.14);
  color: var(--green-deep);
}

.principles {
  display: grid;
  gap: 20px;
  margin-top: clamp(48px, 7vw, 80px);
}
@media (min-width: 760px) { .principles { grid-template-columns: repeat(3, 1fr); } }

.principle {
  padding: 28px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--white);
}
.principle h3 { margin-top: 20px; font-size: 1.25rem; font-weight: 700; }
.principle p { margin-top: 10px; color: var(--muted-light); }

/* ==========================================================================
   3. Services
   ========================================================================== */
.service-grid {
  display: grid;
  gap: 20px;
  align-items: start;
}
@media (min-width: 720px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 30px 28px 28px;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.service-card::before {
  content: "";
  position: absolute;
  top: -1px; left: 28px;
  width: 40px; height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--green);
  transition: width .25s var(--ease);
}
.service-card:hover {
  border-color: #c7d0c9;
  box-shadow: 0 12px 32px -18px rgba(10, 10, 10, 0.28);
}
.service-card:hover::before { width: 72px; }

.service-card h3 { margin-top: 22px; font-size: 1.3125rem; font-weight: 800; }
.service-card > p { margin-top: 10px; color: var(--muted-light); }
.service-card .checklist { margin-top: 20px; }
.service-card .text-link { margin-top: auto; padding-top: 22px; }

.service-card--evolving .icon-chip { background: var(--black); color: var(--green); }
.badge {
  position: absolute;
  top: 34px; right: 24px;
  padding: 4px 10px;
  border: 1px solid var(--green-deep);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--green-ink);
}
.service-card__note {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--light);
  font-size: 0.9375rem;
  color: var(--muted-light);
}

.checklist { display: grid; gap: 8px; }
.checklist li {
  position: relative;
  padding-left: 26px;
  font-size: 0.96875rem;
  line-height: 1.5;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 14px; height: 14px;
  background: var(--green-deep);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.checklist--dark li { color: #dfe5e1; }
.checklist--dark li::before { background: var(--green); }
@media (min-width: 560px) {
  .checklist--two-col { grid-template-columns: 1fr 1fr; column-gap: 24px; }
}

.more { margin-top: 8px; }
.more summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--muted-light);
  cursor: pointer;
  list-style: none;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 18px; height: 18px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 0.8125rem;
  line-height: 1;
}
.more[open] summary::before { content: "−"; }
.more summary:hover { color: var(--ink); }
.more .checklist { margin-top: 8px; }

/* ==========================================================================
   4. Business solutions
   ========================================================================== */
.pillars {
  display: grid;
  gap: 20px;
  margin-top: clamp(56px, 8vw, 88px);
}
@media (min-width: 860px) { .pillars { grid-template-columns: repeat(3, 1fr); } }

.pillar {
  padding: 30px 28px;
  background: var(--dark-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  transition: border-color .2s var(--ease);
}
.pillar:hover { border-color: rgba(43, 214, 111, 0.45); }
.pillar__step {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--green);
}
.pillar h3 { margin: 10px 0 22px; font-size: 1.375rem; font-weight: 800; }

.cta-band {
  display: grid;
  gap: 32px;
  align-items: center;
  margin-top: 20px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius-lg);
  background: var(--black);
  border: 1px solid var(--line-dark);
}
@media (min-width: 860px) {
  .cta-band { grid-template-columns: 0.9fr 1.1fr; gap: 48px; }
}
.cta-band__photo { border-radius: var(--radius); }
.cta-band__copy { padding: 4px clamp(4px, 2vw, 16px) 12px; }
.cta-band__copy h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; max-width: 22ch; }
.cta-band__copy p { margin: 14px 0 28px; color: var(--muted-dark); max-width: 48ch; }

/* ==========================================================================
   5. Learning
   ========================================================================== */
#learning .checklist { margin: 32px 0 36px; }
#learning .checklist li { font-size: 1.0625rem; font-weight: 600; }
.photo--large { border-radius: 22px; }

/* ==========================================================================
   6. Why LiebTech
   ========================================================================== */
.reasons {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-light);
}
@media (min-width: 720px) { .reasons { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .reasons { grid-template-columns: repeat(4, 1fr); } }

.reason {
  padding: 32px 28px 8px 0;
  border-bottom: 1px solid var(--line-light);
}
@media (min-width: 720px) {
  .reason { padding: 36px 28px 40px 0; }
}
@media (min-width: 1080px) {
  .reason { border-bottom: 0; padding-bottom: 8px; }
  .reason + .reason { padding-left: 28px; border-left: 1px solid var(--line-light); }
}
.reason__icon { width: 30px; height: 30px; color: var(--green-deep); }
.reason h3 { margin-top: 20px; font-size: 1.1875rem; font-weight: 800; }
.reason p { margin: 10px 0 24px; color: var(--muted-light); }

/* ==========================================================================
   7. Process
   ========================================================================== */
.section--green .section-title { max-width: 20ch; }

.steps {
  display: grid;
  gap: 16px;
  counter-reset: none;
}
@media (min-width: 820px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

.step {
  position: relative;
  padding: 28px 28px 32px;
  background: rgba(10, 10, 10, 0.06);
  border: 1px solid rgba(10, 10, 10, 0.14);
  border-radius: var(--radius);
}
.step__num {
  display: block;
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}
.step h3 { margin-top: 20px; font-size: 1.5rem; font-weight: 800; }
.step p { margin-top: 8px; max-width: 32ch; color: #10331f; font-weight: 500; }

/* ==========================================================================
   8. Service area
   ========================================================================== */
#service-area .section-title { max-width: 16ch; }

.cities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 36px;
}
.cities li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: var(--dark-2);
  font-weight: 600;
  font-size: 0.9375rem;
}
.cities li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.fine-print {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--muted-dark);
}

/* ==========================================================================
   9. Contact
   ========================================================================== */
.contact {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}
@media (min-width: 960px) { .contact { grid-template-columns: 0.9fr 1.1fr; } }

.contact-details {
  display: grid;
  gap: 14px;
  margin-top: 36px;
}
.contact-details li { display: flex; align-items: center; gap: 14px; }
.contact-details__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.placeholder-text {
  display: inline-block;
  margin-top: 2px;
  padding: 1px 8px;
  border: 1px dashed #b9c2bb;
  border-radius: 6px;
  font-size: 0.9375rem;
  color: var(--muted-light);
}

.form {
  padding: clamp(24px, 4vw, 40px);
  background: var(--light);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
}
.form__title { font-size: 1.5rem; font-weight: 800; }
.form__hint { margin: 6px 0 24px; font-size: 0.9375rem; color: var(--muted-light); }

.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field label { font-weight: 700; font-size: 0.9375rem; }
.req { color: var(--green-ink); }
.optional { font-weight: 500; color: var(--muted-light); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  background: var(--white);
  border: 1.5px solid #cdd4cf;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field select {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b524d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #9fa9a2; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-deep);
  box-shadow: 0 0 0 3px rgba(43, 214, 111, 0.3);
}
.field [aria-invalid="true"] { border-color: #b42318; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.2); }
.field__error { min-height: 0; font-size: 0.875rem; font-weight: 600; color: #b42318; }
.field__error:empty { display: none; }

.form__status {
  margin-top: 16px;
  font-size: 0.9375rem;
}
.form__status:empty { display: none; }
.form__status[data-state] {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid;
}
.form__status[data-state="notice"] { background: #fff8e6; border-color: #e7c66b; color: #5c4400; }
.form__status[data-state="success"] { background: #e8f8ee; border-color: var(--green-deep); color: var(--green-ink); }
.form__status[data-state="error"] { background: #fdeceb; border-color: #e3a19b; color: #8a1c13; }

/* ==========================================================================
   10. Footer
   ========================================================================== */
.site-footer {
  padding-block: clamp(56px, 8vw, 88px) 32px;
  background: var(--black);
  color: var(--muted-dark);
}
.site-footer__top {
  display: grid;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}
@media (min-width: 820px) {
  .site-footer__top { grid-template-columns: 1.4fr 1fr; align-items: start; }
}
.site-footer__brand img { width: 168px; }
.site-footer__brand a { display: inline-block; border-radius: 6px; }
.site-footer__tagline {
  margin: 20px 0 10px;
  font-weight: 700;
  color: var(--white);
}
.site-footer__brand p:not([class]) { max-width: 44ch; }
.site-footer__area { margin-top: 14px; font-size: 0.875rem; color: var(--green); font-weight: 600; }

.site-footer__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.site-footer__links a,
.site-footer__legal .link-button {
  color: var(--muted-dark);
  text-decoration: none;
  transition: color .15s var(--ease);
}
.site-footer__links a:hover { color: var(--green); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  font-size: 0.875rem;
}
.site-footer__legal { display: flex; gap: 20px; }
.site-footer__legal .link-button { font-size: 0.875rem; }
.site-footer__legal .link-button:hover { color: var(--green); }

/* ==========================================================================
   Dialogs & back-to-top
   ========================================================================== */
.dialog {
  width: min(92vw, 480px);
  padding: 32px;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px -24px rgba(0, 0, 0, 0.5);
}
.dialog::backdrop { background: rgba(10, 10, 10, 0.6); }
.dialog h2 { font-size: 1.5rem; font-weight: 800; }
.dialog p { margin: 12px 0 24px; color: var(--muted-light); }

.to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--black);
  color: var(--green);
  border: 1px solid rgba(43, 214, 111, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--green); color: var(--black); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
