/* ===========================================================
   Terravon Energy — site styles
   Single stylesheet. Edit the tokens below to restyle globally.
   =========================================================== */

:root {
  color-scheme: light;

  --ink:        #0B0B0C;
  --ink-80:     #2B2B2E;
  --muted:      #6B6862;
  --paper:      #FFFFFF;
  --soft:       #F6F5F2;
  --soft-2:     #EDEBE6;
  --line:       #E2DFD9;
  --accent:     #B5762F;
  --accent-dk:  #8E5A20;

  --wrap:       1180px;
  --gutter:     clamp(20px, 5vw, 56px);

  --r-sm: 4px;
  --r-md: 10px;

  --t: 220ms cubic-bezier(.2,.6,.2,1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* 16.5px on a phone, 17px from tablet up — never below the 16px mobile floor */
  font-size: clamp(16.5px, 0.18vw + 15.8px, 17px);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

::selection { background: var(--ink); color: var(--paper); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 12px 18px; z-index: 999;
}
.skip:focus { left: 8px; top: 8px; }

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

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.04;
  text-wrap: balance;
}

/* Scale is fluid across the whole 360–1440 range — the old clamps bottomed out
   below ~470px, so every phone got the identical (oversized) heading. */
h1 { font-size: clamp(2.1rem, 1.35rem + 3.3vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.45vw, 2.65rem); }
h3 { font-size: clamp(1.12rem, 1rem + 0.5vw, 1.4rem); letter-spacing: -0.02em; line-height: 1.22; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.05rem, 0.95rem + 0.44vw, 1.2rem);
  line-height: 1.5;
  color: var(--ink-80);
  max-width: 58ch;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--accent); flex: none;
}

.muted { color: var(--muted); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px;
  font-size: 0.95rem; font-weight: 700; letter-spacing: -0.01em;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--paper);
  border-radius: var(--r-sm);
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
}
.btn:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
/* Ragged half-width buttons look like a mistake on a phone; make them match. */
@media (max-width: 560px) {
  .btn-row { gap: 10px; }
  .btn-row > .btn { width: 100%; }
}

.arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .95rem; text-decoration: none;
  color: var(--ink); border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: gap var(--t), color var(--t);
}
.arrow-link:hover { gap: 14px; color: var(--accent-dk); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 76px;
}

.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo svg { height: 26px; width: auto; flex: none; }
.logo-text {
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.02;
  font-size: 1.12rem; text-transform: none;
}
.logo-text span { display: block; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none;
  font-size: .93rem; font-weight: 600;
  padding: 9px 14px; border-radius: var(--r-sm);
  color: var(--ink-80);
  transition: color var(--t), background var(--t);
}
.nav a:hover { color: var(--ink); background: var(--soft); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; background: var(--accent); margin-top: 5px;
}
/* .nav a sets a muted colour; these rules must win for the button. */
.nav .btn {
  margin-left: 12px; padding: 11px 20px;
  color: var(--paper);
  background: var(--ink);
}
.nav .btn:hover {
  color: var(--paper);
  background: var(--accent);
  border-color: var(--accent);
}
/* aria-current would otherwise darken the button text on the Contact page. */
.nav .btn[aria-current="page"] { color: var(--paper); }
.nav .btn::after { display: none; }
.nav a { white-space: nowrap; }
/* Eight items: tighten between the mobile menu and wide desktop so labels never wrap. */
@media (min-width: 961px) and (max-width: 1200px) {
  .nav { gap: 0; }
  .nav a { padding: 9px 8px; font-size: .86rem; }
  .nav .btn { margin-left: 6px; padding: 10px 14px; }
}

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 13px; cursor: pointer; color: var(--ink);
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 22px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 4px; font-size: 1.02rem; }
  .nav a[aria-current="page"]::after { width: 26px; }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
}

/* ---------- Sections ---------- */

section { position: relative; }

.section { padding: clamp(52px, 6.4vw, 92px) 0; }
.section--tight { padding: clamp(40px, 4.6vw, 64px) 0; }

/* Two full section paddings used to stack at every boundary. Where one block
   flows straight into another of the same colour, collapse the pair. */
