/* ==========================================================================
   Top End Energy — main.css
   Design source: Figma "website" / node 23:8121
   Type: Space Grotesk (variable) + Space Mono, self-hosted
   ========================================================================== */

/* --------------------------------------------------------------- 1. Fonts */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
  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: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/space-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/space-mono-latin.woff2') format('woff2');
  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;
}

/* -------------------------------------------------------------- 2. Tokens */

:root {
  /* Colour — taken verbatim from the Figma layers */
  --ink: #0f0f0f;
  --ink-64: rgba(15, 15, 15, 0.64);
  --ink-32: rgba(15, 15, 15, 0.32);
  --ink-16: rgba(15, 15, 15, 0.16);
  --ink-08: rgba(15, 15, 15, 0.08);
  --paper: #ffffff;
  --line: #edeeee;
  --line-strong: #dcdedd;

  --on-dark: #ffffff;
  --on-dark-64: rgba(255, 255, 255, 0.64);
  --on-dark-32: rgba(255, 255, 255, 0.32);
  --on-dark-16: rgba(255, 255, 255, 0.16);
  --dark-raise: #181818;
  --dark-line: #353535;

  --accent: #592722;
  --accent-16: rgba(89, 39, 34, 0.16);
  --accent-08: rgba(89, 39, 34, 0.08);
  --accent-40: rgba(89, 39, 34, 0.4);

  /* Type */
  --font-sans: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system,
    'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, Consolas,
    monospace;

  --fs-display: 64px;
  --fs-h2: 32px;
  --fs-lg: 18px;
  --fs-md: 16px;
  --fs-sm: 14px;
  --fs-xs: 12px;

  /* Layout */
  --gutter: 80px;
  --shell: 1280px;
  --section-y: 128px;
  --header-h: 64px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.6s;
  --dur-fast: 0.22s;
}

@media (max-width: 1100px) {
  :root {
    --gutter: 40px;
    --section-y: 96px;
  }
}
@media (max-width: 720px) {
  :root {
    --gutter: 24px;
    --section-y: 72px;
    --fs-display: 40px;
    --fs-h2: 26px;
    --fs-lg: 16px;
  }
}
@media (max-width: 400px) {
  :root {
    --gutter: 20px;
    --fs-display: 34px;
  }
}

/* --------------------------------------------------------------- 3. Reset */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  /* `clip` rather than `hidden`: it contains stray horizontal overflow
     without turning the element into a scroll container, which would break
     window scrolling and `position: sticky` further down the tree. */
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-locked {
  overflow: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

ul,
ol {
  margin: 0;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus-visible {
  top: 12px;
}

/* ---------------------------------------------------------- 4. Primitives */

.shell {
  width: 100%;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-top: var(--section-y);
}
.section--tail {
  padding-bottom: var(--section-y);
}

.section__head {
  margin-bottom: 64px;
}

.h2 {
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
  max-width: 680px; /* the measure the headings are set to in Figma */
}

.lede {
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

/* Eyebrow — mono, uppercase, with the 8px square marker */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-lg);
  line-height: 1.6;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  background: currentColor;
}

/* Split head: eyebrow left, statement right (Figma "title" frames) */
.split-head {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 220px;
  align-items: start;
}
@media (max-width: 1180px) {
  .split-head {
    gap: 64px;
    grid-template-columns: 260px minmax(0, 1fr);
  }
}
@media (max-width: 900px) {
  .split-head {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.muted {
  color: var(--ink-64);
}
.text-sm {
  font-size: var(--fs-sm);
}
.text-xs {
  font-size: var(--fs-xs);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 14px 0 18px;
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--dur-fast) var(--ease-inout),
    border-color var(--dur-fast) var(--ease-inout);
}
.btn--sm {
  height: 40px;
}
.btn:not(.btn--ghost) {
  padding-right: 14px;
}
.btn--ghost {
  padding-inline: 18px;
}

/* The wipe layer: a colour panel that sweeps up from the bottom on hover. */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translateY(101%);
  transition: transform 0.42s var(--ease);
}
.btn:hover::before,
.btn:focus-visible::before {
  transform: translateY(0);
}

.btn--solid-light {
  background: var(--paper);
  color: var(--ink);
}
.btn--solid-light::before {
  background: var(--ink);
}
.btn--solid-light:hover,
.btn--solid-light:focus-visible {
  color: var(--paper);
}

.btn--solid-dark {
  background: var(--ink);
  color: var(--paper);
}
.btn--solid-dark::before {
  background: var(--accent);
}

.btn--ghost {
  border-color: var(--on-dark-16);
  color: var(--on-dark);
}
.btn--ghost::before {
  background: var(--paper);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--ink);
  border-color: var(--paper);
}

