:root {
  color-scheme: light;
  --ink: oklch(22% 0.04 178);
  --muted: oklch(47% 0.035 183);
  --paper: oklch(98% 0.012 92);
  --surface: oklch(100% 0.005 95);
  --line: oklch(86% 0.025 175);
  --pine: oklch(35% 0.09 166);
  --pine-dark: oklch(26% 0.07 166);
  --sky: oklch(72% 0.105 224);
  --sun: oklch(76% 0.13 78);
  --wine: oklch(42% 0.14 24);
  --success: oklch(43% 0.12 150);
  --error: oklch(45% 0.16 25);
  --shadow: 0 24px 70px oklch(24% 0.04 170 / 0.14);
  --radius: 8px;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-lg);
  min-height: 72px;
  padding: 0 clamp(1rem, 4vw, 3rem);
  background: color-mix(in oklch, var(--paper) 92%, transparent);
  border-bottom: 1px solid color-mix(in oklch, var(--line) 80%, transparent);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--surface);
  background: var(--pine-dark);
  border-radius: 50%;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 650;
}

.nav a:hover {
  color: var(--pine-dark);
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.primary-button {
  color: var(--surface);
  background: var(--pine-dark);
}

.primary-button:hover {
  background: var(--pine);
}

.secondary-button,
.ghost-button {
  color: var(--pine-dark);
  background: color-mix(in oklch, var(--surface) 78%, var(--sky));
  border-color: var(--line);
}

.secondary-button:hover,
.ghost-button:hover {
  border-color: var(--pine);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - 72px));
  display: grid;
  align-items: end;
  padding: clamp(2rem, 6vw, 5rem);
  overflow: clip;
  background: var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, oklch(17% 0.045 178 / 0.88) 0%, oklch(17% 0.045 178 / 0.62) 43%, oklch(17% 0.045 178 / 0.12) 100%),
    linear-gradient(0deg, oklch(17% 0.045 178 / 0.7) 0%, transparent 40%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 690px;
  color: var(--surface);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: color-mix(in oklch, var(--sky) 75%, var(--pine-dark));
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: color-mix(in oklch, var(--sun) 72%, var(--surface));
}

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

h1 {
  max-width: 13ch;
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 6.4vw, 5.7rem);
  line-height: 0.98;
  font-weight: 700;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.5vw, 4.3rem);
  line-height: 1.02;
}

h3 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
  line-height: 1.2;
}

.lead {
  max-width: 58ch;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: oklch(92% 0.02 90);
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 720px;
  gap: 1px;
  margin: var(--space-2xl) 0 0;
  padding: 0;
  background: oklch(94% 0.02 90 / 0.28);
  border: 1px solid oklch(94% 0.02 90 / 0.26);
  border-radius: var(--radius);
  overflow: hidden;
}

.trust-strip div {
  padding: 1rem;
  background: oklch(18% 0.04 178 / 0.42);
}

