/* FIAS Consulting — site styles
   Brand palette: plum, warm off-white, near-black, terracotta, sage. */


:root {
  --ink: #2d2723;          /* brand near-black */
  --ink-soft: #4f4743;
  --muted: #776c67;
  --navy: #745669;         /* brand plum (primary) */
  --navy-deep: #553d4c;    /* deep plum */
  --plum-soft: #f1eaee;
  --teal: #5c6b57;         /* sage, darkened for readable text */
  --sage: #7d8b77;         /* brand sage */
  --teal-soft: #e9ede6;
  --accent: #9c6352;       /* brand terracotta (button-safe) */
  --accent-dark: #82503f;
  --terracotta: #a8705e;
  --cream: #f6f3ee;        /* brand off-white */
  --paper: #fbf9f6;
  --white: #ffffff;
  --line: #e6dfd7;
  --on-dark: #efe6ea;
  --on-dark-accent: #f0c6b6;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(84, 61, 76, 0.08);
  --max: 1180px;
  --serif: "The Seasons", Georgia, "Times New Roman", serif;   /* subtitles & highlights */
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .6em; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h1 em, h2 em { font-style: italic; color: var(--navy); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.center.narrow { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 1rem;
}
/* Intro paragraphs: same size as body text */
.lead { font-size: inherit; }

/* Logo lockup (recreates the FIAS Consulting Ltd wordmark) */
.logo {
  display: inline-grid; grid-template-columns: 1fr 1fr; text-decoration: none;
  width: 200px; color: var(--ink);
}
.logo-fias {
  grid-column: 1 / -1; justify-self: center;
  font-family: "Fraunces", Georgia, serif; font-weight: 400; font-size: 38px; line-height: .9;
  letter-spacing: .05em; color: var(--navy);
  font-variation-settings: "opsz" 144;
}
.logo-line { align-self: center; height: 1.5px; background: currentColor; margin-right: 4px; margin-top: 3px; }
.logo-sub { font-family: "Fraunces", Georgia, serif; font-size: 15.5px; line-height: 1.2; white-space: nowrap; }
.logo.light { color: var(--cream); }
.logo.light .logo-fias { color: var(--cream); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 249, 246, .94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 82px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: .95rem;
  padding: 8px 14px; border-radius: 8px;
}
.nav a:hover { color: var(--navy); background: var(--plum-soft); }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.nav .btn { margin-left: 8px; color: var(--white); }
.nav .btn:hover { color: var(--white); background: var(--accent-dark); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--navy); }
.nav-toggle svg { width: 26px; height: 26px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-family: inherit; font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer;
  background: var(--accent); color: var(--white);
  border: 2px solid var(--accent);
  transition: background .2s, border-color .2s, transform .2s, color .2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.center .btn-row { justify-content: center; }

/* Sections */
section { padding: 96px 0; }
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy); color: var(--on-dark); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy .eyebrow { color: var(--on-dark-accent); }
.section-head { max-width: 720px; margin-bottom: 3.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 110px 0 120px; background: var(--cream); }
.hero h1 { max-width: 15ch; }
.hero .lead { max-width: 60ch; }
/* Three-part tagline: one phrase per line, last phrase in brand plum */
.hero h1.tagline-h1 { max-width: none; font-size: clamp(2.2rem, 3.8vw, 3.2rem); }
.tagline-h1 span { display: block; }
@media (min-width: 380px) { .tagline-h1 span { white-space: nowrap; } }
.tagline-h1 span:last-child { color: var(--navy); }
.pillars-line { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 1.8rem; padding: 0; list-style: none; }
.pillars-line li {
  font-size: .85rem; font-weight: 600; color: var(--navy);
  background: rgba(255,255,255,.75); border: 1px solid var(--line);
  padding: 6px 14px; border-radius: 999px;
}
.page-hero { padding: 90px 0 80px; background: var(--cream); }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); max-width: 20ch; }

