/* ==========================================================================
   PROTICKS AUS32 / DEF — adbluedef.in
   core.css : tokens, reset, shell

   Built on the PROTICKS group design system established at aus40.in:
   same substrate, same Anton / Barlow / Toxigenesis type, same component
   architecture, same dark mode. The one deliberate difference is the mark
   colour — AUS40 marine carries teal #00738c, AUS32 / DEF carries blue —
   so the two product lines read as siblings rather than as the same page.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;

  --paper:       #f7f9f8;
  --panel:       #e7eef6;
  --field:       #ffffff;
  --ink:         #10282d;
  --muted:       #4b6268;
  --line:        #bbcbd0;

  --brand:       #0a5ca8;
  --brand-hover: #08477f;
  --on-brand:    #ffffff;
  --brand-wash:  #dde8f5;

  --footer:      #122d34;
  --footer-ink:  #e9f2f3;
  --footer-line: #45606a;
  --footer-soft: #bdced2;

  --ok:          #1d6b43;
  --ok-wash:     #dcebe2;
  --warn:        #8a5b00;
  --warn-wash:   #f3e8d2;
  --error:       #a32c22;
  --error-wash:  #f6e2df;
  --focus:       #a1480c;

  --display:  "Anton", "Anton Fallback", "Arial Narrow", sans-serif;
  --body:     "Barlow", "Barlow Fallback", Arial, sans-serif;
  --brandfont:"Toxigenesis", "Barlow", Arial, sans-serif;

  --gutter:  clamp(20px, 4.3vw, 72px);
  --measure: 1320px;

  --ease:   cubic-bezier(.16, 1, .3, 1);
  --fast:   180ms;
  --motion: 600ms;
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --paper:       #101f24;
  --panel:       #1a2f42;
  --field:       #142b32;
  --ink:         #edf4f4;
  --muted:       #b5c9ce;
  --line:        #405961;

  --brand:       #8cc0f0;
  --brand-hover: #b3d6f7;
  --on-brand:    #10282d;
  --brand-wash:  #1b3450;

  --footer:      #0b191e;
  --footer-line: #2b4149;

  --ok:          #7fd4a3;
  --ok-wash:     #17372a;
  --warn:        #f0c07a;
  --warn-wash:   #3a2f18;
  --error:       #ffb7a8;
  --error-wash:  #3b201d;
  --focus:       #ffd197;
}

@font-face {
  font-family: "Toxigenesis";
  src: url("toxigenesis.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. RESET + BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, p { margin: 0; }

h1, h2, h3, h4, h5 { text-wrap: balance; font-weight: 500; line-height: 1.12; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.02em; }
h1 { font-size: clamp(44px, 5.2vw, 76px); }
h2 { font-size: clamp(32px, 3.5vw, 48px); }
h3 { font-weight: 600; font-size: 24px; letter-spacing: -.015em; }

::selection { background: var(--brand); color: var(--on-brand); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.skip-link {
  position: absolute;
  left: 0; top: -60px;
  z-index: 999;
  padding: 12px 20px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
  font-size: 15px;
  transition: top var(--fast) var(--ease);
}
.skip-link:focus { top: 0; }

/* --------------------------------------------------------------------------
   3. MEASURE + SECTIONS
   -------------------------------------------------------------------------- */
.wrap {
  width: calc(100% - var(--gutter) * 2);
  max-width: var(--measure);
  margin-inline: auto;
}
.wrap-narrow { max-width: 900px; }

.section       { padding-block: clamp(56px, 7vw, 104px); }
.section-tight { padding-block: clamp(38px, 4.6vw, 66px); }

/* Tinted band — the group's panel field */
.gridfield { background: var(--panel); }

/* On an ink field the mark colour has to lift, or it fails against the
   dark ground. Overriding the token here re-colours every descendant. */
.rev, .footer {
  --brand:       #8cc0f0;
  --brand-hover: #b3d6f7;
  --on-brand:    #10282d;
  --brand-wash:  #1b3450;
}
.rev { background: var(--footer); color: var(--footer-ink); }
.rev h1, .rev h2, .rev h3, .rev h4 { color: var(--footer-ink); }
.rev .lede, .rev p { color: var(--footer-soft); }
.rev .tiny, .rev .muted { color: var(--footer-soft); }

/* --------------------------------------------------------------------------
   4. TYPE
   -------------------------------------------------------------------------- */
