/* ==========================================================================
   BRAND LAYER — the "established company" system (2026-10-13, round 3)

   On top of the existing tokens and components this adds:
     - Rubik on every heading, Archivo for body; Caveat for the one
       signature word in a heading (.sig)
     - the faint triangle geometry on every band (the site's own --geo-a /
       --geo-b), and a lighter-green version of it on green bands
     - a full-viewport page hero whose parts are spread over the whole
       screen: back link top, title middle, intro + buttons bottom, the
       page icon layered large on the right with a slanted green tag stuck
       on its top corner
     - three band styles: light / deep / green
     - the stats band, icon tiles, icon rows

   The Queensland outline is no longer layered behind sections (client,
   round 3 — "too much with the icon"). It lives on the map only.
   ========================================================================== */

:root{
  --font-display:"Rubik", var(--font);
  --font-script:"Caveat", "Segoe Script", cursive;
  --green-deep:#0f7416;
  /* the same triangle field as --geo-a, drawn in white so it reads as a
     lighter green on the green bands */
  --geo-green:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900' preserveAspectRatio='xMidYMid slice'%3E%3Cg fill='%23ffffff'%3E%3Cpath d='M1180 0 L1600 420 L1600 0 Z' opacity='.07'/%3E%3Cpath d='M980 900 L1420 460 L1420 900 Z' opacity='.055'/%3E%3Cpath d='M640 120 L900 380 L640 640 Z' opacity='.045'/%3E%3Cpath d='M0 620 L300 900 L0 900 Z' opacity='.06'/%3E%3Cpath d='M0 0 L380 0 L0 380 Z' opacity='.05'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------- type */
.sec__h2, .about__h2, .phero__h1, .band__h2, .stat__v, .tile__n, .bubble{
  font-family:var(--font-display);
}
.sec__h2, .about__h2{
  font-size:clamp(2.3rem,5.2vw,3.8rem);
  letter-spacing:-.025em; line-height:1.02;
  max-width:18ch;
}

/* the signature word — same words in the heading, one set in script */
.sig{
  font-family:var(--font-script);
  font-style:normal; font-weight:700;
  color:var(--green);
  font-size:1.5em; line-height:.8;
  letter-spacing:0;
  display:inline-block; transform:rotate(-3deg) translateY(.06em);
  padding:0 .06em;
}

/* ---------------------------------------------------------------- the green tag
   A slanted sticker, stuck on the top corner of whatever it labels. The
   tail points down into the thing it is tagging. */
.bubble{
  position:relative;
  margin:0;
  background:var(--green); color:#fff;
  padding:.85rem 1.15rem .9rem;
  border-radius:14px;
  font-size:clamp(.98rem,1.3vw,1.15rem);
  font-weight:600; line-height:1.3; letter-spacing:-.005em;
  max-width:24ch;
  min-width:min-content;   /* grows to fit a long word, e.g. the email address */
  transform:rotate(6deg);
  box-shadow:0 12px 28px rgba(18,135,26,.24), 0 2px 0 rgba(0,0,0,.06);
}
.bubble::after{
  content:""; position:absolute; left:26px; bottom:-7px;
  width:16px; height:16px; background:inherit;
  transform:rotate(45deg); border-radius:0 0 3px 0;
}

/* ---------------------------------------------------------------- page hero
   Full screen. Four parts placed on a grid so they spread over the whole
   height instead of stacking in one block. */
.phero{
  position:relative; isolation:isolate; overflow:hidden;
  min-height:100svh;
  background:var(--ink-deep);
  background-image:var(--geo-b); background-size:cover; background-position:center;
  padding:calc(var(--hdr-h) + clamp(1.4rem,4vh,3rem)) clamp(20px,5vw,60px) clamp(4.5rem,9vh,6.5rem);
  border-bottom:1px solid var(--rule);
  display:flex;
}
.phero__in{
  position:relative; z-index:2;
  width:100%; max-width:1320px; margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);
  grid-template-rows:auto 1fr auto;
  column-gap:clamp(2rem,5vw,5rem); row-gap:clamp(1.6rem,4vh,3rem);
}
.phero__crumb{ grid-column:1; grid-row:1; margin:0; }
.phero__main{ grid-column:1; grid-row:2; align-self:center; }
.phero__foot{ grid-column:1; grid-row:3; }
.phero__side{ grid-column:2; grid-row:1 / 4; align-self:center; }