/* Image-backed heroes: artwork fills the section, copy sits in its empty side */
.media-hero {
  position: relative; display: flex; align-items: center;
  min-height: clamp(560px, 50vw, 760px); padding: 80px 0; background: #f3ece4;
}
.media-hero .hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: right center;
}
.media-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(243,236,228,.96) 0%, rgba(243,236,228,.85) 32%, rgba(243,236,228,0) 58%);
}
.media-hero .container { position: relative; z-index: 2; }
.media-hero .hero-copy { max-width: 490px; }
/* Shift artwork towards the far side so the copy sits over its empty space */
@media (min-width: 861px) {
  .media-hero .hero-img { left: 7%; width: 93%; }
  .media-hero.flip .hero-img { left: 0; right: 7%; }
}
.media-hero.flip .hero-img { object-position: left center; }
.media-hero.flip::before { background: linear-gradient(270deg, rgba(243,236,228,.96) 0%, rgba(243,236,228,.85) 32%, rgba(243,236,228,0) 58%); }
.media-hero.flip .hero-copy { margin-left: auto; }

/* About header: black-and-white portrait on a neutral backdrop */
.portrait-hero { background: #ebe9e6; }
.portrait-hero::before { background: linear-gradient(90deg, rgba(235,233,230,.95) 0%, rgba(235,233,230,.8) 30%, rgba(235,233,230,0) 52%); }
.portrait-hero .hero-img { object-position: 70% 30%; }

/* About "I bring together" cards: widen the Digital Transformation card so its title stays on one line */
@media (min-width: 1001px) { .stats-grid { grid-template-columns: 1fr 1.3fr 1fr 1fr; } }
@media (min-width: 1200px) { .stats-grid .num-wide { white-space: nowrap; } }
/* All four "I bring together" highlights at one size */
.stats-grid .card .num { font-size: 1.6rem; }

/* Services "FIAS approach": photo beside the three perspectives */
.approach .split { grid-template-columns: 1fr 1.15fr; }
.approach .founder-photo.approach-photo { max-width: 460px; }
.approach-list { display: grid; gap: 16px; margin-top: 1.6rem; }
.approach-list .card { padding: 22px 26px; }

/* ClickLearn: supported ERP platforms */
.platforms { padding-top: 0; }
.platforms-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  background: var(--plum-soft); border-radius: var(--radius); padding: 40px 44px;
}
.platforms-box .lead { margin: 0; }
.platforms-box .lead a { color: var(--navy); font-weight: 600; }
.platforms-box .chips li { background: var(--white); }
@media (max-width: 860px) { .platforms-box { grid-template-columns: 1fr; gap: 24px; padding: 30px 26px; } }

/* Home: testimonials carousel */
.testimonials { background: var(--plum-soft); }
.testimonials .section-head, .journey .section-head, .section-head.one-line, .section-head.wide { max-width: none; }
/* Longer headings: keep to one line only where there's room */
@media (min-width: 1200px) { .section-head.wide h2 { white-space: nowrap; } }
@media (min-width: 900px) { .testimonials .section-head h2, .journey .section-head h2, .section-head.one-line h2 { white-space: nowrap; } }
.t-carousel { max-width: 840px; margin: 0 auto; text-align: center; }
.t-viewport { overflow: hidden; transition: height .5s ease; }
.t-track { display: flex; align-items: flex-start; transition: transform .6s ease; }
.t-slide { flex: 0 0 100%; margin: 0; padding: 0 12px; }
.t-slide blockquote {
  margin: 0 0 1.6rem; font-family: var(--sans); font-size: inherit;
  line-height: 1.65; color: var(--ink);
}
.t-slide blockquote::before {
  content: "\201C"; display: block; font-family: var(--serif); font-size: 4.5rem; line-height: .7;
  color: var(--terracotta); margin-bottom: .4rem;
}
.t-slide blockquote p { margin: 0 0 .8em; }
.t-slide blockquote p:last-child { margin-bottom: 0; }
.t-slide figcaption strong { display: block; color: var(--navy); font-weight: 600; }
.t-slide figcaption span { color: var(--muted); font-size: .95rem; }
.t-controls { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 2.2rem; }
.t-controls[hidden] { display: none; }
.t-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1.5px solid var(--navy); background: transparent; color: var(--navy); transition: background .2s, color .2s;
}
.t-btn:hover, .t-btn:focus-visible { background: var(--navy); color: var(--white); }
.t-dots { display: flex; gap: 8px; }
.t-dots button {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 5px; cursor: pointer;
  background: rgba(116, 86, 105, .3); transition: width .3s, background .3s;
}
.t-dots button[aria-current="true"] { width: 28px; background: var(--navy); }
@media (prefers-reduced-motion: reduce) { .t-track { transition: none; } }