/* Inside a solid header the ghost button flips to the light palette. */
.header.is-solid .btn--ghost,
.header--static .btn--ghost {
  border-color: var(--line);
  color: var(--ink);
}
.header.is-solid .btn--ghost::before,
.header--static .btn--ghost::before {
  background: var(--ink);
}
.header.is-solid .btn--ghost:hover,
.header.is-solid .btn--ghost:focus-visible,
.header--static .btn--ghost:hover,
.header--static .btn--ghost:focus-visible {
  color: var(--paper);
  border-color: var(--ink);
}

/* On phones every button spans the full content width. */
@media (max-width: 720px) {
  .btn {
    width: 100%;
    justify-content: center;
    padding-inline: 18px;
  }
  .hero__actions {
    width: 100%;
    gap: 12px;
  }
  .form__foot {
    gap: 20px;
  }
  .form__foot .btn {
    flex: 0 0 auto;
  }
}

.btn__arrow {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  transition: transform 0.42s var(--ease);
}
.btn:hover .btn__arrow,
.btn:focus-visible .btn__arrow {
  transform: translateX(4px);
}

/* Hairline grid: 1px gaps rendered by the parent's background --------------- */

.grid-rule {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.grid-rule > * {
  background: var(--paper);
}
.grid-rule--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1000px) {
  .grid-rule--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .grid-rule--4 {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------- 5. Header */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gutter);
  color: var(--on-dark);
  border-bottom: 1px solid var(--on-dark-16);
  background: transparent;
  transition: background 0.4s var(--ease-inout),
    border-color 0.4s var(--ease-inout), color 0.4s var(--ease-inout);
}

/* Scrolled state — white plate, grey hairlines, dark type. */
.header.is-solid,
.header--static {
  background: var(--paper);
  color: var(--ink);
  border-bottom-color: var(--line);
}

.header__left {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}

.logo {
  display: block;
  width: 119.22px;
  height: 26px;
  background: currentColor;
  -webkit-mask: url('../img/logo-mask.png') no-repeat center / contain;
  mask: url('../img/logo-mask.png') no-repeat center / contain;
  transition: opacity var(--dur-fast) var(--ease);
}
.logo:hover {
  opacity: 0.7;
}

.nav {
  display: flex;
  align-items: stretch;
  height: 100%;
  border-left: 1px solid var(--on-dark-16);
  transition: border-color 0.4s var(--ease-inout);
}
.header.is-solid .nav,
.header--static .nav {
  border-left-color: var(--line);
}

.nav__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 32px;
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.01em;
  border-right: 1px solid var(--on-dark-16);
  position: relative;
  transition: border-color 0.4s var(--ease-inout);
}
.header.is-solid .nav__item,
.header--static .nav__item {
  border-right-color: var(--line);
}

/* Hover: a rule wipes in along the bottom edge of the cell. */
.nav__item::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.38s var(--ease);
}
.nav__item:hover::after,
.nav__item:focus-visible::after,
.nav__item[aria-current='page']::after {
  transform: scaleX(1);
}

.header__cta {
  display: inline-flex;
}

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

