/* Arial sized to Hanken Grotesk's metrics, so the page does not jump when the web font arrives. */
@font-face {
  font-family: "Hanken Grotesk Fallback"; src: local("Arial");
  size-adjust: 99.3%; ascent-override: 100.7%; descent-override: 30.2%; line-gap-override: 0%;
}
@font-face {
  font-family: "IBM Plex Sans Fallback"; src: local("Arial");
  size-adjust: 101.1%; ascent-override: 101.4%; descent-override: 27.2%; line-gap-override: 0%;
}

/* Newington Resource Group: a board of tiles in the ON.energy manner.
   Black ground, light grotesk, one signal yellow, monochrome pictures. */

:root {
  --bg: #000000;
  --tile: #161616;
  --tile-2: #202020;
  --tile-3: #2c2c2c;
  --pale: #ececec;
  --ink: #eeeeee;
  --ink-dark: #0d0d0d;
  --soft: #9b9b9b;
  --accent: #ffe81f;
  --accent-2: #f2d900;
  --accent-ink: #0d0d0d;

  /* Steps between the main tokens: the darker tile bands, three greys, and the yellow's ramp for the five stages. */
  --tile-low: #111111;
  --tile-mid: #1c1c1c;
  --tile-4: #383838;
  --grey-1: #4a4a4a;
  --grey-2: #5c5c5c;
  --grey-3: #b4b4b4;
  --ink-dark-soft: #444444;
  --accent-900: #2a2600;
  --accent-700: #4f4700;
  --accent-500: #8f8100;
  --accent-300: #cdbb00;
  --accent-pale: #fff6a6;
  --veil-light: rgba(255, 255, 255, 0.06);
  --veil-dark: rgba(13, 13, 13, 0.2);

  /* Two families, two jobs: the light grotesk speaks (the name, headings, figures), Plex reads (every paragraph, row, label and control). */
  --font: "Hanken Grotesk", "Hanken Grotesk Fallback", Arial, sans-serif;
  --font-text: "IBM Plex Sans", "IBM Plex Sans Fallback", Arial, sans-serif;

  /* Three weights, three jobs: 300 speaks (headings, display, lead), 400 reads (body, notes, labels), 500 acts (buttons, names, tabs). */
  --w-display: 300;
  --w-read: 400;
  --w-act: 500;

  --t-xs: 0.875rem;                                   /* 14px: notes, labels */
  --t-s: clamp(1rem, 0.96rem + 0.18vw, 1.125rem);     /* 16-18px: running text */
  --t-lead: clamp(1.25rem, 1.05rem + 0.55vw, 1.5rem); /* 20-24px: lead paragraphs */
  --t-m: clamp(1.375rem, 1rem + 1.25vw, 2.125rem);    /* 22-34px: statements, row titles */
  --t-l: clamp(2.25rem, 1.4rem + 2.9vw, 3.75rem);     /* 36-60px: section headings */
  --t-xl: clamp(4rem, 1rem + 9vw, 9.5rem);            /* 64-152px: the name, the slogan */

  --gap: 8px;
  --margin: 16px;
  --radius: 10px;
  --section: clamp(7.5rem, 10vw, 11rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-text); font-weight: var(--w-read); font-size: var(--t-s); line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
p { text-wrap: pretty; }
h1, h2, h3, .band-name, .mark, .slogan-text, .figure-tile span, .marquee-track span, .plan-figs .num, .cut-action::after, .who-lead, .blk { font-family: var(--font); }
h1, h2, h3 { font-weight: var(--w-display); letter-spacing: -0.03em; line-height: 1; text-wrap: balance; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Where a tile clips its contents the ring goes on the tile or inside it; on light grounds it turns dark. */
.chip:has(a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.chip a:focus-visible { outline: none; }
.stage-tab:focus-visible { outline-offset: -6px; }
.s3 .stage-tab:focus-visible, .s4 .stage-tab:focus-visible, .s5 .stage-tab:focus-visible,
.feat-cell :focus-visible, .contact :focus-visible { outline-color: var(--ink-dark); }
::selection { background: var(--accent); color: var(--accent-ink); }
:target { scroll-margin-top: 96px; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--margin); top: var(--margin); z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 12px 16px; border-radius: var(--radius); clip-path: inset(50%); }
.skip:focus { clip-path: none; }

.tile { border-radius: var(--radius); background: var(--tile); overflow: hidden; position: relative; }
.photo img, .photo video, .stage img, .strip img, .about-photo img {
  filter: grayscale(1) contrast(1.06);
  transition: filter 600ms ease, transform 1200ms var(--ease-expo);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: var(--radius);
  font-size: var(--t-s); font-weight: var(--w-act); letter-spacing: -0.01em;
  transition: background-color 200ms ease, color 200ms ease, transform 140ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--pale); }
.btn-dark { background: var(--ink-dark); color: var(--ink); }
.btn-dark:hover { background: var(--accent); color: var(--accent-ink); }
.btn-small { min-height: 40px; background: var(--tile-3); color: var(--ink); font-size: var(--t-xs); }
.btn-small:hover { background: var(--accent); color: var(--accent-ink); }

/* ---------- the name band ---------- */
.top { padding: var(--margin) var(--margin) 0; }
.band { display: flex; align-items: center; justify-content: center; padding: 0.4vw 0 1.6vw; background: var(--tile); }
.band-name {
  font-size: 8.4vw; line-height: 1; letter-spacing: -0.045em; white-space: nowrap;
  animation: band-in 900ms var(--ease-expo) both;
}

/* ---------- navigation row (sticks) ---------- */
.navrow {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr repeat(4, 2fr) 1.6fr; gap: var(--gap);
  padding: var(--gap) var(--margin); background: var(--bg);
}
.navtile {
  height: 56px; display: flex; align-items: center; padding: 0 18px;
  background: var(--tile-2); font-size: var(--t-s); font-weight: var(--w-read);
  transition: background-color 200ms ease, color 200ms ease;
}
.navtile:hover { background: var(--tile-3); }
.navtile:active { transform: scale(0.985); }
.mark-tile { background: var(--accent); color: var(--accent-ink); }
.mark-tile:hover { background: var(--pale); }
.mark { font-weight: var(--w-act); font-size: var(--t-lead); letter-spacing: -0.04em; }
.navtile-cta { background: var(--accent); color: var(--accent-ink); font-weight: var(--w-act); }
.navtile-cta:hover { background: var(--pale); }

/* ---------- hero ---------- */
.hero { padding: 0 var(--margin); }
.hero-body {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap);
  height: max(560px, calc(100svh - 10.4vw - 16px - 72px - 16px));
}
.rail-left { grid-column: 1 / 3; display: grid; grid-template-rows: 1fr auto; gap: var(--gap); min-height: 0; }
.rail-left .photo { background: var(--bg); }
.rail-left .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.facts { padding: 18px 20px; font-size: var(--t-xs); line-height: 1.45; background: var(--tile-2); }
.facts li + li { margin-top: 4px; }
.hero-main { grid-column: 3 / 11; min-height: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; animation: drift 24s var(--ease-out) both; }
.rail-right { grid-column: 11 / 13; display: grid; grid-template-rows: repeat(5, 1fr); gap: var(--gap); min-height: 0; }
.chip a {
  display: flex; flex-direction: column; justify-content: space-between; height: 100%; padding: 16px 18px; font-size: var(--t-s); font-weight: var(--w-read);
  transition: padding 300ms var(--ease-out);
}
.chip a:hover { padding-left: 24px; }
.c1 { background: var(--pale); color: var(--ink-dark); }
.c2 { background: var(--grey-3); color: var(--ink-dark); }
.c3 { background: var(--grey-1); }
.c4 { background: var(--tile-2); }
.c5 { background: var(--accent); color: var(--accent-ink); }
.chip small { font-size: var(--t-xs); font-weight: var(--w-read); opacity: 0.8; }
.c5 a { display: block; font-weight: var(--w-act); font-size: var(--t-s); }
.c5 a::after { content: " \2192"; }
.c5:hover { background: var(--pale); }

