/* ============================================================
   ADVRTISE — "night system" core
   Tokens, reset, type and the handful of components every page shares.
   Load this first, then the page's own stylesheet.
   ============================================================ */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/assets/fonts/Archivo-var.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;
}

:root {
  /* Ground and surfaces */
  --bg: #050506;
  --bg-deep: #060608;
  --panel: #0b0b0d;
  --panel-2: #0a0a0c;

  /* Type */
  --ink: #eceae3;
  --ink-2: #c9c6bd;
  --ink-3: #a7a49b;
  --ink-4: #8a877f;
  --ink-5: #6d6b63;
  --ink-6: #5d5b54;

  /* Accent */
  --acc: #ff5a1f;
  --acc-2: #ff8c5a;
  --acc-hover: #ff6c38;
  --ok: #5dc9a0;

  /* Lines */
  --line: rgba(236, 234, 227, 0.1);
  --line-2: rgba(236, 234, 227, 0.08);
  --line-3: rgba(236, 234, 227, 0.14);
  --line-strong: rgba(236, 234, 227, 0.22);

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1240px;

  /* Rhythm. Raise these to loosen the whole page at once. */
  --sec-pad: clamp(96px, 9vw, 150px);
  --row-pad: 24px;
  --grid-gap: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; }
::selection { background: var(--acc); color: var(--bg); }
section { scroll-margin-top: 84px; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }

/* ---------------- Motion ---------------- */
@keyframes rise     { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeup   { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse    { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

@supports (animation-timeline: view()) {
  [data-rise] {
    animation: rise 1s cubic-bezier(.16, .8, .2, 1) both;
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }
}

/* ---------------- Layout + type ---------------- */
/* Horizontal padding only. A `padding` shorthand here would reset
   padding-top and silently kill .sec's top spacing. */
.wrap { max-width: var(--wrap); margin: 0 auto; width: 100%; padding-left: 40px; padding-right: 40px; }
.sec { padding-top: var(--sec-pad); }

.lbl {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.lbl .dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--acc);
  margin-right: 10px;
  vertical-align: 1px;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 12px var(--acc);
}
.disp {
  font-weight: 850;
  font-stretch: 104%;
  text-transform: uppercase;
  letter-spacing: -.02em;
  line-height: .92;
  text-wrap: balance;
}
.disp .glow {
  color: var(--acc);
  text-shadow: 0 0 30px rgba(255, 90, 31, .45), 0 0 80px rgba(255, 90, 31, .25);
}
.h2 { font-size: clamp(30px, 4.2vw, 64px); margin-top: 22px; }
.lede {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.65;
  font-weight: 450;
  color: var(--ink-3);
  text-wrap: pretty;
}
.vh {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------------- Atmosphere ---------------- */
.grain {
  position: fixed; inset: -50%;
  z-index: 70; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 260px;
}
.cglow {
  position: fixed; left: 0; top: 0;
  width: 760px; height: 760px; margin: -380px 0 0 -380px;
  z-index: 60; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 31, .07), transparent 62%);
  will-change: transform;
}
@media (pointer: coarse) { .cglow { display: none; } }

/* ---------------- Buttons ---------------- */
.cbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 58px; padding: 0 30px;
  border-radius: 999px;
  background: var(--acc); color: #0b0b0c;
  font-weight: 800; font-size: 15px;
  letter-spacing: .03em; text-transform: uppercase;
  box-shadow: 0 0 30px rgba(255, 90, 31, .35), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .25s, box-shadow .25s, background .25s;
  text-align: center;
}
.cbtn:hover { transform: translateY(-3px); box-shadow: 0 0 50px rgba(255, 90, 31, .6), inset 0 1px 0 rgba(255, 255, 255, .35); }
.cbtn.ghost {
  background: rgba(236, 234, 227, .04); color: var(--ink);
  border: 1px solid var(--line-strong); box-shadow: none;
}
.cbtn.ghost:hover { border-color: rgba(236, 234, 227, .5); box-shadow: none; }
.ctacap { margin-top: 14px; font-size: 12.5px; font-weight: 600; color: var(--ink-4); letter-spacing: .04em; }
.cta-block { margin-top: clamp(40px, 4.4vw, 56px); }
.center-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* ---------------- Panels ---------------- */
.panel {
  position: relative;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: clamp(26px, 2.6vw, 40px);
}
.panel.own { border-color: rgba(255, 90, 31, .45); box-shadow: 0 0 44px rgba(255, 90, 31, .14); }

/* ---------------- Footer ---------------- */
.site-foot {
  margin-top: var(--sec-pad);
  padding-top: 30px; padding-bottom: 38px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px;
}
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-row a:hover { color: var(--acc); }
.foot-fine { font-size: 11px; font-weight: 500; color: var(--ink-6); line-height: 1.7; }
/* The ADVRT credit in the footer, linking out to advrt.co.uk */
.foot-brand { color: var(--acc); font-weight: 800; }
.foot-brand:hover { color: var(--acc-2); }
.foot-fine a:hover { color: var(--acc); }

@media (max-width: 760px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .cbtn { width: 100%; }
  .foot-row { flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
    scroll-behavior: auto !important;
  }
  .cglow { display: none; }
  [data-rise] { animation: none; opacity: 1; transform: none; }
}