.burger {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid currentColor;
  border-color: var(--on-dark-16);
  transition: border-color 0.4s var(--ease-inout);
}
.header.is-solid .burger,
.header--static .burger {
  border-color: var(--line);
}
.burger__box {
  position: relative;
  width: 16px;
  height: 10px;
}
.burger__box span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.2s linear;
}
.burger__box span:nth-child(1) {
  top: 0;
}
.burger__box span:nth-child(2) {
  bottom: 0;
}
.burger[aria-expanded='true'] .burger__box span:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}
.burger[aria-expanded='true'] .burger__box span:nth-child(2) {
  transform: translateY(-4.5px) rotate(-45deg);
}

.drawer {
  position: fixed;
  inset: var(--header-h) 0 auto;
  z-index: 99;
  background: var(--paper);
  /* Clip the fill to the padding box and keep the border transparent while
     closed: otherwise the collapsed drawer paints a 1px rule directly under
     the header and hides the header's own 16% hairline. */
  background-clip: padding-box;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.drawer.is-open {
  grid-template-rows: 1fr;
  border-bottom-color: var(--line);
}
.drawer__inner {
  overflow: hidden;
}
.drawer__list {
  list-style: none;
  padding: 8px var(--gutter) 24px;
}
.drawer__list li {
  border-bottom: 1px solid var(--line);
}
.drawer__list a {
  display: block;
  padding: 18px 0;
  font-size: var(--fs-lg);
  font-weight: 500;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.drawer.is-open .drawer__list a {
  opacity: 1;
  transform: none;
  transition-delay: calc(60ms * var(--i, 0) + 80ms);
}
/* Block-level so it fills the drawer minus its own margins — `width: 100%`
   would add to the margins and overflow. */
.drawer__cta {
  display: flex;
  justify-content: center;
  width: auto;
  margin: 20px var(--gutter) 28px;
}

@media (max-width: 1000px) {
  .nav,
  .header__cta {
    display: none;
  }
  .burger {
    display: grid;
  }
}

/* ----------------------------------------------------------------- 6. Hero */

.hero {
  position: relative;
  min-height: 900px;
  display: flex;
  align-items: flex-end;
  padding: var(--gutter);
  padding-top: calc(var(--header-h) + 40px);
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}
@media (max-height: 940px) and (min-width: 1001px) {
  .hero {
    min-height: 100svh;
  }
}
@media (max-width: 720px) {
  .hero {
    min-height: 640px;
    min-height: 100svh;
  }
}

.hero__media {
  position: absolute;
  inset: -2%;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  opacity: 0;
  transition: transform 1.6s var(--ease), opacity 1s ease;
}
.is-ready .hero__media img {
  transform: scale(1);
  opacity: 1;
}

/* Two gradient scrims, matching the Figma overlay-top / overlay-bot layers. */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  z-index: -1;
  pointer-events: none;
}
.hero::before {
  top: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0));
}
.hero::after {
  bottom: 0;
  height: 44.44%; /* 400px of the 900px hero frame */
  /* Lands on solid --ink so the hero meets the Investor Hub with no seam. */
  background: linear-gradient(to top, #0f0f0f 0%, rgba(15, 15, 15, 0) 100%);
}

.hero__content {
  position: relative;
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  color: var(--on-dark);
}
@media (max-width: 720px) {
  .hero__content {
    gap: 28px;
  }
}

.hero__title {
  font-size: var(--fs-display);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 500;
}

.hero__sub {
  font-size: var(--fs-lg);
  color: var(--on-dark-64);
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Load-in: each hero row rises into place. */
.hero__content > * {
  opacity: 0;
  transform: translateY(18px);
}
.is-ready .hero__content > * {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.is-ready .hero__content > :nth-child(1) {
  transition-delay: 0.15s;
}
.is-ready .hero__content > :nth-child(2) {
  transition-delay: 0.24s;
}
.is-ready .hero__content > :nth-child(3) {
  transition-delay: 0.33s;
}
.is-ready .hero__content > :nth-child(4) {
  transition-delay: 0.42s;
}

/* ------------------------------------------------------- 7. Element cards */

.elements {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 80px;
}
@media (max-width: 900px) {
  .elements {
    grid-template-columns: 1fr;
  }
}

/* The molecule PNGs are exported from Figma with the card's #EDEEEE baked in
   as an opaque background, so this card's fill must stay exactly --line —
   tinting it on hover would reveal the image as a lighter rectangle. */
.el-card {
  background: var(--line);
  padding: 32px;
  min-height: 416px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.el-card__symbol {
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink-16);
  transition: color 0.5s var(--ease-inout);
}
.el-card:hover .el-card__symbol {
  color: var(--ink-32);
}
.el-card__name {
  font-weight: 500;
  font-size: var(--fs-md);
}
.el-card__body {
  font-size: var(--fs-sm);
  color: var(--ink-64);
}

.el-card__figure {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 180px;
  padding-top: 8px;
}

/* Molecule diagrams — 2x PNG exported straight from the Figma comps, so the
   geometry is the designer's rather than rebuilt by hand. Intrinsic sizes:
   H2 168x48, He 192x186, CH4 200x184.                                       */

.mol-img {
  display: block;
  height: auto;
  opacity: 0;
  transform: scale(0.94);
}
.is-inview .mol-img {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease) 0.15s, transform 0.8s var(--ease) 0.15s;
}

/* --------------------------------------------------------------- 8. Map */

.map {
  position: relative;
  margin-top: 64px;
  width: 100%;
  aspect-ratio: 1280 / 568;
}
.map__world {
  position: absolute;
  inset: 0;
}
.map__world img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Callout: mono chip, title, blurb. Anchored in % of the 1280x568 canvas. */
.callout {
  position: absolute;
  /* 320px on the 1280 design canvas. Below that the map shrinks but the
     callouts must shrink with it, or Kansas rides over the Texas block. */
  width: min(320px, 25%);
  max-width: 40vw;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.callout__chip {
  position: relative;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 6px;
  background: var(--accent-08);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  line-height: 1.6;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}
.callout__name {
  font-size: var(--fs-sm);
  font-weight: 500;
}
.callout__body {
  font-size: var(--fs-xs);
  color: var(--ink-64);
}

/* Corner ticks — 4 small L-shaped marks at the corners of a box. */
.ticks__b {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ticks::before,
.ticks::after,
.ticks > .ticks__b::before,
.ticks > .ticks__b::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  border-color: var(--accent);
  border-style: solid;
  border-width: 0;
}
.ticks::before {
  top: 0;
  left: 0;
  border-top-width: 1px;
  border-left-width: 1px;
}
.ticks::after {
  top: 0;
  right: 0;
  border-top-width: 1px;
  border-right-width: 1px;
}
.ticks > .ticks__b::before {
  bottom: 0;
  left: 0;
  border-bottom-width: 1px;
  border-left-width: 1px;
}
.ticks > .ticks__b::after {
  bottom: 0;
  right: 0;
  border-bottom-width: 1px;
  border-right-width: 1px;
}

/* Target marker sitting on the map */
.target {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--accent-16);
}
.target::before,
.target::after,
.target > .ticks__b::before,
.target > .ticks__b::after {
  width: 4px;
  height: 4px;
}

/* Connector rules */
.wire {
  position: absolute;
  background: var(--accent-40);
  transform-origin: left center;
}
.wire--h {
  height: 1px;
}

/* Anchors, in % of the 1280 x 568 design canvas ---------------------------- */

/* Kansas — pin at x 248, callout at x 410, so the wire runs pin -> callout:
   it starts 8px past the 16px target and stops 8px short of the text block. */
.callout--kansas {
  left: 32.03%;
  top: 39.44%;
}
.wire--kansas {
  left: calc(19.375% + 24px);
  right: calc(67.97% + 8px);
  top: 41.55%;
}
.target--kansas {
  left: 19.375%;
  top: 40.14%;
}

/* Texas — callout on the left margin, wire running out of the chip to the pin.
   100px is the "TEXAS, USA" chip plus its gap, so it is measured in px. */
.callout--texas {
  left: 0;
  top: 43.66%;
}
.wire--texas {
  left: 100px;
  right: 82.03%;
  top: 45.77%;
}
.target--texas {
  left: 18.59%;
  top: 44.37%;
}

/* McArthur — single horizontal wire now; the elbow down to Australia is gone.
   230px is the "NORTHERN TERRITORY, AUSTRALIA" chip plus its gap. */
.callout--mcarthur {
  left: 55.16%;
  top: 73.24%;
}
.wire--mcarthur {
  left: calc(55.16% + 230px);
  right: 16.72%;
  top: 75.35%;
}
.target--mcarthur {
  left: 83.91%;
  top: 73.94%;
}

/* Stacked fallback for narrow screens */
.map-list {
  display: none;
  margin-top: 40px;
}
@media (max-width: 1000px) {
  /* main.js relocates the callouts into .map-list; this also covers the
     no-JS case, where they would otherwise pile up over a narrow map. */
  .map > .callout,
  .wire {
    display: none;
  }
  .map-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
  }
  .map-list .callout {
    display: flex;
    position: static;
    width: auto;
    max-width: none;
    background: var(--paper);
    padding: 24px;
  }
}
@media (max-width: 720px) {
  .map-list {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------ 9. Stat strip */

.stat {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stat__value {
  font-size: var(--fs-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums lining-nums;
}
.stat__unit {
  font-size: var(--fs-h2);
  letter-spacing: -0.02em;
}
.stat__rule {
  height: 1px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease) 0.15s;
}
.is-inview .stat__rule {
  transform: scaleX(1);
}
.stat__label {
  font-size: var(--fs-md);
  color: var(--ink-64);
}

.disclaimer {
  margin-top: 32px;
  font-size: var(--fs-xs);
  color: var(--ink-64);
}

/* ------------------------------------------------------------ 10. Feature */

.feature {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.feature__icon {
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
}
.feature__icon img {
  width: 100%;
  height: 100%;
}
.feature__title {
  font-size: var(--fs-md);
  font-weight: 500;
}
.feature__body {
  font-size: var(--fs-sm);
  color: var(--ink-64);
}

/* ---------------------------------------------------------- 11. Investor hub */

.hub {
  background: var(--ink);
  color: var(--on-dark);
}
.hub .eyebrow,
.hub .lede {
  color: var(--on-dark);
}

.hub__panel {
  margin-top: 64px;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--dark-line);
  border: 1px solid var(--dark-line);
  border-bottom: 0;
}
.tab {
  height: 56px;
  display: grid;
  place-items: center;
  padding-inline: 16px;
  text-align: center;
  background: var(--dark-raise);
  color: var(--on-dark-64);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  line-height: 20px;
  text-transform: uppercase;
  transition: background 0.35s var(--ease-inout), color 0.35s var(--ease-inout);
}
.tab:hover {
  color: var(--on-dark);
}
.tab[aria-selected='true'] {
  background: var(--ink);
  color: var(--on-dark);
}
@media (max-width: 900px) {
  .tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tab {
    font-size: var(--fs-xs);
    height: 52px;
  }
}

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

.doc {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 32px;
  border-bottom: 1px dashed var(--dark-line);
  position: relative;
  transition: background 0.35s var(--ease-inout);
}
.doc:hover {
  background: var(--dark-raise);
}
.doc__main {
  flex: 1;
  min-width: 0;
}
.doc__title {
  display: block;
  font-size: var(--fs-md);
  font-weight: 500;
}
.doc__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--on-dark-64);
}
.doc__meta span:nth-child(2) {
  width: 4px;
  height: 4px;
  background: var(--on-dark-64);
  flex: 0 0 auto;
}
.doc__dl {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: var(--on-dark);
}
.doc__dl svg {
  width: 24px;
  height: 24px;
  transition: transform 0.4s var(--ease);
}
.doc:hover .doc__dl svg {
  transform: translateY(2px);
}

/* Rows animate in on load and on tab change */
.doc {
  opacity: 0;
  transform: translateY(8px);
}
.hub__list.is-shown .doc {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease),
    background 0.35s var(--ease-inout);
  transition-delay: calc(38ms * var(--i, 0));
}

.doc--hidden {
  display: none;
}
.doc--last {
  border-bottom: 0;
}

.hub__more {
  width: 100%;
  padding: 16px 32px;
  text-align: center;
  font-size: var(--fs-md);
  font-weight: 500;
  border-top: 1px solid var(--dark-line);
  transition: background 0.35s var(--ease-inout);
}
.hub__more:hover {
  background: var(--dark-raise);
}
.hub__empty {
  padding: 48px 32px;
  text-align: center;
  color: var(--on-dark-64);
  font-size: var(--fs-sm);
}

/* -------------------------------------------------------------- 12. People */

.people {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 16px;
  margin-top: 64px;
}
@media (max-width: 1000px) {
  .people {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .people {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 12px;
  }
}

.person__photo {
  aspect-ratio: 308 / 240;
  overflow: hidden;
  background: var(--line);
}
.person__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.6s var(--ease-inout);
}
.person:hover .person__photo img {
  transform: scale(1.04);
}
.person__name {
  margin-top: 24px;
  font-size: var(--fs-md);
  font-weight: 500;
}
.person__role {
  font-size: var(--fs-sm);
  color: var(--ink-64);
}

/* ------------------------------------------------------------ 13. Enquiry */

.enquiry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .enquiry {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}
.enquiry__intro {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
/* Label + control only: 22 + 12 + 40 = the 74px field height from Figma. The
   error message is taken out of flow so an empty one cannot add a flex gap
   and push the 36px rhythm out to 48px. */
.field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.field__label {
  font-size: var(--fs-sm);
  color: var(--ink-64);
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: var(--fs-sm);
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 9px 12px;
  transition: border-color 0.3s var(--ease-inout),
    box-shadow 0.3s var(--ease-inout);
}
.field input {
  height: 40px;
}
.field textarea {
  height: 80px; /* Figma; without this the rows attribute wins and gives 87px */
  min-height: 80px;
  resize: vertical;
  display: block;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-32);
}
.field input:hover,
.field textarea:hover {
  border-color: var(--line-strong);
}
.field input:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.field.has-error input,
.field.has-error textarea {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.field__error {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--accent);
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.field.has-error .field__error {
  opacity: 1;
  transform: none;
}

.form__foot {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}
.form__note {
  flex: 1;
  min-width: 220px;
  font-size: var(--fs-sm);
  color: var(--ink-64);
}
.form__note a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form__status {
  font-size: var(--fs-sm);
  color: var(--ink-64);
}
/* Nothing sits below the button row in the design, so don't reserve a line. */
.form__status:empty {
  display: none;
}

/* -------------------------------------------------------------- 14. Footer */

.footer {
  background: var(--ink);
  color: var(--on-dark);
  padding-top: 64px;
}
.footer__main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 80px;
  padding-bottom: 64px;
}
@media (max-width: 900px) {
  .footer__main {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 32px;
  font-size: var(--fs-sm);
  color: var(--on-dark-64);
}
.footer__brand {
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--on-dark);
}
.footer__big {
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--on-dark);
  /* The email address is one long unbreakable token — let it wrap rather
     than push the page wider than the viewport on small screens. */
  overflow-wrap: break-word;
}
@media (max-width: 560px) {
  .footer__big {
    font-size: 22px;
  }
}
a.footer__big {
  display: inline-block;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.5s var(--ease);
}
a.footer__big:hover {
  background-size: 100% 1px;
}

