/* Ontologie public site. Light theme only (NR's ruling on the design).
   Fonts are self-hosted (OFL, see fonts/); nothing loads from a third party. */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/newsreader-latin-opsz-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --ivory: #f7f1e8;      /* ground */
  --cream: #fbf6ee;      /* bands, surfaces */
  --tile: #fdfaf4;       /* raised objects */
  --ink: #172329;        /* headings, claims (14.3:1) */
  --graphite: #4f5656;   /* body and labels (6.7:1) */
  --stone: #d8cec0;      /* hairlines, borders */
  --stone-soft: #e5dccd;
  --action: #a84a28;     /* buttons, links (5.1:1; white on it 5.7:1) */
  --display: #c85f35;    /* accent words at 32px+ only (3.6:1) */
  --gold: #c08a2e;       /* mark, rules, linework only: never text */
  --white: #ffffff;
  --serif: "Newsreader Variable", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --lift: 0 1px 2px rgb(74 52 28 / 6%), 0 10px 28px -6px rgb(74 52 28 / 16%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--ivory); color: var(--graphite); font: 17px/1.6 var(--sans); }
a { color: var(--action); }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { color: var(--ink); font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.04; letter-spacing: -0.012em; }
h2 { font-size: clamp(30px, 3.8vw, 44px); line-height: 1.1; letter-spacing: -0.005em; }
h3 { font-size: 21px; line-height: 1.25; }
p { margin: 0; }
.acc { color: var(--display); }
.label { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--graphite); }
.label::before { content: ""; width: 18px; height: 1px; background: var(--gold); }

.band { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.band.cream { background: var(--cream); border-block: 1px solid var(--stone-soft); }
.inner { max-width: 1120px; margin: 0 auto; padding-block: 96px; display: grid; gap: 40px; }
@media (max-width: 720px) { .inner { padding-block: 64px; gap: 32px; } }
.head { display: grid; gap: 16px; max-width: 760px; }
.head p { font-size: 19px; max-width: 62ch; }
section[id] { scroll-margin-top: 112px; }

.btn { display: inline-flex; align-items: center; gap: 8px; font: 500 15px/1 var(--sans); padding: 14px 18px; border-radius: 4px; border: 1px solid var(--action); background: var(--action); color: var(--white); text-decoration: none; cursor: pointer; }
.btn:hover { background: #923f21; border-color: #923f21; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.ghost { background: transparent; color: var(--action); border-color: transparent; padding-inline: 4px; }
.btn.ghost:hover { text-decoration: underline; background: transparent; }
.btn.small { font-size: 13.5px; padding: 9px 13px; }

/* Header */
header.site { position: sticky; top: 0; z-index: 20; background: var(--ivory); border-bottom: 1px solid var(--stone); }
.bar { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 24px; padding-block: 14px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 24px; color: var(--ink); text-decoration: none; }
.wordmark svg { width: 15px; height: 26px; }
.mark .g { fill: var(--gold); }
nav.sub { display: flex; gap: 22px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
nav.sub::-webkit-scrollbar { display: none; }
nav.sub a { font: 500 14px/1 var(--sans); color: var(--graphite); text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
nav.sub a:hover { color: var(--ink); }
nav.sub a.on { color: var(--ink); border-bottom-color: var(--action); }
@media (max-width: 860px) {
  .bar { flex-wrap: wrap; gap: 8px 16px; padding-block: 10px 0; }
  .bar .wordmark { flex: 1; }
  nav.sub { order: 3; flex-basis: 100%; gap: 18px; padding-bottom: 2px; }
}

/* Hero. The art: scattered observations enter on the left, pass the mark,
   and leave as one orderly reading on the right. Static by NR's ruling. */
.hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 88px 104px; }
.hero .copy { display: grid; gap: 24px; }
.hero .sub { font-size: 20px; line-height: 1.55; max-width: 34em; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.hero .art { display: grid; gap: 14px; align-content: center; }
.hero .art svg.lens { width: 100%; height: auto; }
.hero .art .flow line { stroke: var(--gold); stroke-width: 1.2; stroke-linecap: round; }
.hero .art .flow line.r { opacity: .75; }
.hero .art .caption { display: flex; justify-content: space-between; font: 500 12px/1.3 var(--sans); color: var(--graphite); }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); padding-block: 48px 72px; gap: 32px; } .hero .art { order: -1; width: 100%; max-width: 280px; justify-self: center; } }

/* Open columns, separated by fine rules */
.cols { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); border-top: 1px solid var(--gold); }
.cols > div { padding: 24px 28px 8px 0; display: grid; gap: 10px; align-content: start; min-width: 0; }
.cols > div + div { padding-left: 28px; border-left: 1px solid var(--stone); }
.cols h3 { font-size: 22px; }
.cols p { font-size: 16px; }
.cols.two { --n: 2; }
@media (max-width: 640px) { .cols, .cols.two { --n: 1; } .cols > div, .cols > div + div { padding-left: 0; border-left: 0; padding-right: 0; } .cols > div + div { border-top: 1px solid var(--stone); } }
.closing { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.35; color: var(--ink); max-width: 30em; }
.illus { font: 500 12px/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--graphite); }