.hero + :is(.section, .section--tight) { padding-top: clamp(24px, 2.6vw, 38px); }
.band + :is(.section, .section--tight) { padding-top: clamp(40px, 4.6vw, 66px); }
:is(.section, .section--tight) + .section--soft,
.section--soft + :is(.section, .section--tight) { padding-top: clamp(44px, 5vw, 70px); }
.section--soft { background: var(--soft); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink .lede { color: rgba(255,255,255,.76); }
.section--ink .muted { color: rgba(255,255,255,.62); }

.section-head { max-width: 60ch; margin-bottom: clamp(28px, 3.2vw, 44px); }
.section-head .lede { margin-top: 18px; }

/* A heading stacked above its lede left the whole right half of the row empty
   on desktop. Set the two side by side and the dead space becomes the column. */
@media (min-width: 900px) {
  .section-head--wide {
    max-width: none;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    column-gap: clamp(32px, 4.5vw, 64px);
    align-items: end;
  }
  .section-head--wide .eyebrow { grid-area: 1 / 1; margin-bottom: 14px; }
  .section-head--wide h2      { grid-area: 2 / 1; align-self: start; }
  .section-head--wide .lede   { grid-area: 2 / 2; margin-top: 0; max-width: 44ch; }
}

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

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

.hero { padding: clamp(44px, 5.6vw, 84px) 0 clamp(30px, 3.4vw, 48px); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.hero-grid > div:last-child {
  border-left: 1px solid var(--line);
  padding-left: clamp(24px, 4vw, 48px);
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid > div:last-child { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 32px; }
}

/* ---------- Photo band ---------- */

.band {
  position: relative;
  /* was 520px at desktop — the content only ever needed ~350, so the band
     carried 150px+ of dead pixels. Padding now sets the floor, not min-height. */
  min-height: clamp(260px, 26vw, 400px);
  padding: clamp(48px, 5.5vw, 76px) 0;
  display: flex; align-items: center;
  background-color: #14161A;
  background-image:
    linear-gradient(100deg, rgba(10,11,12,.80) 0%, rgba(10,11,12,.42) 55%, rgba(10,11,12,.28) 100%),
    linear-gradient(150deg, #2A2E35 0%, #15171B 60%, #0C0D0F 100%);
  background-size: cover;
  background-position: center;
  color: #fff;
}
.band--tanks {
  background-image:
    linear-gradient(100deg, rgba(10,11,12,.80) 0%, rgba(10,11,12,.42) 55%, rgba(10,11,12,.28) 100%),
    url("img/tanks.jpg"),
    repeating-linear-gradient(112deg, rgba(255,255,255,.028) 0 52px, rgba(255,255,255,0) 52px 150px),
    linear-gradient(150deg, #2A2E35 0%, #15171B 60%, #0C0D0F 100%);
}
.band--field {
  background-image:
    linear-gradient(100deg, rgba(10,11,12,.82) 0%, rgba(10,11,12,.50) 60%, rgba(10,11,12,.32) 100%),
    url("img/field.jpg"),
    repeating-linear-gradient(112deg, rgba(255,255,255,.032) 0 52px, rgba(255,255,255,0) 52px 150px),
    linear-gradient(150deg, #31261B 0%, #1A1512 60%, #0C0B0A 100%);
}
.band h2 { font-size: clamp(1.95rem, 1.3rem + 2.9vw, 3.3rem); max-width: 15ch; }
.band p { color: rgba(255,255,255,.8); max-width: 50ch; margin-top: 18px; }

/* ---------- Grids ---------- */

.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 860px)  { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 720px)  { .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.split {
  display: grid; grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 4.4vw, 64px); align-items: start;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 24px; } }
/* Where the left column is just a heading, it used to sit above a tall blank.
   Pinning it means that space carries the heading down past the body copy. */
@media (min-width: 881px) {
  .split > :first-child:has(> h2) {
    position: sticky; top: 104px; align-self: start;
  }
}

/* ---------- Cards ---------- */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(22px, 2.5vw, 30px);
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
  /* Grid rows stretch every card to the tallest one. Without this the slack
     piles up under the short cards; with it, the CTAs line up instead. */
  display: flex; flex-direction: column;
}
.card > .arrow-link { margin-top: auto; padding-top: 20px; align-self: flex-start; }
.card:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px -22px rgba(11,11,12,.45);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 1rem; line-height: 1.55; }

.card--flat { background: var(--soft); border-color: transparent; }
.card--flat:hover { border-color: var(--line); }

.card-num {
  font-size: .8rem; font-weight: 800; letter-spacing: .14em;
  color: var(--accent); display: block; margin-bottom: 16px;
}

.card-icon {
  width: 42px; height: 42px; margin-bottom: 20px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--soft-2); color: var(--ink);
}
.card-icon svg { width: 21px; height: 21px; }

/* ---------- Stats ---------- */

