/*!
 * Aiyo Framework v1.0.0 — framework.css
 * Mobile-first, dependency-free component styles for aiyoevent.com.sg.
 *
 * Structure (cascade layers, lowest priority first):
 *   reset → tokens → base → layout → components → utilities
 *
 * Naming: BEM with an "ay-" prefix.  .ay-block, .ay-block__element, .ay-block--modifier
 * Theming: change the custom properties in the tokens layer; nothing else is hard-coded.
 * See docs/README.md for the component catalogue.
 */

@layer reset, tokens, base, layout, components, utilities;

/* ------------------------------------------------------------------ fonts */
/* Display face is self-hosted (no third-party request). Body text uses the
   system stack, so text paints immediately. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/font/newyear/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800;
  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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Metric-matched fallback keeps layout stable while the display face loads. */
@font-face {
  font-family: "Bricolage Fallback";
  src: local("Arial Bold"), local("Arial");
  size-adjust: 98%;
  ascent-override: 93%;
  descent-override: 24%;
  line-gap-override: 0%;
}

/* ------------------------------------------------------------------ reset */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  /* Scoped so these never touch the main site header (section.header). */
  @scope (:root) to (section.header) {
  body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
  ul[class], ol[class] { padding: 0; list-style: none; }
  img, svg, picture { display: block; max-width: 100%; }
  img { height: auto; }
  button, input, select, textarea { font: inherit; color: inherit; }
  button { cursor: pointer; }
  }
  [hidden] { display: none !important; }
}

/* ----------------------------------------------------------------- tokens */
@layer tokens {
  :root {
    /* Colour: taken from the Aiyo Event logo. Red, yellow, cyan and the indigo ray
       drive the interface; the full seven-colour fan appears once, in the hero. */
    --ay-night: #17184b;          /* deep shade of the logo's indigo ray: hero, footer, headings */
    --ay-night-2: #23256b;        /* raised surfaces on night */
    --ay-marigold: #f9c900;       /* logo yellow: primary buttons, highlights on dark */
    --ay-marigold-hover: #ffd83d;
    --ay-red: #e30613;            /* logo red: icons and decorative accents */
    --ay-firecracker: #cf0612;    /* logo red, one step darker, for link text (AA on every light surface) */
    --ay-cyan: #6ec6d9;           /* logo dot: step numbers and small highlights, used sparingly */
    --ay-shell: #f7f6f3;          /* neutral off-white surface */
    --ay-paper: #ffffff;
    --ay-mist: #f3f4fb;           /* quiet cool surface */
    --ay-ink: #1c1d33;            /* body text */
    --ay-ink-soft: #4b4d6b;       /* secondary text (AA on paper, mist and shell) */
    --ay-line: #d5d7ea;
    --ay-on-night: #ffffff;
    --ay-on-night-soft: #cfd1f2;
    --ay-focus: #0b57d0;
    --ay-whatsapp: #0b6b3a;       /* WhatsApp-green dark enough for white text */
    /* The logo fan, in order. Decorative use only. */
    --ay-ray-1: #c94f96; --ay-ray-2: #ea6000; --ay-ray-3: #f9c900; --ay-ray-4: #4aaf32;
    --ay-ray-5: #4390ce; --ay-ray-6: #4e4c9c; --ay-ray-7: #93378f;

    /* Type */
    --ay-font-display: "Bricolage Grotesque", "Bricolage Fallback", system-ui, sans-serif;
    --ay-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ay-text-sm: 0.875rem;
    --ay-text-base: 1.0625rem;
    --ay-text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
    --ay-text-h3: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
    --ay-text-h2: clamp(1.75rem, 1.4rem + 1.6vw, 2.625rem);
    --ay-text-h1: clamp(2.25rem, 1.5rem + 3.6vw, 4.25rem);

    /* Space (4px base) */
    --ay-s-1: 0.25rem; --ay-s-2: 0.5rem; --ay-s-3: 0.75rem; --ay-s-4: 1rem;
    --ay-s-5: 1.5rem;  --ay-s-6: 2rem;   --ay-s-7: 3rem;    --ay-s-8: 4rem;
    --ay-section: clamp(3.5rem, 2.5rem + 4vw, 6rem);

    /* Shape */
    --ay-radius-sm: 6px;
    --ay-radius: 14px;
    --ay-radius-pill: 999px;
    --ay-shadow: 0 1px 2px rgb(23 24 75 / 0.08), 0 8px 24px rgb(23 24 75 / 0.08);

    /* Layout */
    --ay-wrap: 72rem;
    --ay-measure: 68ch;
    --ay-gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);
    --ay-header-h: 4.25rem;
  }
}

