/* ============================================================
   Scramble — bento layout. One plain CSS file, no build step.

   TWO STANDING RULES, do not break them:

   1. NOTHING MOVES. No motion properties of any kind, and no
      scroll-driven effects. The page renders identically at
      every scroll position.

   2. THE MAP IS THE PAPER. The plate spans the full document
      height and is never covered by a scrim, tint or filter.
      Tiles are opaque; the map shows through the gutters
      between them. That grid of map showing through is the
      whole look — keep the gaps.
   ============================================================ */

/* ============================================================
   0 · FONTS — self-hosted.
   Loading these from fonts.googleapis.com sends every visitor's
   IP to Google, which is a GDPR problem for EU traffic and costs
   an extra connection. Both families are OFL-licensed, so
   hosting them here is permitted.
   Subset to the glyphs this site actually renders, and only the
   weights it uses: 582 KB of Google's full latin + latin-ext -> 67 KB.
   Inter is 400-only here. If you ever set an Inter element to 500
   or 600 the browser will fake it -- add the file instead.
   ============================================================ */
@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;
  src:url('assets/fonts/inter-400.woff2') format('woff2')}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:500;font-display:swap;
  src:url('assets/fonts/plus-jakarta-sans-500.woff2') format('woff2')}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:600;font-display:swap;
  src:url('assets/fonts/plus-jakarta-sans-600.woff2') format('woff2')}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:700;font-display:swap;
  src:url('assets/fonts/plus-jakarta-sans-700.woff2') format('woff2')}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:800;font-display:swap;
  src:url('assets/fonts/plus-jakarta-sans-800.woff2') format('woff2')}

:root{
  --green:#17583a; --green-deep:#0f3f28; --ink:#14311f;
  --paper:#efeee8; --panel:#ffffff;
  --body:#23241f; --muted:#5f5d55; --line:#e2ded2;
  /* tile edge: darker than --line, because with no drop shadow the
     hairline is the only thing separating a white tile from the
     cream map. --line stays lighter for separators inside tiles. */
  --edge:#d3cdbc;
  --eye:#bfd3c6; --body-w:#e4ede6;
  --disp:'Plus Jakarta Sans',system-ui,sans-serif;
  --font:'Inter',system-ui,sans-serif;
  --r:20px;
  --gap:16px;
}

