/* CDS Elements — shared tokens, fonts and components (buttons, links, dots)
 * Palette 60 / 30 / 10: navy (primary) · red (secondary) · saffron yellow (accent, CTAs only).
 * Colours read Elementor's Site Settings globals first, so they can be changed there.
 * Type: condensed-black display (Archivo) + a light grotesk mono for everything else (Geist Mono).
 */
@font-face {
  font-family: 'CDS Archivo';
  src: url('../fonts/archivo-var.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: 'CDS Mono';
  src: url('../fonts/geist-mono-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --cds-navy: var(--e-global-color-primary, #1D2145);
  --cds-red: var(--e-global-color-secondary, #FE2F00);
  --cds-accent: var(--e-global-color-accent, #FFBC09);
  --cds-light: var(--e-global-color-text, #EEEEF2);
  --cds-navy-2: #252A55;
  --cds-deep: #171A37;
  --cds-deeper: #151833;
  --cds-red-deep: #A82300;
  --cds-paper: #F7F7FA;
  --cds-font: 'CDS Archivo', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --cds-mono: 'CDS Mono', ui-monospace, Consolas, monospace;
  --cds-gutter: clamp(18px, 4vw, 64px);
  --cds-frame: 10px;
  --cds-header-h: 92px;
  --cds-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --cds-ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --cds-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.cds-site {
  background: var(--cds-navy);
  color: var(--cds-light);
  font-family: var(--cds-mono);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.cds-site ::selection { background: var(--cds-accent); color: var(--cds-navy); }
/* shared bits */
.cds-dot {
  display: inline-block; vertical-align: middle; flex: none;
  width: 11px; height: 11px; margin: -2px 0.6em 0 0; border-radius: 50%;
  border: 1.5px solid var(--cds-red);
  background: radial-gradient(circle, var(--cds-red) 0 2.2px, transparent 2.6px);
}
.cds-mark .m-over, .cds-mark .m-slash { fill: var(--cds-red); }
.cds-mark .m-under { fill: var(--cds-red-deep); }
.cds-mark .m-crease { fill: #000; opacity: 0.35; }

.cds-link {
  position: relative; color: inherit; text-decoration: none; padding: 0.25em 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.45s var(--cds-ease-out);
}
.cds-link:hover, .cds-link:focus-visible { background-size: 0 1px; background-position: 100% 100%; color: inherit; }
.cds-link::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--cds-accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s 0.1s var(--cds-ease-out);
}
.cds-link:hover::after, .cds-link:focus-visible::after { transform: scaleX(1); }

/* signature CTA: a light pill; on hover/focus a yellow fill sweeps in like liquid ink */
.cds-btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: 54px; padding: 0 22px 0 28px; border-radius: 999px; border: 0;
  background: var(--cds-light); color: var(--cds-navy) !important;
  text-decoration: none !important; cursor: pointer; white-space: nowrap;
  font-family: var(--cds-mono); font-size: 0.8rem; font-weight: 500; line-height: 1; text-transform: uppercase; letter-spacing: 0.05em;
  transition: transform 0.2s var(--cds-ease-out), box-shadow 0.5s var(--cds-ease-out);
}
.cds-btn__fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.cds-btn__fill { fill: var(--cds-accent); }
.cds-btn__label, .cds-btn__icon { position: relative; z-index: 1; }
.cds-btn__icon { display: inline-grid; place-items: center; width: 18px; height: 18px; }
.cds-btn__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.6s var(--cds-ease-spring); }
.cds-btn:hover .cds-btn__icon svg, .cds-btn:focus-visible .cds-btn__icon svg { transform: translateX(4px); }
.cds-btn:hover, .cds-btn:focus-visible { box-shadow: 0 14px 34px -14px rgba(255, 188, 9, 0.55); }
.cds-btn:active { transform: scale(0.97); }
.cds-btn:focus-visible { outline: 2px solid var(--cds-accent); outline-offset: 4px; }
.cds-site :focus-visible { outline: 2px solid var(--cds-accent); outline-offset: 4px; }
.cds-site .screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .cds-site *, .cds-site *::before, .cds-site *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ── Glow card (shared by sections 2 and 3) ─────────────────────────
   Hover: the outline steps outward and a ring of glowing veins opens
   around the card, while the card's own image and meta settle back. */
.cds-gcard { --ring: 1.5rem; --card-r: 6px; position: relative; display: flex; color: var(--cds-light) !important; text-decoration: none !important; outline: none; }
.cds-gcard__fx { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.cds-gcard__outline { position: absolute; inset: 0; z-index: 2; border: 1px solid rgba(254, 47, 0, 0.28); border-radius: var(--card-r); transition: inset 0.5s cubic-bezier(0.19, 1, 0.22, 1), border-color 0.5s; }
.cds-gcard__glow { position: absolute; inset: calc(var(--ring) * -1); z-index: 1; border-radius: calc(var(--card-r) + 2px); overflow: hidden; background: #0B0D21;
  clip-path: inset(calc(var(--ring) + 3px) round var(--card-r)); visibility: hidden; transition: clip-path 0.5s cubic-bezier(0.19, 1, 0.22, 1), visibility 0s 0.5s; }
.cds-gcard__glow canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cds-gcard__inner { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; min-width: 0;
  background: #121430; border: 1px solid rgba(254, 47, 0, 0.18); border-radius: var(--card-r); padding: 15px 15px 28px; }
.cds-gcard__dim { transition: opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1); }
@media (hover: hover) and (pointer: fine) {
  .cds-gcard:hover .cds-gcard__outline, .cds-gcard.is-lit .cds-gcard__outline { inset: calc(var(--ring) * -1); border-color: rgba(254, 47, 0, 0.5); }
  .cds-gcard:hover .cds-gcard__glow, .cds-gcard.is-lit .cds-gcard__glow { clip-path: inset(0 round var(--card-r)); visibility: visible; transition: clip-path 0.5s cubic-bezier(0.19, 1, 0.22, 1), visibility 0s; }
  .cds-gcard:hover .cds-gcard__dim { opacity: 0.5; }
}
.cds-gcard:focus-visible .cds-gcard__outline { inset: calc(var(--ring) * -1); border-color: var(--cds-accent); }
.cds-gcard:focus-visible .cds-gcard__glow { clip-path: inset(0 round var(--card-r)); visibility: visible; transition: clip-path 0.5s, visibility 0s; }
.cds-gcard__media { position: relative; overflow: hidden; border-radius: 3px; }
.cds-gcard__mask { position: absolute; inset: -2px; -webkit-mask-image: linear-gradient(#000 calc(100% - 7rem), transparent); mask-image: linear-gradient(#000 calc(100% - 7rem), transparent); }
.cds-gcard__mask img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cds-gcard__date { font-family: var(--cds-mono); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(238, 238, 242, 0.5); }
.cds-gcard__title { margin: 0.7rem 0 0; font-family: var(--cds-font); font-weight: 400; font-stretch: 100%; text-transform: none; letter-spacing: -0.01em; font-size: clamp(1.35rem, 0.9rem + 0.8vw, 1.75rem); line-height: 1.15; color: var(--cds-light); }
.cds-gcard__text { margin: 0.9rem 0 0; max-width: 34ch; font-family: var(--cds-mono); font-weight: 300; font-size: 0.82rem; line-height: 1.6; color: rgba(238, 238, 242, 0.82); }
/* pill + round arrow: light at rest, saffron on hover (from the CTA system) */
.cds-pill { position: relative; display: inline-flex; align-items: center; }
.cds-pill__tag { height: 26px; display: inline-flex; align-items: center; padding: 1px 12px 0; border-radius: 3px; background: var(--cds-light); color: var(--cds-navy); font-family: var(--cds-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; transition: background-color 0.3s ease-out; }
.cds-pill__go { width: 30px; height: 26px; margin-left: -3px; border-radius: 50%; display: grid; place-items: center; background: var(--cds-light); transition: background-color 0.3s ease-out; }
.cds-pill__go svg { width: 13px; height: 13px; fill: none; stroke: var(--cds-navy); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.5s var(--cds-ease-out); }
.cds-gcard:hover .cds-pill__tag, .cds-gcard:hover .cds-pill__go { background: var(--cds-accent); }
.cds-gcard:hover .cds-pill__go svg { transform: rotate(-45deg); }