.social {
  display: flex;
  gap: 16px;
}
.social a {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--on-dark-16);
  border-radius: 999px;
  color: var(--on-dark);
  transition: background 0.35s var(--ease-inout), color 0.35s var(--ease-inout),
    border-color 0.35s var(--ease-inout);
}
.social a:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.footer__end {
  border-top: 1px solid var(--on-dark-16);
  padding-block: 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 80px;
  font-size: var(--fs-sm);
  color: var(--on-dark-64);
}
@media (max-width: 720px) {
  .footer__end {
    grid-template-columns: 1fr;
  }
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__legal a {
  position: relative;
  transition: color 0.3s var(--ease-inout);
}
.footer__legal a:hover {
  color: var(--on-dark);
}
.footer__legal span {
  opacity: 0.4;
}

/* ------------------------------------------------------- 15. Legal pages */

.legal-hero {
  padding-top: calc(var(--header-h) + 96px);
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line);
}
.legal-hero__title {
  font-size: var(--fs-display);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-top: 28px;
  max-width: 18ch;
}
.legal-hero__meta {
  margin-top: 28px;
  font-size: var(--fs-sm);
  color: var(--ink-64);
}

.legal-body {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 80px;
  padding-top: 64px;
  padding-bottom: var(--section-y);
}
@media (max-width: 980px) {
  .legal-body {
    /* minmax(0, …) rather than 1fr: the cookie table sets a min-width, and a
       bare 1fr track floors at min-content and drags the page wider. */
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  align-self: start;
}
@media (max-width: 980px) {
  .toc {
    position: static;
    border: 1px solid var(--line);
    padding: 24px;
  }
}
.toc__label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  color: var(--ink-64);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.toc ol {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  counter-reset: toc;
}
.toc li {
  counter-increment: toc;
}
.toc a {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  font-size: var(--fs-sm);
  color: var(--ink-64);
  transition: color 0.3s var(--ease-inout);
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-32);
  padding-top: 2px;
  transition: color 0.3s var(--ease-inout);
}
.toc a:hover,
.toc a.is-active {
  color: var(--ink);
}
.toc a.is-active::before {
  color: var(--accent);
}