.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.section--ink .stats { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.14); }
.stat { background: var(--paper); padding: clamp(20px, 2.2vw, 28px); }
.section--ink .stat { background: var(--ink); }
.stat-num {
  font-size: clamp(2rem, 1.5rem + 2.2vw, 2.9rem); font-weight: 800;
  letter-spacing: -0.04em; line-height: 1; display: block; margin-bottom: 8px;
}
.stat-num--sm { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem); letter-spacing: -0.035em; }
/* balance keeps the four labels from wrapping at wildly different depths */
.stat-label { font-size: .94rem; font-weight: 600; color: var(--muted); letter-spacing: .01em; line-height: 1.32; text-wrap: balance; }
.section--ink .stat-label { color: rgba(255,255,255,.62); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0,1fr)); } }
/* At 2-up on a phone each cell is ~170px, which broke labels over three lines.
   Go 1-up and set number beside label so each label gets a full-width line. */
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  /* fixed first column so every label starts on the same vertical line */
  .stat { display: grid; grid-template-columns: 108px 1fr; align-items: baseline; gap: 14px; padding: 16px 18px; }
  .stat-num { margin-bottom: 0; font-size: 1.85rem; }
  .stat-num--sm { font-size: 1.4rem; }
  .stat-label { text-wrap: pretty; }
}

/* ---------- Asset / project list ---------- */

.assetlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.section--ink .assetlist { border-color: rgba(255,255,255,.16); }
.assetlist li {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: baseline;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
}
.section--ink .assetlist li { border-color: rgba(255,255,255,.16); }
.assetlist .depth {
  font-variant-numeric: tabular-nums;
  font-weight: 800; font-size: .95rem; letter-spacing: -.02em;
  color: var(--accent); min-width: 66px;
}
.assetlist .desc { font-weight: 600; letter-spacing: -.012em; }
.assetlist .basin { font-size: .9rem; color: var(--muted); text-align: right; white-space: nowrap; }
.section--ink .assetlist .basin { color: rgba(255,255,255,.62); }
@media (max-width: 720px) {
  .assetlist li { grid-template-columns: auto 1fr; }
  .assetlist .basin { grid-column: 1 / -1; text-align: left; margin-top: 2px; }
}

/* ---------- Checklist ---------- */

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 860px) {
  .checks--cols { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 40px; align-items: start; }
}
.checks li { position: relative; padding-left: 26px; }
.checks li::before {
  content: "";
  position: absolute; left: 0; top: .62em;
  width: 10px; height: 10px; background: var(--accent); border-radius: 2px;
  transform: skewX(-20deg);
}
.checks strong { font-weight: 700; }

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

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 72px); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-item:first-child { border-top: 1px solid var(--line); }
.contact-item dt { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact-item dd { margin: 0; font-size: 1.06rem; font-weight: 600; letter-spacing: -.015em; }
.contact-item dd a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-item dd a:hover { border-color: var(--accent); color: var(--accent-dk); }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem;
  padding: 13px 15px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper); color: var(--ink);
  transition: border-color var(--t), box-shadow var(--t);
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(181,118,47,.16);
}
.form-note { font-size: .9rem; color: var(--muted); max-width: 78ch; }

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

.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: clamp(44px, 5vw, 64px) 0 28px; }
.site-footer .logo-text { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 5vw, 56px); }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

.footer-brand p { margin-top: 18px; max-width: 38ch; font-size: .95rem; color: rgba(255,255,255,.62); }
.footer-col h4 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); font-weight: 700; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col a { text-decoration: none; font-size: .95rem; color: rgba(255,255,255,.78); transition: color var(--t); }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  margin-top: clamp(30px, 3.8vw, 46px); padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between;
  font-size: .875rem; color: rgba(255,255,255,.55);
}

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero { padding: clamp(44px, 5vw, 76px) 0 clamp(30px, 3.2vw, 46px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.05rem, 1.35rem + 3.1vw, 3.45rem); max-width: 18ch; }
.page-hero .lede { margin-top: 18px; }

/* Same two-column treatment as .section-head--wide, so an inner page's hero
   does not leave the right half of the first screen empty. */
@media (min-width: 900px) {
  .page-hero .wrap:has(> .lede) {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    column-gap: clamp(32px, 4.5vw, 64px);
    align-items: end;
  }
  .page-hero .wrap:has(> .lede) > .eyebrow { grid-area: 1 / 1; margin-bottom: 14px; }
  .page-hero .wrap:has(> .lede) > h1       { grid-area: 2 / 1; max-width: none; align-self: start; }
  .page-hero .wrap:has(> .lede) > .lede    { grid-area: 2 / 2; margin-top: 0; max-width: 44ch; }
}

/* ---------- Comparison table ---------- */

.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ctable {
  width: 100%; min-width: 660px;
  border-collapse: collapse;
  font-size: .95rem;
}
.ctable th, .ctable td {
  text-align: left; vertical-align: top;
  padding: 15px 20px 15px 0;
  border-bottom: 1px solid var(--line);
}
/* The table scrolls sideways on a phone; pin the row label so you can still
   tell which row you are reading once the columns slide away. */
