html { color-scheme: light; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
body.splash-page { background: #2F6FC4; }
.brand .brand-logo, .brand .custom-logo { display: block; height: 3.4rem; width: auto; }
.page-content { padding-block: clamp(2rem, 5vw, 4rem); }
.page-content > h1 { font-size: var(--step-3); margin-bottom: 1.2rem; }
.page-content p, .page-content li { max-width: 46rem; }
.enquiry .fine a { color: var(--accent); }

/* Layout: one calm column system. Wide hero with a ledger panel, two service blocks side by side,
   a four-step review sequence, then coverage and contact. Colour comes from lake teal on a cool neutral. */
:root {
  --bg: #F3F6F8;
  --surface: #FFFFFF;
  --fg: #0B2433;
  --muted: #4A6070;
  --line: #D3DDE4;
  --accent: #0F5D83;
  --accent-fg: #FFFFFF;
  --accent-soft: #DCE9F0;
  --logo: url("img/logo-wordmark.png");
  --logo-mark: url("img/logo-monogram.png");
  --mark-bg: transparent;
  --mark-pad: 0rem;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(2rem, 4.2vw, 2.75rem);
  --step-4: clamp(2.5rem, 6.4vw, 4.5rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1B26;
    --surface: #0F2938;
    --fg: #E8F1F6;
    --muted: #A3BAC8;
    --line: #20394A;
    --accent: #35A5DD;
    --accent-fg: #06202E;
    --accent-soft: #123347;
  --logo: url("img/logo-wordmark-light.png");
  --mark-bg: #F3F6F8;
  --mark-pad: 0.55rem;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A1B26;
  --surface: #0F2938;
  --fg: #E8F1F6;
  --muted: #A3BAC8;
  --line: #20394A;
  --accent: #35A5DD;
  --accent-fg: #06202E;
  --accent-soft: #123347;
  --logo: url("img/logo-wordmark-light.png");
  --mark-bg: #F3F6F8;
  --mark-pad: 0.55rem;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 10; background: var(--bg);
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%; max-width: 72rem; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
}

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.85rem; }
.brand { display: block; line-height: 0; text-decoration: none; }
.logo { display: block; height: 3.4rem; aspect-ratio: 1.873; background: var(--logo) left center / contain no-repeat; }
.logo--lg { height: 6rem; }
.logo-mark { display: block; height: 5rem; aspect-ratio: 1.2533; box-sizing: content-box; background-image: var(--logo-mark); background-repeat: no-repeat; background-position: center; background-size: contain; background-origin: content-box; background-color: var(--mark-bg); padding: var(--mark-pad); border-radius: 0.6rem; }
@media (max-width: 520px) { .logo-mark { height: 4.2rem; } }

@media (max-width: 520px) { .logo { height: 2.8rem; } .logo--lg { height: 5rem; } }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a.link { text-decoration: none; font-size: 0.95rem; color: var(--muted); }
.nav a.link:hover { color: var(--fg); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: 600 1rem/1 var(--font-body); text-decoration: none;
  padding: 0.95rem 1.4rem; border-radius: 0.5rem;
  background: var(--accent); color: var(--accent-fg); border: 1px solid var(--accent);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--fg); opacity: 1; }
.btn.small { padding: 0.65rem 1rem; font-size: 0.92rem; }
@media (max-width: 640px) { .nav a.link { display: none; } }

/* Hero */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: var(--step-4); font-weight: 700; margin-block: 1rem 1.4rem; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: var(--step-1); color: var(--muted); max-width: 34rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

.ledger {
  background: var(--surface); border: 1px solid var(--line); border-radius: 0.75rem;
  padding: 1.25rem 1.4rem 1rem; min-width: 0;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(8, 30, 45, 0.45);
}
.ledger header { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); }
.ledger header strong { font-family: var(--font-display); font-size: 1.1rem; }
.ledger header span { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.ledger dl { margin: 0; }
.ledger .row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px dashed var(--line); }
.ledger .row:last-child { border-bottom: 0; }
.ledger dt { font-size: 0.97rem; }
.ledger dd { margin: 0; font-family: var(--font-mono); font-size: 0.8rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.5rem; color: var(--muted); }
.ledger dd::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--accent); }
.ledger dd.open::before { background: transparent; border: 2px solid var(--accent); }
.ledger footer { font-size: 0.8rem; color: var(--muted); padding-top: 0.9rem; border-top: 1px solid var(--line); }