.trust-strip dt {
  color: oklch(85% 0.04 82);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.trust-strip dd {
  margin: 0.25rem 0 0;
  color: var(--surface);
  font-weight: 750;
}

.section {
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 3rem);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.split-section h2 {
  font-size: clamp(2rem, 3.4vw, 3.6rem);
}

.copy-stack {
  max-width: 65ch;
  color: var(--muted);
  font-size: 1.16rem;
}

.section-heading {
  max-width: 780px;
  margin-bottom: var(--space-2xl);
}

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

.journey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.journey-card {
  display: grid;
  gap: var(--space-md);
  min-height: 100%;
  padding: var(--space-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 38px oklch(28% 0.04 160 / 0.07);
  overflow: hidden;
}

.journey-image {
  position: relative;
  margin: calc(var(--space-lg) * -1) calc(var(--space-lg) * -1) var(--space-sm);
  aspect-ratio: 16 / 9;
  background: color-mix(in oklch, var(--sky) 14%, var(--surface));
  overflow: hidden;
}

.journey-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journey-image span {
  position: absolute;
  right: 0.5rem;
  bottom: 0.45rem;
  padding: 0.2rem 0.4rem;
  color: var(--surface);
  background: oklch(18% 0.04 178 / 0.62);
  border-radius: 4px;
  font-size: 0.66rem;
  line-height: 1.2;
}

.journey-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.journey-card .secondary-button {
  width: 100%;
  min-height: 74px;
}

.meta-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.meta-list li,
.tag-list span {
  color: var(--muted);
  font-size: 0.92rem;
}

.meta-list strong {
  color: var(--ink);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-list span {
  padding: 0.35rem 0.55rem;
  background: color-mix(in oklch, var(--sky) 14%, var(--surface));
  border: 1px solid color-mix(in oklch, var(--sky) 32%, var(--line));
  border-radius: 999px;
}

.adaptable-note {
  margin: 0;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--line);
  color: var(--pine-dark);
  font-weight: 700;
}

.process {
  background: oklch(94% 0.025 169);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-md);
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: var(--space-lg);
  border-left: 4px solid var(--pine);
  background: color-mix(in oklch, var(--surface) 72%, var(--sky));
  border-radius: var(--radius);
}

.steps span {
  display: block;
  margin-bottom: var(--space-sm);
  color: var(--wine);
  font-weight: 850;
}

.steps p,
.service-grid p,
.person-card p,
.faq-list p,
.footer p {
  margin-bottom: 0;
  color: var(--muted);
}

.service-band {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 5vw, 4rem);
  background: var(--pine-dark);
  color: var(--surface);
}

.service-band .eyebrow {
  color: color-mix(in oklch, var(--sun) 80%, var(--surface));
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
}

.service-grid article {
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid oklch(86% 0.02 110 / 0.26);
}

.service-grid p {
  color: oklch(88% 0.02 120);
}

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

