/* =========================================================================
   Southern Ledger — main stylesheet
   Design: Swiss financial print (design-profiles/brutalist.md) on a warm
   Australian paper substrate. One accent, ink text, disciplined rules,
   ledger geometry, mono data labels. design.md is the authority.
   ========================================================================= */

/* ---- 1. Tokens ---------------------------------------------------------- */
:root {
  --bg:            #F6F1E7;
  --surface:       #FCFAF4;
  --surface-2:     #EDE6D6;
  --border:        #DCD2BE;
  --border-strong: #C7B99D;
  --text:          #241F1A;
  --text-muted:    #6A6152;
  --accent:        #A93B2A;
  --accent-hover:  #8C2E1F;
  --accent-tint:   rgba(169, 59, 42, 0.08);
  --accent-line:   rgba(169, 59, 42, 0.28);
  --ink-rule:      rgba(36, 31, 26, 0.14);
  --ink-grid:      rgba(36, 31, 26, 0.055);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(46, 36, 26, 0.07), 0 2px 6px rgba(46, 36, 26, 0.05);
  --shadow-md: 0 1px 2px rgba(46, 36, 26, 0.08), 0 10px 28px rgba(46, 36, 26, 0.10);
  --shadow-lg: 0 2px 4px rgba(46, 36, 26, 0.09), 0 18px 44px rgba(46, 36, 26, 0.14);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --container-pad: clamp(16px, 4vw, 40px);
}

/* ---- 2. Base ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, iframe, video, canvas { max-width: 100%; }

h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 0.6em; font-weight: 800; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.05rem, 4.6vw, 3.35rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3 { font-size: 1.18rem; font-weight: 700; }
p  { margin: 0 0 1em; }
a  { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 700;
}
.skip-link:focus { left: 0; color: #fff; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--container-pad); }

.icon { width: 24px; height: 24px; flex: none; }
.icon--sm { width: 18px; height: 18px; }
.icon--xs { width: 14px; height: 14px; }

/* Mono micro label — the Swiss-print data voice. Rationed, never body text. */
.mono-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.mono-label--accent { color: var(--accent); }

