/* ==========================================================================
   EDIO — Shared foundation (all pages)
   Tokens, reset, type primitives, buttons, header, markers, close, footer.
   Zero radius, 1px technical rules, cyan as signal.
   ========================================================================== */

@property --hit { syntax: '<number>'; inherits: true; initial-value: 0; }

:root {
  --navy: #0A2233;
  --deep: #071923;
  --cyan: #0B7F91;
  --cyan-2: #0E8FA2;
  --paper: #F6F7F7;
  --ink: #201E1D;
  --white: #FFFFFF;

  /* white theme: page, raised surfaces, text, and text on a teal fill */
  --bg: #FFFFFF;
  --surface: #F6F7F7;
  --surface-2: #EDEFF0;
  --fg: #0E1A20;
  --on-accent: #FFFFFF;

  --text-dim: #3F525B;
  --text-mute: #66777F;
  --line: rgba(11, 127, 145, .16);
  --line-strong: rgba(11, 127, 145, .32);
  --rule-dark: rgba(32, 30, 29, .14);

  --font-display: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;   /* no monospace face on the site: small labels use Archivo too */

  --pad: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --header-h: 72px;
  --meta-h: 64px;
  --ease: cubic-bezier(.2, .7, .1, 1);

  --on: 0;      /* markers forced on by scroll */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.5 var(--font-display);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: rgba(11, 127, 145, .28); color: var(--fg); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  padding: 10px 14px; background: var(--cyan); color: var(--on-accent); font-weight: 700;
}
.skip:focus { top: 12px; }

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

/* ---------- Type primitives ---------- */
.kicker {
  display: flex; align-items: center; gap: 12px;
  font: 500 13px/1 var(--font-display);
  color: var(--text-mute);
}
.kicker span { color: var(--cyan); }

.display {
  font-weight: 800; font-stretch: 84%;
  line-height: .94; letter-spacing: -.035em;
  text-wrap: balance;
}

/* system line: tiny mono metadata that sits under the header on every hero */
.sys {
  display: flex; gap: 18px; height: 32px; align-items: center;
  font: 500 13px/1 var(--font-display);
}
.sys-a { color: var(--text-mute); }
.sys-b { color: var(--cyan); display: inline-flex; align-items: center; }

/* status lights: on · half (building) · off (planned) */
.led {
  display: inline-block; width: 7px; height: 7px; margin-right: 10px; flex: none;
  background: var(--cyan); box-shadow: 0 0 0 3px rgba(11, 127, 145, .144);
}
.led--half { background: linear-gradient(90deg, var(--cyan) 50%, transparent 50%); border: 1px solid var(--cyan); box-shadow: none; }
.led--off { background: transparent; border: 1px solid var(--text-mute); box-shadow: none; }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* word-mask split (JS wraps words) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w > span { display: inline-block; will-change: transform; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 28px;
  min-width: 212px; padding: 16px 18px;
  font: 700 15px/1 var(--font-display);
  border: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.btn i { font-style: normal; transition: transform .35s var(--ease); }
.btn:hover i { transform: translateX(4px); }
.btn-solid { background: var(--cyan); color: var(--on-accent); }
.btn-solid:hover { background: var(--cyan-2); }
.btn-solid:active { background: #0B7F91; }
.btn-line { border-color: rgba(14, 26, 32, .294); color: var(--fg); }
.btn-line:hover { border-color: var(--cyan); color: var(--cyan-2); background: rgba(11, 127, 145, .048); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--surface); }
.btn-ink-line { border-color: rgba(32, 30, 29, .4); color: var(--ink); }
.btn-ink-line:hover { border-color: var(--ink); background: rgba(32, 30, 29, .04); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  transition: background-color .45s ease, border-color .45s ease, backdrop-filter .45s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
  border-bottom-color: rgba(11, 127, 145, .144);
}
.header-row { position: relative; height: 100%; display: flex; align-items: center; gap: 40px; }
/* the logo with its trademark sign, and the tagline under it: the tagline stays within the logo's width */
.brand { display: inline-flex; flex-direction: column; gap: 5px; }
.brand-mark { display: inline-flex; align-items: flex-start; }
.brand img { height: 36px; width: auto; }
.tm { margin: -2px 0 0 2px; font: 600 10px/1 var(--font-display); color: var(--ink-hi, #0E1A20); }
.brand-tag { align-self: flex-start; font: 500 10.5px/1.2 var(--font-display); letter-spacing: .01em; color: var(--text-mute); white-space: nowrap; }
/* nav sits on the page's centre line; brand left, CTA right */
.nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: clamp(20px, 2.6vw, 40px); }
.header-cta { margin-left: auto; }
@media (max-width: 767px) { .brand img { height: 34px; } .brand-tag { font-size: 10px; } }
.nav a {
  position: relative; padding: 6px 0;
  font: 500 14px/1 var(--font-display); color: #2F4149;
  transition: color .25s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--cyan); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { min-width: 0; gap: 18px; padding: 11px 14px; font-size: 13px; border-color: rgba(11, 127, 145, .32); }
.header-cta .sm { display: none; }
.menu-btn { display: none; }

/* sized explicitly: the scrolled header's backdrop-filter makes it the containing block for fixed children,
   so inset-based sizing would collapse the panel to the header's height */
.mobile-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); padding: 12px var(--pad) 40px;
  display: flex; flex-direction: column;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
  font: 800 34px/1 var(--font-display); font-stretch: 85%; letter-spacing: -.02em;
}
.mobile-nav a[aria-current="page"] { color: var(--cyan-2); }

