/* ==========================================================================
   LVL5 — public site styles
   Light, spacious, glass + chrome, electric-green accent.
   ========================================================================== */

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
  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: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-var-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: italic;
  font-display: swap;
  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;
}

/* Metric-matched fallback: prevents layout shift while the web font loads */
@font-face {
  font-family: "Instrument Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 100%;
  ascent-override: 97%;
  descent-override: 25%;
  line-gap-override: 0%;
}

:root {
  --bg: #eceef0;
  --bg-hi: #fafbfb;
  --surface: rgba(255, 255, 255, .55);
  --ink: #0c0d0e;
  --ink-2: #2a2d31;
  --muted: #5d6268;          /* 5:1 on --bg */
  --line: rgba(12, 13, 14, .14);
  --line-strong: rgba(12, 13, 14, .82);

  --green: #a1f903;          /* brand: accents, fills, glows */
  --green-text: #3f8a00;     /* green used as TEXT on light backgrounds (AA large) */
  --green-glow: rgba(161, 249, 3, .5);

  --font: "Instrument Sans", "Instrument Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(16px, 5.6vw, 100px);
  --radius: 10px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink), 0 0 0 7px var(--green-glow);
}

/* ---------- Base ---------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(60vmax 45vmax at 74% 38%, var(--bg-hi) 0%, rgba(250, 251, 251, 0) 70%),
    radial-gradient(28vmax 22vmax at 92% 4%, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #f3f4f5 0%, var(--bg) 55%, #e6e8eb 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
}
body > main, body > .home { flex: 1 0 auto; }

img, svg, picture, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul { padding: 0; list-style: none; }

:focus { outline: none; }
:focus-visible { box-shadow: var(--focus); border-radius: 6px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: var(--ink); color: #fff; font-weight: 600;
}
.skip-link:focus { top: 16px; }

.icon { width: 1em; height: 1em; flex: none; }

/* ---------- Buttons ------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65em;
  min-height: 48px;
  padding: 0 1.35em;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.005em;
  white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.btn .btn-icon { width: 1.15em; height: 1.15em; transition: transform .35s var(--ease); }
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 10px 30px -12px rgba(12, 13, 14, .45); }
.btn:hover .btn-icon { transform: translateX(3px); }
.btn:hover .btn-icon, .btn:focus-visible .btn-icon { color: var(--green); }
.btn:active { transform: translateY(1px); }

.btn-lg {
  min-height: clamp(52px, 6.8vh, 64px);
  min-width: clamp(200px, 15vw, 248px);
  font-size: clamp(1.0625rem, 1.2vw, 1.25rem);
}

.btn-solid { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-solid:hover { background: #000; box-shadow: 0 0 0 4px var(--green-glow); }

.round-btn {
  display: grid; place-items: center;
  width: clamp(44px, 3.2vw, 54px);
  aspect-ratio: 1;
  padding: 0;
  border: 1.5px solid rgba(12, 13, 14, .22);
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #6b7076;
  transition: border-color .3s var(--ease), color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.round-btn .icon { width: 42%; height: 42%; }
.round-btn:hover { color: var(--ink); border-color: var(--ink); background: rgba(255, 255, 255, .75); }
.round-btn-accent { border-color: var(--green); color: var(--ink); box-shadow: 0 0 18px -6px var(--green-glow); }
.round-btn-accent:hover { border-color: var(--green); box-shadow: 0 0 0 4px rgba(161, 249, 3, .25), 0 0 22px -4px var(--green-glow); }

/* ---------- Header -------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: clamp(18px, 4.4vh, 44px) var(--gutter) 0;
}

.brand { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 30px); flex: none; }
.brand img { width: auto; height: clamp(30px, 2.65vw, 46px); }
.brand-tag {
  font-size: clamp(8.5px, .66vw, 11.5px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--ink);
}

.site-nav { display: flex; align-items: center; margin-left: auto; }
.site-nav ul { display: flex; gap: clamp(22px, 3vw, 52px); margin-right: clamp(40px, 8.5vw, 150px); }
.site-nav ul a {
  position: relative;
  display: block;
  padding: 10px 0;
  font-size: clamp(.95rem, 1.05vw, 1.125rem);
  color: #4a4e54;
  transition: color .3s var(--ease);
}
.site-nav ul a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  box-shadow: 0 0 10px var(--green-glow);
  transform: scaleX(0);
  transition: transform .45s var(--ease);
}
.site-nav ul a:hover { color: var(--ink); }
.site-nav ul a:hover::after { transform: scaleX(.35); }
.site-nav ul a[aria-current="page"] { color: var(--ink); }
.site-nav ul a[aria-current="page"]::after { transform: scaleX(1); }

.header-cta { font-size: clamp(.95rem, 1.05vw, 1.125rem); min-height: clamp(44px, 5.2vh, 50px); padding-inline: 1.5em; }

.menu-toggle { display: none; }

/* ---------- Home composition --------------------------------------------- */
/* Header, hero and updates form ONE full-screen composition (.home);
   the hero artwork is positioned against .home so it can run behind the updates. */