/* ---- 3. Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 700; font-size: 0.98rem;
  line-height: 1.2; padding: 13px 26px; min-height: 48px;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease,
              transform 160ms ease, border-color 160ms ease;
}
.btn--primary {
  background: var(--accent); color: #fff; box-shadow: var(--shadow-sm);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--accent-hover); color: #fff;
  transform: translateY(-1px); box-shadow: var(--shadow-md);
}
.btn--primary:active { transform: translateY(0); background: var(--accent-hover); }
.btn--secondary {
  background: transparent; color: var(--accent);
  border-color: var(--accent-line);
}
.btn--secondary:hover, .btn--secondary:focus-visible {
  background: var(--accent-tint); color: var(--accent-hover);
  border-color: var(--accent); transform: translateY(-1px);
}
.btn--sm { padding: 9px 18px; min-height: 40px; font-size: 0.9rem; }

/* ---- 4. Header, nav, dropdowns ------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 241, 231, 0.92);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 180ms ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); background: var(--bg); }

.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__plate { fill: #241F1A; }
.brand__rule  { stroke: #8A7F6C; stroke-width: 1.2; opacity: 0.65; }
.brand__path, .brand__tick { fill: none; stroke: #D96A4B; stroke-width: 3; stroke-linecap: square; }
.brand__word { font-weight: 800; font-size: 1.16rem; letter-spacing: -0.02em; white-space: nowrap; }
.brand__word-main { color: var(--text); }
.brand__word-accent { color: var(--accent); }

.site-nav { margin-left: auto; }
.site-nav__list { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }

.site-nav__trigger {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 0.95rem; color: var(--text);
  padding: 10px 14px; border-radius: var(--radius-sm);
  transition: background 140ms ease, color 140ms ease;
}
.site-nav__trigger:hover { background: var(--accent-tint); color: var(--accent-hover); }
.site-nav__caret { transition: transform 160ms ease; }
.site-nav__trigger[aria-expanded="true"] .site-nav__caret { transform: rotate(180deg); }

.site-nav__panel {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 272px; max-width: 340px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  padding: 8px; z-index: 110;
  opacity: 0; transform: translateY(4px); visibility: hidden;
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms;
}
.site-nav__item--group { position: relative; }
.site-nav__item--group.is-open > .site-nav__panel,
.site-nav__item--group:focus-within > .site-nav__panel {
  opacity: 1; transform: translateY(0); visibility: visible;
}
.site-nav__panel::before {
  content: ""; position: absolute; top: -5px; left: 22px;
  width: 10px; height: 10px; background: var(--bg);
  border-left: 1px solid var(--border); border-top: 1px solid var(--border);
  transform: rotate(45deg);
}
.site-nav__item--group.is-edge > .site-nav__panel { left: auto; right: 0; }
.site-nav__item--group.is-edge > .site-nav__panel::before { left: auto; right: 22px; }

.site-nav__panel-list { list-style: none; margin: 0; padding: 0; }
.site-nav__link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px;
  color: var(--text); font-weight: 600; font-size: 0.92rem; text-decoration: none;
  transition: background 130ms ease, color 130ms ease;
}
.site-nav__link:hover, .site-nav__link:focus-visible { background: var(--accent-tint); color: var(--accent-hover); }
.site-nav__link .icon { color: var(--accent); }
.site-nav__link.is-active { background: var(--accent-tint); color: var(--accent-hover); }

.site-header__cta { flex: none; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 9px; cursor: pointer;
  color: var(--text); line-height: 0;
}
.nav-toggle__icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon--close { display: inline; }

/* ---- 5. Hero ------------------------------------------------------------- */
.hero {
  position: relative; overflow: clip;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(252, 250, 244, 0.55) 0%, rgba(246, 241, 231, 0) 62%),
    var(--bg);
}
.hero__texture {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 27px, var(--ink-grid) 27px 28px),
    repeating-linear-gradient(90deg, transparent 0 27px, var(--ink-grid) 27px 28px);
  mask-image: radial-gradient(120% 90% at 30% 12%, #000 32%, rgba(0,0,0,0.25) 68%, transparent 92%);
}
.hero__motif { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
  padding-block: clamp(48px, 7vw, 88px);
}
.hero__copy .mono-label { display: block; margin-bottom: 14px; }
.hero__title { margin-bottom: 0.45em; }
.hero__title .accent { color: var(--accent); }
.hero__lead { font-size: 1.12rem; color: var(--text-muted); max-width: 34em; }
.hero__aside { display: grid; gap: 18px; }

.hero__badges { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 14px;
  font-weight: 700; font-size: 0.9rem; color: var(--text);
  text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}
.hero__badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); color: var(--text); }
.hero__badge .icon { color: var(--accent); }

.hero__flags {
  display: flex; align-items: center; gap: 12px;
  margin-block-start: 1rem;
  font-size: 0.92rem; color: var(--text-muted);
}
.hero__flag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 14px 7px 10px;
}
.hero__flag .flag-au-svg {
  width: 30px; height: 20px; border-radius: 3px; flex: none; display: block;
  box-shadow: inset 0 0 0 1px rgba(36,31,26,0.18);
}

.hero__form-note {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.88rem; color: var(--text-muted); margin: 0;
}
.hero__form-note .icon { color: var(--accent); }

/* Motif SVG (ledger chart) */
.ledger-motif { width: 100%; height: 100%; opacity: 0.55; }
.hero__motif { opacity: 0.8; }

/* ---- 6. Sections & decorative bands -------------------------------------- */
.section { position: relative; padding-block: clamp(48px, 6vw, 84px); }
.section--tint { background: var(--surface-2); border-block: 1px solid var(--border); }
.section--paper { background: var(--surface); }
.section--grid-bg { background-image: repeating-linear-gradient(0deg, transparent 0 27px, var(--ink-grid) 27px 28px); }
.section__head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.section__head .mono-label { display: block; margin-bottom: 10px; }
.section__lead { color: var(--text-muted); font-size: 1.05rem; }

