/* ═══════════════════════════════════════════════════════════════════════════
   CABANA · THE AGENT NETWORK
   A trading desk for people who sell places instead of securities.
   ───────────────────────────────────────────────────────────────────────────
   Where the creator edition is light and couture, this page is instruments:
   deep navy, electric cyan, acid lime, hairline grids, monospaced numerals
   and a chart that redraws while you drag. The ambition is legibility under
   pressure — every figure on the desk is readable at a glance, and every
   figure says where it came from.
   ═══════════════════════════════════════════════════════════════════════════ */

[data-programme='agent'] {
  --pg-bg: #04060f;
  --pg-bg-2: #070c1c;
  --pg-surface: rgba(140, 190, 255, .055);
  --pg-surface-2: rgba(140, 190, 255, .10);
  --pg-text: #eaf3ff;
  --pg-muted: rgba(234, 243, 255, .64);
  --pg-faint: rgba(234, 243, 255, .38);
  --pg-accent: #22e5ff;
  --pg-accent-2: #8b5cf6;
  --pg-accent-3: #c6ff4a;
  --pg-line: rgba(120, 180, 240, .16);
  --pg-line-strong: rgba(120, 180, 240, .34);
  --pg-on-accent: #011118;

  --pg-display: 'Archivo', system-ui, sans-serif;
  --pg-grain-opacity: .04;
  --pg-grain-blend: overlay;
  --pg-ambient-still: url('/assets/programmes/agent-ambient.jpg');

  background:
    radial-gradient(110% 70% at 78% -8%, rgba(34, 229, 255, .16), transparent 62%),
    radial-gradient(90% 60% at 4% 6%, rgba(139, 92, 246, .16), transparent 60%),
    var(--pg-bg);
}

[data-programme='agent'] h1,
[data-programme='agent'] h2,
[data-programme='agent'] h3 { font-weight: 900; letter-spacing: -.035em; }

/* Numerals, labels and anything that wants to look like an instrument. */
[data-programme='agent'] output,
[data-programme='agent'] .ag-range-limits,
[data-programme='agent'] .ag-flow-index,
[data-programme='agent'] .ag-credential-code { font-family: var(--pg-mono); }

/* The hairline grid that sits under the whole cockpit. */
.ag-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(120, 180, 240, .09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120, 180, 240, .09) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(90% 70% at 50% 34%, #000 18%, transparent 78%);
  -webkit-mask-image: radial-gradient(90% 70% at 50% 34%, #000 18%, transparent 78%);
  animation: ag-drift 26s linear infinite;
}
@keyframes ag-drift { to { background-position: 72px 72px, 72px 72px; } }

/* ══ HERO ════════════════════════════════════════════════════════════════ */
.ag-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(34px, 4.2vw, 62px) clamp(46px, 6vw, 92px);
  min-height: min(84vh, 840px);
  display: flex;
  align-items: center;
}
.ag-hero-bed { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.ag-hero-bed .pg-ambient-still { opacity: .42; filter: blur(4px) saturate(1.2); }
.ag-hero-bed .pg-ambient { --pg-ambient-opacity: .5; }
.ag-hero-bed::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 6, 15, .34) 0%, rgba(4, 6, 15, .1) 40%, var(--pg-bg) 98%);
}
.ag-net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .95; }