.home {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: max(100svh, 640px);
  overflow: hidden;
}
.home-main { display: contents; }

.hero {
  display: grid;
  align-content: center;
  padding: clamp(12px, 6vh, 72px) var(--gutter) 0;
}

.hero-slides { display: grid; }
.hero-slide {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s var(--ease-soft), visibility 0s linear .9s;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity .9s var(--ease-soft) .15s, visibility 0s;
}

.hero-copy {
  position: relative;
  z-index: 5;
  max-width: min(47vw, 760px);
  transform: translateX(-18px);
  transition: transform 1.1s var(--ease);
}
.hero-slide.is-active .hero-copy { transform: none; }

.eyebrow {
  margin-bottom: clamp(18px, 5vh, 52px);
  font-size: clamp(.78rem, 1.02vw, 1.0625rem);
  font-weight: 500;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--ink);
}

.hero-title {
  font-size: min(5.55vw, 10vh, 6.3rem);
  font-weight: 700;
  line-height: .97;
  letter-spacing: -.045em;
  color: var(--ink);
}
.hero-title .line { display: block; }
.hero-title .line-3 { font-weight: 500; letter-spacing: -.042em; }
.hero-title .hl {
  color: var(--green-text);
  background: linear-gradient(180deg, #92e400 8%, #4c9800 96%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (forced-colors: active) {
  .hero-title .hl { background: none; -webkit-text-fill-color: currentColor; }
}

.hero-desc {
  max-width: 31ch;
  margin: clamp(14px, 3.4vh, 34px) 0 clamp(22px, 4.4vh, 42px);
  font-size: clamp(1.0625rem, 1.48vw, 1.6rem);
  line-height: 1.4;
  color: var(--muted);
  letter-spacing: -.01em;
}

/* Artwork: sits right, anchored to the whole .home so it can overlap the updates row */
.hero-art {
  position: absolute;
  z-index: 1;
  right: max(-1.5vw, -24px);
  top: clamp(70px, 11.5vh, 130px);
  width: min(calc(80svh * (var(--ar))), 61vw);
  aspect-ratio: var(--ar);
  container-type: inline-size;
  pointer-events: none;
  transform: translateX(28px) scale(.985);
  transition: transform 1.4s var(--ease);
}
.hero-slide.is-active .hero-art { transform: none; }
.hero-art picture, .hero-art .hero-img { width: 100%; height: 100%; }
.hero-art .hero-img { object-fit: contain; }

/* Floating labels placed on the artwork's blank glass panels (real HTML text) */
.hero-label {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55em;
  width: 6.4em;
  font-size: 1.85cqi;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.01em;
  text-align: center;
  color: #16181a;
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
}
.hero-label .icon { width: 2.5em; height: 2.5em; color: #111; }
.hero-label.is-play .icon { color: #111; }
.hero-label.is-play .icon circle { fill: var(--green); stroke: #111; stroke-width: 1.2; }

/* Content drawn on the laptop screen (hero 1: logo + tiles, hero 3: code preview) */
.hero-screen {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: 31cqi;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  text-align: center;
  transform: translate(-50%, -50%) perspective(60cqi) rotateY(-9deg) rotateZ(1.6deg) skewX(-6deg);
}
.hero-screen > img { width: 14cqi; height: auto; filter: drop-shadow(0 0 1.2cqi rgba(161, 249, 3, .25)); }
.hero-screen-tag {
  display: flex; gap: 2.4em;
  margin: 1.6cqi 0 2.4cqi;
  font-size: .78cqi;
  letter-spacing: .5em;
  text-transform: uppercase;
  opacity: .9;
}
.hero-screen-tiles { display: flex; gap: 1.2cqi; }
.hero-screen-tiles > span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8cqi;
  width: 7.2cqi; aspect-ratio: 1 / 1.08;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: .9cqi;
  background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  font-size: .95cqi;
}
.hero-screen-tiles .icon { width: 2.6cqi; height: 2.6cqi; }
.hero-screen-tiles > span:first-child .icon { color: var(--green); }

.hero-code { width: 30cqi; align-items: stretch; text-align: left; }
.hero-code-bar {
  display: flex; align-items: center; gap: .5cqi;
  padding: .8cqi 1cqi;
  border-radius: .8cqi .8cqi 0 0;
  background: rgba(255, 255, 255, .08);
  font-size: .9cqi; letter-spacing: .18em;
}
.hero-code-bar i { width: .7cqi; height: .7cqi; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.hero-code-bar i:first-child { background: var(--green); }
.hero-code-bar b { margin-left: auto; font-weight: 600; }
.hero-code-body { display: grid; grid-template-columns: 1fr 1fr; border-radius: 0 0 .8cqi .8cqi; background: rgba(255, 255, 255, .04); }
.hero-code-src, .hero-code-out { padding: 1.4cqi 1.2cqi; font-size: 1.05cqi; line-height: 1.6; }
.hero-code-src { font-family: ui-monospace, Consolas, monospace; color: rgba(255, 255, 255, .85); border-right: 1px solid rgba(255, 255, 255, .08); }
.hero-code-src em { font-style: normal; color: var(--green); }
.hero-code-out { position: relative; background: rgba(255, 255, 255, .92); color: #111; border-radius: 0 0 .8cqi 0; }
.hero-code-out strong { display: block; font-size: 1.9cqi; line-height: 1.1; margin-bottom: .4cqi; }
.hero-code-out i { position: absolute; right: 1cqi; bottom: 1cqi; display: grid; place-items: center; width: 2.2cqi; height: 2.2cqi; border-radius: 50%; background: var(--green); }
.hero-code-out .icon { width: 1.4cqi; height: 1.4cqi; }

/* Iframe hero (trusted HTML uploaded in the CMS) */
.hero-frame { width: 100%; height: clamp(420px, 62vh, 720px); border: 0; background: transparent; }

/* Dots + pause */
.hero-dots {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.1vw, 18px);
  margin-top: clamp(20px, 4.4vh, 44px);
  padding-left: 10px;
}
.hero-dot {
  position: relative;
  width: 20px; height: 20px;
  padding: 0;
  border: 0;
  background: none;
}
.hero-dot::before {
  content: "";
  position: absolute; inset: 1px;
  border: 1.5px solid #6f747a;
  border-radius: 50%;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.hero-dot:hover::before { border-color: var(--ink); }
.hero-dot[aria-current="true"]::before { background: var(--green); border-color: var(--green); box-shadow: 0 0 12px var(--green-glow); }
/* Invisible larger tap target */
.hero-dot::after { content: ""; position: absolute; inset: -12px -6px; }

.hero-pause {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  margin-left: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #6f747a;
  transition: color .3s var(--ease);
}
.hero-pause:hover { color: var(--ink); }
.hero-pause .icon { width: 14px; height: 14px; }
.hero-pause .icon-play { display: none; }
.hero-pause[aria-pressed="true"] .icon-pause { display: none; }
.hero-pause[aria-pressed="true"] .icon-play { display: block; }

/* ---------- Latest updates (inside the hero composition) ------------------ */

.updates {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 3vw, 56px);
  padding: clamp(18px, 3vh, 34px) var(--gutter) clamp(20px, 4vh, 40px);
}
/* Soft light wash so text stays readable where the artwork runs behind it */
.updates::before {
  content: "";
  position: absolute;
  inset: -30% 0 0 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(236, 238, 240, 0) 0%, rgba(238, 240, 242, .72) 45%, rgba(236, 238, 240, .9) 100%);
  pointer-events: none;
}

.updates-label {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding-right: clamp(24px, 5.2vw, 88px);
  border-right: 1px solid var(--line);
  font-size: clamp(.8rem, 1.05vw, 1.1rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #3d4146;
}
.updates-label a span { display: block; }
.updates-label a:hover { color: var(--ink); }

.ticker {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 94%, transparent 100%);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker calc(var(--count) * 11s) linear infinite;
  will-change: transform;
}
.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track,
.ticker.is-paused .ticker-track { animation-play-state: paused; }

@keyframes ticker {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.update {
  position: relative;
  flex: none;
  width: clamp(250px, 22vw, 370px);
  padding-right: clamp(28px, 3vw, 56px);
}
.update-meta {
  display: flex; align-items: center; gap: .6em;
  margin-bottom: 4px;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #5d6268;
}
.update-meta span::after { content: ""; display: inline-block; width: 4px; height: 4px; margin-left: .6em; border-radius: 50%; background: var(--green); vertical-align: middle; box-shadow: 0 0 6px var(--green-glow); }
.update-title {
  font-size: clamp(.98rem, 1.02vw, 1.08rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.005em;
  color: var(--ink);
}
.update-title a { background: linear-gradient(var(--green), var(--green)) 0 100% / 0 2px no-repeat; transition: background-size .45s var(--ease); }
/* Whole card is clickable via the title link */
.update-title a::after { content: ""; position: absolute; inset: -6px 16px -6px -6px; border-radius: 8px; }
.update-title a:focus-visible { box-shadow: none; }
.update-title a:focus-visible::after { box-shadow: var(--focus); }
.update:hover .update-title a { background-size: 100% 2px; }
.update-desc {
  margin-top: 4px;
  font-size: clamp(.875rem, .9vw, .95rem);
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ticker-empty { color: var(--muted); }

.hero-arrows { display: flex; gap: clamp(10px, 1vw, 16px); }

/* ---------- Footer -------------------------------------------------------- */

.site-footer {
  position: relative;
  margin-top: auto;
  padding: clamp(40px, 7vw, 80px) var(--gutter) 28px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .35);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr) auto;
  gap: 32px 48px;
  align-items: start;
}
.footer-brand img { height: 30px; width: auto; margin-bottom: 14px; }
.footer-brand p { max-width: 36ch; font-size: .95rem; color: var(--muted); }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 10px 32px; }
.footer-nav a, .footer-contact a { display: inline-block; padding: 6px 0; color: var(--ink-2); }
.footer-nav a:hover, .footer-contact a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.footer-legal { margin-top: 36px; font-size: .85rem; color: var(--muted); }

/* ---------- Inner pages (articles, updates, menu pages) ------------------ */

.inner {
  width: min(100% - 2 * var(--gutter), 1180px);
  margin: 0 auto;
  padding: clamp(40px, 8vh, 96px) 0 clamp(56px, 10vh, 120px);
}
.inner-head { position: relative; max-width: 860px; margin-bottom: clamp(32px, 6vh, 64px); }
.inner-head .eyebrow { margin-bottom: clamp(14px, 2.6vh, 26px); }
.inner-head .eyebrow span { color: var(--ink); }
.inner-title {
  max-width: 18ch;
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.045em;
}
.page-article .inner-title { max-width: 22ch; font-size: clamp(2.2rem, 4.6vw, 4rem); }
.inner-lead { max-width: 40ch; margin-top: clamp(16px, 2.6vh, 26px); font-size: clamp(1.1rem, 1.5vw, 1.4rem); line-height: 1.45; color: var(--muted); }
.inner-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* One decorative glass/chrome piece floating to the right of the page heading */
.decor-head {
  position: absolute;
  z-index: -1;
  right: clamp(-360px, -24vw, -120px);
  top: 50%;
  width: clamp(160px, 22vw, 320px);
  transform: translateY(-50%) rotate(-6deg);
  pointer-events: none;
  animation: float 9s ease-in-out infinite alternate;
}
.decor-head img { width: 100%; height: auto; }
@keyframes float { to { transform: translateY(calc(-50% - 14px)) rotate(-3deg); } }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #a3a8ae; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 4px; }

.preview-banner { margin-bottom: 28px; padding: 12px 16px; border-radius: 12px; background: #fff4dc; color: #6b4200; font-weight: 500; }

.article-image {
  max-width: 1000px;
  margin: 0 0 clamp(32px, 6vh, 56px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 22px;
  background: rgba(255, 255, 255, .5);
  box-shadow: 0 30px 60px -40px rgba(20, 24, 28, .35);
}
.article-image img { width: 100%; }

.prose { max-width: 68ch; font-size: clamp(1.05rem, 1.15vw, 1.15rem); line-height: 1.7; color: var(--ink-2); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.15; letter-spacing: -.03em; color: var(--ink); }
.prose h3 { margin-top: 1.5em; font-size: 1.3rem; letter-spacing: -.02em; color: var(--ink); }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose ol { padding-left: 1.3em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 1.5em; }
.prose ul li::before { content: ""; position: absolute; left: .2em; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green-glow); }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.prose a:hover { background: rgba(161, 249, 3, .18); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--green); font-size: 1.15em; color: var(--ink); }
.prose img { border-radius: 16px; }
.prose figure { margin: 1.8em 0; }
.prose figcaption { margin-top: 8px; font-size: .9rem; color: var(--muted); }
.prose code { padding: .1em .35em; border-radius: 6px; background: rgba(12, 13, 14, .06); font-size: .92em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }

.article-back { margin-top: clamp(40px, 7vh, 72px); }

.inner-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-card {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 14px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .75), rgba(255, 255, 255, .45));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px -36px rgba(20, 24, 28, .4), inset 0 1px 0 #fff;
}
.contact-card-title { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
.contact-card .muted { color: var(--muted); }
.contact-card .btn { justify-self: start; }
.contact-line { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.contact-line .icon { width: 22px; height: 22px; padding: 10px; box-sizing: content-box; border-radius: 12px; background: var(--ink); color: var(--green); }
.contact-line span { display: grid; font-weight: 600; word-break: break-word; }
.contact-line small { font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-line:hover span { text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 4px; }

.section-label { margin-bottom: 24px; font-size: .9rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: #3d4146; }
.more { margin-top: clamp(64px, 10vh, 120px); padding-top: clamp(32px, 5vh, 48px); border-top: 1px solid var(--line); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.update-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .4));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -34px rgba(20, 24, 28, .45), inset 0 1px 0 #fff;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.update-card:hover { transform: translateY(-3px); box-shadow: 0 30px 50px -34px rgba(20, 24, 28, .5), 0 0 0 1px rgba(161, 249, 3, .6), inset 0 1px 0 #fff; }
.update-card-img { margin: -12px -12px 8px; overflow: hidden; border-radius: 14px; aspect-ratio: 16 / 9; background: var(--bg); }
.update-card-img img { width: 100%; height: 100%; object-fit: cover; }
.update-card-title { font-size: 1.25rem; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; }
.update-card-title a::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.update-card-title a:focus-visible { box-shadow: none; }
.update-card-title a:focus-visible::after { box-shadow: var(--focus); }
.update-card-desc { color: var(--muted); font-size: .98rem; }
.update-card-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; font-size: .92rem; font-weight: 500; }
.update-card-more .icon { transition: transform .35s var(--ease); }
.update-card:hover .update-card-more .icon { transform: translateX(3px); color: var(--green-text); }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; }
.pager-info { color: var(--muted); }

/* ==========================================================================
   Responsive
   ≥1100px            desktop: menu inline, text left / art right
   900–1099 landscape  compact desktop: menu button, text left / art right
   <900 or portrait    stacked: text, then artwork, then updates
   <600                phone refinements
   ========================================================================== */

/* Very large screens: keep the artwork near its native resolution */
@media (min-width: 1900px) {
  .hero-art { width: min(calc(80svh * (var(--ar))), 61vw, 1250px); right: calc((100vw - 1900px) / 5); }
}

/* ---------- Menu button + slide-in menu (below 1100px) -------------------- */
@media (max-width: 1099px) {
  .menu-toggle {
    position: relative;
    z-index: 41;
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    margin-left: auto;
    padding: 0;
    border: 1.5px solid rgba(12, 13, 14, .18);
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
  .menu-toggle-icon { position: relative; width: 18px; height: 10px; }
  .menu-toggle-icon span {
    position: absolute; left: 0; right: 0; height: 1.8px; border-radius: 2px; background: var(--ink);
    transition: transform .45s var(--ease), top .45s var(--ease);
  }
  .menu-toggle-icon span:first-child { top: 0; }
  .menu-toggle-icon span:last-child { top: 8px; }
  .menu-open .menu-toggle-icon span:first-child { top: 4px; transform: rotate(45deg); }
  .menu-open .menu-toggle-icon span:last-child { top: 4px; transform: rotate(-45deg); }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    margin: 0;
    padding: 96px var(--gutter) 48px;
    background:
      radial-gradient(70vmax 50vmax at 80% 20%, rgba(161, 249, 3, .10), rgba(161, 249, 3, 0) 60%),
      rgba(240, 242, 243, .96);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s var(--ease), visibility 0s linear .45s;
  }
  .menu-open .site-nav { opacity: 1; visibility: visible; transition: opacity .45s var(--ease), visibility 0s; }
  .site-nav ul { flex-direction: column; gap: 4px; margin: 0; }
  .site-nav ul a {
    display: inline-block;
    padding: 6px 0;
    font-size: clamp(2rem, 7vw, 3rem);
    font-weight: 600;
    letter-spacing: -.035em;
    color: var(--ink);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s var(--ease), transform .6s var(--ease), color .3s;
  }
  .site-nav ul a::after { bottom: 4px; height: 3px; }
  .menu-open .site-nav ul a { opacity: 1; transform: none; }
  .menu-open .site-nav li:nth-child(2) a { transition-delay: .04s; }
  .menu-open .site-nav li:nth-child(3) a { transition-delay: .08s; }
  .menu-open .site-nav li:nth-child(4) a { transition-delay: .12s; }
  .menu-open .site-nav li:nth-child(5) a { transition-delay: .16s; }
  .menu-open .site-nav li:nth-child(6) a { transition-delay: .2s; }
  .site-nav .header-cta { min-height: 56px; font-size: 1.0625rem; }
  .menu-open { overflow: hidden; }
  .menu-open .brand { position: relative; z-index: 41; }
}

/* ---------- Stacked layout: phones, portrait tablets --------------------- */
@media (max-width: 899px), (max-width: 1099px) and (orientation: portrait) {
  .home { min-height: 0; grid-template-rows: auto auto auto; }

  .hero { padding-top: clamp(28px, 6vw, 56px); }
  .hero-slide { flex-direction: column; align-items: stretch; }
  .hero-copy { max-width: 640px; }
  .hero-title { font-size: clamp(2.6rem, 10.4vw, 5rem); }
  .hero-desc { max-width: 34ch; }

  .hero-art {
    position: relative;
    right: auto; top: auto;
    width: min(108%, 720px);
    margin: clamp(8px, 3vw, 24px) auto 0;
    left: 0;
    align-self: center;
    transform: translateY(16px);
  }
  .hero-slide.is-active .hero-art { transform: none; }
  .hero-label { font-size: 2.3cqi; }

  .hero-dots { justify-content: center; margin-top: 8px; padding-left: 0; }

  .updates {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding-top: 22px;
  }
  .updates::before { inset: 0; background: linear-gradient(180deg, rgba(236, 238, 240, 0), rgba(236, 238, 240, .6) 30%); }
  .updates-label { padding: 0; border: 0; }
  .updates-label a span { display: inline; }
  .hero-arrows { display: none; }

  /* Touch-friendly: swipe the updates instead of auto-scrolling */
  .ticker {
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .ticker::-webkit-scrollbar { display: none; }
  .ticker-track { animation: none; gap: 12px; }
  .update[aria-hidden="true"] { display: none; }
  .update {
    width: min(78vw, 320px);
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 14px;
    background: rgba(255, 255, 255, .5);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px -16px rgba(20, 24, 28, .25);
    scroll-snap-align: start;
  }
  .update-title a::after { inset: 0; border-radius: 14px; }

  .footer-inner { grid-template-columns: 1fr; }
  .inner-body { grid-template-columns: 1fr; }
  .contact-card { position: static; }
  .decor-head { right: -18vw; top: -10px; width: 42vw; opacity: .55; transform: rotate(-6deg); animation: none; }
}

/* ---------- Phones -------------------------------------------------------- */
@media (max-width: 599px) {
  .brand-tag { display: none; }
  .brand img { height: 30px; }
  .site-header { padding-top: 16px; }
  .eyebrow { font-size: .72rem; letter-spacing: .3em; margin-bottom: 16px; }
  .hero-title { letter-spacing: -.04em; }
  .hero-desc { font-size: 1.0625rem; margin: 14px 0 22px; }
  .hero-copy .btn-lg { width: 100%; }
  .hero-art { width: 116%; margin-left: -8%; }
  .hero-label { font-size: 2.6cqi; }
  .hero-screen-tag { letter-spacing: .3em; }
}

/* ---------- Reduced motion ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .decor-head { animation: none; }
  /* Updates: no automatic movement; scroll by hand instead */
  .ticker { overflow-x: auto; scrollbar-width: thin; }
  .ticker-track { animation: none; }
  .update[aria-hidden="true"] { display: none; }
}

/* ---------- JS-enhanced states ------------------------------------------- */
/* Labels on the artwork appear together with the image, never before it */
.js .hero-art .hero-label,
.js .hero-art .hero-screen { opacity: 0; transition: opacity .8s var(--ease) .1s; }
.js .hero-art.is-ready .hero-label,
.js .hero-art.is-ready .hero-screen { opacity: 1; }

.ticker.is-static .ticker-track { animation: none; }
.ticker.is-manual .ticker-track { animation: none; transition: transform .7s var(--ease); }
.ticker.is-static .update[aria-hidden="true"] { display: none; }