.person-card {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: var(--space-md);
  align-items: start;
  padding: var(--space-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.avatar {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  color: var(--surface);
  background: linear-gradient(135deg, var(--pine), var(--wine));
  font-size: 1.35rem;
  font-weight: 900;
}

.faq-section {
  background: oklch(96% 0.018 85);
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.faq-item {
  padding: var(--space-lg);
  background: color-mix(in oklch, var(--surface) 82%, var(--sun));
  border: 1px solid color-mix(in oklch, var(--sun) 26%, var(--line));
  border-radius: var(--radius);
}

.request-section {
  display: grid;
  grid-template-columns: minmax(270px, 0.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.request-intro {
  position: sticky;
  top: 96px;
}

.request-intro p {
  color: var(--muted);
}

.local-note {
  display: grid;
  gap: 0.25rem;
  margin-top: var(--space-lg);
  padding: var(--space-md);
  border-left: 4px solid var(--sun);
  background: color-mix(in oklch, var(--sun) 16%, var(--surface));
  border-radius: var(--radius);
}

.local-note span {
  color: var(--muted);
  font-size: 0.92rem;
}

.request-form,
.request-summary {
  padding: clamp(1rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

label,
fieldset {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 var(--space-md);
  min-width: 0;
}

fieldset {
  padding: var(--space-md);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

legend,
label span {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.75rem 0.85rem;
  color: var(--ink);
  background: oklch(98% 0.01 95);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--pine);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--sky) 30%, transparent);
}

.field-error,
.field-error input,
.field-error select,
.field-error textarea {
  border-color: var(--error);
}

.full-field {
  margin-top: var(--space-md);
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.5rem;
}

.check-option {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  min-height: 46px;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.check-option input,
.consent-row input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 0.15rem;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: var(--space-lg);
}

.privacy-note {
  display: grid;
  gap: 0.25rem;
  margin-top: var(--space-md);
  padding: var(--space-md);
  color: var(--pine-dark);
  background: color-mix(in oklch, var(--sky) 12%, var(--surface));
  border: 1px solid color-mix(in oklch, var(--sky) 32%, var(--line));
  border-radius: var(--radius);
}

.privacy-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-alert {
  display: none;
  margin-bottom: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius);
  font-weight: 750;
}

.form-alert[data-state="error"] {
  display: block;
  color: oklch(28% 0.12 25);
  background: oklch(94% 0.055 35);
}

.form-alert[data-state="success"] {
  display: block;
  color: oklch(25% 0.09 150);
  background: oklch(93% 0.055 150);
}

.form-alert[data-state="loading"],
.form-alert[data-state="info"] {
  display: block;
  color: oklch(24% 0.08 220);
  background: oklch(93% 0.045 225);
}

.request-summary {
  grid-column: 2;
}

.summary-list {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 var(--space-lg);
  padding: 0;
  list-style: none;
}

.summary-list strong {
  color: var(--ink);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-xl) clamp(1rem, 4vw, 3rem);
  background: var(--pine-dark);
  color: var(--surface);
}

.footer p {
  color: oklch(86% 0.02 130);
}

.footer-link {
  color: var(--surface);
  font-weight: 800;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

.admin-body {
  background: oklch(96% 0.018 95);
}

.admin-site-header {
  position: sticky;
}

.admin-shell {
  padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
}

.admin-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-xl);
  align-items: end;
  padding: clamp(2rem, 5vw, 4rem) 0 var(--space-2xl);
}

.admin-intro h1 {
  max-width: 18ch;
  color: var(--pine-dark);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.admin-intro p {
  max-width: 72ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-sm);
}

.danger-button {
  color: var(--error);
  background: oklch(97% 0.035 35);
  border-color: oklch(82% 0.08 35);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.metric-card,
.admin-panel,
.admin-request-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.metric-card {
  padding: var(--space-lg);
}

.metric-card span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin: 0.3rem 0;
  color: var(--pine-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.metric-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.requests-panel,
.wide-panel {
  grid-column: 1 / -1;
}

.admin-panel {
  padding: clamp(1rem, 3vw, 1.5rem);
  overflow: hidden;
}

.panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.panel-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.admin-search {
  width: min(360px, 100%);
  margin: 0;
}

.empty-admin-state {
  padding: var(--space-lg);
  color: var(--muted);
  background: color-mix(in oklch, var(--sky) 13%, var(--surface));
  border: 1px solid color-mix(in oklch, var(--sky) 36%, var(--line));
  border-radius: var(--radius);
}

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

.admin-request-card {
  padding: var(--space-lg);
}

.request-card-top {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--line);
}

.request-card-top p,
.request-card-top span,
.request-long-text p {
  margin: 0;
  color: var(--muted);
}

.request-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}

.request-detail-grid div {
  padding: var(--space-sm);
  background: oklch(98% 0.012 95);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.request-detail-grid dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.request-detail-grid dd {
  margin: 0.2rem 0 0;
  font-weight: 700;
}

.request-long-text {
  display: grid;
  gap: 0.3rem;
}

.request-long-text strong {
  margin-top: var(--space-sm);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

th,
td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

td {
  color: var(--ink);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.75rem;
  }

  .hero {
    min-height: 720px;
  }

  .split-section,
  .service-band,
  .request-section {
    grid-template-columns: 1fr;
  }

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

  .request-intro {
    position: static;
  }

  .request-summary {
    grid-column: auto;
  }

  .admin-intro,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: auto;
    padding-top: 0.75rem;
  }

  .brand strong {
    font-size: 0.92rem;
  }

  .language-button {
    min-height: 40px;
    padding-inline: 0.75rem;
  }

  .hero {
    min-height: 660px;
    padding: 2rem 1rem;
  }

  .hero::after {
    background:
      linear-gradient(90deg, oklch(17% 0.045 178 / 0.9) 0%, oklch(17% 0.045 178 / 0.58) 100%),
      linear-gradient(0deg, oklch(17% 0.045 178 / 0.72) 0%, transparent 48%);
  }

  h1 {
    font-size: 2.65rem;
    line-height: 1.02;
  }

  .steps,
  .service-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: var(--space-lg);
  }

  .trust-strip div {
    padding: 0.75rem 0.55rem;
  }

  .trust-strip dt {
    font-size: 0.64rem;
  }

  .trust-strip dd {
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .hero-actions,
  .form-actions,
  .footer {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
  }

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

  .panel-heading,
  .request-card-top {
    align-items: stretch;
    flex-direction: column;
  }
}

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

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