/* ------------------------------------------------------------------- base */
@layer base {
  html {
    scroll-behavior: smooth;
    /* Keeps focused and anchored content clear of the sticky header (WCAG 2.4.11). */
    scroll-padding-top: calc(var(--ay-header-h) + 1rem);
  }
  /* Scoped so these never touch the main site header (section.header). */
  @scope (:root) to (section.header) {
  body {
    font-family: var(--ay-font-body);
    font-size: var(--ay-text-base);
    line-height: 1.6;
    color: var(--ay-ink);
    background: var(--ay-paper);
    text-rendering: optimizeLegibility;
  }
  h1, h2, h3, h4 {
    font-family: var(--ay-font-display);
    color: var(--ay-night);
    line-height: 1.1;
    letter-spacing: -0.015em;
    text-wrap: balance;
  }
  h1 { font-size: var(--ay-text-h1); font-weight: 750; letter-spacing: -0.03em; }
  h2 { font-size: var(--ay-text-h2); font-weight: 700; }
  h3 { font-size: var(--ay-text-h3); font-weight: 650; line-height: 1.25; }
  p, li { text-wrap: pretty; }
  a { color: var(--ay-firecracker); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
  a:hover { text-decoration-thickness: 0.14em; }
  strong { font-weight: 650; }

  :focus-visible {
    outline: 3px solid var(--ay-focus);
    outline-offset: 3px;
    border-radius: 3px;
  }
  /* On dark surfaces the focus ring switches to a light colour. */
  .ay-on-night :focus-visible { outline-color: var(--ay-marigold); }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
      animation-duration: 0.001ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.001ms !important;
    }
  }
}

/* ----------------------------------------------------------------- layout */
@layer layout {
  .ay-wrap {
    width: min(100% - 2 * var(--ay-gutter), var(--ay-wrap));
    margin-inline: auto;
  }
  .ay-section { padding-block: var(--ay-section); }
  .ay-section--mist { background: var(--ay-mist); }
  .ay-section--shell { background: var(--ay-shell); }
  .ay-section--night { background: var(--ay-night); color: var(--ay-on-night); }
  .ay-section--night :is(h2, h3) { color: var(--ay-on-night); }
  .ay-section--night a { color: var(--ay-marigold); }
  /* Skip rendering work for sections far below the fold. */
  .ay-section--defer { content-visibility: auto; contain-intrinsic-size: auto 700px; }

  .ay-section__head { max-width: var(--ay-measure); margin-bottom: var(--ay-s-6); }
  .ay-section__head > * + * { margin-top: var(--ay-s-4); }
  .ay-section__lead { font-size: var(--ay-text-lg); color: var(--ay-ink-soft); }
  .ay-section--night .ay-section__lead { color: var(--ay-on-night-soft); }

  .ay-prose { max-width: var(--ay-measure); }
  .ay-prose > * + * { margin-top: var(--ay-s-4); }

  .ay-grid { display: grid; gap: var(--ay-s-5); }
  @media (min-width: 40rem) {
    .ay-grid--2, .ay-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .ay-grid--3 { grid-template-columns: repeat(2, 1fr); }
  }
  @media (min-width: 64rem) {
    .ay-grid--3 { grid-template-columns: repeat(3, 1fr); }
    .ay-grid--4 { grid-template-columns: repeat(4, 1fr); }
  }
  .ay-split { display: grid; gap: var(--ay-s-6); }
  @media (min-width: 56rem) {
    .ay-split { grid-template-columns: 5fr 6fr; gap: var(--ay-s-8); align-items: start; }
  }
}