/* Sections */
section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); display: grid; gap: 0.9rem; }
.section-head h2 { font-size: var(--step-3); font-weight: 700; }
.section-head p { color: var(--muted); }
.band { background: var(--surface); border-block: 1px solid var(--line); }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (max-width: 820px) { .services { grid-template-columns: minmax(0, 1fr); } }
.service { border-top: 3px solid var(--fg); padding-top: 1.4rem; display: grid; gap: 1.1rem; align-content: start; }
.service .tag { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.service h3 { font-size: var(--step-2); font-weight: 700; }
.service > p { color: var(--muted); }
.ticks { list-style: none; margin: 0.25rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.ticks li { position: relative; padding-left: 1.7rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 0.9rem; height: 0.5rem;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) translateY(-30%);
}

/* Review sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 0 1.4rem 0 0; border-top: 1px solid var(--line); padding-top: 1.2rem; display: grid; gap: 0.6rem; align-content: start; position: relative; }
.steps li::before { content: "Step " counter(s); font-family: var(--font-mono); font-size: var(--step--1); color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase; }
.steps li::after { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.steps h3 { font-size: var(--step-1); font-weight: 700; }
.steps p { color: var(--muted); font-size: 0.97rem; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Experience */
.experience .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .experience .wrap { grid-template-columns: minmax(0, 1fr); } }
.art-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0; min-width: 0; }
@media (max-width: 520px) { .art-pair { grid-template-columns: minmax(0, 1fr); } }
.art-pair figure, .service figure { margin: 0; display: grid; gap: 0.6rem; min-width: 0; }
.art-pair figcaption, .service figcaption { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.04em; color: var(--muted); }
.art { display: block; width: 100%; height: auto; max-width: 100%; border-radius: 0.75rem; }
.a-bg { fill: var(--accent-soft); } .a-surf { fill: var(--surface); } .a-fg { fill: var(--fg); } .a-acc { fill: var(--accent); } .a-mut { fill: var(--muted); }
.a-line { stroke: var(--line); fill: none; } .a-s-acc { stroke: var(--accent); fill: none; } .a-s-fg { stroke: var(--fg); fill: none; } .a-s-surf { stroke: var(--surface); fill: none; }
.big { font-family: var(--font-display); font-weight: 700; font-size: clamp(5rem, 14vw, 9rem); line-height: 0.9; letter-spacing: -0.05em; color: var(--accent); font-variant-numeric: tabular-nums; }
.big small { display: block; font-size: var(--step-1); letter-spacing: -0.01em; color: var(--fg); margin-top: 0.6rem; line-height: 1.2; }
.experience .copy { display: grid; gap: 1.1rem; }
.experience .copy h2 { font-size: var(--step-3); font-weight: 700; }
.experience .copy p { color: var(--muted); max-width: 36rem; }
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; margin-top: 0.8rem; }
@media (max-width: 520px) { .values { grid-template-columns: minmax(0, 1fr); } }
.values h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; margin-bottom: 0.25rem; }
.values p { font-size: 0.95rem; }

.photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 0.75rem; background: var(--accent-soft); }
.banner { margin: 2.2rem 0 0; display: grid; gap: 0.6rem; }
.banner .photo { aspect-ratio: 16 / 7; }
.banner figcaption { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.04em; color: var(--muted); }
@media (max-width: 520px) { .banner .photo { aspect-ratio: 3 / 2; } }
.contact-photo { aspect-ratio: 16 / 10; max-width: 32rem; }

/* Coverage */
.regions { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 0; }
.regions li { border: 1px solid var(--line); background: var(--surface); padding: 0.55rem 0.95rem; border-radius: 999px; font-size: 0.95rem; }
.regions li.home { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); font-weight: 600; }
.coverage-note { margin-top: 1.6rem; color: var(--muted); max-width: 40rem; }

/* Contact */
.contact { background: var(--fg); color: var(--bg); }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 760px) { .contact .wrap { grid-template-columns: minmax(0, 1fr); } }
.contact .eyebrow { color: var(--accent-soft); }
.contact h2 { font-size: var(--step-3); font-weight: 700; margin-block: 0.9rem 1rem; }
.contact p { opacity: 0.8; max-width: 32rem; }
.details a.mail { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.details a.mail:hover { text-decoration-thickness: 2px; }
.contact .intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; align-content: start; }
.details div { border-top: 1px solid color-mix(in srgb, var(--bg) 30%, transparent); padding-top: 0.8rem; }
.details dt { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.65; }
.details dd { margin: 0.25rem 0 0; font-size: var(--step-1); font-family: var(--font-display); font-weight: 600; overflow-wrap: anywhere; }
.details { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.2rem; margin: 0; max-width: 40rem; }