/* ---------- what NRG does: the about-us board ---------- */
.who { margin-top: var(--section); padding: 0 var(--margin); }
.who-main {
  grid-column: 1 / 13; background: var(--pale); color: var(--ink-dark); padding: 28px 28px 40px;
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); min-height: 52svh; align-content: space-between;
}
.who-main h2 { grid-column: 1 / 13; font-size: var(--t-xl); font-weight: var(--w-display); line-height: 0.86; letter-spacing: -0.045em; }
.who-text { grid-column: 6 / 13; margin-top: 72px; }
.who-lead { font-size: var(--t-m); font-weight: var(--w-display); line-height: 1.2; letter-spacing: -0.025em; max-width: 24em; }
.who-text p + p { margin-top: 20px; max-width: 34em; font-size: var(--t-lead); font-weight: var(--w-display); line-height: 1.4; color: var(--ink-dark-soft); }
.who-cell { grid-column: span 4; padding: 24px 28px 28px; min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.who-cell h3 { font-size: var(--t-m); font-weight: var(--w-display); letter-spacing: -0.025em; }
.who-cell p { max-width: 30em; }
.w1 { background: var(--grey-3); color: var(--ink-dark); }
.w2 { background: var(--grey-1); }
.w3 { background: var(--tile-2); }

/* ---------- intro: statement tiles ---------- */
.board { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.intro { margin-top: var(--section); padding: 0 var(--margin); grid-template-rows: 38svh 38svh auto; }
.slogan { grid-column: 1 / 9; grid-row: 1 / 3; background: var(--tile); display: flex; align-items: flex-end; padding: 20px; }
.slogan-text { font-weight: var(--w-display); font-size: var(--t-xl); line-height: 0.86; letter-spacing: -0.045em; text-transform: uppercase; }
.slogan-text span { display: block; }
.figure-tile { grid-column: 9 / 13; grid-row: 1; background: var(--pale); color: var(--ink-dark); display: flex; align-items: flex-end; padding: 20px; }
.figure-tile span { font-weight: var(--w-display); font-size: var(--t-xl); line-height: 0.86; letter-spacing: -0.05em; white-space: nowrap; }
.intro-photo { grid-column: 9 / 13; grid-row: 2; }
.intro-photo img { width: 100%; height: 100%; object-fit: cover; }
.intro-photo:hover img, .hero-main:hover .hero-img, .about-photo:hover img { filter: grayscale(0.15) contrast(1.02); }
.intro-text {
  grid-column: 1 / 13; background: var(--bg); padding: 40px 0 0;
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap);
  font-size: var(--t-lead); font-weight: var(--w-display); line-height: 1.4; letter-spacing: -0.01em;
}
.intro-text p { max-width: 34em; }
.intro-text p:first-child { grid-column: 1 / 7; padding-right: 40px; }
.intro-text p:last-child { grid-column: 7 / 13; padding-right: 40px; }

/* ---------- showcase: one picture cut across tiles ---------- */
.showcase { margin-top: var(--section); padding: 0 var(--margin); }
.cut-board { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--gap); }
.cut { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; position: relative; }
.pic { grid-column: var(--c); grid-row: var(--r); background: var(--tile-low); }
.pic::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/cranes-board.webp") no-repeat;
  background-size: 600% 300%;
  background-position: calc((var(--c) - 1) * 20%) calc((var(--r) - 1) * 50%);
  filter: grayscale(1) contrast(1.3) brightness(0.82);
  transition: transform 700ms var(--ease-out), filter 500ms ease;
}
.pic:hover::before { transform: scale(1.08); }
/* On a pointer, each square shows its slice of the photograph in colour. */
@media (hover: hover) {
  .pic:hover::before { filter: grayscale(0) contrast(1.05) brightness(1); }
}
.cut-head { grid-column: 1; grid-row: 1; background: var(--accent); color: var(--accent-ink); padding: 16px; }
.cut-head h2 { font-size: var(--t-m); line-height: 1; }
.cut-fact { background: var(--tile-2); padding: 16px; display: flex; align-items: flex-start; }
.cut-fact p { font-size: var(--t-s); line-height: 1.3; }
.f1 { grid-column: 4; grid-row: 2; }
.f2 { grid-column: 2; grid-row: 3; background: var(--pale); color: var(--ink-dark); }
.f3 { grid-column: 5; grid-row: 3; }
.cut-action {
  grid-column: 6; grid-row: 1; background: var(--pale); color: var(--ink-dark); padding: 16px;
  font-size: var(--t-s); font-weight: var(--w-act); transition: background-color 200ms ease;
}
.cut-action::after { content: "\2192"; position: absolute; left: 16px; bottom: 12px; font-size: var(--t-l); font-weight: var(--w-display); transition: transform 300ms var(--ease-out); }
.cut-action:hover { background: var(--accent); }
.cut-action:hover::after { transform: translateX(8px); }