/* Home hero: pillars-line: compact, single row of small tags */
.pillars-line { flex-wrap: nowrap; gap: 6px; }
.pillars-line li { font-size: .74rem; padding: 4px 11px; white-space: nowrap; letter-spacing: .01em; }
@media (max-width: 480px) { .pillars-line { flex-wrap: wrap; } }

/* Contact header: the photo has its own cream panel, so skip the fade on wide screens */
@media (min-width: 1101px) {
  .contact-hero::before { display: none; }
  .media-hero.contact-hero .hero-img { left: 0; right: 0; width: 100%; }
  /* Place the copy in the cream panel: right of the photo's diagonal (~57%), left of the line motif (~89%) */
  .media-hero.contact-hero .container { max-width: none; padding: 0; }
  .media-hero.flip.contact-hero .hero-copy { margin-left: 59vw; max-width: 28vw; }
  .contact-hero h1 { font-size: clamp(2rem, 2.9vw, 3rem); }
}

/* Keep the menu's "Let's talk" button readable on the Contact page */
.nav .btn[aria-current="page"] { color: var(--white); }

/* Home hero strapline: one sentence, the payoff in brand plum */
.hero h1.strapline-h1 { max-width: 17ch; font-size: clamp(2.1rem, 3.6vw, 3.1rem); line-height: 1.12; }
.strapline-h1 span { color: var(--navy); }

/* Solid sage band for the middle service (Services page), spanning the full page width */
.service.bg-sage { position: relative; color: #eef1ec; border-top: 0; }
.service.bg-sage::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -100vmax; right: -100vmax;
  background: #5f6e5a; z-index: -1;
}
.services-list { overflow: hidden; }
.service.bg-sage.reveal, .service.bg-sage { isolation: isolate; }
.service.bg-sage + .service { border-top: 0; }
.service.bg-sage h2, .service.bg-sage strong { color: var(--white); }
.service.bg-sage .num, .service.bg-sage a { color: #f0c6b6; }
.service.bg-sage .tagline { color: #f4ece6; }
.service.bg-sage .checklist li::before { border-color: #f0c6b6; }
.service.bg-sage .useful { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); }
.service.bg-sage .useful strong { color: #f0c6b6; }
/* Images in content */
.figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--cream); }
.figure img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 16 / 10; object-position: 75% center; }
.figure.wide img { aspect-ratio: 21 / 9; }
.figure.tall img { aspect-ratio: 4 / 3.4; }