.ag-hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .78fr);
  align-items: center;
  gap: clamp(30px, 5vw, 80px);
}
.ag-status {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 8px 15px 8px 12px;
  border: 1px solid var(--pg-line);
  border-radius: 100px;
  background: rgba(4, 6, 15, .6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font: 600 10.5px/1 var(--pg-body);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ag-status b { color: var(--pg-accent-3); }
.ag-status em {
  font-style: normal;
  color: var(--pg-faint);
  border-left: 1px solid var(--pg-line);
  padding-left: 11px;
}
@media (max-width: 560px) { .ag-status em { display: none; } }

.ag-title {
  margin: 22px 0 0;
  font-size: clamp(42px, 8.6vw, 128px);
  line-height: .86;
  text-transform: none;
}
.ag-title-small {
  display: block;
  font-size: .34em;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--pg-muted);
  margin-bottom: .14em;
}
.ag-title-big { display: block; }
.ag-title-row { display: block; white-space: nowrap; }
.ag-title-row .ag-title-big { display: inline-block; }
.ag-title-row em { font-style: normal; color: var(--pg-accent); }
/* Per-character animation is the reveal here; the block fade would double it. */
.ag-title .pg-reveal { opacity: 1; transform: none; }
.ag-title-glow {
  background: linear-gradient(94deg, #22e5ff 6%, #7ef0ff 32%, #c6ff4a 66%, #8b5cf6 98%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ag-sweep 9s linear infinite;
}
@keyframes ag-sweep { to { background-position: 220% 0; } }

.ag-lede {
  margin-top: clamp(18px, 2.4vw, 28px);
  max-width: 46ch;
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--pg-muted);
}
.ag-note { margin-top: 18px; }

/* ── The credential ───────────────────────────────────────────────────── */
.ag-hero-card { min-width: 0; display: grid; justify-items: center; }
.ag-credential {
  position: relative;
  width: min(100%, 400px);
  border: 1px solid var(--pg-line-strong);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(20, 34, 62, .92), rgba(6, 10, 24, .96));
  box-shadow: 0 46px 110px -42px rgba(34, 229, 255, .5), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform .6s var(--pg-ease);
  transform-style: preserve-3d;
}
.ag-credential-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--pg-line);
  font: 600 9.5px/1 var(--pg-body);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--pg-faint);
}
/* A little foil chip, the kind every real card has. */
.ag-chip {
  width: 30px;
  height: 22px;
  border-radius: 4px;
  background:
    linear-gradient(120deg, #c6ff4a, #22e5ff 46%, #8b5cf6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34);
  position: relative;
}
.ag-chip::after {
  content: '';
  position: absolute;
  inset: 4px 3px;
  background:
    linear-gradient(to right, rgba(0, 0, 0, .35) 1px, transparent 1px) 0 0/7px 100%,
    linear-gradient(to bottom, rgba(0, 0, 0, .35) 1px, transparent 1px) 0 0/100% 6px;
}
.ag-credential-photo { position: relative; aspect-ratio: 5 / 4; overflow: hidden; }
.ag-credential-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%; }
.ag-credential-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 10, 24, .85));
  mix-blend-mode: multiply;
}
/* The scan line: one pass, then a pause, like a reader taking its time. */
.ag-scan {
  position: absolute;
  left: 0; right: 0;
  height: 26%;
  background: linear-gradient(180deg, transparent, rgba(34, 229, 255, .34), transparent);
  box-shadow: 0 0 34px 6px rgba(34, 229, 255, .28);
  animation: ag-scan 5.4s var(--pg-ease-glide) infinite;
  z-index: 2;
}
@keyframes ag-scan {
  0%, 8% { transform: translateY(-120%); opacity: 0; }
  14% { opacity: 1; }
  56% { transform: translateY(420%); opacity: 1; }
  64%, 100% { transform: translateY(420%); opacity: 0; }
}
.ag-credential-body { padding: 18px 16px 20px; }
.ag-credential-name {
  font-family: var(--pg-display);
  font-size: clamp(21px, 2.3vw, 28px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 16px;
}
.ag-credential-rows { display: grid; gap: 1px; background: var(--pg-line); border: 1px solid var(--pg-line); border-radius: 10px; overflow: hidden; }
.ag-credential-rows > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 13px;
  background: rgba(6, 10, 24, .86);
  font-size: 12px;
}
.ag-credential-rows dt { color: var(--pg-faint); letter-spacing: .08em; text-transform: uppercase; font-size: 9.5px; font-weight: 600; }
.ag-credential-rows dd { font-weight: 600; }
.ag-ok { color: var(--pg-accent-3); }
.ag-credential-foil {
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, transparent 36%, rgba(198, 255, 74, .16) 46%,
              rgba(34, 229, 255, .22) 52%, transparent 62%);
  transform: translateX(-120%);
  animation: ag-foil 7s var(--pg-ease-glide) 1.2s infinite;
  pointer-events: none;
}
@keyframes ag-foil {
  0%, 62% { transform: translateX(-120%); }
  92%, 100% { transform: translateX(120%); }
}
.ag-credential-code {
  position: absolute;
  left: 16px;
  bottom: 6px;
  font-size: 8px;
  letter-spacing: .18em;
  color: rgba(198, 255, 74, .48);
}

.ag-marquee {
  --pg-marquee-speed: 38s;
  background: linear-gradient(90deg, rgba(34, 229, 255, .08), rgba(139, 92, 246, .08));
}
.ag-marquee .pg-marquee-track > * { font-family: var(--pg-mono); font-size: clamp(11px, 1.2vw, 14px); letter-spacing: .18em; }