/* How it works chain */
.chain { display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1.25fr) 48px minmax(0, 1fr); align-items: stretch; }
.stage { background: var(--tile); border: 1px solid var(--stone); border-radius: 6px; padding: 24px; display: grid; gap: 10px; align-content: start; }
.stage.mid { background: var(--ink); border-color: var(--ink); }
.stage.mid h3, .stage.mid p { color: var(--cream); }
.stage .degree { font: 600 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--graphite); }
.stage.mid .degree { color: var(--stone); }
.arrow { display: grid; place-items: center; }
.arrow svg { width: 32px; height: 12px; }
@media (max-width: 860px) { .chain { grid-template-columns: minmax(0, 1fr); } .arrow { height: 36px; } .arrow svg { transform: rotate(90deg); } }
.outcomes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.outcomes div { padding: 18px 20px 0 0; display: grid; gap: 4px; border-top: 1px solid var(--stone); }
.outcomes b { font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--ink); }
.outcomes span { font-size: 15px; }
@media (max-width: 760px) { .outcomes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; } }

.linkbtn { font: 500 13px var(--sans); color: var(--action); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; justify-self: start; }

/* Segmentation mock-up: a globe that zooms into Sydney's postcodes.
   Origins are Sydney's position in each drawing (built from the data). */
.segmap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; align-items: center; padding-top: 16px; }
@media (max-width: 900px) { .segmap { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.segcopy { display: grid; gap: 14px; align-content: start; }
.segcopy h3 { font-size: 22px; }
.segcopy p { font-size: 16px; }
.segcopy h3 + p { margin-top: -6px; }
.segcopy .segcount { font-size: 14px; color: var(--graphite); font-variant-numeric: tabular-nums; padding-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 14px/1 var(--sans); color: var(--ink); background: var(--tile); border: 1px solid var(--stone); border-radius: 999px; padding: 9px 14px; cursor: pointer; }
.chip:hover { border-color: var(--action); }
.chip[aria-pressed="true"] { background: var(--action); border-color: var(--action); color: var(--white); }
.switch { display: inline-flex; align-items: center; gap: 10px; justify-self: start; font: 500 14px/1 var(--sans); color: var(--ink); background: none; border: 0; padding: 4px 0; cursor: pointer; }
.switch .knob { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--stone); transition: background .2s; }
.switch .knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 2px rgb(0 0 0 / 20%); transition: transform .2s; }
.switch[aria-pressed="true"] .knob { background: var(--action); }
.switch[aria-pressed="true"] .knob::after { transform: translateX(16px); }
.mapbox { margin: 0; display: grid; gap: 10px; width: 100%; max-width: 560px; justify-self: center; }
.mapstage { position: relative; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--stone); border-radius: 8px; background: var(--tile); box-shadow: var(--lift); }
.mapstage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.globe { display: none; }
.globe .sphere { fill: var(--cream); stroke: var(--gold); stroke-width: 1; }
.globe .grat { fill: none; stroke: var(--stone); stroke-width: .6; }
.globe .land { fill: #e8dcc8; stroke: var(--gold); stroke-width: .6; }
.globe .pin { fill: var(--action); }
.globe .ring { fill: none; stroke: var(--action); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: ping 2.2s ease-out infinite; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.syd .sea { fill: #ece3d5; }
.syd .poa path { fill: var(--cream); stroke: var(--stone); stroke-width: .6; transition: fill .45s ease; }
.syd .coast { fill: none; stroke: var(--gold); stroke-width: 1; }
.mapbox[data-seg="a"] .poa path[data-s="a"],
.mapbox[data-seg="b"] .poa path[data-s="b"],
.mapbox[data-seg="c"] .poa path[data-s="c"] { fill: var(--action); stroke: #f3d9cc; }
.syd .mkt { opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.syd .mkt circle { fill: var(--ink); fill-opacity: .55; stroke: var(--white); stroke-width: .8; }
.mapbox.mkt-on .syd .mkt { opacity: 1; }
.syd .city circle { fill: var(--ink); stroke: var(--white); stroke-width: 1.5; }
.syd .city text { font: 600 13px var(--sans); fill: var(--ink); paint-order: stroke; stroke: var(--white); stroke-width: 3px; }
/* With script: start on the globe, then zoom into Sydney. */
.mapbox.anim .globe { display: block; transform-origin: 56.11% 55.73%; transition: transform 1.9s cubic-bezier(.65, 0, .25, 1), opacity .9s ease .7s; }
.mapbox.anim .syd { opacity: 0; transform: scale(.06); transform-origin: 68.61% 44.79%; transition: transform 1.9s cubic-bezier(.65, 0, .25, 1), opacity .8s ease .9s; }
.mapbox.anim.zoomed .globe { transform: scale(14); opacity: 0; }
.mapbox.anim.zoomed .syd { transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .globe .ring { animation: none; } }

/* Who it's for */
.qs { list-style: none; padding: 0; margin: 0; display: grid; }
.qs li { font: 400 19px/1.35 var(--serif); color: var(--ink); padding: 12px 0; border-top: 1px solid var(--stone-soft); }
.qs li:first-child { border-top: 0; padding-top: 4px; }
.cols .role { font: 600 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--graphite); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr); } }
form.pilot, .thanks { background: var(--tile); border: 1px solid var(--stone); border-radius: 8px; padding: 28px; display: grid; gap: 18px; box-shadow: var(--lift); }
.field { display: grid; gap: 6px; }
.field label { font: 500 14px var(--sans); color: var(--ink); }
.field label span { font-weight: 400; color: var(--graphite); }
.field input, .field select, .field textarea { font: 400 16px var(--sans); color: var(--ink); background: var(--white); border: 1px solid var(--stone); border-radius: 4px; padding: 12px; width: 100%; }
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--action); outline: 2px solid rgb(168 74 40 / 25%); outline-offset: 0; }
.field .err, .formerr { font-size: 13.5px; color: #9b1c1c; }
.field [aria-invalid="true"] { border-color: #9b1c1c; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .row2 { grid-template-columns: minmax(0, 1fr); } }
.formfoot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.fine { font-size: 13.5px; max-width: 34ch; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.thanks h3 { font-size: 26px; }

footer.site { border-top: 1px solid var(--stone); }
footer .inner { padding-block: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14.5px; }
footer .links a { color: var(--graphite); text-decoration: none; }
footer .links a:hover { color: var(--ink); text-decoration: underline; }
footer .legal { flex-basis: 100%; font-size: 13.5px; max-width: 70ch; }

/* Plain pages: privacy, not found, form replies */
.page { max-width: 720px; margin: 0 auto; padding-block: 72px 96px; display: grid; gap: 20px; }
.page h1 { font-size: clamp(34px, 5vw, 48px); }
.page h2 { font-size: 24px; margin-top: 16px; }
.page ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.page .updated { font-size: 14px; }
