/* ==========================================================================
   Elite Security & Communications — elitent.com.au
   Monochrome. Gotham. Contrast is the colour.
   ========================================================================== */

/* ---------- Fonts ---------- */

@font-face {
  font-family: "Gotham";
  src: url("/assets/fonts/Gotham-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gotham";
  src: url("/assets/fonts/Gotham-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gotham";
  src: url("/assets/fonts/Gotham-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gotham";
  src: url("/assets/fonts/Gotham-Book.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallback keeps layout stable while Gotham loads. */
@font-face {
  font-family: "Gotham-fallback";
  src: local("Arial");
  ascent-override: 95%;
  descent-override: 25%;
  line-gap-override: 0%;
  size-adjust: 103%;
}

/* ---------- Tokens ---------- */

:root {
  --black: #000000;
  --white: #ffffff;
  --charcoal: #1a1a1a;
  --charcoal-2: #222222;
  --line-dark: #333333;
  --muted-dark: #999999;
  --line-light: #d9d9d9;
  --muted-light: #6b6b6b;

  --font-display: "Gotham", "Gotham-fallback", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-micro: 220ms;
  --t-reveal: 650ms;

  --nav-h: 72px;
  --gutter: clamp(20px, 5vw, 48px);
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

::selection {
  background: var(--black);
  color: var(--white);
}
.band--dark ::selection,
.hero ::selection,
.footer ::selection {
  background: var(--white);
  color: var(--black);
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.container {
  max-width: 1256px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 200;
  padding: 12px 20px;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.skip-link:focus {
  top: 12px;
}

/* ---------- Type utilities ---------- */

.eyebrow {
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.band--dark .eyebrow,
.hero .eyebrow {
  color: var(--muted-dark);
}

.heading {
  margin-top: 22px;
  font-weight: 900;
  font-size: clamp(2rem, 4.4vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

.lede {
  margin-top: 28px;
  max-width: 58ch;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.6;
}
.band--light .lede {
  color: var(--charcoal);
  opacity: 0.82;
}
.band--dark .lede {
  color: var(--white);
  opacity: 0.8;
}

.body-copy {
  margin-top: 20px;
  max-width: 58ch;
}
.band--dark .body-copy {
  color: var(--white);
  opacity: 0.66;
}

.mono {
  font-family: var(--font-mono);
  font-weight: 400;
}

/* ---------- Bands ---------- */

.band {
  padding-block: clamp(6rem, 11vw, 10.5rem);
}
.band--light {
  background: var(--white);
  color: var(--charcoal);
}
.band--dark {
  background: var(--black);
  color: var(--white);
}
.band--strip {
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
  border-top: 1px solid var(--line-light);
}

.section-head {
  margin-bottom: clamp(3.5rem, 6vw, 5.5rem);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 15px 30px;
  border: 1px solid var(--black);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--t-micro) ease, color var(--t-micro) ease,
    border-color var(--t-micro) ease;
}
.btn--lg {
  padding: 18px 38px;
}
/* On black: solid white, inverts to outline */
.btn--light {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.btn--light:hover {
  background: transparent;
  color: var(--white);
}
/* On black: outline, inverts to solid */
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--ghost:hover {
  background: var(--white);
  color: var(--black);
}
/* On white: solid black, inverts to outline */
.btn--dark {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.btn--dark:hover {
  background: transparent;
  color: var(--black);
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 320ms ease, border-color 320ms ease;
}
.nav--scrolled {
  background: var(--black);
  border-bottom-color: var(--line-dark);
}

.nav__inner {
  max-width: 1256px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__brand {
  display: block;
  margin-right: auto;
}
.nav__brand img {
  width: 46px;
  height: 42px;
}

.nav__links {
  display: flex;
  gap: 34px;
}

.nav__link {
  position: relative;
  padding: 6px 0;
  color: var(--white);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t-micro) var(--ease-out);
}
.nav__link:hover::after,
.nav__link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__cta {
  padding: 12px 24px;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
  z-index: 120;
}
.nav__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  transition: transform var(--t-micro) var(--ease-out);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ---------- Mobile menu ---------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--nav-h) var(--gutter) 48px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 320ms ease, visibility 0s linear 320ms;
}
.menu--open {
  visibility: visible;
  opacity: 1;
  transition: opacity 320ms ease;
}

.menu__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.menu__link {
  color: var(--white);
  font-weight: 900;
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 1.25;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 480ms var(--ease-out), transform 480ms var(--ease-out);
}
.menu--open .menu__link {
  opacity: 1;
  transform: none;
}
.menu--open .menu__link:nth-child(1) { transition-delay: 60ms; }
.menu--open .menu__link:nth-child(2) { transition-delay: 130ms; }
.menu--open .menu__link:nth-child(3) { transition-delay: 200ms; }
.menu--open .menu__link:nth-child(4) { transition-delay: 270ms; }
.menu--open .menu__link:nth-child(5) { transition-delay: 340ms; }
.menu__link--cta {
  margin-top: 24px;
  color: var(--muted-dark);
  font-size: clamp(1.25rem, 5vw, 1.75rem);
}

.menu__meta {
  position: absolute;
  bottom: 40px;
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  color: var(--muted-dark);
  font-size: 0.8125rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero__mark {
  position: absolute;
  top: 50%;
  right: -11vw;
  width: clamp(440px, 56vw, 960px);
  translate: 0 -54%;
  opacity: 0;
  animation: mark-in 1400ms ease 500ms forwards;
  pointer-events: none;
}
.hero__mark svg {
  width: 100%;
  height: auto;
}
@keyframes mark-in {
  to { opacity: 0.09; }
}

/* Circuit traces crossing the hero — drawn in after the headline lands. */
.hero__trace {
  position: absolute;
  left: 0;
  width: 100%;
  height: 40px;
  color: var(--line-dark);
  overflow: visible;
  pointer-events: none;
}
/* Anchored to the content so it always sits just under the eyebrow,
   regardless of viewport height. */
.hero__trace--upper {
  top: 70px;
  left: calc(50% - 50vw);
  width: 100vw;
}
.hero__trace--lower {
  bottom: 5.8%;
}
.hero__trace-path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: hero-trace-draw 1100ms var(--ease-out) 1000ms both;
}
.hero__trace--lower .hero__trace-path {
  animation-delay: 1200ms;
}
.hero__trace-pad {
  fill: currentColor;
  stroke: none;
  animation: seq-fade 600ms ease 1000ms both;
}
.hero__trace--lower .hero__trace-pad {
  animation-delay: 1250ms;
}
@keyframes hero-trace-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: 56px;
}
.hero__content .hero__trace {
  z-index: -1;
}

.hero__eyebrow {
  animation: seq-rise 700ms var(--ease-out) 100ms both;
}

.hero__title {
  margin-top: 30px;
  font-weight: 900;
  font-size: clamp(2.75rem, 8.5vw, 7.5rem);
  line-height: 0.98;
  letter-spacing: 0.002em;
  text-transform: uppercase;
}


.reveal-line {
  display: block;
  overflow: hidden;
  padding-block: 0.04em;
}
.reveal-line__inner {
  display: block;
  animation: line-rise 800ms var(--ease-out) both;
}
[data-seq="2"] { animation-delay: 200ms; }
[data-seq="3"] { animation-delay: 310ms; }
[data-seq="4"] { animation-delay: 420ms; }

.hero__lede {
  margin-top: 34px;
  max-width: 54ch;
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.65;
  opacity: 0.8;
  animation: seq-rise 700ms var(--ease-out) 620ms both;
}

.hero__cta {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation: seq-rise 700ms var(--ease-out) 740ms both;
}

.hero__meta {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line-dark);
  animation: seq-fade 900ms ease 900ms both;
}
.hero__meta-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 48px;
  justify-content: space-between;
  padding-block: 18px;
  color: var(--muted-dark);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@keyframes seq-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: var(--seq-o, 1); transform: none; }
}
.hero__lede { --seq-o: 0.8; }
@keyframes seq-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes line-rise {
  from { transform: translateY(112%); }
  to { transform: none; }
}

/* Repeat visits: skip the intro entirely. */
.no-intro .hero__mark,
.no-intro .hero__eyebrow,
.no-intro .reveal-line__inner,
.no-intro .hero__lede,
.no-intro .hero__cta,
.no-intro .hero__meta,
.no-intro .hero__trace-path,
.no-intro .hero__trace-pad {
  animation: none;
}
.no-intro .hero__mark {
  opacity: 0.09;
}

/* ---------- Circuit trace (the signature) ---------- */

.trace {
  width: 100%;
  height: 40px;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
  color: var(--line-light);
  overflow: visible;
}
.trace--dark {
  color: var(--line-dark);
}
.trace__pad {
  fill: currentColor;
  stroke: none;
}
.trace__path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
}
/* JS sets dasharray/offset; .trace--drawn releases it. */
.trace__path.is-ready {
  transition: stroke-dashoffset 900ms var(--ease-out);
}

/* ---------- What we do ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2.5rem, 4vw, 4rem);
}

.pillar {
  position: relative;
  padding-top: 30px;
}
/* Pin-and-track marker, straight off the lettermark */
.pillar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--black);
  border-radius: 50%;
  background: transparent;
  transition: background-color var(--t-micro) ease;
}
.pillar::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 20px;
  right: 0;
  height: 1px;
  background: var(--line-light);
  transition: background-color var(--t-micro) ease;
}
.pillar:hover::before {
  background: var(--black);
}
.pillar:hover::after {
  background: var(--black);
}

.pillar__title {
  font-weight: 900;
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  line-height: 1.1;
  min-height: 2.2em;
  text-transform: uppercase;
}

.pillar__lede {
  margin-top: 16px;
  min-height: 4.2em;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted-light);
}

.speclist {
  margin-top: 26px;
}
.speclist li {
  padding: 13px 0;
  border-top: 1px solid var(--line-light);
  font-weight: 500;
  font-size: 0.9375rem;
}
.speclist li:last-child {
  border-bottom: 1px solid var(--line-light);
}

/* ---------- How we work ---------- */

.principles {
  border-top: 1px solid var(--line-dark);
}

.principle {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 24px clamp(2.5rem, 6vw, 6rem);
  padding-block: clamp(2.5rem, 4.5vw, 4rem);
  border-bottom: 1px solid var(--line-dark);
}

.principle__title {
  font-weight: 900;
  font-size: clamp(1.25rem, 1.8vw, 1.625rem);
  line-height: 1.15;
  text-transform: uppercase;
}

.principle__copy {
  max-width: 62ch;
  opacity: 0.75;
}

/* ---------- What clients say (live from the Elite Suite) ---------- */

.band--words {
  border-top: 1px solid var(--line-light);
}

.section-head--words {
  margin-bottom: clamp(2.5rem, 4.5vw, 4rem);
}

/* Testimonials ride a horizontal, snap-to track — one record in view at a time. */
.words {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;          /* Firefox */
  /* JS pins the height to the tallest slide so paging doesn't shift the page. */
  transition: height 440ms var(--ease-out);
}
.words::-webkit-scrollbar {
  display: none;                  /* WebKit — nav handles paging */
}

/* Each testimonial renders as a "record": quote left, spec-sheet column right.
   align-self keeps each slide at its own content height, not the tallest. */
.word {
  flex: 0 0 100%;
  align-self: flex-start;
  box-sizing: border-box;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 360px);
  gap: 2.5rem clamp(3rem, 7vw, 7rem);
  align-items: start;
  padding: clamp(2rem, 3.5vw, 3rem) 0 clamp(1.25rem, 2.5vw, 2rem);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.word__lead {
  position: relative;
  max-width: 26ch;
  padding-top: 26px;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.7vw, 2.25rem);
  line-height: 1.22;
  text-wrap: balance;
}
/* Pin-and-track marker, same device as the pillars */
.word__lead::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--black);
  border-radius: 50%;
  background: var(--black);
}
.word__lead::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 20px;
  width: 96px;
  height: 1px;
  background: var(--black);
}