/* ══ SECTION HEADS ═══════════════════════════════════════════════════════ */
.ag-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: end;
  gap: clamp(18px, 3vw, 56px);
  margin-bottom: clamp(32px, 4.2vw, 62px);
}
.ag-section-head h2 {
  margin-top: 15px;
  font-size: clamp(30px, 4.4vw, 60px);
  line-height: .96;
}
.ag-section-head h2 span { color: var(--pg-accent); }
.ag-flow-section,
.ag-desk-section,
.ag-live-section,
.ag-faq-section { position: relative; padding-block: var(--pg-section); }
.ag-desk-section {
  border-block: 1px solid var(--pg-line);
  background:
    radial-gradient(70% 50% at 84% 6%, rgba(34, 229, 255, .10), transparent 64%),
    radial-gradient(60% 46% at 4% 92%, rgba(139, 92, 246, .10), transparent 62%);
}

/* ══ PIPELINE ════════════════════════════════════════════════════════════ */
.ag-flow { display: grid; gap: 0; border-top: 1px solid var(--pg-line); }
.ag-flow-step {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 46px);
  padding: clamp(22px, 2.8vw, 36px) 0;
  border-bottom: 1px solid var(--pg-line);
  transition: background .4s var(--pg-ease), padding-inline .4s var(--pg-ease);
}
.ag-flow-step::before {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--pg-accent), var(--pg-accent-3));
  transition: width .7s var(--pg-ease);
}
.ag-flow-step:hover::before { width: 100%; }
.ag-flow-step:hover { background: var(--pg-surface); padding-inline: clamp(10px, 1.4vw, 20px); }
.ag-flow-index {
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 200;
  letter-spacing: -.02em;
  color: var(--pg-accent);
  line-height: 1;
}
.ag-flow-body h3 { font-size: clamp(19px, 2.2vw, 28px); line-height: 1; margin-bottom: 9px; }
.ag-flow-body p { color: var(--pg-muted); font-size: 14.5px; max-width: 62ch; }
.ag-flow-mark {
  font-size: 20px;
  color: var(--pg-faint);
  transition: transform .45s var(--pg-ease-spring), color .3s var(--pg-ease);
}
.ag-flow-step:hover .ag-flow-mark { transform: translate(4px, -4px); color: var(--pg-accent-3); }

/* ══ THE DESK ════════════════════════════════════════════════════════════ */
.ag-desk {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.5fr);
  grid-template-areas: 'controls board' 'note board';
  align-items: start;
  gap: clamp(14px, 1.6vw, 22px);
}
.ag-controls { grid-area: controls; }
.ag-board { grid-area: board; }
.ag-note-panel { grid-area: note; }

.ag-panel {
  position: relative;
  border: 1px solid var(--pg-line);
  border-radius: 18px;
  background: linear-gradient(170deg, rgba(14, 24, 48, .78), rgba(5, 9, 22, .9));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}
.ag-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid var(--pg-line);
  font: 600 9.5px/1 var(--pg-body);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--pg-faint);
}
.ag-panel-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pg-accent-3); }
.ag-live { display: inline-flex; align-items: center; gap: 7px; color: var(--pg-accent); }
.ag-live i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: ag-blink 1.7s steps(1, end) infinite;
}
@keyframes ag-blink { 0%, 52% { opacity: 1; } 53%, 100% { opacity: .18; } }

.ag-controls > :not(.ag-panel-head) { margin-inline: clamp(16px, 1.8vw, 22px); }
.ag-controls > .pg-note { margin-bottom: 20px; }
.ag-presets { display: flex; gap: 7px; margin: 18px 0 22px; }
.ag-presets button {
  flex: 1;
  padding: 10px 6px;
  border: 1px solid var(--pg-line);
  border-radius: 9px;
  font: 600 12px/1 var(--pg-mono);
  color: var(--pg-muted);
  transition: all .28s var(--pg-ease);
}
.ag-presets button:hover { color: var(--pg-text); border-color: var(--pg-line-strong); }
.ag-presets button[aria-pressed='true'] {
  color: var(--pg-on-accent);
  background: var(--pg-accent);
  border-color: var(--pg-accent);
}
.ag-range-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  font: 600 9.5px/1 var(--pg-body);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pg-faint);
}
.ag-range-label strong {
  font: 700 17px/1 var(--pg-mono);
  letter-spacing: -.01em;
  text-transform: none;
  color: var(--pg-text);
}
.ag-range-limits {
  display: flex;
  justify-content: space-between;
  margin-top: -6px;
  font-size: 9.5px;
  letter-spacing: .1em;
  color: var(--pg-faint);
}