/* Grids & cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }
.card .num {
  font-family: var(--serif); font-size: 2.6rem; font-weight: 400; color: var(--terracotta);
  line-height: 1; margin-bottom: .6rem; display: block;
}
.card.has-media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card.has-media .thumb { width: 100%; height: auto; aspect-ratio: 16 / 9.5; object-fit: cover; object-position: 78% center; }
.card.has-media .card-body { padding: 28px 30px 32px; }

.pillar { text-align: left; border-top: 4px solid var(--navy); }
.pillar:nth-child(2) { border-top-color: var(--terracotta); }
.pillar:nth-child(3) { border-top-color: var(--sage); }
.pillar .label { font-size: .78rem; font-weight: 600; letter-spacing: .16em; color: var(--navy); display: block; margin-bottom: .6rem; }
.pillar:nth-child(2) .label { color: var(--accent-dark); }
.pillar:nth-child(3) .label { color: var(--teal); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.top { align-items: start; }

.statement { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 1.9rem); color: var(--navy); line-height: 1.3; }

/* Journey */
.compare { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; margin-top: 2rem; }
.compare .box { border-radius: var(--radius); padding: 28px; }
.compare .not { background: rgba(255,255,255,.06); border: 1px dashed rgba(255,255,255,.35); }
.compare .is { background: rgba(255,255,255,.1); border: 1px solid rgba(240,198,182,.55); }
.compare .tag { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--on-dark-accent); font-weight: 600; margin-bottom: 14px; display: block; }
.compare .not .tag { color: #cdbcc6; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.flow li { font-weight: 600; color: var(--white); background: rgba(255,255,255,.1); padding: 10px 16px; border-radius: 10px; }
.compare .is .flow li { background: var(--terracotta); }
.flow .arrow { background: none !important; padding: 0 2px; color: var(--on-dark-accent); }
.compare .not .flow li { color: #e3d7de; }
.compare .not .flow .arrow { color: #cdbcc6; }
.journey-figure { margin-top: 2.5rem;box-shadow: 0 20px 40px rgba(0,0,0,.18); }

/* Sectors / clients */
.chips { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 0; }
.chips li { padding: 10px 18px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 500; color: var(--navy); }
.clients { display: grid; grid-template-columns: repeat(2, max-content); gap: 14px 56px; align-items: center;margin-top: 1.2rem; padding: 0; list-style: none; }
.clients li { font-family: var(--serif); font-size: 1.3rem; color: var(--ink-soft); }
@media (max-width: 600px) { .clients { gap: 10px 28px; } .clients li { font-size: 1.15rem; } }

/* CTA band */
.cta { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--on-dark); text-align: center; padding: 96px 0; }
.cta h2 { color: var(--white); }
.cta .eyebrow { color: var(--on-dark-accent); }
.cta p { max-width: 640px; margin-left: auto; margin-right: auto; }

/* Services */
.service { padding: 64px 0; border-top: 1px solid var(--line); }
.service:first-of-type { border-top: 0; padding-top: 0; }
.service-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; }
.service .num { font-family: var(--sans); font-size: .78rem; font-weight: 600; color: var(--accent-dark); letter-spacing: .16em; }
.service h2 { margin-top: .3em; }
.service .tagline { font-family: var(--serif); font-size: 1.3rem; color: var(--navy); }
.service .figure { margin-top: 1.8rem; }
.checklist { list-style: none; padding: 0; margin: 0 0 2rem; columns: 2; column-gap: 32px; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: 10px; break-inside: avoid; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 16px; height: 9px; border-left: 2.5px solid var(--sage); border-bottom: 2.5px solid var(--sage);
  transform: rotate(-45deg) translateY(-3px);
}
.useful { background: var(--teal-soft); border-radius: var(--radius); padding: 22px 26px; }
.useful strong { display: block; color: var(--teal); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 6px; }
.useful p { margin: 0; }

/* Questions list */
.questions { list-style: none; padding: 0; margin: 1.5rem 0; counter-reset: q; }
.questions li {
  counter-increment: q; position: relative; padding: 16px 0 16px 56px; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: 1.3rem; color: var(--ink);
}
.questions li::before {
  content: counter(q, decimal-leading-zero); position: absolute; left: 0; top: 18px;
  font-family: var(--sans); font-size: .85rem; font-weight: 700; color: var(--terracotta);
}

/* Vertical process */
.process { list-style: none; padding: 0; margin: 0; position: relative; }
.process li { position: relative; padding: 0 0 32px 72px; }
.process li::before { content: ""; position: absolute; left: 23px; top: 48px; bottom: 0; width: 2px; background: var(--line); }
.process li:last-child::before { display: none; }
.process .step {
  position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: var(--white); display: grid; place-items: center; font-weight: 700; font-size: .95rem;
}
.process li:last-child .step { background: var(--terracotta); }
.process h3 { margin: 10px 0 4px; letter-spacing: .08em; font-family: var(--sans); font-size: 1rem; font-weight: 700; }
.process p { margin: 0; color: var(--ink-soft); }

/* About */
.portrait {
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--sage) 0%, var(--navy) 100%);
  display: grid; place-items: center; color: rgba(255,255,255,.9);
  font-family: var(--serif); font-size: 5rem; font-weight: 500; box-shadow: var(--shadow);
}
/* Founder photo: shown near its native size, framed by an offset brand block */
.founder-photo { max-width: 340px; margin: 0 16px 0 0; }
.founder-photo img {
  width: 100%; height: auto; aspect-ratio: 1;
  border-radius: var(--radius); box-shadow: 16px 16px 0 var(--navy);
}
.founder-photo figcaption { margin-top: 34px; font-size: .9rem; color: var(--muted); }
.founder-photo figcaption strong { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 400; color: var(--ink); }
.avatar { width: 112px; height: 112px; border-radius: 50%; margin: 0 auto 1rem; object-fit: cover; box-shadow: 0 0 0 5px var(--plum-soft); }
.creds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.5rem; padding: 0; list-style: none; }
.creds li { background: var(--plum-soft); color: var(--navy); font-weight: 500; padding: 8px 14px; border-radius: 8px; }
/* Attribution under Esther's own words (About: Why FIAS?) */
.quote-by { font-family: var(--serif); font-size: 1.3rem; color: var(--navy); }
blockquote.vision { margin: 0; font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.3; color: var(--ink); }