/* Enquiry form */
.enquiry { background: var(--surface); color: var(--fg); border-radius: 0.75rem; padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1.1rem; min-width: 0; }
.enquiry h3 { font-size: var(--step-1); font-weight: 700; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: 0.4rem; min-width: 0; }
.field.full { grid-column: 1 / -1; }
@media (max-width: 520px) { .fields { grid-template-columns: minmax(0, 1fr); } }
.field label { font-size: 0.9rem; font-weight: 600; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: 0.5rem; padding: 0.75rem 0.85rem;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field .err { color: #B3261E; font-size: 0.85rem; min-height: 0; }
:root[data-theme="dark"] .field .err { color: #FF9C94; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field .err { color: #FF9C94; } }
.enquiry .btn { justify-self: start; cursor: pointer; }
.enquiry .fine { font-size: 0.85rem; color: var(--muted); max-width: none; opacity: 1; }
.ready { border: 1px solid var(--accent); background: var(--accent-soft); border-radius: 0.5rem; padding: 1rem 1.1rem; display: grid; gap: 0.75rem; }
.ready p { color: var(--fg); opacity: 1; max-width: none; font-size: 0.95rem; }
.ready .row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.ready .addr { font-family: var(--font-mono); font-size: 0.9rem; overflow-wrap: anywhere; user-select: all; }

/* Footer */
footer.site-footer { border-top: 1px solid var(--line); padding-block: 1.6rem; color: var(--muted); font-size: 0.9rem; }
footer.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 1.5rem; }
.foot-meta { display: grid; gap: 0.2rem; justify-items: end; text-align: right; }
@media (max-width: 520px) { .foot-meta { justify-items: start; text-align: left; } }

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

/* Welcome screen: the whole picture always fits the window; the button sits just under the logo */
.splash { --splash-ratio-num: 1.7778; position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; background: #2F6FC4; }
.splash::before { content: ""; position: absolute; inset: -6%; z-index: -1; background: var(--splash-url) 0% 50% / cover no-repeat; filter: blur(26px) saturate(1.05); }
@media (min-aspect-ratio: 1778 / 1000) { .splash::before { background-size: 100% 100%; background-position: center; } }
.splash-stage { position: relative; container-type: inline-size; width: min(100vw, 177.78vh); width: min(100vw, calc(100svh * var(--splash-ratio-num))); aspect-ratio: 2576 / 1449; }
.splash-pic { position: absolute; inset: 0; background: var(--splash-url) center / contain no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 4%, #000 96%, transparent 100%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 4%, #000 96%, transparent 100%); mask-composite: intersect; }
.splash-btn { position: absolute; left: 50%; top: 60%; transform: translateX(-50%); z-index: 2; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; text-decoration: none;
  background: #FFFFFF; color: #0F5D83; font-family: var(--font-body); font-weight: 600; line-height: 1; font-size: clamp(0.9rem, 1.9vw, 1.3rem); font-size: clamp(0.9rem, 2.1cqw, 1.35rem);
  padding: 1em 2.1em; border-radius: 999px; box-shadow: 0 10px 30px -12px rgba(5, 25, 60, 0.6); transition: transform 0.15s ease; }
.splash-btn:hover { transform: translateX(-50%) translateY(-2px); }
.splash-btn:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .splash-btn { transition: none; } }
/* Experience section has text only */
.experience .wrap { grid-template-columns: minmax(0, 1fr); }
.experience .copy { max-width: 46rem; }



/* Enquiry form extras */
.field.checks { border: 0; padding: 0; margin: 0; min-width: 0; }
.field.checks legend { font-size: 0.9rem; font-weight: 600; padding: 0; margin-bottom: 0.5rem; }
.check { display: flex; align-items: center; gap: 0.65rem; font-weight: 500 !important; font-size: 1rem !important; padding: 0.35rem 0; cursor: pointer; }
.check input { width: 1.25rem; height: 1.25rem; flex: none; accent-color: var(--accent); padding: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field input[aria-invalid="true"] { border-color: #B3261E; }
.enquiry .status { font-size: 0.95rem; max-width: none; padding: 0.8rem 1rem; border-radius: 0.5rem; }
.enquiry .status.good { background: var(--accent-soft); color: var(--fg); border: 1px solid var(--accent); }
.enquiry .status.bad { color: #B3261E; border: 1px solid #B3261E; }
.enquiry .btn:disabled { opacity: 0.6; cursor: wait; }

/* Thank-you page */
.thanks { min-height: 100svh; display: grid; align-items: center; }
.thanks .wrap { display: grid; gap: 1.2rem; justify-items: start; padding-block: 3rem; }
.thanks h1 { font-size: var(--step-3); }
.thanks p { max-width: 32rem; color: var(--muted); }
.contact .details { grid-template-columns: minmax(0, 1fr); }
.contact .details dd { overflow-wrap: normal; word-break: normal; font-size: clamp(1.05rem, 2.2vw, 1.35rem); }

/* Security check */
.captcha { min-height: 70px; }
.cap-help { color: var(--muted); font-size: 0.85rem; }
.cap-help a { text-decoration: underline; }

/* South African emigration services */
.emigration { background: var(--accent-soft); border-block: 1px solid var(--line); }
.emigration .eyebrow { color: var(--accent); }
.emigration .service { border-top-color: var(--accent); }
.emig-steps { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.notes > div { background: var(--surface); border: 1px solid var(--line); border-radius: 0.75rem; padding: 1.25rem 1.3rem; display: grid; gap: 0.5rem; align-content: start; }
.notes h3 { font-size: var(--step-1); font-weight: 700; }
.notes p { color: var(--muted); font-size: 0.97rem; }
@media (max-width: 820px) { .notes { grid-template-columns: minmax(0, 1fr); } }
.emigration .disclaimer { margin-top: 1.75rem; font-size: 0.85rem; color: var(--muted); max-width: 46rem; }
.emigration .disclaimer + p { margin-top: 1.25rem; }