.eyebrow {
  display: block;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--brand);
  margin: 0 0 14px;
}
.rev .eyebrow { color: var(--brand); }

.eyebrow-pill {
  display: inline-block;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--brand);
  background: var(--brand-wash);
  padding: 6px 12px;
  border-radius: 2px;
  margin: 0 0 20px;
}

.h-xl { font-size: clamp(44px, 5.2vw, 76px); font-family: var(--display); font-weight: 400; letter-spacing: -.02em; }
.h-lg { font-size: clamp(32px, 3.5vw, 48px); font-family: var(--display); font-weight: 400; letter-spacing: -.02em; }
.h-md { font-family: var(--body); font-size: clamp(25px, 2.4vw, 32px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.h-sm { font-family: var(--body); font-size: 22px; font-weight: 600; letter-spacing: -.015em; }

.lede { font-size: clamp(18px, 1.35vw, 22px); line-height: 1.45; color: var(--muted); max-width: 58ch; }
.muted { color: var(--muted); }
.accent { color: var(--brand); }
.tiny { font-size: 14px; line-height: 1.5; color: var(--muted); }

.sec-head { max-width: 780px; margin-bottom: clamp(30px, 3.4vw, 46px); }
.sec-head .lede { margin-top: 16px; }

.sec-head-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(24px, 3.4vw, 56px);
  align-items: end;
  margin-bottom: clamp(30px, 3.4vw, 46px);
}
@media (max-width: 900px) { .sec-head-split { grid-template-columns: 1fr; align-items: start; gap: 18px; } }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   5. SURFACES
   -------------------------------------------------------------------------- */
.panel      { background: var(--field); border: 1px solid var(--line); border-radius: 2px; position: relative; }
.panel-flat { background: var(--panel); border: 1px solid var(--line); border-radius: 2px; }
.shell      { background: var(--field); border: 1px solid var(--line); border-radius: 2px; }
.shell > .core { position: relative; }
.gridfield .panel-flat { background: var(--field); }

.pad    { padding: clamp(20px, 2.4vw, 28px); }
.pad-lg { padding: clamp(24px, 3vw, 40px); }

.ticked::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 3px;
  background: var(--brand);
}