/* ---------- features: statement cell and dark rows ---------- */
.features { margin-top: var(--section); padding: 0 var(--margin); display: grid; grid-template-columns: 1fr 1fr; }
.feat-cell {
  background: var(--pale); color: var(--ink-dark); min-height: 90svh; padding: 40px;
  border-radius: var(--radius) 0 0 var(--radius); display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
}
.zigzag { font-size: var(--t-l); line-height: 0.98; text-wrap: initial; }
.zigzag span { display: block; }
.zigzag .z2 { text-align: right; }
.feat-photo { flex: 1; min-height: 240px; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--grey-3); }
.feat-photo figcaption {
  position: absolute; left: 12px; bottom: 12px; max-width: min(calc(100% - 24px), 50ch); font-size: var(--t-xs); line-height: 1.35; text-wrap: balance;
  background: var(--pale); color: var(--ink-dark); padding: 6px 10px; border-radius: 6px;
}
.feat-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; filter: contrast(1.1); }
.feat-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.feat-foot p { max-width: 30ch; font-size: var(--t-s); font-weight: var(--w-read); }
.feat-rows { display: grid; grid-auto-rows: 1fr; border-radius: 0 var(--radius) var(--radius) 0; overflow: hidden; }
.row { display: grid; grid-template-columns: 5fr 4fr 3fr; gap: 20px; padding: 28px; background: var(--tile-low); align-items: start; }
.row:nth-child(even) { background: var(--tile-mid); }
.row h3 { font-size: var(--t-m); line-height: 1.05; letter-spacing: -0.03em; }
.row p { font-size: var(--t-s); }
.row ul { font-size: var(--t-xs); color: var(--soft); }
.row ul li + li { margin-top: 2px; }