.prose {
  max-width: 72ch;
  min-width: 0;
}
.prose > * + *,
.prose section > * + * {
  margin-top: 20px;
}
.prose section + section {
  margin-top: 56px;
}
.prose h2 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  scroll-margin-top: calc(var(--header-h) + 32px);
}
.prose section > h2 + * {
  margin-top: 24px;
}
.prose h3 {
  font-size: var(--fs-md);
  font-weight: 500;
}
.prose section > * + h3 {
  margin-top: 32px;
}
.prose section > h3 + * {
  margin-top: 12px;
}
.prose p,
.prose li {
  color: var(--ink-64);
  font-size: var(--fs-md);
}
.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--ink-32);
  transition: text-decoration-color 0.3s var(--ease-inout);
}
.prose a:hover {
  text-decoration-color: var(--ink);
}
.prose ul,
.prose ol {
  padding-left: 0;
  list-style: none;
}
.prose li + li {
  margin-top: 10px;
}
.prose ul > li {
  position: relative;
  padding-left: 22px;
}
.prose ul > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 1px;
  background: var(--ink-32);
}
.prose ol {
  counter-reset: p;
}
.prose ol > li {
  position: relative;
  padding-left: 28px;
  counter-increment: p;
}
.prose ol > li::before {
  content: counter(p) '.';
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-32);
}
.prose strong {
  color: var(--ink);
  font-weight: 500;
}

