/* ---------------------------------------------------------------------------
   Aldenvo — site styles
   Self-contained. The "Industry" design-system stylesheet that the design
   export carried has been removed: it defined 45 component classes, none of
   which this page used, and its --color-accent (#5980a6) sat in the same
   token namespace as the brand accent. Every token this page actually needs
   is declared below.
   --------------------------------------------------------------------------- */

/* Barlow — self-hosted. Only the faces the page can actually select are
   shipped: 400 (body) and 700 (the browser resolves the page's font-weight:600
   up to 700, since no 600 face exists). Barlow Condensed, weight 500 and the
   Vietnamese subsets are in the export but unreachable from this markup. */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/barlow-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/barlow-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/barlow-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/barlow-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------------------
   Tokens
   --accent is the verdigris used for all accent TEXT. On the ground it
   measures 6.02:1, which clears WCAG AA for normal text (4.5:1).
   --accent-deep (#4A6B63) measures 3.22:1 — below the AA text floor — so it is
   used only for non-text decoration, never for a text colour.
   --------------------------------------------------------------------------- */
:root {
  --accent: #6E9A8E;
  --accent-deep: #4A6B63;
  --ground: #0E1114;
  --surface: #16191D;
  --ink: #F4F2EE;
  --body: #C7C9C6;
  --muted: #8A8F94;
  --line: rgba(244, 242, 238, 0.13);
  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* The removed design-system sheet carried the border-box reset the layout
   depends on (its `*, *::before, *::after { box-sizing: border-box }`).
   Without it the padded sections overflow horizontally at tablet widths, so
   it is restored here rather than lost with the rest of that file. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--ground);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font);
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

/* Focus ring: brand verdigris, never the removed design-system blue.
   2px at 6.02:1 against the ground — comfortably over the 3:1 that WCAG
   1.4.11 asks of a non-text UI indicator. */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: rgba(110, 154, 142, 0.38);
}

/* The contact e-mail is the one link that got a hover colour from a
   non-standard attribute in the export. Restored as real CSS. */
.contact-email:hover,
.contact-email:focus-visible {
  color: var(--accent);
}

/* Skip link — keyboard users land here first. Parked above the viewport
   rather than off to the left, so it never widens the scrollable area. */
.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------------------------------------------------------------------------
   Responsive rules — carried over from the export unchanged
   --------------------------------------------------------------------------- */