.phero__kicker{
  display:flex; align-items:center; gap:.8rem;
  margin:0 0 clamp(1rem,2.4vh,1.6rem);
  font-size:.74rem; font-weight:700; letter-spacing:.2em; text-transform:uppercase;
  color:var(--paper-faint); font-variant-numeric:tabular-nums;
}
.phero__kicker::before{ content:""; width:2.4rem; height:2px; background:var(--green); }
.phero__title{ display:flex; align-items:center; gap:clamp(1rem,2vw,1.6rem); }
.phero__title .ico{ font-size:clamp(3.4rem,6.5vw,5.6rem); color:var(--green); }
.phero__h1{
  margin:0;
  font-size:clamp(2.8rem,6.8vw,5.6rem);
  font-weight:700; letter-spacing:-.03em; line-height:.98;
  color:var(--paper);
  max-width:13ch;
}
.phero--listing .phero__h1{ font-size:clamp(3.4rem,8.4vw,7rem); max-width:11ch; }
.phero__lead{
  margin:0;
  font-size:clamp(1.08rem,1.6vw,1.32rem);
  line-height:1.55; color:var(--paper-soft);
  max-width:48ch;
}
.phero__ctas{ display:flex; flex-wrap:wrap; gap:.75rem; margin-top:clamp(1.4rem,3vh,2rem); }

/* the icon, layered large; the tag sticks to its top-left corner */
.phero__side{ position:relative; min-height:clamp(300px,40vh,460px); }
.phero__mark{
  position:absolute; right:clamp(1rem,4vw,4.5rem); top:50%; transform:translateY(-50%);   /* nudged in from the edge */
  font-size:clamp(15rem,27vw,25rem);
  color:var(--paper); opacity:.08;
}
.phero__side .bubble{ position:absolute; right:-2%; top:2%; z-index:1; }
.phero__tagInline{ display:none; }

/* Get a quote in the hero: slightly see-through so the triangles show */
.phero__ctas .btn--solid{ background:rgba(23,23,23,.78); border-color:transparent; }
.phero__ctas .btn--solid:hover{ background:transparent; border-color:var(--paper); }

.phero__scroll{
  position:absolute; left:50%; bottom:1.4rem; transform:translateX(-50%);
  z-index:2;
  display:flex; flex-direction:column; align-items:center; gap:.25rem;
  font-size:.66rem; font-weight:700; letter-spacing:.2em; text-transform:uppercase;
  color:var(--paper-faint); text-decoration:none;
}
.phero__scroll svg{ width:16px; height:16px; animation:scrollBob 1.8s var(--ease) infinite; }
@keyframes scrollBob{ 0%,100%{ transform:translateY(0) } 50%{ transform:translateY(5px) } }

/* ---------------------------------------------------------------- stats band */
.stats{
  position:relative; isolation:isolate;
  padding:clamp(3rem,6vw,4.5rem) clamp(20px,5vw,60px);
}
.stats__grid{ display:grid; grid-template-columns:repeat(5,1fr); border-left:1px solid var(--rule); }
.stat{
  display:flex; flex-direction:column; align-items:center; text-align:center; gap:.9rem;
  padding:clamp(1.4rem,2.6vw,2.2rem) 1rem;
  border-right:1px solid var(--rule);
}
.stat .ico{ font-size:clamp(2.6rem,4vw,3.4rem); color:var(--green); }
.stat__v{
  font-size:clamp(2.2rem,4.2vw,3.4rem);
  font-weight:700; letter-spacing:-.02em; line-height:1;
  color:var(--paper); font-variant-numeric:tabular-nums;
}
.stat__l{ font-size:.86rem; font-weight:600; letter-spacing:.04em; color:var(--paper-soft); line-height:1.35; max-width:14ch; }