.prose__table {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  overscroll-behavior-x: contain;
}
.prose table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.prose th {
  font-weight: 500;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0;
  background: #fafbfb;
}
.prose td {
  color: var(--ink-64);
}
.prose tr:last-child td {
  border-bottom: 0;
}

.callout-box {
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  padding: 24px;
  background: #fafbfb;
}
.callout-box p {
  font-size: var(--fs-sm);
}

/* -------------------------------------------------------------- 15b. Press */

/* Shared mono tag — a standalone version of the map callout chip. */
.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 6px;
  background: var(--accent-08);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  line-height: 1.6;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Index --------------------------------------------------------------------- */

/* Hero variant used on the press index — no divider rule under the title,
   and tighter vertical spacing than the legal pages. */
.legal-hero--flush {
  border-bottom: 0;
  padding-top: calc(var(--header-h) + 52px);
  padding-bottom: 4px;
}

/* Centred hero — title + description sit on the middle axis. */
.legal-hero--center {
  text-align: center;
}
.legal-hero--center .legal-hero__title,
.legal-hero--center .legal-hero__meta {
  margin-inline: auto;
}
.legal-hero--center .legal-hero__meta {
  max-width: 60ch;
}

/* Tag filters — small outlined toggles, active one flips to solid ink. */
.press-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.filter {
  height: 34px;
  padding: 0 14px;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-64);
  border: 1px solid var(--line-strong);
  transition: color 0.3s var(--ease-inout), border-color 0.3s var(--ease-inout),
    background 0.3s var(--ease-inout);
}
.filter:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.filter[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.press-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  margin-top: 40px;
  margin-bottom: var(--section-y);
}