/* The board */
.ag-board-figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--pg-line);
  border-bottom: 1px solid var(--pg-line);
}
.ag-figure {
  padding: clamp(16px, 2vw, 24px) clamp(14px, 1.6vw, 20px);
  background: rgba(5, 9, 22, .78);
  min-width: 0;
}
.ag-figure span {
  display: block;
  font: 600 9.5px/1.3 var(--pg-body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pg-faint);
  margin-bottom: 11px;
}
.ag-figure output {
  display: block;
  font-size: clamp(17px, 2vw, 25px);
  font-weight: 700;
  letter-spacing: -.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ag-figure-lead { background: rgba(34, 229, 255, .09); }
.ag-figure-lead output { color: var(--pg-accent); font-size: clamp(19px, 2.4vw, 31px); }

.ag-chart { margin: 0; padding: clamp(14px, 1.8vw, 22px); }
.ag-chart canvas { width: 100%; aspect-ratio: 1200 / 420; }
.ag-chart figcaption { margin-top: 12px; }

.ag-band {
  padding: clamp(16px, 2vw, 22px);
  border-top: 1px solid var(--pg-line);
  background: rgba(139, 92, 246, .08);
}
.ag-band-label {
  display: block;
  font: 600 9.5px/1 var(--pg-body);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pg-faint);
  margin-bottom: 9px;
}
.ag-band strong {
  display: block;
  font-family: var(--pg-display);
  font-size: clamp(19px, 2.3vw, 28px);
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--pg-accent-3);
}
.ag-band-rail {
  height: 4px;
  margin: 14px 0 12px;
  border-radius: 4px;
  background: var(--pg-line);
  overflow: hidden;
}
.ag-band-rail span {
  display: block;
  height: 100%;
  width: 12%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--pg-accent-2), var(--pg-accent), var(--pg-accent-3));
  transition: width .7s var(--pg-ease);
}

.ag-note-panel { display: flex; flex-direction: column; }
.ag-ledger { display: grid; gap: 1px; background: var(--pg-line); }
.ag-ledger > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 13px clamp(16px, 1.8vw, 20px);
  background: rgba(5, 9, 22, .82);
  font-size: 13px;
}
.ag-ledger dt { color: var(--pg-muted); }
.ag-ledger dd { font-weight: 700; font-family: var(--pg-mono); white-space: nowrap; }
.ag-barcode {
  display: block;
  height: 30px;
  margin: 16px clamp(16px, 1.8vw, 20px) 0;
  background: repeating-linear-gradient(90deg,
    var(--pg-line-strong) 0 2px, transparent 2px 4px,
    var(--pg-line-strong) 4px 5px, transparent 5px 9px);
  opacity: .7;
}
.ag-note-panel .pg-note { padding: 14px clamp(16px, 1.8vw, 20px) 18px; }

/* ══ LIVE AVAILABILITY ═══════════════════════════════════════════════════ */
.ag-live-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  align-items: center;
  gap: clamp(28px, 4.6vw, 76px);
}
.ag-live-grid h2 { font-size: clamp(30px, 4.4vw, 58px); line-height: .96; margin: 15px 0 18px; }
.ag-live-grid h2 span { color: var(--pg-accent); }
.ag-ticks { margin: 26px 0 28px; display: grid; gap: 12px; }
.ag-ticks li {
  position: relative;
  padding-left: 30px;
  font-size: 14.5px;
  color: var(--pg-muted);
}
.ag-ticks li::before {
  content: '';
  position: absolute;
  left: 0; top: .42em;
  width: 16px; height: 9px;
  border-left: 2px solid var(--pg-accent-3);
  border-bottom: 2px solid var(--pg-accent-3);
  transform: rotate(-45deg);
}
.ag-calendar {
  margin: 0;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--pg-line);
  border-radius: 18px;
  background: linear-gradient(170deg, rgba(14, 24, 48, .8), rgba(5, 9, 22, .92));
  box-shadow: 0 40px 90px -46px rgba(34, 229, 255, .45);
}
.ag-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  font: 600 10px/1 var(--pg-body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pg-faint);
}
.ag-calendar-days,
.ag-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.ag-calendar-days {
  margin-bottom: 8px;
  font: 600 9.5px/1 var(--pg-mono);
  letter-spacing: .1em;
  color: var(--pg-faint);
  text-align: center;
}
/* Nights are taller than they are wide, and each carries its number, so the
   panel reads as a calendar rather than a heat map. */
