:root {
  --ink: #1a1f2b;
  --ink-soft: #3a4150;
  --teal: #1e4d4a;
  --teal-deep: #163835;
  --bone: #f7f1e8;
  --cream: #efe6d8;
  --copper: #8c5a32;
  --copper-bright: #b07545;
  --paper: #fffaf3;
  --mist: #d7e4e2;
  --line: color-mix(in oklab, var(--ink) 12%, transparent);
  --sans: "Figtree", "Segoe UI", system-ui, sans-serif;
  --display: "Fraunces", "Palatino Linotype", Palatino, serif;
  --shadow: 0 24px 60px color-mix(in oklab, var(--ink) 12%, transparent);
  --text-hero: clamp(2.1rem, 4.2vw, 3.5rem);
  --text-page: clamp(2.1rem, 4vw, 3.2rem);
  --text-section: clamp(1.6rem, 2.6vw, 2.2rem);
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, [role="button"] { cursor: pointer; font: inherit; }
h1, h2, h3 {
  font-family: var(--display);
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}
p { text-wrap: pretty; }

.wrap { width: min(72rem, 100%); margin-inline: auto; padding-inline: 1.25rem; }
.art { outline: 1px solid color-mix(in oklab, var(--ink) 10%, transparent); outline-offset: -1px; }
.rounded { border-radius: 24px; }
.shadow { box-shadow: var(--shadow); }
.min-h-80 { min-height: 20rem; object-fit: cover; width: 100%; height: 100%; }

.kicker {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
}
.kicker-teal { color: var(--teal); font-size: 0.875rem; font-weight: 600; letter-spacing: 0; text-transform: none; margin-bottom: 0.5rem; }
.lede { max-width: 36rem; font-size: 1.125rem; color: var(--ink-soft); }
.hero-title { font-size: var(--text-hero); font-weight: 500; margin-bottom: 1rem; }
.page-title { font-size: var(--text-page); font-weight: 500; max-width: 36rem; }
.section-title { font-size: var(--text-section); margin-bottom: 0.75rem; }
.muted { color: var(--ink-soft); }
.mt { margin-top: 1.5rem; }

.site-header {
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--bone) 90%, transparent);
  backdrop-filter: blur(12px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.75rem; }
.logo { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; min-height: 44px; color: var(--ink); }
.logo svg { flex: none; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
.logo-words { display: flex; align-items: baseline; gap: 0.4rem; line-height: 1; }
.logo-path { font-family: var(--display); font-size: 1.125rem; font-weight: 600; letter-spacing: -0.03em; }
.logo-en { font-family: var(--display); font-size: 1.125rem; font-weight: 500; letter-spacing: -0.03em; color: var(--copper); }
.logo-compact .logo-words { display: none; }
@media (min-width: 640px) { .logo-compact .logo-words { display: flex; } }

.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 0.85rem;
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink);
}
.nav { display: none; align-items: center; gap: 1.5rem; }
.nav.is-open {
  display: flex; flex-direction: column; align-items: stretch;
  position: absolute; top: 4.25rem; left: 1rem; right: 1rem;
  padding: 1rem; border: 1px solid var(--line); border-radius: 24px;
  background: var(--paper); box-shadow: var(--shadow);
}
.nav-link {
  display: flex; align-items: center; min-height: 44px;
  text-decoration: none; font-weight: 500; color: var(--ink-soft);
}
.nav-link:hover, .nav-link.is-active { color: var(--teal); }
@media (min-width: 768px) {
  .menu-btn { display: none; }
  .nav { display: flex; }
}

.btn, .btn-ghost, .btn-copper {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 1.25rem; border-radius: 999px;
  font-size: 0.95rem; font-weight: 600; text-decoration: none;
}
.btn { background: var(--teal); color: var(--bone); border: 0; }
.btn:hover { background: var(--teal-deep); }
.btn-ghost { border: 1px solid color-mix(in oklab, var(--teal) 35%, transparent); color: var(--teal); background: transparent; }
.btn-ghost:hover { background: var(--cream); }
.btn-copper { background: var(--copper-bright); color: var(--bone); }
.btn-copper:hover { background: var(--copper); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.lang { position: relative; }
.lang-btn { min-height: 44px; background: none; border: 0; color: var(--ink-soft); font-weight: 500; font-size: 0.875rem; }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: 100%; z-index: 40;
  margin-top: 0.5rem; min-width: 13rem; padding: 0.5rem;
  display: none;
  gap: 2px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow);
}
.lang-menu.is-open { display: grid; }
.lang-menu[hidden] { display: none !important; }
.lang-menu button {
  min-height: 44px; text-align: start; border: 0; border-radius: 12px;
  background: transparent; color: var(--ink); padding: 0 0.75rem;
}
.lang-menu button:hover, .lang-menu button.is-current { background: var(--cream); color: var(--teal); }