/* Swiss double rule under each section heading */
.rule-head { position: relative; padding-bottom: 16px; }
.rule-head::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 5px;
  background:
    linear-gradient(0deg, var(--accent) 0 2px, transparent 2px 4px, var(--accent) 4px 5px);
}

/* ---- 7. Cards, icon badges, grids ---------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid--stagger { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--stagger > :nth-child(even) { transform: translateY(14px); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  padding: 24px; position: relative;
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card h3 { display: flex; align-items: center; gap: 12px; }
.card p:last-child { margin-bottom: 0; }
.card__meta { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }

.icon-badge {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 48px; height: 48px; border-radius: 13px;
  background: var(--accent-tint); color: var(--accent);
  border: 1px solid var(--accent-line);
}
.icon-badge .icon { width: 24px; height: 24px; }
.icon-badge--sm { width: 40px; height: 40px; border-radius: 11px; }
.icon-badge--sm .icon { width: 20px; height: 20px; }
.icon-badge--ink { background: rgba(36,31,26,0.06); color: var(--text); border-color: var(--border-strong); }

.card--icon-row { display: flex; gap: 16px; align-items: flex-start; }
.card--link { text-decoration: none; color: var(--text); display: block; }
.card--link:hover { color: var(--text); }
.card--link .card__go {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  color: var(--accent); font-weight: 700; font-size: 0.92rem;
}

/* Numbered steps — small accent circle, never a giant numeral */
.step { display: flex; gap: 16px; align-items: flex-start; }
.step__num {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.9rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.35em; }
.step p { color: var(--text-muted); margin: 0; }