.ag-calendar-grid i {
  position: relative;
  display: grid;
  place-items: start end;
  aspect-ratio: 1 / 1.14;
  padding: 5px 6px;
  border-radius: 7px;
  font: 600 9.5px/1 var(--pg-mono);
  font-style: normal;
  color: rgba(234, 243, 255, .5);
  background: rgba(140, 190, 255, .05);
  border: 1px solid var(--pg-line);
  transition: background .45s var(--pg-ease), border-color .45s var(--pg-ease),
              color .45s var(--pg-ease), box-shadow .45s var(--pg-ease),
              transform .45s var(--pg-ease-spring);
}
.ag-calendar-grid i::before { content: attr(data-night); }
/* The state lives in a bar at the foot of the night, not in a tinted fill.
   Lime washed over navy turns olive; lime sitting on navy stays lime. */
.ag-calendar-grid i::after {
  content: '';
  position: absolute;
  left: 6px; right: 6px; bottom: 6px;
  height: 3px;
  border-radius: 3px;
  background: currentColor;
  opacity: .9;
  transition: background .45s var(--pg-ease);
}
.ag-calendar-grid i.is-open { color: #c6ff4a; border-color: rgba(198, 255, 74, .42); }
.ag-calendar-grid i.is-held { color: #ffc43c; border-color: rgba(255, 196, 60, .42); }
.ag-calendar-grid i.is-booked {
  color: #c4b5fd;
  border-color: rgba(167, 139, 250, .5);
  background:
    repeating-linear-gradient(-45deg, rgba(167, 139, 250, .22) 0 3px, transparent 3px 8px),
    rgba(139, 92, 246, .16);
}
.ag-calendar-grid i.is-flip {
  transform: scale(1.12);
  box-shadow: 0 0 0 3px rgba(34, 229, 255, .24), 0 8px 22px -8px rgba(34, 229, 255, .7);
}
.ag-calendar-key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pg-faint);
}
.ag-calendar-key span { display: inline-flex; align-items: center; gap: 7px; }
.ag-calendar-key i { width: 11px; height: 11px; border-radius: 3px; display: block; }
.ag-calendar-key i.is-open { background: rgba(198, 255, 74, .75); }
.ag-calendar-key i.is-held { background: rgba(255, 196, 60, .8); }
.ag-calendar-key i.is-booked { background: rgba(167, 139, 250, .9); }

/* ══ FAQ ═════════════════════════════════════════════════════════════════ */
.ag-faq {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(24px, 4vw, 70px);
  align-items: start;
}
.ag-faq-intro h2 { margin: 15px 0 16px; font-size: clamp(32px, 4.6vw, 62px); line-height: .96; }
.ag-faq-intro h2 span { color: var(--pg-accent); }

/* ══ FINALE ══════════════════════════════════════════════════════════════ */
.ag-finale {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid var(--pg-line);
  padding-block: clamp(72px, 11vw, 160px);
  text-align: center;
}
.ag-finale-bed { position: absolute; inset: 0; z-index: -1; }
.ag-grid-2 {
  background-size: 54px 54px;
  mask-image: radial-gradient(70% 90% at 50% 50%, #000 6%, transparent 72%);
  -webkit-mask-image: radial-gradient(70% 90% at 50% 50%, #000 6%, transparent 72%);
}
.ag-finale-bed::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(58% 70% at 50% 54%, rgba(34, 229, 255, .18), transparent 70%);
}
.ag-finale-inner { display: grid; justify-items: center; gap: 20px; }
.ag-finale h2 {
  font-size: clamp(34px, 6.6vw, 92px);
  line-height: .94;
}
.ag-finale h2 span {
  background: linear-gradient(94deg, #22e5ff, #c6ff4a 62%, #8b5cf6);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ag-sweep 8s linear infinite;
}
.ag-finale-cta { margin-top: 10px; }

/* ══ RESPONSIVE ══════════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .ag-desk { grid-template-columns: 1fr; grid-template-areas: 'board' 'controls' 'note'; }
}
@media (max-width: 980px) {
  .ag-hero-shell { grid-template-columns: 1fr; }
  .ag-hero-card { order: -1; }
  .ag-credential { width: min(100%, 360px); }
  .ag-section-head { grid-template-columns: 1fr; align-items: start; }
  .ag-live-grid { grid-template-columns: 1fr; }
  .ag-faq { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .ag-hero { min-height: 0; }
  .ag-board-figures { grid-template-columns: 1fr; }
  .ag-flow-step { grid-template-columns: auto minmax(0, 1fr); row-gap: 8px; }
  .ag-flow-mark { display: none; }
}
@media (max-width: 420px) {
  .ag-presets { flex-wrap: wrap; }
  .ag-presets button { flex: 1 1 30%; }
  .ag-calendar-key { font-size: 9.5px; gap: 6px 12px; }
}