/* ==========================================================================
   DIAGNOSTIC MARKERS (shared by hero plates and annotated photos)
   ========================================================================== */
.mk, .anno { position: absolute; width: 0; height: 0; transition: --hit .45s ease; }
.mk.is-hit { --hit: 1; transition-duration: .18s; }
.mk-dot {
  position: absolute; left: -3px; top: -3px; width: 6px; height: 6px;
  background: var(--cyan-2); box-shadow: 0 0 0 3px rgba(255, 255, 255, .55);
  opacity: calc(.4 + .6 * max(var(--on), var(--hit)));
}
.mk-ring {
  position: absolute; left: -11px; top: -11px; width: 22px; height: 22px;
  border: 1px solid var(--cyan); border-radius: 50%;
  opacity: max(var(--on), var(--hit));
  transform: scale(calc(.6 + .4 * max(var(--on), var(--hit))));
}
.mk.is-hit .mk-ring { animation: ping 1.1s var(--ease) both; }
@keyframes ping { 0% { transform: scale(.4); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
.mk-label {
  position: absolute; left: 18px; top: -11px;
  display: flex; gap: 8px; white-space: nowrap;
  padding: 5px 8px 5px 7px;
  font: 500 13px/1 var(--font-display);
  color: #1B2C33; background: rgba(255, 255, 255, .78);
  border-left: 1px solid var(--cyan);
  opacity: max(var(--on), var(--hit));
  transform: translateX(calc((1 - max(var(--on), var(--hit))) * -6px));
}
.mk-label b { font-weight: 500; color: var(--cyan-2); }
.mk.is-clipped .mk-label { visibility: hidden; } /* not display:none — layout measures it */

/* ==========================================================================
   CLOSE + FOOTER
   ========================================================================== */
.close { background: var(--paper); color: var(--ink); }
.close-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 32px; align-items: end;
  padding-block: clamp(40px, 5vw, 72px);
}
.close-grid .kicker { grid-column: 1 / -1; }
.close-title {
  grid-column: 1 / span 8;
  font-weight: 800; font-stretch: 84%;
  font-size: clamp(44px, 6.4vw, 104px); line-height: .92; letter-spacing: -.04em;
  text-wrap: balance;
}
.close-side { grid-column: 9 / span 4; display: grid; gap: 28px; justify-items: start; }
.close-side p { font-size: 17px; color: #4B4845; }
.close-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer: the brand and what EDIO is, then product, company, legal and follow links ---------- */
.site-footer { background: #F5F8F9; border-top: 1px solid var(--line); color: var(--text-dim); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(4, minmax(0, 2fr)); gap: 40px 32px; padding-block: clamp(48px, 6vw, 80px) 40px; }
/* the footer logo is the header logo: same size, tagline within the logo width */
.foot-claim { margin-top: 20px; max-width: 26ch; font: 500 20px/1.3 var(--font-display); letter-spacing: -.015em; color: var(--ink-hi, #0E1A20); }
.foot-co { margin-top: 14px; max-width: 40ch; font-size: 14px; line-height: 1.55; color: var(--text-mute); }
.foot-col h2 { font: 500 13px/1.3 var(--font-display); color: var(--text-mute); }
.foot-col ul { display: grid; gap: 10px; margin-top: 16px; }
.foot-col a { font: 400 15px/1.35 var(--font-display); color: var(--text-dim); transition: color .2s ease; }
.foot-col a:hover, .foot-col a[aria-current] { color: var(--cyan-2); }
.foot-social { display: flex; gap: 10px; margin-top: 16px; }
.foot-social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-strong, rgba(11, 127, 145, .32)); border-radius: 50%; color: var(--cyan-2); transition: background .2s ease, color .2s ease; }
.foot-social a:hover { background: var(--cyan-2); color: #fff; }
.foot-social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.foot-social svg .fill { fill: currentColor; stroke: none; }
.foot-mail { margin-top: 16px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-mute); }
.foot-col a:focus-visible, .foot-social a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
/* "Cookie settings" sits in the footer's Legal list and reads like its links */
.foot-cookie { padding: 0; border: 0; background: none; cursor: pointer; text-align: left; font: 400 15px/1.35 var(--font-display); color: var(--text-dim); transition: color .2s ease; }
.foot-cookie:hover { color: var(--cyan-2); }
.foot-cookie:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---------- Cookie consent (consent.js): a white bar along the bottom, the site's own buttons ---------- */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--bg); border-top: 1px solid var(--line-strong);
  box-shadow: 0 -12px 32px rgba(14, 26, 32, .06);
  transform: translateY(100%); transition: transform .3s var(--ease);
}
.consent.is-open { transform: none; }
.consent-in { display: flex; align-items: center; justify-content: space-between; gap: 18px 40px; padding-block: 20px; }
.consent-t { max-width: 72ch; font-size: 15px; line-height: 1.55; color: var(--text-dim); }
.consent-t a { color: var(--cyan-2); text-decoration: underline; text-underline-offset: 3px; }
.consent-b { display: flex; gap: 10px; flex: none; }
.consent .btn { min-width: 140px; justify-content: center; cursor: pointer; }
.consent .btn-line:not(:hover) { background: transparent; }
.consent .btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
@media (max-width: 767px) {
  .consent-in { flex-direction: column; align-items: stretch; padding-block: 16px 18px; }
  .consent-t { font-size: 14px; }
  .consent-b .btn { flex: 1; min-width: 0; }
}

/* ---------- Scroll reveal (site.js adds .is-in) ---------- */
.js [data-rise] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.js [data-rise].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE (shared parts)
   ========================================================================== */
@media (max-width: 1199px) {
  .close-title { grid-column: 1 / -1; }
  .close-side { grid-column: 1 / span 7; }
}

@media (max-width: 767px) {
  :root { --header-h: 64px; --meta-h: 56px; }
  .nav { display: none; }
  .header-row { gap: 12px; }
  .header-cta { margin-left: auto; }
  .header-cta .lg { display: none; }
  .header-cta .sm { display: inline; }
  .sys { gap: 10px; font-size: 9.5px; letter-spacing: .12em; }
  .menu-btn {
    display: grid; place-content: center; gap: 6px;
    width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; cursor: pointer;
  }
  .menu-btn i { display: block; width: 20px; height: 1.5px; background: var(--fg); transition: transform .3s var(--ease); }
  .menu-btn[aria-expanded="true"] i:first-of-type { transform: translateY(3.75px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] i:last-of-type { transform: translateY(-3.75px) rotate(-45deg); }

  .close-side { grid-column: 1 / -1; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .mk.is-hit .mk-ring { animation: none; }
  .btn i, .nav a::after, .consent { transition: none; }
  .js [data-rise] { opacity: 1; transform: none; transition: none; }
}