/* ---------- what we source ---------- */
.source { margin-top: var(--section); padding: 0 var(--margin); }
.source-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.source-head h2 { font-size: var(--t-l); }
.soft { color: var(--soft); }
.source-body { margin-top: 56px; display: grid; grid-template-columns: 200px 1fr; gap: 40px; }
.tabs { display: flex; flex-direction: column; gap: 6px; }
.tabs button {
  height: 64px; padding: 0 16px; border-radius: var(--radius); background: var(--tile-2); text-align: left;
  display: flex; flex-direction: column; justify-content: center; font-size: var(--t-s); font-weight: var(--w-read); line-height: 1.2;
  transition: background-color 200ms ease, color 200ms ease;
}
.tabs button span { font-size: var(--t-xs); color: var(--soft); font-weight: var(--w-read); }
.tabs button:hover { background: var(--tile-3); }
.tabs button[aria-selected="true"] { background: var(--pale); color: var(--ink-dark); }
.tabs button[aria-selected="true"] span { color: var(--ink-dark-soft); }
.bands ul { display: grid; gap: 4px; }
.bands li {
  min-height: 76px; border-radius: var(--radius); background: var(--tile-low); padding: 14px 20px;
  display: grid; grid-template-columns: 22% 1fr auto; align-items: center; gap: 20px;
}
.bands li:nth-child(even) { background: var(--tile-mid); }
.spec { font-size: var(--t-s); font-variant-numeric: tabular-nums; }
.name { font-size: var(--t-s); font-weight: var(--w-act); line-height: 1.3; }
.name small { display: block; font-size: var(--t-xs); font-weight: var(--w-read); color: var(--soft); margin-top: 2px; }
.ship { font-size: var(--t-xs); text-align: right; }
.js .bands[hidden] { display: none; }
.bands + .bands { margin-top: 32px; }
.js .bands + .bands { margin-top: 0; }

