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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
}

:root {
  --bg: #faf8f4;
  --bg-elev: #ffffff;
  --text: #141414;
  --text-muted: #5a5a5a;
  --border: #e8e3da;
  --border-strong: #d8d2c5;
  --accent: #3730a3;
  --accent-hover: #2c267f;
  --accent-tint: #eeedf8;
  --warm-tint: #f1ece1;
  --max-w: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 20, 0.04),
    0 1px 4px rgba(20, 20, 20, 0.04);
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding: clamp(72px, 9vw, 128px) 0;
}

.section--tight {
  padding: clamp(48px, 6vw, 80px) 0;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 18px;
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 24px;
  font-weight: 600;
}

h1 {
  font-size: clamp(40px, 6vw, 76px);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(30px, 4.2vw, 52px);
}

h3 {
  font-size: clamp(20px, 2.2vw, 26px);
}

p {
  margin: 0 0 18px;
  color: var(--text-muted);
  max-width: 60ch;
}

p.lead {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 56ch;
}

.text-balance {
  text-wrap: balance;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border 0.15s ease,
    transform 0.15s ease;
  font-size: 15px;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

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

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.btn--small {
  padding: 10px 16px;
  font-size: 14px;
}

.btn .arrow {
  transition: transform 0.15s ease;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: rgba(250, 248, 244, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 15px;
  transition: color 0.15s ease;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--text);
}

@media (max-width: 640px) {
  .nav__links {
    gap: 18px;
  }
  .nav__links a {
    font-size: 14px;
  }
  .site-header .btn {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(60px, 9vw, 120px) 0 clamp(60px, 8vw, 110px);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.hero h1 {
  margin-bottom: 28px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.hero__visual {
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, #ece8df 0%, #e5dfd1 100%);
  position: relative;
  overflow: hidden;
}

.hero__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 880px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__visual {
    order: -1;
    aspect-ratio: 16 / 10;
  }
}

/* ---------- Section: What we do (split) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.split__head {
  position: sticky;
  top: 92px;
}

.split__body p + p {
  margin-top: 18px;
}

.callout {
  margin-top: 36px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.callout strong {
  color: var(--text);
  font-weight: 600;
}

.callout a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.callout a:hover {
  text-decoration: underline;
}

@media (max-width: 880px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split__head {
    position: static;
  }
}

/* ---------- Cards (principles, steps) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
}

.card__visual {
  height: 140px;
  border-radius: var(--radius);
  background: linear-gradient(140deg, var(--warm-tint), var(--accent-tint));
  margin-bottom: 6px;
  position: relative;
  overflow: hidden;
}

.card__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.card__index {
  font-feature-settings: "tnum" 1;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.card h3 {
  margin: 0;
}

.card p {
  margin: 0;
}

@media (max-width: 880px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* ---------- Section heading row ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 8px;
}

.section-head .eyebrow {
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0;
  max-width: 18ch;
}

/* ---------- Quote ---------- */
.quote {
  background: var(--text);
  color: #f4f1ea;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 80px);
  text-align: center;
}

.quote blockquote {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #f4f1ea;
  max-width: 28ch;
  margin: 0 auto;
}

.quote cite {
  display: block;
  margin-top: 28px;
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.6);
}

/* ---------- FAQ ---------- */
.faq {
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  cursor: pointer;
  list-style: none;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 500;
  color: var(--text);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-top: -4px;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.faq details > p {
  margin: 14px 0 4px;
  color: var(--text-muted);
}

/* ---------- Final CTA banner ---------- */
.cta-banner {
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 100% at 100% 0%, #f3e8d4 0%, transparent 60%),
    linear-gradient(140deg, #2c2360 0%, #3730a3 100%);
  color: #fff;
  padding: clamp(48px, 6vw, 96px);
  text-align: center;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 28px;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn--primary {
  background: #fff;
  color: var(--accent);
}

.cta-banner .btn--primary:hover {
  background: #f4f1ea;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--text);
  color: #cfcabd;
  margin-top: 0;
}

.site-footer__hero {
  padding-top: clamp(72px, 9vw, 120px);
  padding-bottom: clamp(40px, 5vw, 60px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__hero h2 {
  color: #fff;
  font-size: clamp(36px, 5vw, 64px);
  max-width: 14ch;
  margin-bottom: 32px;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 56px;
}

.site-footer__brand {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}

.site-footer__brand p {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
  letter-spacing: 0;
  max-width: 32ch;
}

.site-footer h4 {
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.16em;
  font-weight: 500;
  margin-bottom: 18px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer a {
  color: #cfcabd;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.15s ease;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  padding-bottom: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 720px) {
  .site-footer__cols {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------- About page specifics ---------- */
.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: var(--bg);
}

.marquee__track {
  display: flex;
  gap: 60px;
  animation: marquee 28s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.marquee span {
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.marquee .dot {
  color: var(--accent);
  font-size: clamp(40px, 6vw, 84px);
  align-self: center;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.value h3 {
  margin-bottom: 14px;
}

.value p {
  margin: 0;
}

@media (max-width: 880px) {
  .values {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 28px;
}

.contact-detail dt {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
  margin-top: 14px;
}

.contact-detail dt:first-child {
  margin-top: 0;
}

.contact-detail dd {
  margin: 0;
  font-size: 17px;
  color: var(--text);
}

.contact-detail a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 1px;
}

.contact-detail a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.form {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form__field label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.form__field input,
.form__field select,
.form__field textarea {
  font: inherit;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(55, 48, 163, 0.12);
}

.form__field input:user-invalid,
.form__field select:user-invalid,
.form__field textarea:user-invalid {
  border-color: #9b2222;
}

.form__field input:user-invalid:focus,
.form__field select:user-invalid:focus,
.form__field textarea:user-invalid:focus {
  border-color: #9b2222;
  box-shadow: 0 0 0 3px rgba(155, 34, 34, 0.15);
}

.form__field--honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__field textarea {
  min-height: 140px;
  resize: vertical;
}

.form__note {
  font-size: 13px;
  color: var(--text-muted);
  margin: 12px 0 0;
}

.form__success,
.form__error {
  display: none;
}

.form__error {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  background: #fbeaea;
  color: #9b2222;
}

.form.is-error .form__error {
  display: block;
}

/* Success state — takes over the form once submitted */
.form.is-sent .form__row,
.form.is-sent > .form__field,
.form.is-sent > button,
.form.is-sent > .form__note {
  display: none;
}

.form.is-sent .form__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 16px;
}

.form__success svg {
  width: 96px;
  height: 96px;
  margin-bottom: 20px;
}

.form__success circle {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  transform-origin: 40px 40px;
  transform: rotate(-90deg);
  animation: form-success-circle 0.5s ease-out forwards;
}

.form__success path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: form-success-check 0.35s ease-out 0.45s forwards;
}

.form__success h3 {
  margin: 0 0 6px;
  font-size: 22px;
  color: var(--text);
  opacity: 0;
  animation: form-success-fade 0.4s ease-out 0.7s forwards;
}

.form__success p {
  margin: 0;
  color: var(--text-muted);
  opacity: 0;
  animation: form-success-fade 0.4s ease-out 0.85s forwards;
}

@keyframes form-success-circle {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes form-success-check {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes form-success-fade {
  to {
    opacity: 1;
  }
}

@media (max-width: 720px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .form__row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Other ways list ---------- */
.contact-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.contact-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-list dt,
.contact-list .label {
  font-weight: 500;
  color: var(--text);
  min-width: 160px;
}

.contact-list a {
  color: var(--accent);
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

/* ---------- Legal pages ---------- */
.legal {
  max-width: 720px;
  margin: 0 auto;
}

.legal h1 {
  font-size: clamp(36px, 5vw, 56px);
}

.legal .updated {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.legal h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  margin-top: 48px;
  margin-bottom: 14px;
}

.legal h2:first-of-type {
  margin-top: 0;
}

.legal p {
  font-size: 16px;
  max-width: none;
}

.legal .placeholder-note {
  border-left: 3px solid var(--accent);
  background: var(--accent-tint);
  padding: 16px 20px;
  border-radius: 6px;
  margin: 0 0 36px;
  color: var(--text);
  font-size: 14px;
}

/* ---------- 404 ---------- */
.notfound {
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--gutter);
}

.notfound__code {
  font-size: clamp(120px, 22vw, 220px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--accent);
  margin-bottom: 24px;
  font-weight: 600;
}

.notfound h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
}

.notfound p {
  margin-bottom: 36px;
  max-width: 32ch;
}

/* ---------- Utility ---------- */
.mt-0 {
  margin-top: 0;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}