.band { padding: 4rem 0; }
.band-tight { padding: 3rem 0 1rem; }
.band-cream { background: var(--cream); }
.split { display: grid; gap: 2.25rem; align-items: center; }
@media (min-width: 768px) {
  .split-2 { grid-template-columns: 1fr 1fr; }
  .split-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.cards { display: grid; gap: 1rem; margin-top: 1.75rem; }
.card { background: var(--paper); border-radius: 18px; padding: 1.5rem; box-shadow: 0 0 0 1px var(--line); }
.card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.steps { display: grid; gap: 1rem; margin-top: 2rem; }
.step { border-top: 2px solid var(--copper); padding-top: 1rem; }
.step p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.step .step-t { font-family: var(--display); font-size: 1.125rem; color: var(--ink); margin-bottom: 0.25rem; }
@media (min-width: 640px) { .steps-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .steps-4 { grid-template-columns: 1fr 1fr 1fr 1fr; } }

.quote {
  margin: 0; padding: 1.25rem 1.25rem 1.25rem 1.4rem;
  border-left: 4px solid var(--copper); background: var(--paper);
  font-family: var(--display); font-size: 1.25rem; font-style: italic;
}
.quote cite { display: block; margin-top: 0.5rem; font-family: var(--sans); font-size: 0.875rem; font-style: normal; color: var(--ink-soft); }

.cta-panel {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
  gap: 1.5rem; padding: 2.5rem 2rem; border-radius: 24px;
  background: var(--teal-deep); color: var(--bone);
}
.cta-panel h2 { color: var(--bone); }
.cta-panel p { max-width: 36rem; color: var(--mist); margin: 0; }
@media (min-width: 768px) {
  .cta-panel { flex-direction: row; align-items: center; }
}

.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; font-size: 0.875rem; color: var(--ink-soft); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }

.form {
  display: grid; gap: 1rem; max-width: 36rem;
  background: var(--paper); padding: 1.75rem; border-radius: 24px; box-shadow: var(--shadow);
}
.fields { display: grid; gap: 1rem; }
@media (min-width: 640px) { .fields-2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; font-size: 0.875rem; font-weight: 600; color: var(--teal); }
.field input, .field select, .field textarea {
  min-height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); font: 400 1rem var(--sans); padding: 0 0.75rem;
}
.field textarea { padding: 0.75rem; min-height: 7rem; }
.form-status { margin: 0; font-size: 0.875rem; color: var(--ink-soft); }

/* Testimonial rotator */
.rotator { margin-top: 1.75rem; }
.rotator-track { display: grid; }
.t-page {
  grid-area: 1 / 1; display: grid; gap: 1rem;
  visibility: hidden; transition: visibility 0s linear 0.45s;
}
.t-page.is-active { visibility: visible; transition: visibility 0s; }
@media (min-width: 768px) { .t-page { grid-template-columns: 1fr 1fr; } }
.t-card {
  margin: 0;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
  padding: 2rem 2.25rem 1.75rem;
  /* Soft vignette: paper-coloured in the middle, fading to transparent at the edges. */
  background: radial-gradient(closest-side ellipse at 50% 50%,
    color-mix(in oklab, var(--paper) 95%, transparent) 0%,
    color-mix(in oklab, var(--paper) 80%, transparent) 55%,
    color-mix(in oklab, var(--paper) 30%, transparent) 85%,
    transparent 100%);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
/* The outgoing pair fades away first, then the new pair fades in, the second card a beat after the first. */
.t-page.is-active .t-card { opacity: 1; transform: none; transition: opacity 0.7s ease 0.45s, transform 0.7s ease 0.45s; }
.t-page.is-active .t-card + .t-card { transition-delay: 0.65s; }
.t-quote {
  margin: 0; font-family: var(--display); font-style: italic;
  font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.5; color: var(--ink);
}
.t-quote::before {
  content: "\201C"; display: block; margin-bottom: 0.5rem;
  font-size: 3rem; line-height: 0.6; font-style: normal; color: var(--copper-bright);
}
.t-quote::after {
  content: "\201D"; display: block; margin-top: 0.25rem; text-align: end;
  font-size: 3rem; line-height: 0.6; font-style: normal; color: var(--copper-bright);
}
.t-who { display: flex; align-items: center; gap: 0.85rem; }
.t-avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.t-mono {
  display: grid; place-items: center;
  background: var(--teal); color: var(--bone);
  font-family: var(--display); font-weight: 600; font-size: 1rem;
}
.t-mono-copper { background: var(--copper); }
.t-name { display: block; font-weight: 600; color: var(--ink); }
.t-role { display: block; font-size: 0.875rem; color: var(--ink-soft); }
.rotator-controls { display: flex; align-items: center; gap: 0.5rem; margin-top: 1rem; }
.rotator-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border-radius: 50%; border: 1px solid color-mix(in oklab, var(--teal) 35%, transparent);
  background: transparent; color: var(--teal);
}
.rotator-btn:hover { background: var(--paper); }
.rotator-btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.rotator-btn svg { width: 20px; height: 20px; }
.rotator-count { min-width: 4.5rem; text-align: center; font-size: 0.875rem; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.rotator-pause { margin-inline-start: auto; }
.rotator-pause .i-play, .rotator-pause.is-paused .i-pause { display: none; }
.rotator-pause.is-paused .i-play { display: block; }
[dir="rtl"] [data-rotator-prev] svg, [dir="rtl"] [data-rotator-next] svg { transform: scaleX(-1); }

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