/* ---- 8. Tables ------------------------------------------------------------ */
.table-wrap {
  overflow-x: auto; border: 1px solid var(--border);
  border-radius: var(--radius-md); background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.table { width: 100%; border-collapse: collapse; min-width: 560px; }
.table th, .table td { padding: 13px 16px; text-align: left; vertical-align: top; font-size: 0.94rem; }
.table thead th {
  background: var(--surface-2); font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text); border-bottom: 2px solid var(--border-strong);
}
.table tbody tr + tr td { border-top: 1px solid var(--border); }
.table tbody tr:nth-child(even) td { background: rgba(36, 31, 26, 0.022); }
.table .ok  { color: #2E6B3E; font-weight: 700; }
.table .no  { color: var(--accent); font-weight: 700; }
.table td .mono, .table .mono { font-family: var(--font-mono); font-size: 0.85rem; }

.compare-col { background: var(--accent-tint) !important; }

/* ---- 9. Exchange logos ----------------------------------------------------- */
.xlogos { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.xlogo-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 168px; height: 60px; border-radius: 12px;
  border: 1px solid var(--border); background: #ffffff;
  box-shadow: var(--shadow-sm); flex: none;
}
.xlogo-chip--dark { background: #0f172a; }
.xlogo-chip img { height: 28px; width: auto; display: block; }

/* ---- 10. Form block --------------------------------------------------------- */
.form-block {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: clamp(20px, 3vw, 32px);
}
.form-block__title { font-size: 1.05rem; margin-bottom: 4px; }
.form-block__intro { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 14px; }
.form-legal { font-size: 0.8rem; color: var(--text-muted); margin: 12px 0 0; }
.form-legal a { color: var(--accent); }

/* ---- 11. Reviews ------------------------------------------------------------ */
.review {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 22px;
  transition: transform 170ms ease, box-shadow 170ms ease;
}
.review:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.review__photo {
  width: 64px; height: 64px; border-radius: 50%; flex: none;
  border: 2px solid var(--accent-line); object-fit: cover; display: block;
}
.review__name { font-weight: 800; margin: 0; font-size: 1rem; }
.review__role { font-size: 0.84rem; color: var(--text-muted); margin: 2px 0 10px; }
.review__text { font-size: 0.95rem; margin-bottom: 12px; }
.review__stats {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0;
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.04em;
  color: var(--text-muted);
}
.review__stats b { color: var(--text); font-weight: 700; }
.review__stats .up { color: #2E6B3E; }
.reviews-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 16px; }

/* ---- 12. Company facts block ------------------------------------------------- */
.company-facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.fact-list { list-style: none; margin: 18px 0 0; padding: 0; }
.fact-list li {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 2px;
  border-top: 1px solid var(--border); font-size: 0.95rem;
}
.fact-list .icon { color: var(--accent); margin-top: 2px; }

/* ---- 13. FAQ accordion --------------------------------------------------------- */
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  margin-bottom: 12px; overflow: hidden;
}
.faq-item__trigger {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  width: 100%; background: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; text-align: left;
  padding: 17px 20px; color: var(--text);
}
.faq-item__trigger:hover { color: var(--accent-hover); }
.faq-item__icon { color: var(--accent); transition: transform 160ms ease; flex: none; }
.faq-item__trigger[aria-expanded="true"] .faq-item__icon { transform: rotate(180deg); }
.faq-item__panel { padding: 0 20px 18px; color: var(--text-muted); }
.faq-item__panel[hidden] { display: none; }
.faq-item__panel p:last-child { margin-bottom: 0; }

/* ---- 14. Breadcrumbs ------------------------------------------------------------ */
.breadcrumbs { background: var(--surface-2); border-bottom: 1px solid var(--border); }
.breadcrumbs__list {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  list-style: none; margin: 0; padding: 11px 0;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted);
}
.breadcrumbs__item { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs__item a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs__item a:hover { color: var(--accent-hover); }
.breadcrumbs__sep { color: var(--accent); transform: rotate(-90deg); }

/* ---- 15. Page hero (inner pages) -------------------------------------------------- */
.page-hero {
  position: relative; overflow: clip;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(90% 120% at 85% 0%, rgba(169, 59, 42, 0.06), transparent 55%),
    var(--bg);
}
.page-hero__texture {
  position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(0deg, transparent 0 27px, var(--ink-grid) 27px 28px);
  mask-image: radial-gradient(110% 100% at 20% 0%, #000 30%, transparent 85%);
}
.page-hero__inner {
  position: relative; display: grid; gap: clamp(24px, 4vw, 56px);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center; padding-block: clamp(40px, 5.5vw, 72px);
}
.page-hero__inner--single { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.page-hero .mono-label { display: block; margin-bottom: 12px; }
.page-hero__lead { font-size: 1.08rem; color: var(--text-muted); max-width: 36em; }

/* ---- 16. Content prose -------------------------------------------------------------- */
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.9em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose .table-wrap { margin: 1.4em 0; }

.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.doc-list li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.doc-list .icon { color: var(--accent); margin-top: 2px; }

/* Timeline (About history) */
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--accent-line); }
.timeline li { position: relative; padding: 0 0 26px 18px; }
.timeline li::before {
  content: ""; position: absolute; left: -26px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--accent);
}
.timeline .timeline__year {
  font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.12em; color: var(--accent); display: block; margin-bottom: 4px;
}
.timeline p { margin: 0; color: var(--text-muted); }

/* Map embed */
.map-embed {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-md); max-width: 880px;
  aspect-ratio: 16 / 9; min-height: 320px; background: var(--surface-2);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Callout */
.callout {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--accent-tint); border: 1px solid var(--accent-line);
  border-radius: var(--radius-md); padding: 18px 20px;
}
.callout .icon { color: var(--accent); flex: none; margin-top: 2px; }
.callout p { margin: 0; font-size: 0.95rem; }

/* Vacancies */
.vacancy {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 24px;
  display: grid; gap: 8px 18px; grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}
.vacancy h3 { margin: 0; grid-column: 1; }
.vacancy .vacancy__meta {
  grid-column: 1; font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted);
}
.vacancy p { grid-column: 1; margin: 4px 0 0; color: var(--text-muted); }
.vacancy .vacancy__apply { grid-column: 2; grid-row: 1 / span 3; align-self: center; }