/* tablet / short desktop: keep two columns, clear the fixed header, let the shard fill its column */
@media (max-width: 1024px) {
  [data-hero] {
    height: 100svh !important;
    box-sizing: border-box !important;
    padding-top: 92px !important;
    padding-bottom: 24px !important;
    grid-template-columns: minmax(260px, 1fr) minmax(240px, 0.9fr) !important;
    gap: clamp(20px, 3vw, 48px) !important;
  }
  [data-hero-copy] {
    padding-top: 0 !important;
    max-width: 640px !important;
  }
  [data-stage] {
    height: auto !important;
    min-height: 200px !important;
    align-self: stretch !important;
  }
  [data-split] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  [data-row] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* ---------------------------------------------------------------------------
   The SVG shard as a composed state, not a fallback

   Below 900px Three.js is never fetched (see js/shard.js), so the SVG is what
   most visitors see. On its own it is a tall, narrow mark sitting in a short,
   wide box — it measured 20% of the stage width, which reads as something that
   failed to load rather than as a design.

   The fix is not to stretch the mark. It is to use the horizontal space for the
   information the desktop animation reveals: the three markets, one per plane.
   `html[data-shard]` is set by shard.js once the gate has decided, so these
   rules never apply on the WebGL path where the labels are positioned in 3D.
   --------------------------------------------------------------------------- */
html[data-shard='svg'] [data-stage] {
  display: grid;
  grid-template-rows: 1fr auto;
  row-gap: 14px;
}

html[data-shard='svg'] [data-fallback] {
  position: relative !important;
  grid-row: 1;
  min-height: 0;
}

html[data-shard='svg'] [data-market] {
  position: relative !important;
  grid-row: 2;
  left: auto !important;
  top: auto !important;
  opacity: 1 !important;
  transform: none !important;
  font-size: 10px !important;
  letter-spacing: 0.16em !important;
  color: var(--muted) !important;
  text-align: center;
  align-self: end;
}

/* Three names on one row, sitting under the mark. */
html[data-shard='svg'] [data-stage] {
  grid-template-columns: repeat(3, 1fr);
}
html[data-shard='svg'] [data-fallback] {
  grid-column: 1 / -1;
}
html[data-shard='svg'] [data-market='0'] { grid-column: 1; }
html[data-shard='svg'] [data-market='1'] { grid-column: 2; }
html[data-shard='svg'] [data-market='2'] { grid-column: 3; }

/* The middle plane carries the accent in the artwork, so the middle market
   name carries it too. */
html[data-shard='svg'] [data-market='1'] {
  color: var(--accent) !important;
}

@media (max-width: 380px) {
  html[data-shard='svg'] [data-market] {
    font-size: 9px !important;
    letter-spacing: 0.1em !important;
  }
}

/* Grid children default to min-width:auto, so a nested auto-fit grid can push
   its own track wider than the page. This is what made the compliance grid
   overflow to 822px at a 768px viewport: it laid out three 260px columns and
   the parent track grew to fit them instead of the grid reflowing to two. */
[data-split] > *,
[data-row] > *,
[data-cols] > *,
[data-compliance] > *,
[data-contact] > * {
  min-width: 0;
}

/* narrow: hero stacks, shard keeps a floor of its own row */
@media (max-width: 767px) {
  [data-hero] {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto minmax(190px, 1fr) !important;
    align-items: stretch !important;
    align-content: start !important;
    gap: clamp(12px, 2.5vh, 28px) !important;
  }
  [data-stage] {
    min-height: 0 !important;
  }
}

/* short viewports: trim the copy so the shard keeps a real height */
@media (max-width: 1024px) and (max-height: 760px) {
  [data-hero] {
    padding-top: 88px !important;
    padding-bottom: 16px !important;
  }
  [data-hero-copy] > p:first-child {
    margin-bottom: 10px !important;
  }
  [data-hero-copy] h1 {
    font-size: clamp(38px, 6vw, 56px) !important;
    margin-bottom: 12px !important;
  }
  [data-hero-copy] h1 + p {
    font-size: 16px !important;
    margin-bottom: 14px !important;
  }
  [data-hero-copy] [data-metrics] {
    gap: 10px 20px !important;
    padding-top: 12px !important;
  }
  [data-hero-copy] [data-metrics] dd {
    font-size: 13px !important;
  }
}

/* no room for a live shard at all: static SVG instead of a sliver */
@media (max-width: 767px) and (max-height: 480px) {
  [data-stage] canvas {
    display: none !important;
  }
  [data-stage] [data-fallback] {
    display: block !important;
  }
  [data-stage] [data-market] {
    display: none !important;
  }
}

@media (max-width: 767px) {
  [data-header] {
    flex-wrap: wrap !important;
    gap: 10px 18px !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }
  [data-nav] {
    gap: 16px !important;
    font-size: 10px !important;
    flex-wrap: wrap !important;
  }
  [data-cols] {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  [data-compliance] {
    grid-template-columns: 1fr !important;
  }
  [data-contact] {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }
  /* The fixed header wraps to three rows on a 360px screen and measures
     119px there, so the export's 112px reserve let the eyebrow slide under
     it. Reserve enough for the wrapped header at every phone width. */
  [data-hero] {
    padding-top: 144px !important;
  }
  [data-hero-section] {
    height: 180vh !important;
  }
  [data-hero-copy] > p:first-child {
    margin-bottom: 16px !important;
  }
  [data-hero-copy] h1 {
    margin-bottom: 18px !important;
  }
  [data-hero-copy] h1 + p {
    margin-bottom: 22px !important;
  }
  [data-hero-copy] [data-metrics] {
    gap: 14px 20px !important;
    padding-top: 16px !important;
  }
  [data-contact-row] {
    flex-direction: column !important;
    gap: 4px !important;
  }
  [data-contact-row] dd {
    text-align: left !important;
  }
}

@media (max-width: 420px) {
  [data-brand-card] {
    padding: 22px !important;
  }
  [data-metrics] {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px 20px !important;
  }
}

/* Reduced motion: no smooth scroll, and the hero stops being a scroll
   sequence so nothing moves as the page is read. The 3D scene draws one
   static frame — see js/shard.js. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-hero-section] {
    height: auto !important;
    min-height: 100vh;
  }
  [data-hero] {
    position: static !important;
  }
  [data-stage] canvas {
    transition: none !important;
  }
}