@media (max-width: 760px) {
  .ctable tbody th, .ctable thead th:first-child {
    position: sticky; left: 0; z-index: 1;
    background: var(--paper); padding-right: 14px;
    box-shadow: 1px 0 0 var(--line);
  }
  .section--soft .ctable tbody th,
  .section--soft .ctable thead th:first-child { background: var(--soft); }
}
.ctable thead th {
  font-size: .72rem; letter-spacing: .13em; text-transform: uppercase;
  font-weight: 800; color: var(--ink);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 14px;
}
.ctable thead th:first-child { color: var(--muted); font-weight: 700; }
.ctable tbody th {
  font-weight: 700; color: var(--ink); width: 21%;
  letter-spacing: -.01em;
}
.ctable tbody td { color: var(--muted); width: 26.3%; }
.ctable tbody tr:last-child th, .ctable tbody tr:last-child td { border-bottom: 0; }
.ctable .yes { color: var(--accent); font-weight: 700; }

/* ---------- Pull quote ---------- */

.pull {
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.7rem);
  font-weight: 700; letter-spacing: -.025em; line-height: 1.3;
  color: var(--ink); max-width: 30ch;
  border-left: 3px solid var(--accent); padding-left: clamp(20px, 2.5vw, 30px);
}
.section--ink .pull { color: #fff; }
/* As a grid item the quote shrank to its text and left the rest of the column
   blank. Stretching it runs the accent rule down the full row instead. */
.split > :has(> .pull:only-child),
.split > .pull { align-self: stretch; }
.split > :has(> .pull:only-child) { display: flex; }
.split > :has(> .pull:only-child) > .pull { flex: 1; }

/* ---------- Tag pill ---------- */

.tagpill {
  display: inline-block; vertical-align: middle;
  margin-left: 8px;
  font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-dk); background: var(--soft-2);
  border-radius: 999px; padding: 4px 10px;
  position: relative; top: -2px;
}
.card--flat .tagpill { background: var(--paper); }

/* ---------- Figure ---------- */

.figure {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(14px, 2.5vw, 30px);
}
.figure img { width: 100%; height: auto; border-radius: 2px; }
.figure figcaption {
  margin-top: 14px; font-size: .94rem; line-height: 1.5; color: var(--muted); max-width: 78ch;
}

/* ---------- Extra band image ---------- */

.band--facility {
  background-image:
    linear-gradient(100deg, rgba(10,11,12,.80) 0%, rgba(10,11,12,.46) 58%, rgba(10,11,12,.30) 100%),
    url("img/facility.jpg"),
    repeating-linear-gradient(112deg, rgba(255,255,255,.028) 0 52px, rgba(255,255,255,0) 52px 150px),
    linear-gradient(150deg, #2A2E35 0%, #15171B 60%, #0C0D0F 100%);
  background-size: cover;
  background-position: center 62%;
}

.band--aerial {
  background-image:
    linear-gradient(100deg, rgba(8,7,6,.88) 0%, rgba(8,7,6,.62) 52%, rgba(8,7,6,.38) 100%),
    url("img/aerial.jpg"),
    linear-gradient(150deg, #3A2E22 0%, #211A13 60%, #0E0B08 100%);
  background-size: cover;
  background-position: center 45%;
}

.band--section {
  background-image:
    linear-gradient(100deg, rgba(10,11,12,.94) 0%, rgba(10,11,12,.85) 50%, rgba(10,11,12,.74) 100%),
    /* the log headers sit in white paper at the top of the scan; hold them down */
    linear-gradient(to bottom, rgba(10,11,12,.62) 0%, rgba(10,11,12,0) 42%),
    url("img/log-section.jpg"),
    linear-gradient(150deg, #23262B 0%, #15171B 60%, #0C0D0F 100%);
  background-size: cover;
  background-position: center 68%;
}

/* ---------- Mobile tap targets ---------- */
/* Audit at 390px found arrow links at 28px and footer links at 17px; the
   guideline is 44. Padding is added rather than type size, so nothing reflows. */
@media (max-width: 760px) {
  .arrow-link { padding-top: 8px; padding-bottom: 8px; }
  .footer-col ul { gap: 2px; }
  .footer-col a { display: inline-block; padding: 9px 0; }
  .contact-item dd a { display: inline-block; padding: 4px 0; }
}

/* ---------- Figure beside text (Operations map) ---------- */
.split--figure { grid-template-columns: 0.9fr 1.35fr; align-items: center; }
.split--figure > :first-child { position: static; }   /* no sticky here — the row is short */
.legend { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .92rem; font-weight: 600; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 9px; }
.swatch { width: 14px; height: 14px; border-radius: 3px; flex: none; }
@media (max-width: 880px) { .split--figure { grid-template-columns: 1fr; } }