/* ------------------------------------------------------------- components */
@layer components {

  /* Skip link ------------------------------------------------------------ */
  .ay-skip {
    position: absolute; left: var(--ay-s-4); top: -6rem; z-index: 100;
    padding: var(--ay-s-3) var(--ay-s-4);
    background: var(--ay-marigold); color: var(--ay-night);
    font-weight: 650; border-radius: var(--ay-radius-sm);
  }
  .ay-skip:focus { top: var(--ay-s-3); }

  /* Buttons -------------------------------------------------------------- */
  .ay-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--ay-s-2);
    min-height: 3rem; padding: 0.7rem 1.4rem;
    font-family: var(--ay-font-display); font-weight: 650; font-size: 1.0625rem; line-height: 1.2;
    text-decoration: none; text-align: center;
    border: 2px solid transparent; border-radius: var(--ay-radius-pill);
    transition: transform 0.15s ease, background-color 0.15s ease;
  }
  .ay-btn:active { transform: translateY(1px); }
  .ay-btn--primary { background: var(--ay-marigold); color: var(--ay-night); }
  .ay-btn--primary:hover { background: var(--ay-marigold-hover); }
  .ay-btn--whatsapp { background: var(--ay-whatsapp); color: #fff; }
  .ay-btn--whatsapp:hover { background: #095a31; }
  .ay-btn--ghost { border-color: currentColor; color: var(--ay-night); background: transparent; }
  .ay-btn--ghost:hover { background: rgb(23 24 75 / 0.07); }
  .ay-on-night .ay-btn--ghost { color: var(--ay-on-night); }
  .ay-on-night .ay-btn--ghost:hover { background: rgb(255 255 255 / 0.12); }
  .ay-btn--sm { min-height: 2.75rem; padding: 0.5rem 1.1rem; font-size: 1rem; }
  .ay-btn svg { width: 1.25em; height: 1.25em; flex: none; }

  /* Header + navigation -------------------------------------------------- */
  .ay-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--ay-paper);
    border-bottom: 1px solid var(--ay-line);
  }
  .ay-header__bar {
    display: flex; align-items: center; justify-content: space-between; gap: var(--ay-s-4);
    min-height: var(--ay-header-h);
  }
  .ay-logo {
    display: inline-flex; align-items: center; min-height: 2.75rem;
    font-family: var(--ay-font-display); font-weight: 800; font-size: 1.375rem;
    color: var(--ay-night); text-decoration: none; letter-spacing: -0.02em;
  }
  .ay-logo img { height: 3.25rem; width: auto; }
  .ay-nav__toggle {
    display: none; align-items: center; gap: var(--ay-s-2);
    min-height: 2.75rem; padding: 0 var(--ay-s-3);
    background: none; border: 2px solid var(--ay-night); border-radius: var(--ay-radius-pill);
    font-weight: 650; color: var(--ay-night);
  }
  .ay-nav__toggle svg { width: 1.25rem; height: 1.25rem; }
  .ay-nav__list { display: flex; flex-wrap: wrap; gap: var(--ay-s-1) var(--ay-s-2); align-items: center; }
  .ay-nav__link {
    display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 var(--ay-s-3);
    color: var(--ay-night); font-weight: 600; text-decoration: none; border-radius: var(--ay-radius-sm);
  }
  .ay-nav__link:hover { background: var(--ay-mist); }
  .ay-nav__link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.4em; }
  /* Small screens: collapsible panel, only when JavaScript is available. */
  @media (max-width: 61.99rem) {
    .ay-header__bar { flex-wrap: wrap; padding-block: var(--ay-s-2); }
    .js .ay-nav__toggle { display: inline-flex; }
    .ay-nav { flex-basis: 100%; }
    .js .ay-nav:not(.is-open) { display: none; }
    .ay-nav__list { flex-direction: column; align-items: stretch; padding-bottom: var(--ay-s-3); }
    .ay-nav__list .ay-btn { margin-top: var(--ay-s-2); }
  }

  /* Breadcrumb ----------------------------------------------------------- */
  .ay-breadcrumb { padding-block: var(--ay-s-4) 0; font-size: var(--ay-text-sm); }
  .ay-breadcrumb ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--ay-s-2); }
  .ay-breadcrumb li + li::before { content: "/"; margin-right: var(--ay-s-2); color: var(--ay-on-night-soft); }
  .ay-breadcrumb a { color: var(--ay-on-night); display: inline-block; padding-block: 0.3rem; }
  .ay-breadcrumb [aria-current] { color: var(--ay-on-night-soft); }

  /* Hero ----------------------------------------------------------------- */
  .ay-hero {
    position: relative; overflow: hidden;
    background:
      radial-gradient(60rem 30rem at 85% -10%, rgb(78 76 156 / 0.55) 0%, transparent 60%),
      radial-gradient(40rem 26rem at 0% 110%, rgb(147 55 143 / 0.35) 0%, transparent 60%),
      var(--ay-night);
    color: var(--ay-on-night);
  }
  .ay-hero__inner { position: relative; padding-block: var(--ay-s-6) var(--ay-section); }
  .ay-hero h1 { color: var(--ay-on-night); max-width: 18ch; }
  .ay-hero__lead { margin-top: var(--ay-s-5); max-width: 58ch; font-size: var(--ay-text-lg); color: var(--ay-on-night-soft); }
  .ay-hero__actions { display: flex; flex-wrap: wrap; gap: var(--ay-s-3); margin-top: var(--ay-s-6); }
  .ay-hero__meta { margin-top: var(--ay-s-5); font-size: var(--ay-text-sm); color: var(--ay-on-night-soft); }
  /* The logo's seven-colour fan, opened out as a firework. The only place the
     full rainbow is used. */
  .ay-hero__burst {
    position: absolute; right: -6%; top: 0; width: min(46rem, 125%); height: auto;
    pointer-events: none; opacity: 0.3;
  }
  @media (min-width: 62rem) { .ay-hero__burst { opacity: 1; right: -2%; } }
  /* Hero with the Happy New Year banner. The hero takes the banner's own deep blue (flat, no glows),
     and the banner has no frame, shadow or rounded corners, so it blends straight into the hero. */
  .ay-hero:has(.ay-hero__media) { background: #010655; }
  .ay-hero__media { margin: var(--ay-s-6) calc(-1 * var(--ay-gutter)) 0; }
  /* Solid image: no transparent edge fade, no frame, shadow or rounded corners. */
  .ay-hero__media img { width: 100%; height: auto; border-radius: 0; box-shadow: none; }
  @media (min-width: 62rem) {
    /* Desktop: the banner sits exactly where the old colour-ray graphic was — the top-right corner
       of the hero, up to 46rem wide — shown in full. Text stays in the left half so they never overlap. */
    .ay-hero__inner--media { position: static; }
    .ay-hero__inner--media > .ay-breadcrumb,
    .ay-hero__content { position: relative; z-index: 1; max-width: 47%; }
    .ay-hero__inner--media h1 { font-size: clamp(2.25rem, 1.2rem + 2.2vw, 3.4rem); max-width: none; }
    .ay-hero__media { position: absolute; top: 0; right: 0; width: min(46rem, 52%); margin: 80px 0 0; }
    /* Hero is always tall enough for the whole banner (80px top margin + 800 x 500 ratio of the animated GIF), so it is never cut off. */
    .ay-hero:has(.ay-hero__media) { min-height: calc(80px + min(46rem, 52vw) * 500 / 800); }
    .ay-hero__media picture { display: block; }
  }
  /* The one orchestrated moment: rays shoot out from the centre once on load. */
  .ay-hero__burst > * {
    transform-box: view-box; transform-origin: 470px 430px;
    animation: ay-burst 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .ay-hero__burst > :nth-child(2) { animation-delay: 0.06s; }
  .ay-hero__burst > :nth-child(3) { animation-delay: 0.12s; }
  .ay-hero__burst > :nth-child(4) { animation-delay: 0.18s; }
  .ay-hero__burst > :nth-child(5) { animation-delay: 0.24s; }
  .ay-hero__burst > :nth-child(6) { animation-delay: 0.3s; }
  .ay-hero__burst > :nth-child(7) { animation-delay: 0.36s; }
  .ay-hero__burst > :nth-child(8) { animation-delay: 0.5s; }
  @keyframes ay-burst { from { transform: scale(0.15); opacity: 0; } to { transform: scale(1); opacity: 1; } }

  /* Countdown ------------------------------------------------------------ */
  .ay-countdown { margin-top: var(--ay-s-7); }
  .ay-countdown__label { font-family: var(--ay-font-display); font-weight: 600; font-size: var(--ay-text-lg); color: var(--ay-marigold); }
  .ay-countdown__units { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ay-s-2); margin-top: var(--ay-s-3); max-width: 38rem; }
  .ay-countdown__unit {
    padding: var(--ay-s-3) var(--ay-s-2); text-align: center;
    background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.22); border-radius: var(--ay-radius);
  }
  .ay-countdown__num {
    display: block; font-family: var(--ay-font-display); font-weight: 750;
    font-size: clamp(2rem, 1rem + 6vw, 4.5rem); line-height: 1; font-variant-numeric: tabular-nums;
    color: var(--ay-on-night);
  }
  .ay-countdown__name { display: block; margin-top: var(--ay-s-1); font-size: var(--ay-text-sm); color: var(--ay-on-night-soft); }
  .ay-countdown__done { font-family: var(--ay-font-display); font-size: var(--ay-text-h3); font-weight: 650; max-width: 40ch; }

  /* Trust bar ------------------------------------------------------------ */
  .ay-trust { background: var(--ay-paper); border-bottom: 1px solid var(--ay-line); padding-block: var(--ay-s-5); }
  .ay-trust__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--ay-s-5) var(--ay-s-4); }
  @media (min-width: 36rem) { .ay-trust__list { grid-template-columns: repeat(3, 1fr); } }
  @media (min-width: 62rem) { .ay-trust__list { grid-template-columns: repeat(6, 1fr); } }
  .ay-trust__item {
    display: flex; flex-direction: column; align-items: center; gap: var(--ay-s-2); text-align: center;
    font-weight: 600; font-size: var(--ay-text-sm); line-height: 1.3; color: var(--ay-night);
  }
  .ay-trust__item img { height: 3.5rem; width: auto; object-fit: contain; }

  /* Summary (answer-first block for readers and AI search) ----------------- */
  .ay-summary {
    padding: var(--ay-s-5); border-left: 6px solid var(--ay-cyan);
    background: var(--ay-mist); border-radius: 0 var(--ay-radius) var(--ay-radius) 0;
  }
  .ay-summary h2 { font-size: var(--ay-text-h3); }
  .ay-summary ul { margin-top: var(--ay-s-3); padding-left: 1.2rem; }
  .ay-summary li + li { margin-top: var(--ay-s-2); }

  /* Statistics ----------------------------------------------------------- */
  .ay-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--ay-s-5) var(--ay-s-4); }
  @media (min-width: 48rem) { .ay-stats { grid-template-columns: repeat(4, 1fr); } }
  /* Scoreboard boxes (same look as the arcade page): dark box, big glowing coloured number that
     counts up (data-ay-count), small label underneath. Each box gets its own colour. */
  .ay-stat {
    display: flex; flex-direction: column-reverse; align-items: center; justify-content: center; gap: var(--ay-s-2);
    padding: var(--ay-s-5) var(--ay-s-4); text-align: center;
    background: var(--ay-night-2); border: 2px solid rgb(255 255 255 / 0.14); border-radius: var(--ay-radius);
  }
  .ay-stat:nth-child(4n+1) { --stat-color: #f9c900; }   /* yellow */
  .ay-stat:nth-child(4n+2) { --stat-color: #6ec6d9; }   /* cyan */
  .ay-stat:nth-child(4n+3) { --stat-color: #7fdc68; }   /* green */
  .ay-stat:nth-child(4n+4) { --stat-color: #f08cc6; }   /* pink */
  .ay-stat__value {
    margin: 0; font-family: var(--ay-font-display); font-weight: 800;
    font-size: clamp(2.5rem, 1.8rem + 3.5vw, 4.25rem); line-height: 1; font-variant-numeric: tabular-nums;
    color: var(--stat-color, var(--ay-marigold));
    text-shadow: 0 0 22px color-mix(in srgb, var(--stat-color, var(--ay-marigold)) 55%, transparent);
  }
  .ay-stat__label { font-size: var(--ay-text-sm); color: var(--ay-on-night-soft); }

  /* Photos (real team and event photos) ------------------------------------ */
  .ay-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--ay-s-3); max-width: 52rem; }
  .ay-photos__item { border-radius: var(--ay-radius); overflow: hidden; aspect-ratio: 3 / 2; background: var(--ay-night-2); }
  .ay-photos__item img { width: 100%; height: 100%; object-fit: cover; }

  /* Client logos ------------------------------------------------------------ */
  .ay-clients { display: block; background: #fff; border: 1px solid var(--ay-line); border-radius: var(--ay-radius); overflow: hidden; padding: var(--ay-s-4); }
  .ay-clients img { width: 100%; height: auto; }

  /* Cards ---------------------------------------------------------------- */
  .ay-card {
    display: flex; flex-direction: column; gap: var(--ay-s-3);
    padding: var(--ay-s-5); background: var(--ay-paper);
    border: 1px solid var(--ay-line); border-radius: var(--ay-radius);
  }
  .ay-card > p { color: var(--ay-ink-soft); }
  .ay-card__links { display: flex; flex-wrap: wrap; gap: var(--ay-s-2); margin-top: auto; padding-top: var(--ay-s-2); }
  .ay-card__more { margin-top: auto; font-weight: 650; display: inline-block; padding-block: 0.3rem; }
  /* Links inside running text look the same as the card links ("All traditional games"): bold red, underlined. */
  :is(.ay-prose, .ay-summary, .ay-tip, .ay-faq__a, .ay-section__lead, .ay-card > p, .ay-cta__contact) a:not([class]) { font-weight: 650; }
  /* Feature card: the one elevated card in a group. */
  .ay-card--feature { background: var(--ay-night); border-color: var(--ay-night); }
  .ay-card--feature h3 { color: var(--ay-on-night); }
  .ay-card--feature > p { color: var(--ay-on-night-soft); }
  .ay-card--feature a { color: var(--ay-marigold); }
  .ay-card--plain { border: 0; padding: 0; background: none; }

  .ay-chip {
    display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0.2rem 0.85rem;
    border: 1px solid var(--ay-line); border-radius: var(--ay-radius-pill);
    background: var(--ay-paper); color: var(--ay-night); font-size: 0.9375rem; font-weight: 600; text-decoration: none;
  }
  a.ay-chip:hover { border-color: var(--ay-night); background: var(--ay-mist); }
  .ay-card--feature .ay-chip { background: transparent; border-color: rgb(255 255 255 / 0.4); color: var(--ay-on-night); }
  .ay-card--feature a.ay-chip:hover { background: rgb(255 255 255 / 0.12); border-color: #fff; }

  /* Tip / callout -------------------------------------------------------- */
  .ay-tip { padding: var(--ay-s-4) var(--ay-s-5); background: var(--ay-shell); border-radius: var(--ay-radius); max-width: var(--ay-measure); }

  /* Timeline (ordered steps) ---------------------------------------------- */
  .ay-timeline { counter-reset: ay-step; display: grid; gap: 0; max-width: 46rem; }
  .ay-timeline__step {
    counter-increment: ay-step; position: relative;
    padding: 0 0 var(--ay-s-6) 3.75rem;
  }
  .ay-timeline__step::before {
    content: counter(ay-step); position: absolute; left: 0; top: 0;
    width: 2.5rem; height: 2.5rem; display: grid; place-items: center;
    font-family: var(--ay-font-display); font-weight: 750; color: var(--ay-night);
    background: var(--ay-cyan); border-radius: 50%;
  }
  .ay-timeline__step::after {
    content: ""; position: absolute; left: calc(1.25rem - 1px); top: 2.75rem; bottom: 0.25rem;
    width: 2px; background: var(--ay-line);
  }
  .ay-timeline__step:last-child { padding-bottom: 0; }
  .ay-timeline__step:last-child::after { display: none; }
  .ay-timeline__step h3 { padding-top: 0.45rem; }
  .ay-timeline__step p { margin-top: var(--ay-s-2); color: var(--ay-ink-soft); }

  /* Gallery -------------------------------------------------------------- */
  .ay-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--ay-s-3); }
  @media (min-width: 48rem) { .ay-gallery { grid-template-columns: repeat(3, 1fr); gap: var(--ay-s-4); } }
  .ay-gallery__item { display: flex; flex-direction: column; gap: var(--ay-s-2); }
  .ay-gallery__open {
    display: block; width: 100%; padding: 0; border: 0; border-radius: var(--ay-radius); overflow: hidden;
    aspect-ratio: 3 / 2; background:
      repeating-linear-gradient(135deg, rgb(255 255 255 / 0.5) 0 10px, transparent 10px 20px), var(--ay-shell);
  }
  .ay-gallery__open img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
  .ay-gallery__open:hover img { transform: scale(1.04); }
  .ay-gallery__item figcaption { font-weight: 600; color: var(--ay-night); font-size: 0.9375rem; }
  .ay-gallery__item figcaption a { color: inherit; display: inline-block; padding-block: 0.3rem; }
  /* Image failed to load: keep the patterned tile and the caption. */
  .ay-gallery__open.is-missing { cursor: default; }
  .ay-gallery__open.is-missing img { display: none; }

  .ay-lightbox { padding: 0; border: 0; border-radius: var(--ay-radius); max-width: min(92vw, 56rem); background: var(--ay-night); color: var(--ay-on-night); }
  .ay-lightbox::backdrop { background: rgb(10 10 40 / 0.8); }
  .ay-lightbox img { max-height: 76vh; width: auto; margin-inline: auto; }
  .ay-lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--ay-s-4); padding: var(--ay-s-3) var(--ay-s-4); }
  .ay-lightbox__close { min-width: 2.75rem; min-height: 2.75rem; background: none; border: 2px solid #fff; border-radius: var(--ay-radius-pill); color: #fff; font-weight: 650; padding: 0 var(--ay-s-4); }

  /* FAQ (native disclosure: works without JavaScript) --------------------- */
  .ay-faq { max-width: 50rem; border-top: 1px solid var(--ay-line); }
  .ay-faq__item { border-bottom: 1px solid var(--ay-line); }
  .ay-faq__q {
    display: flex; align-items: center; justify-content: space-between; gap: var(--ay-s-4);
    padding: var(--ay-s-4) 0; min-height: 3.5rem; cursor: pointer; list-style: none;
  }
  .ay-faq__q::-webkit-details-marker { display: none; }
  .ay-faq__q h3 { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); }
  .ay-faq__q::after {
    content: ""; flex: none; width: 0.7rem; height: 0.7rem; margin-right: 0.3rem;
    border-right: 2.5px solid var(--ay-red); border-bottom: 2.5px solid var(--ay-red);
    transform: rotate(45deg); transition: transform 0.2s ease;
  }
  .ay-faq__item[open] .ay-faq__q::after { transform: rotate(-135deg); }
  .ay-faq__a { padding: 0 0 var(--ay-s-5); max-width: var(--ay-measure); color: var(--ay-ink-soft); }

  /* CTA + enquiry builder -------------------------------------------------- */
  .ay-cta { background: var(--ay-night); color: var(--ay-on-night); }
  .ay-cta h2 { color: var(--ay-on-night); }
  .ay-cta__lead { margin-top: var(--ay-s-5); font-size: var(--ay-text-lg); color: var(--ay-on-night-soft); }
  .ay-cta__contact { margin-top: var(--ay-s-5); display: grid; gap: var(--ay-s-2); }
  .ay-cta__contact a { color: var(--ay-on-night); font-weight: 600; display: inline-block; padding-block: 0.3rem; }
  .ay-cta__contact dt { color: var(--ay-on-night-soft); font-size: var(--ay-text-sm); }
  .ay-cta__contact dd + dt { margin-top: var(--ay-s-3); }

  .ay-form { display: grid; gap: var(--ay-s-4); padding: var(--ay-s-5); background: var(--ay-paper); color: var(--ay-ink); border-radius: var(--ay-radius); }
  .ay-form h3 { color: var(--ay-night); }
  .ay-form__row { display: grid; gap: var(--ay-s-4); }
  @media (min-width: 36rem) { .ay-form__row { grid-template-columns: 1fr 1fr; } }
  .ay-field { display: grid; gap: var(--ay-s-1); }
  .ay-field label, .ay-form legend { font-weight: 650; color: var(--ay-night); }
  .ay-field :is(input, select) {
    min-height: 3rem; padding: 0.5rem 0.75rem; width: 100%;
    background: #fff; border: 1.5px solid #6b6d8c; border-radius: var(--ay-radius-sm);
  }
  .ay-form fieldset { border: 0; padding: 0; margin: 0; }
  .ay-form legend { padding: 0; margin-bottom: var(--ay-s-2); }
  .ay-checks { display: flex; flex-wrap: wrap; gap: var(--ay-s-2); }
  .ay-check { position: relative; }
  .ay-check input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
  .ay-check span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; border: 1.5px solid #6b6d8c; border-radius: var(--ay-radius-pill); font-weight: 600; }
  .ay-check input:checked + span { background: var(--ay-night); border-color: var(--ay-night); color: #fff; }
  .ay-check input:checked + span::before { content: "✓"; margin-right: 0.4rem; }
  .ay-check input:focus-visible + span { outline: 3px solid var(--ay-focus); outline-offset: 3px; }
  .ay-form__hint { font-size: var(--ay-text-sm); color: var(--ay-ink-soft); }

  /* Footer --------------------------------------------------------------- */
  .ay-footer { background: #0f1036; color: var(--ay-on-night-soft); padding-block: var(--ay-s-7) var(--ay-s-5); font-size: 0.9375rem; }
  .ay-footer h2 { font-size: 1.0625rem; color: var(--ay-on-night); margin-bottom: var(--ay-s-2); }
  .ay-footer a { color: var(--ay-on-night); display: inline-block; padding-block: 0.35rem; }
  .ay-footer__grid { display: grid; gap: var(--ay-s-6); }
  @media (min-width: 48rem) { .ay-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
  .ay-footer address { font-style: normal; }
  .ay-footer__logo { height: 4.5rem; width: auto; margin-bottom: var(--ay-s-3); margin-left: -0.4rem; }
  .ay-footer__legal { margin-top: var(--ay-s-6); padding-top: var(--ay-s-4); border-top: 1px solid rgb(255 255 255 / 0.18); font-size: var(--ay-text-sm); }
}

/* -------------------------------------------------------------- utilities */
@layer utilities {
  .ay-visually-hidden {
    position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
  }
  .ay-mt-5 { margin-top: var(--ay-s-5); }
  .ay-mt-6 { margin-top: var(--ay-s-6); }
  .ay-mt-7 { margin-top: var(--ay-s-7); }
  .ay-nowrap { white-space: nowrap; }
}

@media print {
  .ay-header, .ay-hero__burst, .ay-form, .ay-nav__toggle, .ay-skip { display: none !important; }
  .ay-hero, .ay-section--night, .ay-cta, .ay-footer { background: #fff !important; color: #000 !important; }
  .ay-hero h1, .ay-section--night :is(h2, h3), .ay-cta h2, .ay-stat__value, .ay-countdown__num { color: #000 !important; }
  .ay-faq__item > .ay-faq__a { display: block !important; }
}
