/* Collision Sciences Australia: the one stylesheet every page shares.
   Lifted from reference/site-concept.html with its tokens unchanged. */

:root {
  --ink: #194A61;
  --ink-deep: #12374A;
  --action: #177CC1;
  --accent: #1F4E79;
  --trace: #36BBEC;
  /* For small text: action and trace adjusted to pass 4.5:1 contrast */
  --action-text: #1676B7;
  --trace-text: #41BFED;
  --paper: #FFFFFF;
  --mist: #F1F7FA;
  --body: #3A4A54;
  --hairline: #D9E4EA;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  --sans: Arial, Helvetica, sans-serif;
  --grid:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* The canvas matches the footer, so a page shorter than the screen ends in navy, not white */
html { scroll-behavior: smooth; scroll-padding-top: 72px; background: var(--ink-deep); }
body {
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
}
img { max-width: 100%; }

/* Shared */

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
p { max-width: 62ch; }
a { color: var(--action-text); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--trace); outline-offset: 2px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--action-text);
  display: block;
  margin-bottom: 14px;
}
h1, h2, h3 { text-wrap: balance; }
h2 {
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 18px;
}
section { padding-block: 76px; background: var(--paper); }
section.mist { background: var(--mist); }
.more { display: inline-block; font-weight: bold; font-size: 14.5px; margin-top: 26px; }
.more.tight { margin-top: 4px; }
.pt-24 { padding-top: 24px; }
.pt-16 { padding-top: 16px; }
.pt-8 { padding-top: 8px; }
.mb-24 { margin-bottom: 24px; }
.mb-14 { margin-bottom: 14px; }
.hidden-field { display: none; }

/* Header: the slim sticky bar, nav right, no logo */

header.site-head {
  background-color: var(--ink);
  background-image: var(--grid);
  background-size: 52px 52px;
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
}
.bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding-block: 10px;
  flex-wrap: wrap;
}
nav.main { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
nav.main a, .menu-nav a { color: rgba(255, 255, 255, 0.88); font-size: 14.5px; font-weight: bold; }
nav.main a:hover, .menu-nav a:hover { color: var(--trace); text-decoration: none; }
nav.main a[aria-current="page"], .menu-nav a[aria-current="page"] { color: var(--trace-text); }
nav.main a.btn, .menu-nav a.btn { color: #FFFFFF; }
nav.main a.btn:hover, .menu-nav a.btn:hover { color: #FFFFFF; }

/* The phone menu is a details disclosure, so it needs no script */
.menu { display: none; }
.menu summary {
  display: block;
  width: fit-content;
  margin-left: auto;
  list-style: none;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: bold;
  line-height: normal;
  color: #FFFFFF;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 3px;
  padding: 11px 16px;
  cursor: pointer;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary::marker { content: ""; }
.menu-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 24px;
  padding-block: 6px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.menu-nav a { font-size: 16px; }
.menu-nav a.btn { font-size: 14px; }

/* The logo is a co-hero: it opens the navy block on every page */
.hero-logo { display: block; width: min(520px, 100%); margin-bottom: 36px; }
.hero-logo.small { width: min(300px, 70%); margin-bottom: 30px; }
.hero-logo img { display: block; width: 100%; height: auto; }

.btn {
  display: inline-block;
  background: var(--action-text);
  color: #FFFFFF;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.02em;
  padding: 12px 22px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--accent); text-decoration: none; }
.btn-ghost { background: transparent; border: 1px solid rgba(255, 255, 255, 0.45); color: #FFFFFF; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: #FFFFFF; }

.shot {
  border: 1px solid var(--hairline);
  border-radius: 4px;
  overflow: hidden;
  background: var(--ink-deep);
  max-width: 100%;
}
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.hero .shot { border-color: rgba(255, 255, 255, 0.18); }

/* Home */

.hero {
  background-color: var(--ink);
  background-image: var(--grid);
  background-size: 52px 52px;
  color: #FFFFFF;
  padding-block: 48px 72px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero .eyebrow { color: var(--trace-text); }
.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: bold;
  margin-bottom: 22px;
}
.hero h1 .alt { color: var(--trace); display: block; }
.hero p { color: rgba(255, 255, 255, 0.85); margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.strip { background: var(--ink-deep); color: #FFFFFF; padding-block: 22px; }
.strip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.strip-item {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  padding-left: 14px;
  border-left: 2px solid var(--trace);
}

.service-list { border-top: 1px solid var(--hairline); margin-top: 34px; }
.service { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding-block: 26px; border-bottom: 1px solid var(--hairline); }
.service > * { min-width: 0; }
.tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--action-text);
  padding-top: 5px;
  text-transform: uppercase;
}
.service h3 { font-size: 1.15rem; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.01em; }
.service p { font-size: 15.5px; }

.coverage p { margin-bottom: 16px; }
.coverage .ask { font-weight: bold; }
.coverage .ask a { text-decoration: underline; text-underline-offset: 2px; }

.statement {
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  line-height: 1.4;
  font-weight: bold;
  color: var(--accent);
  max-width: 34ch;
  margin-top: 28px;
}

.founder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 30px; }
.founder { border-top: 2px solid var(--ink); padding-top: 18px; min-width: 0; }
.founder h2, .founder h3 { color: var(--ink); font-size: 1.1rem; line-height: 1.65; letter-spacing: normal; margin-bottom: 4px; }
.founder .role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--action-text);
  display: block;
  margin-bottom: 10px;
}
.founder p { font-size: 15px; }

.resource-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 30px; }
.resource-grid.flush { margin-top: 0; }
.resource { border: 1px solid var(--hairline); border-radius: 4px; padding: 26px; min-width: 0; }
.resource h2, .resource h3 { color: var(--ink); font-size: 1.15rem; line-height: 1.65; letter-spacing: normal; margin-bottom: 8px; }
.resource p { font-size: 15.5px; margin-bottom: 14px; }
.resource a { font-weight: bold; font-size: 14.5px; }