.cells { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.cells > * { background: var(--field); }

/* --------------------------------------------------------------------------
   6. CONTROLS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  min-height: 48px;
  padding: 12px 21px;
  background: var(--brand);
  color: var(--on-brand);
  border: 1px solid var(--brand);
  border-radius: 2px;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  transition: background var(--fast), border-color var(--fast), color var(--fast);
}
.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--on-brand); }
.btn .chip { display: inline-flex; flex: 0 0 20px; transition: transform 260ms var(--ease); }
.btn .chip svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.btn:hover .chip { transform: translateX(3px); }

/* Secondary — the group's outline variant */
.btn-ghost, .btn:not(.btn-primary):not(.btn-cyan) {
  background: transparent;
  color: var(--brand);
  border-color: var(--line);
}
.btn-ghost:hover, .btn:not(.btn-primary):not(.btn-cyan):hover {
  background: var(--panel);
  color: var(--brand);
  border-color: var(--line);
}
.btn-primary { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--on-brand); }
.btn-cyan { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-cyan:hover { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

.btn-sm { min-height: 44px; padding: 9px 15px; font-size: 15px; gap: 14px; }
.btn-sm .chip svg { width: 16px; height: 16px; }
.btn-block { width: 100%; }
.btn-plain .chip { display: none; }

.rev .btn:not(.btn-primary):not(.btn-cyan) { color: var(--footer-ink); border-color: var(--footer-line); }
.rev .btn:not(.btn-primary):not(.btn-cyan):hover { background: rgba(255,255,255,.08); color: var(--footer-ink); }
.rev .btn-cyan { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.rev .btn-cyan:hover { background: var(--brand-hover); border-color: var(--brand-hover); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.tlink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  transition: color var(--fast);
}
.tlink:hover { color: var(--brand-hover); }
.tlink svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; transition: transform 260ms var(--ease); }
.tlink:hover svg { transform: translateX(3px); }
.rev .tlink { color: var(--brand); }

/* --------------------------------------------------------------------------
   7. MOTION
   -------------------------------------------------------------------------- */
.js .rise {
  opacity: 1;
  transform: none;
  transition: opacity var(--motion) var(--ease), transform var(--motion) var(--ease);
}
.js .rise.in { opacity: 1; transform: none; }

.js .rise-stagger > * {
  opacity: 1;
  transform: none;
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}
.js .rise-stagger.in > * { opacity: 1; transform: none; }
.js .rise-stagger.in > *:nth-child(1) { transition-delay: .02s; }
.js .rise-stagger.in > *:nth-child(2) { transition-delay: .06s; }
.js .rise-stagger.in > *:nth-child(3) { transition-delay: .10s; }
.js .rise-stagger.in > *:nth-child(4) { transition-delay: .14s; }
.js .rise-stagger.in > *:nth-child(5) { transition-delay: .18s; }
.js .rise-stagger.in > *:nth-child(6) { transition-delay: .22s; }
.js .rise-stagger.in > *:nth-child(7) { transition-delay: .26s; }
.js .rise-stagger.in > *:nth-child(8) { transition-delay: .30s; }

.js .drawline { transform: scaleX(0); transform-origin: left; transition: transform 900ms var(--ease); }
.js .drawline.in { transform: scaleX(1); }

/* --------------------------------------------------------------------------
   8. MASTHEAD
   -------------------------------------------------------------------------- */
.util {
  background: var(--ink);
  color: var(--footer-soft);
  font-size: 14px;
}
:root[data-theme="dark"] .util { background: #0b191e; }
.util .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 36px; }
.util-l, .util-r { display: flex; align-items: center; gap: 22px; min-width: 0; }
.util a { color: var(--footer-soft); transition: color var(--fast); white-space: nowrap; }
.util a:hover { color: #fff; }
.util .status { display: inline-flex; align-items: center; gap: 8px; }
.util .dot { width: 6px; height: 6px; border-radius: 50%; background: #5bb98c; flex: none; }
@media (max-width: 920px) { .util-r { display: none; } .util .wrap { justify-content: flex-start; } }
@media (max-width: 520px) { .util-l { gap: 14px; font-size: 12.5px; } }

.masthead {
  position: sticky;
  top: 0;
  z-index: 300;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.masthead-inner {
  width: calc(100% - var(--gutter) * 2);
  max-width: var(--measure);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 64px;
}
@media (max-width: 1150px) { .masthead-inner { gap: 16px; } }
@media (max-width: 960px)  { .masthead-inner { min-height: 74px; } }
@media (max-width: 700px)  { .masthead-inner { gap: 9px; } }
@media (max-width: 620px)  {
  .brand-sub { display: none; }
  .brand-name { font-size: 19px; }
  .brand { gap: 9px; }
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 26px; height: 26px; }
.brand-name {
  font-family: var(--brandfont);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--ink);
  line-height: 1;
}
.brand-name sup { font-size: 8px; vertical-align: super; color: var(--muted); margin-left: 1px; }
.brand-sub {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted);
  padding-left: 12px;
  margin-left: 2px;
  border-left: 1px solid var(--line);
  line-height: 1;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
@media (max-width: 1150px) { .nav { gap: 18px; } }
.nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  transition: color var(--fast);
}
@media (max-width: 1150px) { .nav a { font-size: 14px; } }
.nav a:hover { color: var(--brand); }
.nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.nav-cta { flex: none; font-size: 14px; padding: 11px 15px; min-height: 44px; gap: 14px; }
@media (max-width: 1150px) { .nav-cta { gap: 8px; padding: 10px 12px; } .nav-cta .chip { display: none; } }

/* Theme toggle + hamburger share the group's outline-control look */
.me-theme, .burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 12px;
  background: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  flex: none;
  transition: background var(--fast), border-color var(--fast);
}
.me-theme:hover, .burger:hover { background: var(--panel); }
.me-theme svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.me-theme .ic-moon, .me-theme .ic-sun { display: inline-flex; }
:root[data-theme="dark"] .me-theme .ic-moon { display: none; }
:root:not([data-theme="dark"]) .me-theme .ic-sun { display: none; }
.me-theme .lbl { line-height: 1; }
@media (max-width: 700px) { .me-theme, .burger { padding: 8px 10px; } .me-theme .lbl { display: none; } }

.burger { width: 46px; position: relative; display: none; }
.burger span {
  position: absolute;
  left: 13px;
  width: 20px; height: 2px;
  background: var(--ink);
  transition: transform var(--fast) var(--ease), opacity 120ms;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile panel — drops beneath the bar, as on the group site */
.sheet {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 20px var(--gutter) 27px;
  max-height: calc(100dvh - 74px);
  overflow: auto;
  z-index: 299;
}
.sheet.open { display: block; }
.sheet-nav { display: grid; }
.sheet-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 49px;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.sheet-nav a:hover { color: var(--brand); }
.sheet-nav a .idx { font-size: 13px; font-weight: 400; color: var(--muted); min-width: 22px; }
.sheet-foot { display: grid; gap: 10px; margin-top: 16px; }
.sheet-foot .btn { width: 100%; min-height: 48px; font-size: 16px; }

@media (max-width: 960px) {
  .nav, .nav-cta { display: none; }
  .burger { display: block; }
  .me-theme { margin-left: auto; }
  .masthead { position: sticky; }
}
@media (min-width: 961px) { .sheet { display: none !important; } }
body.locked { overflow: hidden; }

/* --------------------------------------------------------------------------
   9. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--footer);
  color: var(--footer-soft);
  padding-block: clamp(46px, 5.4vw, 72px) 0;
}
.footer .brand-name { color: var(--footer-ink); }
.footer .brand-sub { color: var(--footer-soft); border-left-color: var(--footer-line); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr .85fr;
  gap: 38px;
}
@media (max-width: 1150px) { .footer-grid { gap: 24px; } }
@media (max-width: 960px)  { .footer-grid { grid-template-columns: 1.35fr 1fr; } .footer-grid > div:nth-child(n+3) { padding-top: 12px; } }
@media (max-width: 700px)  {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 22px; font-size: 15px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid > div:nth-child(n+3) { padding-top: 0; }
}

.footer h3 {
  font: 600 17px/1.3 var(--body);
  letter-spacing: 0;
  color: var(--footer-ink);
  margin-bottom: 23px;
}
@media (max-width: 700px) { .footer h3 { font-size: 16px; margin-bottom: 17px; } }

.footer-links { display: grid; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 10px;
  font-size: 16px;
  color: var(--footer-soft);
  transition: color var(--fast);
}
.footer-links a:hover { color: #fff; }

.footer-brand .brand { margin-bottom: 18px; }
.footer-blurb { font-size: 16px; color: var(--footer-soft); max-width: 36ch; margin-block: 18px; }
.footer-tagline { font-size: 14px; color: var(--footer-soft); opacity: .85; margin-bottom: 18px; }
.footer-contact { display: grid; gap: 6px; font-size: 16px; }
.footer-contact a { color: var(--footer-ink); }
.footer-contact a:hover { color: #fff; }
.footer-contact .hq { font-weight: 600; color: var(--footer-ink); margin-top: 10px; }
.footer-contact .muted { color: var(--footer-soft); font-size: 14px; line-height: 1.5; }

.colophon {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--footer-line);
  padding-top: 26px;
  margin-top: 44px;
  padding-bottom: 26px;
  font-size: 14px;
}
.colophon a { color: var(--footer-soft); }
.colophon a:hover { color: #fff; }
.colophon-l { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
@media (max-width: 700px) { .colophon { flex-direction: column; align-items: flex-start; gap: 14px; } }

/* --------------------------------------------------------------------------
   10. CONTACT DOCK
   -------------------------------------------------------------------------- */
.dock { position: fixed; right: 18px; bottom: 18px; z-index: 280; display: grid; gap: 10px; }
.dock a {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  transition: background var(--fast);
}
.dock a svg { width: 20px; height: 20px; }
.dock a:hover { background: var(--brand); color: var(--on-brand); }
.dock .wa { background: #17803d; color: #fff; }
.dock .wa:hover { background: #10602d; color: #fff; }
@media (max-width: 640px) { .dock { right: 12px; bottom: 12px; } .dock a { width: 42px; height: 42px; } }
@media print { .dock, .masthead, .util { display: none; } }

/* --------------------------------------------------------------------------
   11. REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn .chip, .tlink, .tlink svg, .burger span,
  .js .rise, .js .rise-stagger > *, .js .drawline { transition: none; }
  .js .rise, .js .rise-stagger > *, .js .drawline { opacity: 1 !important; transform: none !important; }
  .hero h1 .line > span { animation: none; transform: none; }
}

/* Developer credit: one accessible link with a decorative brand mark. */
.site-credit{display:inline-flex;align-items:center;gap:10px;min-height:44px;}
.site-credit img{width:30px;height:30px;flex:0 0 30px;object-fit:contain;}

.packaging-disclaimer{font-size:13px!important;line-height:1.5;font-weight:400;opacity:.85;}