.word__quote {
  margin-top: 26px;
  max-width: 62ch;
  color: var(--charcoal);
  opacity: 0.75;
}

.word__record {
  border-top: 2px solid var(--black);
}

.word__row {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-light);
}

.word__row dt {
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.word__row dd {
  font-weight: 500;
  font-size: 0.8125rem;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.word__row--rating dd {
  letter-spacing: 0.28em;
}

/* Slider controls — mono counter, tick indicators, square chevron buttons. */
.words__controls {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 3rem);
  margin-top: clamp(1rem, 2vw, 1.5rem);
}
.words__count {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-light);
  white-space: nowrap;
}
.words__count b {
  font-weight: 400;
  color: var(--black);
}
.words__dots {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 10px;
}
.words__dot {
  width: 26px;
  height: 6px;
  padding: 0;
  border: 0;
  background: var(--line-light);
  cursor: pointer;
  transition: background-color var(--t-micro) ease;
}
.words__dot:hover {
  background: var(--muted-light);
}
.words__dot[aria-current="true"] {
  background: var(--black);
}
.words__nav {
  display: flex;
  gap: 10px;
}
.words__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--black);
  background: transparent;
  color: var(--black);
  cursor: pointer;
  transition: background-color var(--t-micro) ease, color var(--t-micro) ease,
    opacity var(--t-micro) ease;
}
.words__btn:hover {
  background: var(--black);
  color: var(--white);
}
.words__btn:disabled {
  opacity: 0.25;
  cursor: default;
}
.words__btn:disabled:hover {
  background: transparent;
  color: var(--black);
}
.words__btn svg {
  display: block;
  width: 16px;
  height: 16px;
}

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