.press-item {
  background: var(--paper);
  color: inherit;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 32px;
  padding: 32px 0;
  align-items: start;
}
.press-item[hidden] {
  display: none;
}
@media (max-width: 720px) {
  .press-item {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px 0;
  }
}

/* Fade the matching rows in when a filter is applied. */
@keyframes press-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.press-item.is-enter {
  animation: press-in 0.32s var(--ease);
}

.press-item__date {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--ink-64);
  padding-top: 3px;
}

.press-item__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.press-item__title {
  display: block;
  align-self: stretch;
  font-size: var(--fs-lg);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.press-item:hover .press-item__title {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.press-item__excerpt {
  align-self: stretch;
  font-size: var(--fs-sm);
  color: var(--ink-64);
}
/* The list paints a hairline grid: rows sit on --paper and the 1px gaps let the
   container's colour through. An empty state has to cover it the same way, or
   the whole container reads as one grey slab. */
.press-empty {
  background: var(--paper);
  padding: 48px 32px;
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--ink-64);
}
/* Nothing published at all. No list is drawn around it, so it needs its own
   room rather than borrowing the list's. */
.press-empty--page {
  padding: 96px 32px var(--section-y);
}

/* Article ---------------------------------------------------------------- */

.article__lead {
  font-size: var(--fs-lg);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}

/* Article with no sidebar — single measure column, centred on the page. */
.legal-body--solo {
  grid-template-columns: minmax(0, 1fr);
}
.legal-body--solo .prose {
  margin-inline: auto;
}

/* Article hero — headline sits between the display and legal-page sizes. */
.legal-hero--article .legal-hero__title {
  font-size: 52px;
  margin-top: 0;
  max-width: 24ch;
}
@media (max-width: 720px) {
  .legal-hero--article .legal-hero__title {
    font-size: 34px;
  }
}

.pull {
  margin: 40px 0;
  padding-left: 24px;
  border-left: 2px solid var(--accent);
}
.pull p {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--ink);
}
.pull cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-size: var(--fs-sm);
  color: var(--ink-64);
}
@media (max-width: 560px) {
  .pull p {
    font-size: var(--fs-lg);
  }
}

/* ------------------------------------------------------ 16. Scroll reveal */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--delay, 0s);
}
[data-reveal].is-inview {
  opacity: 1;
  transform: none;
}

/* Map: wires draw, targets settle */
.wire {
  transform: scaleX(0);
}
.is-inview .wire {
  transform: scaleX(1);
  transition: transform 0.75s var(--ease) calc(var(--delay, 0s) + 0.15s);
}
.target {
  opacity: 0;
  transform: scale(1.6);
}
.is-inview .target {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s var(--ease) calc(var(--delay, 0s) + 0.75s),
    transform 0.6s var(--ease) calc(var(--delay, 0s) + 0.75s);
}

/* --------------------------------------------- 17. Reduced motion / print */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  [data-reveal],
  .mol-img,
  .target,
  .doc,
  .hero__content > *,
  .hero__media img,
  .drawer__list a,
  .mol-img {
    opacity: 1 !important;
    transform: none !important;
  }
  .wire,
  .stat__rule {
    transform: scaleX(1) scaleY(1) !important;
  }
}

@media print {
  .header,
  .footer,
  .toc {
    display: none !important;
  }
  body {
    color: #000;
  }
  .prose p,
  .prose li {
    color: #000;
  }
}