/* ---------- the marquee ---------- */
.marquee { margin-top: var(--section); overflow: hidden; padding: 8px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee-track span { font-weight: var(--w-display); font-size: var(--t-xl); line-height: 1; letter-spacing: -0.045em; white-space: nowrap; padding-bottom: 0.08em; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee { position: relative; }

/* One switch, shown beside each moving thing, stops all of them. */
.motion-toggle { display: none; }
.js .motion-toggle {
  display: inline-flex; align-items: center; position: absolute; z-index: 3;
  min-height: 44px; padding: 0 16px; border-radius: var(--radius);
  background: var(--tile-2); color: var(--ink); font-size: var(--t-xs); font-weight: var(--w-act);
  transition: background-color 200ms ease, color 200ms ease;
}
.js .motion-toggle:hover { background: var(--accent); color: var(--accent-ink); }
.marquee .motion-toggle { right: var(--margin); top: 50%; transform: translateY(-50%); }
.plan-video .motion-toggle { right: 12px; top: 12px; background: var(--bg); }
.strip { position: relative; }
.strip .motion-toggle { right: 32px; top: 50%; transform: translateY(-50%); background: var(--accent-ink); color: var(--accent); }
.strip .motion-toggle:hover { background: var(--tile-3); color: var(--accent); }
.still .marquee-track, .still .strip-track { animation-play-state: paused; }

/* ---------- size a shipment ---------- */
.plan { margin-top: calc(var(--section) * 0.6); padding: 0 var(--margin); }
.plan-controls { grid-column: 1 / 5; padding: 24px; display: flex; flex-direction: column; gap: 16px; background: var(--tile); }
.plan-controls h2 { font-size: var(--t-l); margin-bottom: 16px; }
.field { display: grid; gap: 6px; }
.field span { font-size: var(--t-xs); color: var(--soft); }
.field select, .field input {
  height: 56px; border: 0; border-radius: var(--radius); background: var(--tile-3); padding: 0 16px;
  font-size: var(--t-s); font-weight: var(--w-read); appearance: none; -webkit-appearance: none;
  font-variant-numeric: tabular-nums; transition: background-color 200ms ease;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23eeeeee' stroke-width='1.6'/%3E%3C/svg%3E"); background-position: calc(100% - 18px) 50%; background-repeat: no-repeat; padding-right: 44px; }
.field select:hover, .field input:hover { background-color: var(--tile-4); }
.field select:focus-visible, .field input:focus-visible { background-color: var(--tile-4); }
.field select option { background: var(--tile-2); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 40px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: var(--tile-3); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 4px; background: var(--tile-3); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); margin-top: -10px; border: 0; transition: transform 140ms var(--ease-out); }
input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); border: 0; }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.plan-limit { font-size: var(--t-xs); color: var(--accent); }
.plan-note { margin-top: auto; font-size: var(--t-xs); color: var(--soft); }
.plan-out { grid-column: 5 / 10; padding: 24px; display: flex; flex-direction: column; gap: 32px; background: var(--tile-2); }
.plan-figs { display: grid; gap: 22px; }
.plan-figs .num { display: block; font-weight: var(--w-display); font-size: var(--t-l); line-height: 1.05; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.plan-figs .unit { display: block; font-size: var(--t-xs); color: var(--ink); margin-top: 6px; }
.holds { display: grid; gap: 10px; margin-top: auto; }
.ship-row { display: flex; gap: 4px; height: 44px; }
.hold { flex: 1; border-radius: 6px; background: var(--tile-3); position: relative; overflow: hidden; }
.hold i { position: absolute; inset: 0; background: var(--accent); transform-origin: bottom; transform: scaleY(var(--f, 0)); transition: transform 600ms var(--ease-out); }
.plan-video { grid-column: 10 / 13; background: var(--bg); min-height: 420px; }
.plan-video video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- how a cargo moves ---------- */
.how { margin-top: var(--section); padding: 0 var(--margin); }
.how-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; }
.how-head h2 { grid-column: 1 / 6; font-size: var(--t-l); }
.how-head p { grid-column: 7 / 12; max-width: 36em; font-size: var(--t-s); }
.accordion { margin-top: 64px; display: flex; container-type: inline-size; height: 520px; border-radius: var(--radius); overflow: hidden; }
.stage { position: relative; flex: 0 0 10.5%; transition: flex-basis 450ms var(--ease-in-out); overflow: hidden; }
.stage.open { flex: 1 1 58%; }
.s1 { background: var(--accent-900); color: var(--ink); }
.s2 { background: var(--accent-700); color: var(--ink); }
.s3 { background: var(--accent-500); color: var(--ink-dark); }
.s4 { background: var(--accent-300); color: var(--ink-dark); }
.s5 { background: var(--accent); color: var(--ink-dark); }
.stage-tab { position: absolute; inset: 0; z-index: 2; text-align: left; transition: background-color 200ms ease; }
.stage-tab:hover { background: var(--veil-light); }
.stage-tab span {
  position: absolute; left: 20px; bottom: 20px; font-size: var(--t-s); font-weight: var(--w-act); white-space: nowrap;
  transform-origin: 0 100%; transform: rotate(-90deg) translate(0, 100%);
}
.stage.open .stage-tab { display: none; }
.stage-body { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr); opacity: 0; visibility: hidden; transition: opacity 300ms ease, visibility 0s linear 300ms; min-width: 640px; min-width: 58cqw; }
.stage.open .stage-body { opacity: 1; visibility: visible; transition: opacity 300ms ease 200ms, visibility 0s; }
.stage-text { padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.stage-text h3 { font-size: var(--t-m); }
.stage-text p { max-width: 36ch; font-size: var(--t-s); font-weight: var(--w-read); }
.stage-body img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- about ---------- */
.about { margin-top: var(--section); padding: 0 var(--margin); }
.about h2 { font-size: var(--t-l); }
.lead { margin-top: 24px; max-width: min(50%, 34em); font-size: var(--t-lead); font-weight: var(--w-display); line-height: 1.4; }
.lead-note { margin-top: 16px; max-width: min(50%, 34em); font-size: var(--t-s); color: var(--soft); }
.about-tiles { margin-top: 72px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.about-photo { grid-column: 1 / 9; position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 60%; }
.about-side { grid-column: 9 / 13; display: flex; flex-direction: column; gap: 24px; }
.region { background: var(--accent); aspect-ratio: 16 / 16; padding: 20px; display: grid; place-items: center; }
.region svg { width: 100%; height: 100%; }
.r-rest { fill: var(--veil-dark); }
.r-focus, .r-aus { fill: var(--ink-dark); }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.about-facts dt { font-size: var(--t-xs); color: var(--soft); }
.about-facts dd { font-size: var(--t-s); margin-top: 2px; }

/* ---------- contact ---------- */
.contact {
  margin: var(--section) var(--margin) 0; background: var(--accent); color: var(--accent-ink);
  border-radius: var(--radius); padding: 48px 0 40px; overflow: hidden;
  display: flex; flex-direction: column;
}
.strip { overflow: hidden; }
.strip-track { display: flex; gap: 8px; width: max-content; animation: marquee 70s linear infinite; }
.strip img { height: 150px; width: auto; border-radius: 6px; object-fit: cover; }
.strip img:nth-child(3n+1) { aspect-ratio: 3 / 4; }
.strip img:nth-child(3n+2) { aspect-ratio: 1; }
.strip img:nth-child(3n) { aspect-ratio: 3 / 2; }
.strip:hover .strip-track { animation-play-state: paused; }
/* On a pointer, the photo under it turns to colour while the strip is paused. */
@media (hover: hover) { .strip img:hover { filter: grayscale(0) contrast(1.02); } }
.contact-inner { padding: 72px 32px 0; }
.contact h2 { font-size: var(--t-l); color: var(--accent-ink); }
.cells { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.cell { height: 96px; border-radius: var(--radius); background: var(--accent-2); display: flex; transition: background-color 200ms ease; }
.cell input {
  width: 100%; height: 100%; border: 0; background: transparent; text-align: center;
  font-size: var(--t-s); font-weight: var(--w-read); color: var(--accent-ink); border-radius: var(--radius);
}
.cell input::placeholder { color: var(--accent-700); }
.cell input:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: -4px; }
.cell:focus-within { background: var(--accent-pale); }
.cell-send {
  justify-content: center; align-items: center; background: var(--accent-ink); color: var(--accent);
  font-size: var(--t-s); font-weight: var(--w-act); transition: background-color 200ms ease, transform 140ms var(--ease-out);
}
.cell-send:hover { background: var(--tile-3); }
.cell-send:active { transform: scale(0.98); }
.cells-print { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 10px; font-size: var(--t-xs); }
.cells-print p:last-child { grid-column: 3; }
.cells-print a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- footer ---------- */
.footer { padding: 96px var(--margin) 24px; }
.blocks { display: grid; grid-template-columns: 1.05fr 1fr 1.05fr; gap: 4px; align-items: end; height: min(34svh, 30vw); min-height: 120px; }
.blk {
  display: flex; align-items: flex-end; border-radius: var(--radius); padding: 0 14px;
  font-size: min(30svh, 26vw); line-height: 0.78; font-weight: 400; letter-spacing: -0.05em; color: var(--bg);
  overflow: hidden; transition: height 500ms var(--ease-out);
}
.b1 { background: var(--accent); height: 100%; }
.b2 { background: var(--pale); height: 72%; }
.b3 { background: var(--grey-2); height: 86%; }
.blocks:hover .b2 { height: 84%; }
.foot-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.foot-links { grid-column: 1 / 9; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 8px; font-size: var(--t-s); }
.foot-links a { transition: color 200ms ease; }
.foot-links a:hover { color: var(--accent); }
.foot-contact { grid-column: 9 / 13; display: grid; gap: 12px; font-size: var(--t-s); }
.foot-contact a:hover { color: var(--accent); }
.foot-last { margin-top: 32px; display: flex; justify-content: space-between; align-items: center; font-size: var(--t-xs); }

/* ---------- motion ---------- */
@keyframes band-in { from { opacity: 0; transform: translateY(30%); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }
.navrow > *, .rail-left > *, .hero-main, .rail-right > * { animation: rise 700ms var(--ease-expo) both; }
.navrow > :nth-child(2) { animation-delay: 36ms; } .navrow > :nth-child(3) { animation-delay: 72ms; }
.navrow > :nth-child(4) { animation-delay: 108ms; } .navrow > :nth-child(5) { animation-delay: 144ms; }
.navrow > :nth-child(6) { animation-delay: 180ms; }
.hero-main { animation-delay: 90ms; }
.rail-left > :nth-child(1) { animation-delay: 150ms; } .rail-left > :nth-child(2) { animation-delay: 198ms; }
.rail-right > :nth-child(1) { animation-delay: 180ms; } .rail-right > :nth-child(2) { animation-delay: 222ms; }
.rail-right > :nth-child(3) { animation-delay: 264ms; } .rail-right > :nth-child(4) { animation-delay: 306ms; }
.rail-right > :nth-child(5) { animation-delay: 348ms; }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease-expo), transform 800ms var(--ease-expo); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .pic::after { content: ""; position: absolute; inset: 0; background: var(--bg); transform-origin: top; transition: transform 900ms var(--ease-in-out); transition-delay: var(--d, 0ms); }
.js .cut-board.in .pic::after { transform: scaleY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .pic::after { display: none; }
  .marquee-track, .strip-track { animation: none !important; }
  .js .motion-toggle { display: none; }
}

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .navrow { grid-template-columns: 1fr repeat(4, 2fr) 2fr; }
  .navtile { padding: 0 12px; }
  .features { grid-template-columns: 1fr; }
  .feat-cell { border-radius: var(--radius) var(--radius) 0 0; min-height: 60svh; }
  .feat-rows { border-radius: 0 0 var(--radius) var(--radius); }
  .plan-controls { grid-column: 1 / 7; }
  .plan-out { grid-column: 7 / 13; }
  .plan-video { grid-column: 1 / 13; min-height: 0; aspect-ratio: 16 / 7; }
  .about-photo { grid-column: 1 / 13; }
  .about-side { grid-column: 1 / 13; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .region { aspect-ratio: 3 / 2; }
  .how-head h2 { grid-column: 1 / 7; }
  .how-head p { grid-column: 7 / 13; }

  /* Single squares get too small for their words: the head and the facts take two cells, over the picture. */
  .cut-head { grid-column: 1 / 3; }
  .f1 { grid-column: 4 / 6; }
  .f2 { grid-column: 2 / 4; }
  .f3 { grid-column: 5 / 7; }
  .cut-head, .cut-fact { aspect-ratio: auto; }
  .cut-fact, .cut-action { padding: 12px; }
  .cut-fact p { font-size: var(--t-xs); }
  .cut-action { font-size: var(--t-xs); }
  .cut-action::after { position: static; display: inline-block; padding-left: 0.3em; font-size: inherit; font-weight: inherit; }
}

@media (max-width: 900px) {
  .hero-body { height: auto; grid-template-columns: 1fr 1fr; gap: 6px; padding-top: 2px; }
  .hero-main { grid-column: 1 / 3; grid-row: 1; aspect-ratio: 4 / 3; overflow: visible; background: transparent; }
  .hero-main .hero-img { border-radius: var(--radius); }
  .hero-main { aspect-ratio: auto; }
  .hero-img { aspect-ratio: 4 / 3; height: auto; animation: none; }
  .rail-left { grid-column: 1 / 3; grid-row: 2; grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 6px; }
  .rail-left .photo { aspect-ratio: 1; }
  .rail-left .facts { aspect-ratio: auto; }
  .rail-right { grid-column: 1 / 3; grid-row: 3; grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 6px; }
  .chip a { min-height: 64px; }
  .c5 { grid-column: 1 / 3; }
  .navrow { position: static; grid-template-columns: 1fr 1fr; gap: 6px; }
  .navtile { height: 52px; }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
  :root { --gap: 6px; --section: 120px; --t-xl: 15vw; }
  .band { height: 96px; }
  .intro { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto auto; }
  .slogan { grid-column: 1 / 3; grid-row: 1; padding-top: 96px; }
  .who-main { padding: 20px 20px 28px; min-height: 0; }
  .who-text { grid-column: 1 / 13; margin-top: 56px; }
  .who-cell { grid-column: 1 / 13; min-height: 0; padding: 20px; gap: 24px; }
  .figure-tile { grid-column: 1 / 3; grid-row: 2; padding-top: 72px; }
  .intro-photo { grid-column: 1 / 3; grid-row: 3; aspect-ratio: 16 / 10; }
  .intro-text { grid-row: 4; }
  .intro-text { grid-column: 1 / 3; grid-template-columns: 1fr; padding: 28px 0 0; gap: 16px; }
  .intro-text p:first-child, .intro-text p:last-child { grid-column: 1; padding: 0; }

  .showcase { padding: 0 var(--margin); }
  .cut-board { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .pic { grid-column: var(--pc); grid-row: var(--pr); }
  .pic::before { background-image: url("../img/cranes-tall.webp"); background-size: 300% 600%; background-position: calc((var(--pc) - 1) * 50%) calc((var(--pr) - 1) * 20%); }
  .cut-head { grid-column: 1 / 3; grid-row: 1; aspect-ratio: auto; }
  .f1 { grid-column: 2 / 4; grid-row: 3; }
  .f2 { grid-column: 1 / 3; grid-row: 5; }
  .f3 { display: none; }
  .cut-action { grid-column: 3; grid-row: 6; padding: 10px; }
  .cut-fact { padding: 10px; }

  .feat-cell { min-height: 0; padding: 24px; gap: 32px; }
  .feat-photo { flex: none; min-height: 0; aspect-ratio: 4 / 3; }
  .feat-foot { flex-direction: column; align-items: flex-start; }
  .row { grid-template-columns: 1fr; gap: 10px; padding: 22px; }
  .row ul { display: flex; flex-wrap: wrap; }
  .row ul li + li { margin-top: 0; }
  .row ul li:not(:last-child)::after { content: ",\00a0"; }

  .source-head { flex-direction: column; align-items: stretch; }
  .source-head .btn { width: 100%; }
  .source-body { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .tabs button { height: 60px; padding: 0 12px; }
  .bands li { grid-template-columns: 1fr; gap: 4px; padding: 16px; }
  .ship { text-align: left; color: var(--soft); }

  .plan-controls, .plan-out, .plan-video { grid-column: 1 / 13; }
  .plan-video { aspect-ratio: 16 / 10; }

  .how-head { grid-template-columns: 1fr; gap: 16px; }
  .how-head h2, .how-head p { grid-column: 1; }
  .accordion { margin-top: 32px; flex-direction: column; height: auto; }
  .stage, .stage.open { flex: none; }
  .stage-tab span { transform: none; position: static; display: flex; align-items: center; height: 64px; padding: 0 16px; }
  .stage-tab { position: relative; inset: auto; display: block; width: 100%; }
  .stage-body { position: static; min-width: 0; grid-template-columns: 1fr; grid-template-rows: auto; display: none; opacity: 1; visibility: visible; }
  .stage.open .stage-body { display: grid; }
  .stage-text { gap: 16px; padding: 20px 16px; }
  .stage-body img { aspect-ratio: 4 / 3; height: auto; }

  .lead, .lead-note { max-width: none; }
  .about-tiles { margin-top: 40px; gap: 16px; }
  .about-photo { aspect-ratio: auto; overflow: visible; border-radius: 0; }
  .about-photo img { aspect-ratio: 4 / 3; border-radius: var(--radius); }
    .about-side { grid-template-columns: 1fr; }
  .region { aspect-ratio: 3 / 2; }

  .contact { padding: 32px 0 28px; }
  .strip img { height: 110px; }
  .contact-inner { padding: 48px 20px 0; }
  .cells { grid-template-columns: 1fr; }
  .cell { height: 60px; }
  .cells-print { grid-template-columns: 1fr; }
  .cells-print p:last-child { grid-column: 1; }

  .blk { padding: 0 8px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-links { grid-column: 1; grid-template-columns: 1fr 1fr; }
  .foot-contact { grid-column: 1; }
}