/* ---------------------------------------------------------------- icon tiles */
.tiles{
  list-style:none; margin:0; padding:1px 0 0 1px;
  display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:1px;
}
.tile{ background:var(--ink); box-shadow:0 0 0 1px var(--rule); }
.tile a{
  display:flex; flex-direction:column; align-items:center; text-align:center; gap:.85rem;
  padding:clamp(1.3rem,2.4vw,1.9rem) .9rem; min-height:100%;
  color:var(--paper); text-decoration:none;
  transition:background .3s var(--ease);
}
.tile .ico{ font-size:2.4rem; color:var(--green); transition:transform .3s var(--ease); }
.tile__n{ font-size:.95rem; font-weight:600; line-height:1.25; letter-spacing:-.005em; }
.tile a:hover, .tile a:focus-visible{ background:var(--ink-deep); outline:none; }
.tile a:hover .ico{ transform:translateY(-2px); }
.tiles--dense{ grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); }
.tiles--dense .tile .ico{ font-size:2rem; }
.tiles--dense .tile__n{ font-size:.84rem; }
.teaser__cta{ margin:clamp(1.6rem,3vw,2.4rem) 0 0; display:flex; justify-content:center; }

/* ---------------------------------------------------------------- bands */
.band{
  position:relative; isolation:isolate; overflow:hidden;
  padding:clamp(3.6rem,7vw,5.6rem) clamp(20px,5vw,60px);
  border-top:1px solid var(--rule);
  background-size:cover; background-position:center;
}
.band .wrap{ max-width:1180px; }
.band--light{ background-color:var(--ink); background-image:var(--geo-b); }
.band--deep{ background-color:var(--ink-deep); background-image:var(--geo-a); }
/* the green field: every token re-declared so the components inside flip
   to white; triangles in a lighter green */