@media (max-width: 1023px) {
  .word {
    grid-template-columns: 1fr;
  }
  .word__record {
    max-width: 460px;
  }
}

/* ---------- Partners ---------- */

/* One strip: label left, wordmarks spread across the remaining line. */
.partners {
  display: flex;
  align-items: baseline;
  gap: 20px clamp(2.5rem, 5vw, 5rem);
}

.partners__label {
  flex-shrink: 0;
}

.partners__list {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px clamp(1.5rem, 3.5vw, 3rem);
}
.partners__list li {
  font-weight: 500;
  font-size: clamp(0.9375rem, 1.3vw, 1.125rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-light);
}

@media (max-width: 1023px) {
  .partners {
    flex-direction: column;
  }
  .partners__list {
    justify-content: flex-start;
    gap: 16px clamp(2rem, 6vw, 3.5rem);
  }
}

/* ---------- Territory ---------- */

.territory {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.range {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}
.range__caption {
  text-align: left;
  padding-bottom: 16px;
  color: var(--muted-dark);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.range tr {
  border-top: 1px solid var(--line-dark);
}
.range tr:last-child {
  border-bottom: 1px solid var(--line-dark);
}
.range th {
  padding: 15px 0;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}
.range td {
  padding: 15px 0;
  text-align: right;
  color: var(--muted-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: clamp(4rem, 7vw, 6.5rem);
}

.slot__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  background: var(--charcoal);
  border: 1px solid var(--line-dark);
}
.slot__panel img {
  width: clamp(80px, 12vw, 130px);
  opacity: 0.1;
}
.slot__caption {
  padding-top: 14px;
  color: var(--muted-dark);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- Contact ---------- */

.section-head--contact {
  margin-bottom: 0;
}

/* Both columns hang from one shared hairline under the header. */
.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem clamp(3.5rem, 8vw, 8rem);
  align-items: start;
  margin-top: clamp(3rem, 5vw, 4.5rem);
  padding-top: clamp(2.75rem, 4.5vw, 4rem);
  border-top: 1px solid var(--line-light);
}

.contact__channel {
  display: block;
  margin-bottom: 42px;
}
.contact__channel:last-child {
  margin-bottom: 0;
}

.contact__label {
  display: block;
  margin-bottom: 2px;
  color: var(--muted-light);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.contact__value {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.2;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: 0 100%;
  padding-bottom: 4px;
  transition: background-size 320ms var(--ease-out);
  word-break: break-word;
}
a.contact__channel:hover .contact__value,
a.contact__channel:focus-visible .contact__value {
  background-size: 100% 2px;
}
.contact__value--static {
  background-image: none;
}

/* ---------- Form ---------- */

.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.field {
  margin-bottom: 26px;
}

.field__label {
  display: block;
  margin-bottom: 2px;
  color: var(--muted-light);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.field__input {
  width: 100%;
  padding: 4px 0 10px;
  border: 0;
  border-bottom: 1px solid var(--line-light);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  color: var(--charcoal);
  transition: border-color var(--t-micro) ease, box-shadow var(--t-micro) ease;
}
.field__input:focus {
  outline: none;
  border-bottom-color: var(--black);
  box-shadow: 0 1px 0 0 var(--black);
}
.field__input::placeholder {
  color: var(--muted-light);
  opacity: 0.7;
}
.field__input--area {
  resize: vertical;
  min-height: 96px;
}

.form__submit {
  margin-top: 6px;
  width: 100%;
}

.form__status {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--charcoal);
  min-height: 1.4em;
}

.form--sent .form__row,
.form--sent .field,
.form--sent .form__submit {
  display: none;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--black);
  color: var(--white);
  padding-block: clamp(4.5rem, 8vw, 7rem) 44px;
  border-top: 1px solid var(--line-dark);
}

.footer__logo {
  width: clamp(180px, 20vw, 232px);
  height: auto;
}

.footer__strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: clamp(3rem, 5vw, 4.5rem);
  padding-block: 30px;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.footer__label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-dark);
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.footer__value {
  font-weight: 500;
  font-size: 0.9375rem;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  padding-bottom: 3px;
  transition: background-size 280ms var(--ease-out);
}
a.footer__value:hover,
a.footer__value:focus-visible {
  background-size: 100% 1px;
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 34px;
}

.footer__tagline {
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.footer__abn,
.footer__copy {
  color: var(--muted-dark);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Scroll reveals ---------- */

/* Hiding is gated on html.js so content is never lost without JavaScript. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t-reveal) ease, transform var(--t-reveal) var(--ease-out);
}
.js [data-reveal].revealed {
  opacity: 1;
  transform: none;
}
.js [data-reveal-delay="1"] {
  transition-delay: 110ms;
}
.js [data-reveal-delay="2"] {
  transition-delay: 220ms;
}

/* ---------- 404 / utility page ---------- */

.utility {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.utility__mark {
  position: absolute;
  top: 50%;
  right: -14vw;
  width: clamp(380px, 50vw, 760px);
  translate: 0 -50%;
  opacity: 0.05;
  pointer-events: none;
}
.utility__code {
  color: var(--muted-dark);
  font-size: 0.75rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}
.utility__title {
  margin-top: 22px;
  font-weight: 900;
  font-size: clamp(2.25rem, 7vw, 5.5rem);
  line-height: 1.02;
  text-transform: uppercase;
}
.utility__lede {
  margin-top: 24px;
  max-width: 48ch;
  opacity: 0.8;
}
.utility__cta {
  margin-top: 40px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
  .nav__links,
  .nav__cta {
    display: none;
  }
  .nav__toggle {
    display: block;
  }
  .pillars {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .pillar__lede {
    min-height: 0;
  }
  .territory {
    grid-template-columns: 1fr;
  }
  .contact {
    grid-template-columns: 1fr;
    gap: 4.5rem;
  }
  .principle {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .footer__strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .hero__trace {
    display: none;
  }
  .hero__meta-inner {
    flex-direction: column;
    gap: 6px;
  }
  .form__row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .slots {
    grid-template-columns: 1fr;
  }
  .footer__base {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 479px) {
  .footer__strip {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 359px) {
  .hero__title {
    font-size: 2.5rem;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .hero__mark {
    opacity: 0.09;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .trace__path {
    stroke-dasharray: none !important;
    stroke-dashoffset: 0 !important;
  }
}