.cta-band { background: var(--ink); color: #FFFFFF; padding-block: 64px; }
.cta-band h2 { color: #FFFFFF; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin-bottom: 28px; }

/* Inner pages */

.page-hero {
  padding-block: 44px 56px;
  background-color: var(--ink);
  background-image: var(--grid);
  background-size: 52px 52px;
  color: #FFFFFF;
}
.page-hero .eyebrow { color: var(--trace-text); }
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 16px;
}
.page-hero .lede { font-size: 1.15rem; color: rgba(255, 255, 255, 0.85); }
.page-hero .hero-ctas { margin-top: 30px; }

/* Banner straddles the navy hero and the white page beneath it */
.banner { padding-block: 0 8px; background: linear-gradient(var(--ink) 0, var(--ink) 50%, var(--paper) 50%, var(--paper) 100%); }
.banner .shot { border-color: rgba(255, 255, 255, 0.18); }

.mode { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-block: 40px; border-top: 1px solid var(--hairline); }
.mode > * { min-width: 0; }
.mode:first-of-type { border-top: none; padding-top: 0; }
.mode.flip .mode-text { order: 2; }
.mode.solo { grid-template-columns: 1fr; }
.mode h2 { margin-bottom: 12px; }
.mode p { margin-bottom: 12px; }
.mode .use { font-weight: bold; color: var(--accent); }

.subscribe { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.subscribe .eyebrow { width: 100%; margin-bottom: 0; }
.subscribe input {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 10px 12px;
  flex: 1 1 200px;
  min-width: 0;
}
.subscribe input::placeholder { color: #8AA2B0; }

.explainer { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.explainer > * { min-width: 0; }
.explainer p { margin-bottom: 14px; }

.readout { background: var(--ink-deep); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 4px; padding: 18px 18px 14px; color: #FFFFFF; }
.readout-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--trace);
  margin-bottom: 12px;
}
.readout-head .live { color: rgba(255, 255, 255, 0.55); }
.readout svg { display: block; width: 100%; height: auto; }
.readout-caption {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 12px;
  padding-top: 10px;
  max-width: none;
}
.trace-line {
  fill: none;
  stroke: var(--trace);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 640;
  stroke-dashoffset: 640;
  animation: draw 1.6s ease-out 0.3s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.bio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 10px; }
.bio-grid .founder p { font-size: 15.5px; }

/* Privacy policy text, carried over as published */
.policy h2 { margin-bottom: 6px; }
.policy h3 { font-size: 1.15rem; color: var(--ink); letter-spacing: -0.01em; margin-top: 30px; margin-bottom: 6px; }
.policy p { margin-bottom: 12px; }

/* Referral form (dark) */

.refer { background: var(--ink); color: #FFFFFF; }
.refer .eyebrow { color: var(--trace-text); }
.refer h2 { color: #FFFFFF; }
.refer .lede { color: rgba(255, 255, 255, 0.85); margin-bottom: 36px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; max-width: 760px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: bold; color: rgba(255, 255, 255, 0.9); letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  padding: 11px 12px;
  width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field ::placeholder { color: #8AA2B0; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.form-note { font-family: var(--mono); font-size: 11px; line-height: 1.5; color: rgba(255, 255, 255, 0.6); max-width: 46ch; }

/* Footer */

footer.site-foot { background: var(--ink-deep); color: rgba(255, 255, 255, 0.75); padding-block: 40px; font-size: 13.5px; }
.foot-grid { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.foot-grid > * { min-width: 0; }
.foot-lockup { display: flex; align-items: center; gap: 12px; color: #FFFFFF; }
.foot-lockup img { height: 56px; width: auto; display: block; }
footer.site-foot a { color: rgba(255, 255, 255, 0.85); }
.foot-meta { text-align: right; line-height: 1.8; }
.foot-nav { display: flex; gap: 6px 10px; flex-wrap: wrap; justify-content: flex-end; font-size: 13px; }
.foot-nav span { color: rgba(255, 255, 255, 0.35); }
.foot-nav span::before { content: "\00B7"; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .trace-line { animation: none; stroke-dashoffset: 0; }
  .btn { transition: none; }
}

/* Narrow screens */

@media (max-width: 900px) {
  .hero-grid, .explainer, .mode, .founder-grid, .resource-grid, .bio-grid { grid-template-columns: 1fr; gap: 28px; }
  .mode.flip .mode-text { order: 0; }
  .strip-grid { grid-template-columns: 1fr; gap: 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; gap: 6px; }
  .foot-grid { flex-direction: column; }
  .foot-meta { text-align: left; }
  /* The stacked footer drops the dots and spaces the links instead, so a wrapped row never ends in a dot */
  .foot-nav { justify-content: flex-start; gap: 8px 18px; }
  .foot-nav span { display: none; }
  section { padding-block: 56px; }
  .hero-logo { width: min(320px, 85%); margin-bottom: 28px; }
  .hero-logo.small { width: min(240px, 70%); }
  .hero { padding-block: 36px 48px; }
  .page-hero { padding-block: 32px 40px; }
  nav.main { display: none; }
  .menu { display: block; flex: 1 1 100%; }
}