/* Contact */
.contact-card { text-align: center; padding: 56px 32px; }
.contact-card .name { font-family: var(--serif); font-size: 1.5rem; color: var(--navy); margin-bottom: .1em; }
.contact-card .role { color: var(--muted); margin-bottom: 1.5rem; }
.contact-card .btn-row { justify-content: center; margin-top: 1rem; }

/* Contact form */
.contact-layout { display: grid; grid-template-columns: 3fr 2fr; gap: 32px; align-items: start; }
.form-card h2 { font-size: 1.9rem; }
.muted { color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 6px; }
.field label span { color: var(--accent); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(116,86,105,.18); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
altcha-widget {
  display: block; margin: 4px 0 18px;
  --altcha-border-radius: 10px;
  --altcha-color-border: var(--line);
  --altcha-color-text: var(--ink);
  --altcha-color-base: var(--white);
  --altcha-color-border-focus: var(--navy);
  --altcha-color-error-text: #b42318;
  --altcha-max-width: 100%;
}
.form-status { min-height: 1.2em; margin: 0 0 12px; font-weight: 500; color: var(--teal); }
.form-status.error { color: #b42318; }
.form-card button[disabled] { opacity: .7; cursor: wait; transform: none; }
.form-note { margin: 14px 0 0; font-size: .85rem; color: var(--muted); }
.form-success { text-align: center; padding: 40px 10px; }
.form-success h3 { font-size: 1.5rem; }
.contact-layout .contact-card { padding: 40px 28px; position: sticky; top: 104px; }
.contact-layout .contact-card .btn { width: 100%; justify-content: center; }

/* Vision band (About) */
.vision-band { position: relative; padding: 0; background: #f3ece4; min-height: clamp(460px, 44vw, 640px); display: flex; align-items: center; }
.vision-band .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.vision-band::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(270deg, rgba(246,243,238,.95) 0%, rgba(246,243,238,.8) 35%, rgba(246,243,238,0) 62%);
}
.vision-band .container { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 80px; }
.vision-band .vision-copy { max-width: 500px; margin-left: auto; }

/* Footer */
.site-footer { background: var(--ink); color: #bdb3ad; padding: 64px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-footer .footer-h { font-weight: 700; font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cream); margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #ddd4ce; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer .logo { width: 220px; }
.site-footer .logo .logo-fias { font-size: 42px; color: #d8c3cf; }
.footer-tag { margin-top: 1.4rem; font-family: var(--serif); color: #ddd4ce; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 1000px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: 1fr; gap: 24px; }
  .media-hero::before { background: linear-gradient(90deg, rgba(243,236,228,.97) 0%, rgba(243,236,228,.9) 45%, rgba(243,236,228,.2) 75%); }
  .media-hero.flip::before { background: linear-gradient(270deg, rgba(243,236,228,.97) 0%, rgba(243,236,228,.9) 45%, rgba(243,236,228,.2) 75%); }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 82px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin: 16px 0 0; justify-content: center; border-radius: 999px; }
  .split, .grid-2, .grid-3, .compare, .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .contact-layout .contact-card { position: static; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
  .hero { padding: 72px 0 84px; }
  .portrait { max-width: 360px; }

  /* Image heroes stack: copy first, artwork below */
  .media-hero, .vision-band { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding: 56px 0 0; }
  .media-hero::before, .vision-band::before { display: none; }
  .media-hero .hero-img, .vision-band .hero-img {
    position: static; order: 2; height: auto; aspect-ratio: 4 / 3; object-position: 78% center; margin-top: 40px;
  }
  .media-hero.flip .hero-img, .vision-band .hero-img { object-position: 22% center; }
  .media-hero .hero-copy, .vision-band .vision-copy { max-width: none; }
  .vision-band .container { padding-top: 0; padding-bottom: 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .checklist { columns: 1; }
  .card { padding: 26px; }
  .card.has-media { padding: 0; }
  .btn-row .btn { width: 100%; justify-content: center; }
  .logo { width: 170px; }
  .logo-fias { font-size: 32px; }
  .logo-sub { font-size: 13px; }
}

/* ClickLearn 'What FIAS can help you create': tighter body text, clearer titles */
.create-grid .card { padding: 26px 22px; }
.create-grid h3 { color: var(--navy); margin-bottom: .7em; }
.create-grid p { line-height: 1.45; }
/* Line up where the body text starts, however many lines each title takes */
.create-grid .card { display: grid; grid-template-rows: subgrid; grid-row: span 2; row-gap: 0; align-content: start; }