*,*::before,*::after{box-sizing:border-box}
body{
  margin:0;
  position:relative;
  background:var(--paper);
  color:var(--body);
  font-family:var(--font);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3{font-family:var(--disp);font-weight:700;letter-spacing:-.02em;line-height:1.15;color:var(--ink);margin:0}
a{color:var(--green)}
img{max-width:100%;display:block}
.wrap{max-width:76rem;margin-inline:auto;padding-inline:clamp(.9rem,2.5vw,1.75rem)}
.eyebrow{
  font-family:var(--disp);font-weight:600;font-size:.66rem;
  letter-spacing:.16em;text-transform:uppercase;
  color:var(--green);margin:0 0 .7rem;
}
[id]{scroll-margin-top:5rem}
@media(max-width:760px){[id]{scroll-margin-top:7rem}}

/* ============================================================
   1 · THE MAP — full document height, nothing on top of it
   ============================================================ */
.map-bg{
  position:absolute; inset:0; z-index:-1;
  background:var(--paper) url('assets/scramble-tinted-map.webp') center top / cover no-repeat;
  pointer-events:none;
}

/* ============================================================
   2 · HEADER — solid brand green
   ============================================================ */
.site-head{
  position:sticky; top:0; z-index:50;
  background:var(--green-deep);
  border-bottom:1px solid rgba(0,0,0,.15);
}
.site-head .row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-block:.85rem}
.brand{display:inline-flex;align-items:center;gap:.5rem;font-family:var(--disp);font-weight:800;font-size:1.2rem;letter-spacing:-.03em;color:#fff;text-decoration:none}
.brand svg{display:block}
.brand svg path:first-child{fill:#fff}
.brand svg path:last-child{stroke:var(--green-deep)}
.nav{display:flex;align-items:center;gap:1.3rem;flex-wrap:wrap}
.nav a{font-family:var(--disp);font-weight:500;font-size:.85rem;color:var(--body-w);text-decoration:none;padding-block:.3rem}
.nav a:hover{color:#fff}
@media(max-width:760px){
  .site-head .row{flex-direction:column;align-items:flex-start;gap:.45rem;padding-block:.65rem}
  .brand{font-size:1.05rem}
  .nav{gap:.8rem;width:100%}
  .nav a{font-size:.76rem}
  .nav a.opt{display:none}
}

/* ============================================================
   3 · THE BENTO GRID
   Six columns. Tiles span 2/3/4/6 and one spans two rows, so the
   grid reads as a bento rather than a uniform table.
   ============================================================ */
/* Layout 1c — "de strakke bento".
   Twelve columns, every tile on a whole row, reading order strictly
   left to right row by row. Rows are 7|5, 4|4|4, 7|5, 7|5, 12, 6|6.
   Tiles in a row stretch to the tallest, so rows read as bands. */
.bento{
  display:grid;
  grid-template-columns:repeat(12,1fr);
  gap:var(--gap);
  padding-block:var(--gap);
  align-items:stretch;
}

.a-hero   {grid-column:span 7}
.a-clock  {grid-column:span 5}
.a-beat1  {grid-column:span 4}
.a-beat2  {grid-column:span 4}
.a-beat3  {grid-column:span 4}
.a-product{grid-column:span 7}
.a-floors {grid-column:span 5}
.a-sim    {grid-column:span 7}
.a-writing{grid-column:span 5}
.a-contact{grid-column:span 12}
.a-about  {grid-column:span 12}

/* the three beats hold a common floor so row 2 reads as one band */
.a-beat1,.a-beat2,.a-beat3{min-height:11rem}

@media(max-width:1040px){
  .bento{grid-template-columns:repeat(6,1fr)}
  .a-hero,.a-clock,.a-product,.a-floors,
  .a-sim,.a-writing,.a-contact,.a-about{grid-column:span 6}
  .a-beat1,.a-beat2,.a-beat3{grid-column:span 2;min-height:0}
}
@media(max-width:700px){
  .bento{grid-template-columns:1fr}
  .bento > *{grid-column:span 1 !important}
}

/* ============================================================
   4 · TILES
   Three surfaces: light (content), green (the argument),
   deep (the two anchors). All fully opaque.
   ============================================================ */
/* Flat. No drop shadows — a hairline does the same job (tells you
   where the tile ends) without hazing the map underneath. */
.tile{
  border-radius:var(--r);
  padding:clamp(1.25rem,2.2vw,1.85rem);
  display:flex;
  flex-direction:column;
  margin:0;
  min-width:0;
}
.tile > :last-child{margin-bottom:0}

.tile.light{background:var(--panel);border:1px solid var(--edge);color:var(--body)}
.tile.green{background:var(--green);color:var(--body-w)}
.tile.deep {background:var(--green-deep);color:var(--body-w)}

.tile.green .eyebrow,.tile.deep .eyebrow{color:var(--eye)}
.tile.green h1,.tile.green h2,.tile.deep h1,.tile.deep h2{color:#fff}
.tile.green a,.tile.deep a{color:#fff}

/* hero and clock centre their content vertically, so any leftover
   room in the row sits evenly above and below rather than pooling
   at the foot of the tile */
.tile.centred{justify-content:center}

.tile h1{font-size:clamp(1.45rem,2.6vw,2.05rem);margin-bottom:.7rem}
.tile h2{font-size:clamp(1.05rem,1.7vw,1.3rem);margin-bottom:.55rem}
.tile .lead{font-size:1rem;line-height:1.45;color:var(--body-w)}
.tile p{margin:0 0 .7rem;font-size:.95rem}
.tile .muted{color:var(--muted)}
.tile.green .muted,.tile.deep .muted{color:var(--eye)}
.note{font-size:.78rem;line-height:1.5;color:var(--muted);margin-top:auto;padding-top:.7rem}
.tile.green .note,.tile.deep .note{color:var(--eye)}

/* stat tiles.
   NB: these selectors must out-specify `.tile p` (0-1-1), or the
   stat collapses to body size. Hence `.tile .stat`, not `.stat`. */
.tile .stat{
  font-family:var(--disp);font-weight:800;
  font-size:clamp(2.9rem,5.2vw,4rem);line-height:.9;
  color:#fff;margin:.1rem 0 .2rem;
}
.tile .stat .unit{font-size:1.05rem;font-weight:700;color:var(--eye);margin-left:.3rem}
.tile .stat.sm{font-size:clamp(1.9rem,3vw,2.4rem);margin-bottom:.35rem}
.tile .stat-note{font-family:var(--disp);font-weight:600;font-size:.75rem;color:var(--eye);margin:0 0 .7rem}

/* figures.
   No height caps: a capped image inside a wide tile shrinks to a
   small block floating in white. Let width drive the size and pin
   the caption to the bottom instead. */
.tile img{width:100%;border-radius:12px;margin-bottom:.7rem}
/* the phone mockup is cut out to its own silhouette, so it needs no
   rounding of its own — a radius would clip the outer handsets */
.a-product img{border-radius:0;align-self:center;max-width:min(100%,32rem)}
.tile figcaption{font-size:.8rem;line-height:1.5;color:var(--muted);margin-top:auto;padding-top:.2rem}

/* anything pinned to the foot of its tile, so leftover space sits
   between the content and the closing line rather than below both */
.pin{margin-top:auto;padding-top:1rem}

/* the three standing facts at the foot of the opening tile */
.facts{
  list-style:none;margin:0;padding:1.1rem 0 0;
  border-top:1px solid var(--line);
  display:grid;grid-template-columns:repeat(3,1fr);gap:1.1rem;
}
.facts li{font-size:.82rem;line-height:1.45;color:var(--muted)}
.facts b{display:block;font-family:var(--disp);font-weight:700;font-size:.95rem;color:var(--ink)}
@media(max-width:640px){.facts{grid-template-columns:1fr;gap:.7rem}}

/* ============================================================
   5 · FLOOR BANDS
   ============================================================ */
.floor-rows{margin:.2rem 0 .5rem}
.floor-row{
  display:grid;grid-template-columns:1fr auto;gap:.25rem .5rem;align-items:baseline;
  width:100%;text-align:left;
  background:#fbfaf6;border:1px solid var(--line);border-radius:10px;
  padding:.55rem .7rem;margin-bottom:.4rem;cursor:pointer;font-family:var(--font);
}
.floor-row:hover{border-color:var(--green)}
.floor-row.is-active{border-color:var(--green);box-shadow:0 0 0 1px var(--green) inset}
.floor-row:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.fr-lbl{font-family:var(--disp);font-weight:600;font-size:.78rem;color:var(--ink)}
.fr-bar{grid-column:1/-1;display:block;height:7px;border-radius:99px;background:#e4e0d4;overflow:hidden}
.fr-bar span{display:block;height:100%;border-radius:99px}
.fr-num{font-family:var(--disp);font-weight:700;font-size:.85rem;text-align:right}
.fr-sub{font-size:.86rem;color:var(--body);min-height:2.6em;margin:0 0 .4rem}

/* ============================================================
   6 · WRITING
   ============================================================ */
/* Writing sits in a 5-column tile now, so the notes stack. Two
   columns here would squeeze each note to about 200px. */
.post-list{list-style:none;margin:0;padding:0;flex:1;display:flex;flex-direction:column;justify-content:center}
.post-list li{padding:.85rem 0;border-top:1px solid var(--line)}
.post-list li:last-child{border-bottom:1px solid var(--line)}
.post-list a{font-family:var(--disp);font-weight:600;font-size:1rem;color:var(--ink);text-decoration:none;display:block}
.post-list a:hover{color:var(--green);text-decoration:underline;text-underline-offset:3px}
.post-list time{display:block;font-family:var(--disp);font-weight:600;font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:.15rem 0 .25rem}
.post-list p{margin:0;font-size:.88rem}

/* ============================================================
   7 · FORMS
   ============================================================ */
label{display:block;font-family:var(--disp);font-weight:600;font-size:.78rem;color:var(--ink);margin:.65rem 0 .28rem}
input,select,textarea{
  width:100%;font-family:var(--font);font-size:.9rem;color:var(--body);
  background:#fbfaf6;border:1px solid var(--line);border-radius:9px;padding:.55rem .7rem;
}
textarea{min-height:4.5rem;resize:vertical}
input:focus,select:focus,textarea:focus{outline:2px solid var(--green);outline-offset:1px;border-color:var(--green)}
.btn{
  display:inline-block;margin-top:.9rem;
  background:var(--green);color:#fff;border:none;
  font-family:var(--disp);font-weight:600;font-size:.9rem;
  padding:.65rem 1.2rem;border-radius:99px;cursor:pointer;
}
.btn:hover{background:var(--green-deep)}

/* ---- the single full-width enquiry form ----
   Framing on the left, fields on the right, so a 1160px tile does
   not stretch inputs across the whole page. */
.form-split{display:grid;grid-template-columns:5fr 7fr;gap:clamp(1.5rem,3vw,3rem);align-items:start}
.form-intro h2{margin-bottom:.6rem}
.form-split form{max-width:34rem}
.form-split label:first-of-type{margin-top:0}
.field-pair{display:grid;grid-template-columns:1fr 1fr;gap:0 1rem}
.opt-note{font-weight:500;color:var(--eye)}
@media(max-width:820px){
  .form-split{grid-template-columns:1fr}
  .form-split form{max-width:none}
  .field-pair{grid-template-columns:1fr}
}

/* ---- About: four fronts as four columns, not a list in a paragraph ---- */
.fronts{
  list-style:none;margin:1.2rem 0 0;padding:1.2rem 0 0;
  border-top:1px solid rgba(255,255,255,.18);
  display:grid;grid-template-columns:repeat(4,1fr);gap:1.4rem;
}
.fronts li{font-size:.88rem;line-height:1.5;color:var(--body-w)}
.fronts b{
  display:block;font-family:var(--disp);font-weight:700;
  font-size:.95rem;color:#fff;margin-bottom:.3rem;
}
@media(max-width:900px){.fronts{grid-template-columns:1fr 1fr;gap:1.1rem}}
@media(max-width:560px){.fronts{grid-template-columns:1fr}}

/* Report an AED is the primary action and now sits on a green tile,
   so its form has to invert: dark-on-light would vanish. */
.tile.green label,.tile.deep label{color:#fff}
.tile.green input,.tile.green select,.tile.green textarea,
.tile.deep input,.tile.deep select,.tile.deep textarea{
  background:rgba(255,255,255,.94);border-color:rgba(255,255,255,.5);color:var(--body);
}
.tile.green input:focus,.tile.green select:focus,.tile.green textarea:focus,
.tile.deep input:focus,.tile.deep select:focus,.tile.deep textarea:focus{
  outline:2px solid #fff;outline-offset:1px;border-color:#fff;
}
.btn-invert{background:#fff;color:var(--green-deep)}
.btn-invert:hover{background:var(--body-w)}

/* ============================================================
   8 · FOOTER
   ============================================================ */
.site-foot{background:var(--green-deep);color:var(--body-w);padding-block:2.2rem;font-size:.84rem;margin-top:var(--gap)}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1.4fr;gap:1.4rem}
@media(max-width:760px){.foot-grid{grid-template-columns:1fr}}
.site-foot p{margin:.22rem 0}
.site-foot a{color:#fff;text-decoration:none}
.site-foot a:hover{text-decoration:underline;text-underline-offset:3px}
.status{font-family:var(--disp);font-weight:600;color:#fff}

.skip{position:absolute;left:-9999px;top:0;background:var(--green);color:#fff;padding:.6rem 1rem;z-index:100;border-radius:0 0 8px 0}
.skip:focus{left:0}