.band--green{
  background-color:var(--green-deep);
  background-image:var(--geo-green), linear-gradient(180deg, #12871a, #0f7416);
  border-top:0;
  --ink:#12871a; --ink-deep:#0d6413;
  --paper:#ffffff; --paper-dim:#eaf6ea;
  --paper-soft:rgba(255,255,255,.82); --paper-faint:rgba(255,255,255,.6);
  --rule:rgba(255,255,255,.24); --rule-soft:rgba(255,255,255,.13);
  --green:#ffffff;
}
.band--green .ico{ color:#fff; }
.band__head{ display:flex; align-items:center; gap:1rem; margin:0 0 clamp(1.4rem,2.6vw,2rem); }
.band__head .ico{ font-size:2rem; color:var(--green); }
.band__h2{
  margin:0;
  font-size:clamp(1.6rem,2.8vw,2.3rem);
  font-weight:700; letter-spacing:-.02em; line-height:1.08;
  color:var(--paper);
}
.band__about{ position:relative; }
.band__about .pg__about,
.band__about .pg__text{ max-width:56ch; position:relative; z-index:1; }
.band__mark{
  position:absolute; right:-2%; top:50%; transform:translateY(-50%);
  font-size:clamp(14rem,30vw,24rem);
  color:var(--paper); opacity:.05; pointer-events:none;
}
.band--green .band__mark{ opacity:.10; }

/* uses: two columns on desktop */
.band .pg__uses{ display:grid; grid-template-columns:1fr; column-gap:clamp(2rem,4vw,3.5rem); }
.band .pg__uses li:first-child{ border-top:1px solid var(--rule-soft); }
@media (min-width:860px){
  .band .pg__uses{ grid-template-columns:1fr 1fr; }
  .band .pg__uses li:nth-child(2){ border-top:1px solid var(--rule-soft); }
}

/* specs: big values */
.specs{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:1px; background:var(--rule); border:1px solid var(--rule); margin:0;
}
.specs div{ background:rgba(0,0,0,.14); padding:clamp(1.2rem,2.2vw,1.8rem) clamp(1rem,2vw,1.5rem); display:flex; flex-direction:column; gap:.55rem; }
.specs dt{ font-size:.7rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--paper-faint); }
.specs dd{ margin:0; font-family:var(--font-display); font-size:clamp(1.15rem,1.8vw,1.45rem); font-weight:600; line-height:1.25; color:var(--paper); letter-spacing:-.01em; }

/* index rows with an icon in front of the number */
.idx--icons .idx__row{ grid-template-columns:auto auto minmax(0,1fr) 30px; }
.idx__ico{ font-size:1.8rem; color:var(--green); align-self:center; }
.idx--tight.idx--icons .idx__ico{ font-size:1.5rem; }

/* related row sits at the same width as the bands */
.pg__related{ max-width:1180px; }

/* home: tag stuck on the top-left corner of the About photo */
.about__media{ position:relative; overflow:visible !important; }
.about__bubble{ position:absolute; left:-1.6rem; top:-1.4rem; z-index:3; }

/* ---------------------------------------------------------------- responsive */
@media (max-width:980px){
  .stats__grid{ grid-template-columns:repeat(3,1fr); border-top:1px solid var(--rule); }
  .stat{ border-bottom:1px solid var(--rule); }
}
@media (max-width:860px){
  /* one column: back link, title, tag, intro + buttons — still spread
     over the full screen, the big icon layered bottom-right behind */
  .phero__in{
    grid-template-columns:1fr;
    grid-template-rows:auto 1fr auto auto;
  }
  .phero__crumb{ grid-row:1; }
  .phero__main{ grid-row:2; }
  .phero__side{ grid-column:1; grid-row:3; position:static; min-height:0; }
  .phero__foot{ grid-row:4; }
  .phero__side .bubble{ display:none; }
  .phero__title{ flex-wrap:wrap; }
  .phero__tagInline{ display:block; margin-left:auto; align-self:center; }
  .phero__mark{
    right:-12%; top:auto; bottom:-4%; transform:none;
    font-size:min(26rem,90vw); opacity:.07; z-index:-1;
  }
  .phero__h1{ max-width:none; }
}
@media (max-width:600px){
  .stats__grid{ grid-template-columns:1fr 1fr; }
  .stat:last-child{ grid-column:1/-1; }
  .tiles{ grid-template-columns:repeat(2,1fr); }
  .tiles--dense{ grid-template-columns:repeat(3,1fr); }
  .band__mark{ display:none; }
  .phero__scroll{ display:none; }
  /* phones: small icon and the tag share the first row, title below at
     full width — so long words ("Infrastructure") still fit */
  .phero__title{ flex-direction:row; flex-wrap:wrap; align-items:center; gap:.9rem; }
  .phero__title .ico{ font-size:2.8rem; order:1; }
  .phero__tagInline{ order:2; }
  .phero__h1{ order:3; flex-basis:100%; font-size:clamp(2rem,9.2vw,2.7rem); overflow-wrap:break-word; hyphens:auto; }
  .phero--listing .phero__h1{ font-size:clamp(2.6rem,12vw,3.6rem); }
  .phero__ctas .btn{ flex:1 1 auto; justify-content:center; }
  /* smaller tags on a phone */
  .bubble{ font-size:.9rem; padding:.65rem .9rem .7rem; max-width:22ch; border-radius:12px; transform:rotate(4deg); }
  .bubble::after{ width:12px; height:12px; bottom:-5px; }
  .about__bubble{ left:.6rem; top:-.9rem; }
}
@media (max-width:400px){
  /* "Statewide" in the display face is wider than half a 320px screen */
  .stat{ padding:1.2rem .5rem; gap:.7rem; }
  .stat__v{ font-size:1.6rem; }
  .stat .ico{ font-size:2.2rem; }
  .tiles--dense{ grid-template-columns:repeat(2,1fr); }
  .tile__n{ overflow-wrap:break-word; hyphens:auto; }
  /* the flag logo is wider than the old one: keep it clear of Contact */
  .hdr__home img{ width:90px; }
}
@media (prefers-reduced-motion:reduce){
  .tile .ico, .phero__scroll svg{ transition:none; animation:none; }
}


/* ---------------------------------------------------------------- hand placements
   Marshall placed every hero tag and big icon by hand, page by page, in the
   local tag editor (tools/tag-editor). build.js writes each page's numbers
   onto its .phero as custom properties; these rules reproduce exactly what
   the editor showed. Desktop >860px, mobile ≤860px. */
@media (min-width:861px){
  /* icon size --S and edge gap --R are shared so the tag can follow the icon */
  .phero__side{
    --S:calc(clamp(15rem,27vw,25rem) * var(--dis,1));
    --R:clamp(1rem,4vw,4.5rem);
  }
  .phero__mark{
    font-size:var(--S);
    translate:calc(var(--dix,0) * var(--S)) calc(var(--diy,0) * var(--S));
  }
  /* tag: its top-left pinned to the icon's top-left, offset in icon sizes */
  .phero--dtag .phero__side .bubble{
    right:auto;
    left:calc(100% - var(--R) - var(--S) + (var(--dix,0) + var(--dtx)) * var(--S));
    top:calc(50% - var(--S) / 2 + (var(--diy,0) + var(--dty)) * var(--S));
    transform:rotate(var(--dtr)); scale:var(--dts);
  }
}
@media (max-width:860px){
  .phero__mark{
    font-size:calc(min(26rem,90vw) * var(--mis,1));
    translate:calc(var(--mix,0) * 1em) calc(var(--miy,0) * 1em);
  }
  /* tag: taken out of the title row and pinned to its top-left */
  .phero--mtag .phero__title{ position:relative; min-height:var(--mtroom,0); align-content:flex-start; }
  .phero--mtag .phero__tagInline{
    position:absolute; margin:0;
    left:var(--mtx); top:var(--mty);
    transform:rotate(var(--mtr)); scale:var(--mts);
  }
}

/* home: the About photo tag (% of the photo) */
@media (min-width:861px){
  .about__bubble{ left:-20.4%; top:0.6%; transform:rotate(-22deg); scale:1.15; }
}
@media (max-width:860px){
  .about__bubble{ left:-0.9%; top:1.7%; transform:rotate(-18deg); scale:1.13; }
}
/* narrower laptops: the photo sits close to the screen edge, so the hang to
   the left is capped to keep the tag on screen (1440+ is exactly as placed) */
@media (min-width:861px) and (max-width:1380px){ .about__bubble{ left:max(-20.4%, -2.5rem); } }
@media (min-width:861px) and (max-width:1240px){ .about__bubble{ left:max(-20.4%, -1.2rem); } }

/* ---------------------------------------------------------------- list rows in bands
   The guide / product / industry lists on detail pages were sized for a
   narrow side column (.idx--tight). Every page is full-width bands now, so
   they are set to the same scale as the band titles above them. */
.idx--tight .idx__row{ padding:clamp(1.3rem,2.4vw,1.8rem) .4rem; gap:0 clamp(1rem,2vw,1.6rem); }
.idx--tight .idx__no{ align-self:center; padding-top:0; font-size:.78rem; }
.idx--tight .idx__main{ gap:.4rem; }
.idx--tight .idx__name{
  font-family:var(--font-display, var(--font));
  font-size:clamp(1.3rem,2.2vw,1.85rem); font-weight:700; letter-spacing:-.02em; line-height:1.1;
}
.idx--tight .idx__line{ font-size:clamp(.95rem,1.15vw,1.08rem); line-height:1.5; max-width:62ch; }
.idx--tight.idx--icons .idx__ico{ font-size:clamp(2.1rem,3.2vw,2.8rem); }
.idx--tight .idx__go svg{ width:22px; height:22px; }
.idx--tight.idx--icons .idx__row{ grid-template-columns:auto auto minmax(0,1fr) 36px; }
@media (max-width:600px){
  .idx--tight .idx__row{ padding:1.15rem 0; gap:0 .8rem; }
  .idx--tight.idx--icons .idx__row{ grid-template-columns:auto auto minmax(0,1fr) 22px; }
  .idx--tight .idx__no{ font-size:.7rem; }
  .idx--tight .idx__go svg{ width:18px; height:18px; }
}
/* very small phones: long single words ("Infrastructure") fit the row */
@media (max-width:400px){
  .idx__name{ font-size:clamp(1.1rem,5.6vw,1.3rem); overflow-wrap:break-word; }
}