/* ---- 17. Calculator section ------------------------------------------------------- */
.calc-section { position: relative; overflow: clip; }
.calc-section__canvas { position: absolute; inset: 0; pointer-events: none; opacity: 0.55; }

/* ---- 18. Ticker row ------------------------------------------------------------------ */
.ticker-row-slot { border-bottom: 1px solid var(--border); background: var(--surface-2); }

/* ---- 19. Footer ------------------------------------------------------------------------- */
.site-footer { background: #241F1A; color: #E9E2D4; border-top: 4px solid var(--accent); margin-top: 0; }
.site-footer__grid {
  display: grid; gap: 32px; padding-block: clamp(40px, 5vw, 64px);
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 0.75fr));
}
.brand--footer .brand__word-main { color: #F4EFE3; }
.brand--footer .brand__word-accent { color: #E08A6E; }
.brand--footer .brand__plate { fill: #322B23; }
.brand--footer .brand__rule { stroke: #6A6152; }
.brand--footer .brand__path, .brand--footer .brand__tick { stroke: #D96A4B; }
.site-footer__lead { color: #C9C0AD; font-size: 0.95rem; max-width: 34em; }
.site-footer__meta { font-size: 0.88rem; color: #C9C0AD; line-height: 2; margin-bottom: 0; }
.site-footer__meta .icon { color: #E08A6E; vertical-align: -3px; margin-right: 4px; }
.site-footer__meta a { color: #E9E2D4; }
.site-footer__heading {
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: #E08A6E; margin-bottom: 14px;
}
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col li { margin-bottom: 9px; }
.site-footer__col a { color: #DDD5C2; text-decoration: none; font-size: 0.9rem; }
.site-footer__col a:hover { color: #fff; text-decoration: underline; }
.site-footer__disclaimer { border-top: 1px solid rgba(233, 226, 212, 0.18); padding-block: 26px 30px; }
.site-footer__disclaimer-heading {
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: #E08A6E; margin-bottom: 10px;
}
.site-footer__disclaimer p { color: #B4AB97; font-size: 0.82rem; margin-bottom: 12px; }
.site-footer__copy { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; color: #8F8672; margin: 0; }

/* ---- 20. Special offer page ----------------------------------------------------------- */
.urgency-strip { background: var(--accent); color: #fff; }
.urgency-strip__inner {
  display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center;
  padding-block: 10px; font-family: var(--font-mono);
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.urgency-strip__inner span { display: inline-flex; align-items: center; gap: 8px; }
.urgency-strip__inner .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #FFD9CC; flex: none;
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .urgency-strip__inner .dot { animation: none; } }

.offer-hero { position: relative; overflow: clip; background: linear-gradient(180deg, rgba(169,59,42,0.07), transparent 60%), var(--bg); border-bottom: 1px solid var(--border); }
.countdown { display: inline-flex; align-items: center; gap: 8px; }
.countdown__seg {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 58px; padding: 10px 8px;
  background: #241F1A; color: #FFD9CC; border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700;
  letter-spacing: 0.06em; font-variant-numeric: tabular-nums;
}
.countdown__sep { color: var(--accent); font-weight: 800; font-size: 1.3rem; }

.offer-modal {
  position: fixed; inset: 0; z-index: 300; display: none;
  align-items: center; justify-content: center; padding: 20px;
}
.offer-modal.is-open { display: flex; }
.offer-modal__overlay { position: absolute; inset: 0; background: rgba(20, 16, 12, 0.62); }
.offer-modal__card {
  position: relative; z-index: 1; width: min(480px, 100%);
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 30px 28px 28px; text-align: center;
  animation: offer-pop 200ms ease;
}
@keyframes offer-pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .offer-modal__card { animation: none; } }
.offer-modal__close {
  position: absolute; top: 12px; right: 12px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  width: 36px; height: 36px; border-radius: 50%; font-size: 1.2rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.offer-modal__close:hover { background: var(--accent-tint); color: var(--accent-hover); }
.offer-modal__art { margin: 4px auto 14px; display: block; }

.final-cta {
  background: #241F1A; color: #F4EFE3; border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 52px); text-align: center;
  box-shadow: var(--shadow-lg); position: relative; overflow: clip;
}
.final-cta h2 { color: #fff; }
.final-cta::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px;
  border: 1px solid rgba(224, 138, 110, 0.25); border-radius: 50%;
}

/* ---- 21. 404 ------------------------------------------------------------------------------ */
.error-page { text-align: center; padding-block: clamp(60px, 10vw, 120px); }
.error-page__code {
  font-family: var(--font-mono); font-weight: 700; font-size: clamp(4rem, 14vw, 8rem);
  color: var(--accent); line-height: 1; letter-spacing: -0.04em; margin-bottom: 12px;
}

/* ---- 22. Scroll reveal --------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(8px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 400ms ease, transform 400ms ease; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .grid--stagger > :nth-child(even) { transform: none; }
}

/* ---- 23. Responsive ------------------------------------------------------------------------ */
@media (max-width: 1020px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero__inner, .page-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__form-note { margin-top: 2px; }
  .vacancy { grid-template-columns: minmax(0, 1fr); }
  .vacancy .vacancy__apply { grid-column: 1; grid-row: auto; justify-self: start; }
  .company-facts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-header__cta { display: none; }
  .site-nav {
    position: fixed; inset: 72px 0 auto 0; top: 72px; z-index: 99;
    background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 72px); overflow-y: auto;
    display: none; padding: 10px var(--container-pad) 26px;
  }
  .site-nav.is-open { display: block; }
  .site-nav__list { display: block; }
  .site-nav__trigger { width: 100%; justify-content: space-between; padding: 14px 4px; border-radius: 0; border-bottom: 2px solid var(--border); }
  .site-nav__trigger:hover { background: none; }
  .site-nav__panel {
    position: static; opacity: 1; transform: none; visibility: visible;
    box-shadow: none; border: 0; padding: 4px 0 8px; max-width: none; min-width: 0;
    display: none; background: transparent;
  }
  .site-nav__panel::before { display: none; }
  .site-nav__item--group.is-open > .site-nav__panel { display: block; }
  .site-nav__link { padding: 11px 6px; border-bottom: 1px solid var(--ink-rule); border-radius: 0; }
  .site-nav__item--mobile-only { display: block; margin-top: 18px; }
  .site-nav__item--mobile-only .site-nav__link {
    border: 0; color: #fff; background: var(--accent);
    justify-content: center; border-radius: var(--radius-sm);
  }
}
@media (min-width: 861px) {
  .site-nav__item--mobile-only { display: none; }
}
@media (max-width: 560px) {
  .brand__word { font-size: 1.02rem; }
  .xlogo-chip { width: 148px; height: 54px; }
  .xlogo-chip img { height: 24px; }
  .countdown__seg { min-width: 50px; font-size: 1.25rem; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero__flags { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Shared widget sizing and phone field contrast */
.tv-ticker-wrapper {
  padding-top: 0px !important;
  height: 58px !important;
}

.iti__selected-country,
.iti__selected-dial-code {
  color: rgb(24, 33, 47) !important;
}

/* Homepage hero photography */
.hero.hero--photo {
  --hero-scrim: 246, 241, 231;
  --hero-overlay: linear-gradient(90deg, rgba(var(--hero-scrim), .98) 0%, rgba(var(--hero-scrim), .91) 27%, rgba(var(--hero-scrim), .76) 43%, rgba(var(--hero-scrim), .18) 58%, transparent 67%, rgba(var(--hero-scrim), .76) 100%);
  background-color: rgb(var(--hero-scrim));
  background-image: var(--hero-overlay), url('../images/hero-melbourne-panorama.webp');
  background-position: center, 51% center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero--photo .hero__motif {
  display: none;
}

.hero--photo .hero__texture {
  opacity: .25;
}

@media (max-width: 900px) {
  .hero.hero--photo {
    --hero-overlay: linear-gradient(180deg, rgba(var(--hero-scrim), .93) 0%, rgba(var(--hero-scrim), .78) 22%, rgba(var(--hero-scrim), .50) 47%, rgba(var(--hero-scrim), .91) 100%);
    background-position: center, 51% center;
  }
}

/* Registration link in the site navigation */
:is(a.btn, a.site-nav__link).nav-signup {
  min-height: 44px;
  gap: .55rem;
  padding: .46rem .85rem .46rem .58rem;
  border: 1px solid #be563f;
  border-radius: 5px;
  background: linear-gradient(135deg, #b94a36, #943224);
  color: #fff;
  box-shadow: 0 4px 11px #9432244d, inset 0 1px 0 #ffffff52;
  font-weight: 750;
  line-height: 1.15;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.site-nav__link.nav-signup { display: inline-flex; }
.nav-signup .nav-signup__icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  padding: 4px;
  border-radius: 5px;
  background: #ffffff42;
  color: #ffe0be;
}
:is(a.btn, a.site-nav__link).nav-signup:hover {
  background: linear-gradient(135deg, #ca5040, #943224);
  color: #fff;
  box-shadow: 0 5px 16px #94322480, inset 0 1px 0 #ffffff66;
  transform: translateY(-1px);
}
:is(a.btn, a.site-nav__link).nav-signup:active { transform: translateY(0); }
.nav-signup:focus-visible { outline: 2px solid #be563f; outline-offset: 3px; }

a.site-header__cta.nav-signup { display: inline-flex; }
@media (max-width: 519px) {
  a.site-header__cta.nav-signup {
    position: relative;
    min-width: 44px;
    padding-inline: 7px;
  }
  a.site-header__cta.nav-signup > span {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* Homepage hero */
.hero--photo .hero__inner {
  grid-template-areas: "title form" "details form";
  row-gap: 1.15rem;
  align-items: start;
}
.hero--photo .hero__copy { grid-area: title; }
.hero--photo .hero__title {
  max-width: 17ch;
  font-size: clamp(2.05rem, 4.25vw, 4.2rem);
  line-height: 1.02;
  margin-bottom: 0;
  text-wrap: balance;
}
.hero--photo .hero__details { grid-area: details; }
.hero--photo .hero__lead { color: #3a2d24; }
.hero--photo .hero__aside {
  grid-area: form;
  align-self: center;
  justify-self: end;
  width: min(100%, 28rem);
  gap: .6rem;
  padding: 1.25rem;
  border: 1px solid #bfae99;
  border-block: 3px double var(--accent);
  background: #fbf6eb;
  box-shadow: 9px 9px 0 #70543a36, 0 20px 40px #2f211544;
}
.hero--photo .hero__aside > .form-block__title {
  padding-bottom: .65rem;
  margin: 0;
  border-bottom: 1px solid #c7b8a4;
  color: #592b21;
}
.hero--photo .hero__aside > .form-block {
  padding: .45rem 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
@media (max-width: 900px) {
  .hero--photo .hero__inner { grid-template-areas: "title" "form" "details"; }
  .hero--photo .hero__aside { justify-self: center; }
}

.hero--photo .hero-calculator {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  width: fit-content;
  max-width: 100%;
  margin-block: .3rem .9rem;
  padding: .55rem .8rem;
  border: 1px solid #cba892;
  border-radius: 5px;
  background: #fbefe0;
  color: #672f22;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
.hero--photo .hero-calculator svg { flex: none; }
.hero--photo .hero-calculator:hover { text-decoration: underline; text-underline-offset: .2em; }
.hero--photo .hero-calculator:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Responsive review cards */
.reviews { grid-template-columns: minmax(0, 1fr); }
.reviews > * { min-width: 0; margin-inline: 0; }
@media (min-width: 620px) {
  .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
