/* ==========================================================================
   BU ALAGA — Fonts
   Both files are the ones abualnaga.com serves. fonts/ is rewritten
   by build.mjs per output location.

   LICENSING: Riviera Nights is the *trial* cut (as on the live site) and
   Avenir Next is commercial. They are kept here so previews match the site
   exactly. Before shipping anything new, license both — or delete these two
   rules and the stack falls back to Jost, the closest open geometric sans.

   WHY font-weight: 400 and not a range: the site declares this hairline as
   "normal". Anything asking for 100–500 gets the hairline untouched; 600+
   makes the browser synthesise bold. Declaring a range (100 900) would tell
   the browser the file already covers 700 and switch that synthesis off —
   and the site's headings would lose their weight.
   ========================================================================== */

/* Only for the characters the trial file has (its character map: the letters, the space, comma, hyphen, full stop,
   slash, the accented Latin-1 letters, dashes, the apostrophe, the bullet; minus the zero and Â â Î î, which the
   patch face below takes on purpose). Without this list the face would claim every character, and for one it lacks
   — "&" in "Brief & concept" — a browser is free to pick either face of the same weight: Chrome took the patch,
   Safari and the phones took this one, found no glyph and fell through to Futura or Roboto, visibly bold. */
@font-face {
  font-family: "Riviera Nights";
  src: url("fonts/riviera-nights-ultralight.woff2") format("woff2");
  font-weight: 400;   /* declared as 400 on purpose — see above */
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020, U+002C-002F, U+0041-005A, U+0061-007A, U+00A0, U+00AD, U+00B6-00B7, U+00C0-00C1, U+00C3-00CD, U+00CF-00D6, U+00D8-00DD, U+00DF-00E1, U+00E3-00ED, U+00EF-00F6, U+00F8-00FD, U+00FF, U+0152-0153, U+0178, U+2000-200A, U+2010-2014, U+2019, U+2022, U+202F, U+205F, U+25FC, U+FB01-FB04;
}

@font-face {
  font-family: "Avenir Next Ultra Light";
  src: url("fonts/avenir-next-ultralight.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* The Riviera Nights *trial* carries only the letters, the space, comma, hyphen, full stop, slash and a placeholder
   in the digit slots: every other character — the digits, ? ! : ; quotes, brackets, & @ % €, the Romanian Ă ă Ș ș
   Ț ț (and the old cedilla forms) and the rest of Latin Extended-A — fell through to the next font in the stack,
   on Windows Century Gothic, visibly heavier than the hairline ("BRIEF?"). This second "Riviera Nights" face
   answers exactly those code points from the Avenir hairline; the first face's unicode-range keeps the two apart,
   so no browser has to break a tie between them.
   The list is computed from the two fonts' character maps; Â â Î î are added because Riviera's accents on them
   are too faint to read. Delete it once a licensed Riviera with the full character set is in place. */
@font-face {
  font-family: "Riviera Nights";
  src: url("fonts/avenir-next-ultralight.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0021-002B, U+0030-0040, U+005B-0060, U+007B-007E, U+00A1-00AC, U+00AE-00B5, U+00B8-00BF, U+00C2, U+00CE, U+00D7, U+00DE, U+00E2, U+00EE, U+00F7, U+00FE, U+0100-0151, U+0154-0177, U+0179-017E, U+0192, U+0218-021B, U+0237, U+2018, U+201A, U+201C-201E, U+2020-2021, U+2026, U+2030, U+2039-203A, U+203D, U+2044, U+20AC, U+2122;
}


/* ==========================================================================
   BU ALAGA — Tokens
   Extracted from abualnaga.com (Abu Alnaga Development). Values are the
   site's own: nothing here is invented, only named.

   Two tiers. Components reference only the semantic layer.
     primitive  --ba-<ramp>-<step>     raw values lifted from the site CSS
     semantic   --ba-<role>            what a component is allowed to use

   The site is dark-only by design — the black ground is the brand. There is
   no light theme to switch to, so there is no prefers-color-scheme block.

   Keep values comma-free unless they really are font stacks or multi-layer
   values (shadows, gradients, transitions): tooling that scans --*-font-* and
   --*-text-* props misreads commas as font stacks. Fluid sizes are therefore
   stored as min / fluid / max and assembled with clamp() at the use site.
   ========================================================================== */

:root {
  /* ---------------------------------------------------------------- colour
     Neutral ramp: pure black up to paper white. The site never tints its
     greys — #1c1c1c, #2b2b2b, #2e2e2e are all true neutrals.            */
  --ba-black:        #000000;
  --ba-neutral-950:  #050505;   /* menu image-panel ground */
  --ba-neutral-900:  #141210;   /* warm near-black: label on white pill CTA */
  --ba-neutral-850:  #1c1c1c;   /* form fields, social chips */
  --ba-neutral-800:  #2b2b2b;   /* footer dividers */
  --ba-neutral-750:  #2e2e2e;   /* social chip hover */
  --ba-neutral-600:  #4f4d4d;   /* modal border + glow */
  --ba-neutral-400:  #999999;   /* language select */
  --ba-neutral-350:  #9a9a9a;   /* footer logo sub-line */
  --ba-neutral-300:  #b9b9b9;   /* footer language label */
  --ba-neutral-200:  #cfcfcf;   /* social glyphs */
  --ba-neutral-150:  #d0d0d0;   /* consent copy */
  --ba-neutral-100:  #f2f2f2;   /* footer headings */
  --ba-white:        #ffffff;

  /* the one warm off-white — "ink-dim" in the theme, and the 245/240/232
     cream the cursor, dots and card rules are drawn from */
  --ba-cream-300:    #cfc7ba;
  --ba-cream-100:    #f5f0e8;
  --ba-lilac-50:     #f3eef6;   /* enquiry-list ink */

  /* gold — the only chromatic colour on the site. Hover and active only:
     it is never a resting surface except on consent buttons. */
  --ba-gold-500:     #d4af37;
  --ba-gold-300:     #e7cc63;

  /* ---------------------------------------------------------------- alpha
     White and cream at fixed opacities. The site builds every rule, track
     and dimmed label from these rather than from opaque greys.          */
  --ba-white-a06:    rgba(255 255 255 / .06);  /* dropdown item hover */
  --ba-white-a15:    rgba(255 255 255 / .15);
  --ba-white-a25:    rgba(255 255 255 / .25);  /* header rule */
  --ba-white-a30:    rgba(255 255 255 / .30);  /* scroll-line track */
  --ba-white-a55:    rgba(255 255 255 / .55);  /* burger shade, sub-title */
  --ba-white-a65:    rgba(255 255 255 / .65);  /* back button */
  --ba-white-a75:    rgba(255 255 255 / .75);
  --ba-white-a80:    rgba(255 255 255 / .80);  /* scroll-line drop */
  --ba-cream-a15:    rgba(245 240 232 / .15);
  --ba-cream-a25:    rgba(245 240 232 / .25);  /* card left rule */
  --ba-cream-a40:    rgba(245 240 232 / .40);  /* idle dot */
  --ba-cream-a90:    rgba(245 240 232 / .90);
  --ba-black-a12:    rgba(0 0 0 / .12);
  --ba-black-a25:    rgba(0 0 0 / .25);        /* menu text-panel scrim */
  --ba-black-a35:    rgba(0 0 0 / .35);        /* scrim while Projects open */
  --ba-black-a50:    rgba(0 0 0 / .50);        /* page overlay behind menu */
  --ba-black-a65:    rgba(0 0 0 / .65);        /* modal overlay */
  --ba-black-a70:    rgba(0 0 0 / .70);        /* fixed header */

  /* ---------------------------------------------------------------- semantic */
  --ba-bg:              var(--ba-black);
  --ba-bg-raised:       var(--ba-neutral-950);
  --ba-bg-field:        var(--ba-neutral-850);
  --ba-bg-chip:         var(--ba-neutral-850);
  --ba-bg-chip-hover:   var(--ba-neutral-750);
  --ba-bg-header-fixed: var(--ba-black-a70);

  --ba-fg:              var(--ba-white);
  --ba-fg-soft:         var(--ba-neutral-100);
  --ba-fg-warm:         var(--ba-cream-300);
  --ba-fg-muted:        var(--ba-neutral-300);
  --ba-fg-subtle:       var(--ba-neutral-350);
  --ba-fg-dim:          var(--ba-white-a65);
  --ba-fg-faint:        var(--ba-white-a55);
  --ba-fg-on-light:     var(--ba-neutral-900);
  --ba-fg-on-gold:      var(--ba-black);

  --ba-line:            var(--ba-white-a25);
  --ba-line-solid:      var(--ba-neutral-800);
  --ba-line-warm:       var(--ba-cream-a25);
  --ba-line-strong:     var(--ba-white);

  --ba-accent:          var(--ba-gold-500);
  --ba-accent-hover:    var(--ba-gold-300);

  --ba-scrim-page:      var(--ba-black-a50);
  --ba-scrim-modal:     var(--ba-black-a65);

  /* image overlays — copied verbatim from the menu image panel and hero */
  --ba-grad-menu-image:
    linear-gradient(100deg, rgba(0 0 0 / .55) 0%, rgba(0 0 0 / 0) 45%),
    linear-gradient(to top, rgba(0 0 0 / .8) 0%, rgba(0 0 0 / 0) 38%),
    rgba(0 0 0 / .12);
  --ba-grad-hero:
    linear-gradient(180deg, rgba(0 0 0 / .55) 0%, rgba(0 0 0 / .15) 35%, rgba(0 0 0 / .25) 70%, rgba(0 0 0 / .6) 100%);

  /* ---------------------------------------------------------------- type
     ONE face carries the whole site: Riviera Nights UltraLight. Every
     "bold" you see is the browser synthesising weight from that single
     hairline file — which is why bold text has that slightly smeared,
     engraved quality. Keep font-synthesis on; it is the look.          */
  --ba-font:          "Riviera Nights", "Jost", "Futura PT", "Futura", "Century Gothic", sans-serif;
  --ba-font-numeral:  "Avenir Next Ultra Light", "Avenir Next", "Jost", sans-serif;  /* the <em> digit in "JADAF 3" */
  --ba-font-ui:       Arial, "Helvetica Neue", Helvetica, sans-serif;               /* header MENU + REGISTER INTEREST */

  --ba-text-xs:    12px;   /* header labels, buttons, close */
  --ba-text-sm:    13px;   /* footer, dropdown, sub-titles */
  --ba-text-md:    14px;   /* section title, consent copy */
  --ba-text-base:  15px;   /* card heading + body */
  --ba-text-lg:    16px;   /* hero eyebrow */
  --ba-text-xl:    18px;   /* menu links, consent title */
  --ba-text-2xl:   26px;   /* section eyebrow, footer wordmark */
  --ba-text-3xl:   30px;   /* form heading */
  --ba-text-hero:  58px;   /* hero title */
  --ba-text-sub-min:   16px;
  --ba-text-sub-fluid: 2vw;
  --ba-text-sub-max:   24px;

  --ba-weight-hair:   100;
  --ba-weight-light:  300;
  --ba-weight-normal: 400;
  --ba-weight-medium: 500;
  --ba-weight-semi:   600;
  --ba-weight-bold:   700;
  --ba-weight-heavy:  800;

  /* tracking is the brand's second voice — everything is uppercase and
     spaced. Absolute px for small labels, em for display. */
  --ba-track-1:     1px;
  --ba-track-1-3:   1.3px;    /* body default */
  --ba-track-1-5:   1.5px;
  --ba-track-2:     2px;      /* label default */
  --ba-track-3:     3px;
  --ba-track-8:     8px;      /* h1–h3 */
  --ba-track-12:    12px;     /* hero eyebrow */
  --ba-track-title: .14em;
  --ba-track-sub:   .35em;
  --ba-track-section: .16em;

  --ba-leading-tight: 1.05;
  --ba-leading-snug:  1.4;
  --ba-leading-body:  1.55;

  /* ---------------------------------------------------------------- layout */
  --ba-container:        1330px;
  --ba-container-gutter: 160px;    /* subtracted from 100%: 80px a side */
  --ba-header-h:         90px;
  --ba-header-h-fixed:   52px;
  --ba-logo-slot:        200px;    /* menu btn, logo and CTA each get 200px */
  --ba-menu-panel:       42%;
  --ba-menu-image:       58%;
  --ba-menu-slide:       45vw;     /* how far menu items travel in */
  --ba-carousel-max:     1560px;
  --ba-card-img-h:       400px;

  --ba-space-1:  4px;
  --ba-space-2:  8px;
  --ba-space-3:  12px;
  --ba-space-4:  14px;
  --ba-space-5:  18px;
  --ba-space-6:  24px;
  --ba-space-7:  26px;
  --ba-space-8:  40px;
  --ba-space-9:  42px;     /* menu item rhythm */
  --ba-space-10: 55px;
  --ba-space-11: 60px;
  --ba-space-12: 80px;     /* section padding */

  --ba-radius-none: 0;
  --ba-radius-xs:   2px;    /* consent buttons */
  --ba-radius-md:   8px;    /* modal */
  --ba-radius-pill: 999px;

  /* ---------------------------------------------------------------- motion
     Four curves do all the work. Name them by job, not by shape.       */
  --ba-ease:        cubic-bezier(.16, .84, .44, 1);    /* signature: long expo-out for reveals, zooms, dots */
  --ba-ease-panel:  cubic-bezier(.65, 0, .35, 1);      /* symmetric in-out: menu panel, screen swaps, image wipes */
  --ba-ease-sweep:  cubic-bezier(.49, .46, .05, .995); /* burger line wipe */
  --ba-ease-std:    cubic-bezier(.25, .1, .25, 1);     /* = CSS "ease": menu item slide, generic fades */

  --ba-dur-instant: 200ms;   /* dropdown item, footer link */
  --ba-dur-quick:   250ms;   /* chevron, cursor grow, arrow nudge */
  --ba-dur-fast:    300ms;   /* link opacity, CTA bg */
  --ba-dur-fade:    350ms;   /* main screen fade-out, dots */
  --ba-dur-base:    450ms;   /* burger wipe, cursor fade */
  --ba-dur-medium:  500ms;   /* video crossfade, carousel slide */
  --ba-dur-slow:    600ms;   /* card zoom, screen swap */
  --ba-dur-panel:   700ms;   /* menu panel + item travel */
  --ba-dur-wipe:    800ms;   /* menu image wipe */
  --ba-dur-reveal:  1500ms;  /* hero copy rise */
  --ba-stagger:     60ms;    /* between menu items */
  --ba-rise:        34px;    /* hero copy travel */

  /* z-scale, kept in the site's order */
  --ba-z-content: 2;
  --ba-z-slider:  99;
  --ba-z-header:  999;
  --ba-z-menu:    9999;
  --ba-z-overlay: 999999;
  --ba-z-cursor:  2147483647;
}

@media (max-width: 900px) {
  :root { --ba-menu-slide: 90vw; }
}


/* ==========================================================================
   BU ALAGA — Base
   Reset, ground, typography defaults, focus, reduced motion.
   ========================================================================== */

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

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: var(--ba-bg);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--ba-font);
  font-weight: var(--ba-weight-normal);
  letter-spacing: var(--ba-track-1-3);
  line-height: 1;
  color: var(--ba-fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* the faux-bold IS the brand weight — never turn this off */
  font-synthesis: weight;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }

/* headings carry the site's wide 8px tracking by default */
h1, h2, h3 { letter-spacing: var(--ba-track-8); font-weight: var(--ba-weight-normal); }

/* the digit in "JADAF 3" — any <em> inside a label swaps to Avenir hairline */
.ba-numeral, .ba-footer em, .ba-card em, .ba-menu em, .ba-dropdown em { font-family: var(--ba-font-numeral); font-style: normal; }

::selection { background: var(--ba-accent); color: var(--ba-fg-on-gold); }

/* The live site ships no focus style at all. This is the one addition the
   system makes on purpose: a 1px white ring, offset, that sits in the same
   hairline language as the header rule. */
:focus { outline: none; }
:focus-visible {
  outline: 1px solid var(--ba-fg);
  outline-offset: 4px;
}

/* utilities */
.ba-container {
  width: var(--ba-container);
  max-width: calc(100% - var(--ba-container-gutter));
  margin-inline: auto;
}
.ba-upper { text-transform: uppercase; }
.ba-sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* hide the native cursor only where the custom circle is running and the
   device has a fine pointer — ba.js adds .ba-has-cursor to <html> */
@media (hover: hover) and (pointer: fine) {
  .ba-has-cursor, .ba-has-cursor * { cursor: none !important; }
}

@media (max-width: 640px) {
  .ba-container { max-width: calc(100% - 40px); }
}

/* Reduced motion: travel goes, state changes stay. Opacity fades are kept
   (shortened) so nothing appears or vanishes without a cue. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0s !important;
  }
}


/* ==========================================================================
   BU ALAGA — Components
   Ported from abualnaga.com. Class names are re-namespaced to ba-*, values
   and timings are the site's own. Behaviour lives in ba.js; every state
   class below is one that script toggles.

   1  Header + burger            7  Section head + project card
   2  Custom cursor              8  Carousel
   3  Slide-out menu             9  Project dropdown
   4  Buttons + links           10  Forms + modal
   5  Hero slider               11  Consent bar
   6  Dots + scroll indicator   12  Footer (+ reveal)
   ========================================================================== */


/* ==========================================================================
   1  HEADER
   Transparent and absolute over the hero with a hairline rule beneath.
   Past 20px of scroll it becomes a 52px fixed black/70 bar, the rule goes,
   and the wordmark swaps for the compact mark. The swap is a hard cut on
   the site — no transition — so none is added here.
   ========================================================================== */
.ba-header {
  position: absolute;
  inset: 0 0 auto;
  height: var(--ba-header-h);
  z-index: var(--ba-z-header);
  background: transparent;
}
.ba-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--ba-line);
  width: var(--ba-container);
  max-width: calc(100% - var(--ba-container-gutter));
  margin: 0 auto;
}
.ba-header__logo {
  width: var(--ba-logo-slot);
  min-width: var(--ba-logo-slot);
  display: flex;
  justify-content: center;
  align-items: center;
}
.ba-header__logo a { display: flex; justify-content: center; align-items: center; }
.ba-header__logo img { max-width: 85%; max-height: 85%; width: auto; height: auto; }
.ba-header__logo .ba-logo-mark { display: none; }

.ba-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  min-width: var(--ba-logo-slot);
}

.ba-header.is-fixed {
  position: fixed;
  height: var(--ba-header-h-fixed);
  width: 100%;
  background: var(--ba-bg-header-fixed);
}
.ba-header.is-fixed .ba-header__bar { border-bottom: 0; padding: 5px 0; }
.ba-header.is-fixed .ba-logo-wordmark { display: none; }
.ba-header.is-fixed .ba-logo-mark { display: block; width: 40px; }

/* ---- menu button: burger + "MENU" ---- */
.ba-menu-btn {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 0;
  min-width: var(--ba-logo-slot);
  background: none;
  border: 0;
}
.ba-menu-btn__label {
  font-family: var(--ba-font-ui);
  color: var(--ba-fg);
  font-size: var(--ba-text-xs);
  letter-spacing: var(--ba-track-2);
  font-weight: var(--ba-weight-medium);
  text-transform: uppercase;
}

/* Burger: three 1px lines, each with a solid base (::after) and a 55% shade
   (::before). On hover the base wipes out to the right while the shade
   sweeps in — top line first, cascading down — a diagonal wipe. */
.ba-burger { width: 18px; position: relative; }
.ba-burger span {
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: 5px;
  position: relative;
}
.ba-burger span:last-child { margin-bottom: 0; }
.ba-burger span::before,
.ba-burger span::after {
  content: "";
  position: absolute;
  inset: 0;
}
.ba-burger span::after { background-color: var(--ba-fg); }
.ba-burger span::before {
  background-color: var(--ba-white-a55);
  transform: scale3d(0, 1, 1);
  transform-origin: right;
}
.ba-menu-btn:hover .ba-burger span::before,
.ba-menu-btn:hover .ba-burger span::after,
.ba-menu-btn:focus-visible .ba-burger span::before,
.ba-menu-btn:focus-visible .ba-burger span::after {
  transition: transform var(--ba-dur-base) var(--ba-ease-sweep);
}
.ba-menu-btn:hover .ba-burger span::before,
.ba-menu-btn:focus-visible .ba-burger span::before { transform: scale3d(1, 1, 1); }
.ba-menu-btn:hover .ba-burger span:nth-child(1)::before { transition-delay: .1s; }
.ba-menu-btn:hover .ba-burger span:nth-child(2)::before { transition-delay: .2s; }
.ba-menu-btn:hover .ba-burger span:nth-child(3)::before { transition-delay: .3s; }
.ba-menu-btn:hover .ba-burger span::after,
.ba-menu-btn:focus-visible .ba-burger span::after {
  transform: scale3d(0, 1, 1);
  transform-origin: left;
}
.ba-menu-btn:hover .ba-burger span:nth-child(2)::after { transition-delay: .05s; }
.ba-menu-btn:hover .ba-burger span:nth-child(3)::after { transition-delay: .1s; }

/* the toggle fades out while the menu is open (its own Close takes over) */
.ba-menu-btn.is-hidden { opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s ease; }

@media (max-width: 767px) {
  .ba-header__bar { max-width: calc(100% - 40px); }
  .ba-menu-btn, .ba-header__actions { min-width: 0; }
  .ba-header__logo { min-width: 0; width: 150px; }
  .ba-header__actions .ba-text-link span { display: none; }
}


/* ==========================================================================
   2  CUSTOM CURSOR
   A 15px ring in difference blend that trails the pointer (lerp .2) and
   grows to 25px over anything interactive. Fine pointers only.
   ========================================================================== */
.ba-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--ba-fg);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--ba-z-cursor);
  mix-blend-mode: difference;
  opacity: 0;
  will-change: transform;
  transition: width var(--ba-dur-quick) ease, height var(--ba-dur-quick) ease, opacity var(--ba-dur-quick) ease;
}
.ba-cursor.is-visible { opacity: 1; }
.ba-cursor.is-grow { width: 25px; height: 25px; }
@media (hover: none), (pointer: coarse) {
  .ba-cursor { display: none !important; }
}


/* ==========================================================================
   3  SLIDE-OUT MENU
   A 42% panel slides in from the left (700ms in-out). Its links then travel
   in from 45vw off-screen, staggered 60ms. Choosing "Projects" fades the
   main list, widens the panel to 100%, slides a sub-list in from the right
   and wipes a project image across the remaining 58%. Hovering a project
   wipes the next image in. Closing reverses the stagger, bottom item first.

   States (all set by ba.js):
     .ba-menu.is-open         panel on screen, items in
     .ba-menu.is-closing      items retreating before the panel leaves
     .ba-menu.is-sub-closing  project items retreating before Back completes
     .ba-menu[data-active]    Projects sub-screen showing
     .ba-menu__screen--main.is-fading     main list fading out
     .ba-menu__screen--main.is-resetting  snaps items off-screen to replay
   ========================================================================== */
.ba-menu-overlay {
  position: fixed;
  inset: 0;
  height: 100vh;
  background: var(--ba-scrim-page);
  opacity: 0;
  visibility: hidden;
  z-index: var(--ba-z-overlay);
  transition: opacity .4s ease, visibility .4s ease;
  pointer-events: none;
}
.ba-menu-overlay.is-active { opacity: 1; visibility: visible; }

.ba-scroll-lock { overflow: hidden; height: 100%; }

.ba-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--ba-menu-panel);
  height: 100%;
  z-index: var(--ba-z-overlay);
  overflow: hidden;
  transform: translateX(-100%);
  transition:
    transform var(--ba-dur-panel) var(--ba-ease-panel),
    width var(--ba-dur-slow) var(--ba-ease-panel);
  pointer-events: none;
}
.ba-menu.is-open { pointer-events: all; }
.ba-menu[data-active] { width: 100%; }

.ba-menu__close {
  position: absolute;
  top: 38px;
  left: 95px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ba-fg);
  font-size: var(--ba-text-xs);
  letter-spacing: var(--ba-track-2);
  text-transform: uppercase;
}
.ba-menu__close i { font-weight: 600; }

.ba-menu__inner { position: relative; width: 100vw; height: 100%; display: flex; }

/* ---- text panel: frosted page behind, list on top ---- */
.ba-menu__text {
  position: relative;
  height: 100%;
  overflow: hidden;
  flex: 0 0 var(--ba-menu-panel);
}
/* Home variant (default): a transparent layer that frosts whatever is
   behind — the hero video — at blur 450 / saturate 1.9. */
.ba-menu__blur {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  filter: blur(28px) saturate(1.2) brightness(.75);
  transform: scale(1.15);
  transition: opacity var(--ba-dur-medium) ease;
  background: transparent;
  -webkit-backdrop-filter: blur(450px) saturate(1.9);
  backdrop-filter: blur(450px) saturate(1.9);
}
/* Inner-page variant: a page photo, blurred to colour only.
   <div class="ba-menu__blur ba-menu__blur--image" style="--ba-menu-bg:url(...)"> */
.ba-menu__blur--image {
  background: var(--ba-menu-bg) center / cover;
  filter: blur(100px) saturate(1.2) brightness(.75);
}
.ba-menu__text-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--ba-dur-medium) ease;
}
.ba-menu[data-active] .ba-menu__blur { opacity: 0; }
.ba-menu[data-active] .ba-menu__text-video { opacity: 1; }

.ba-menu__text::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ba-black-a25);
  transition: background var(--ba-dur-medium) ease;
}
.ba-menu[data-active] .ba-menu__text::after { background: var(--ba-black-a35); }

/* ---- screens ---- */
.ba-menu__screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding: 0 120px 0 60px;
  text-align: right;
  z-index: 2;
}
.ba-menu__screen li {
  margin: var(--ba-space-9) 0;
  transform: translateX(calc(-1 * var(--ba-menu-slide)));
  transition: transform var(--ba-dur-panel) var(--ba-ease-std);
}
.ba-menu__screen a {
  color: var(--ba-fg);
  font-size: var(--ba-text-xl);
  letter-spacing: var(--ba-track-1);
  text-transform: uppercase;
  font-weight: var(--ba-weight-light);
  opacity: .85;
  transition: opacity var(--ba-dur-fast);
}
.ba-menu__screen a:hover { opacity: 1; }

.ba-menu__sub-title {
  color: var(--ba-fg-faint);
  font-size: var(--ba-text-sm);
  font-weight: var(--ba-weight-bold);
  letter-spacing: var(--ba-track-3);
  text-transform: uppercase;
  margin: 0 0 26px;
}

.ba-menu__back {
  color: var(--ba-fg-dim);
  font-size: var(--ba-text-sm);
  letter-spacing: var(--ba-track-2);
  text-transform: uppercase;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--ba-dur-fast);
}
.ba-menu__back:hover { color: var(--ba-fg); }

/* sub-list: dimmed, the project on show gets full opacity + a 6px dot */
.ba-menu__screen--sub a { position: relative; opacity: .6; }
.ba-menu__screen--sub a.is-current { opacity: 1; }
.ba-menu__screen--sub a.is-current::after {
  content: "";
  position: absolute;
  right: -26px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ba-fg);
}

/* main <-> sub swap */
.ba-menu__screen--main {
  transform: translateX(0);
  visibility: visible;
  transition: transform var(--ba-dur-slow) var(--ba-ease-panel), visibility 0s linear 0s;
}
.ba-menu__screen--sub {
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform var(--ba-dur-slow) var(--ba-ease-panel), visibility 0s linear 0s;
}
/* main list only fades — never slides — so it can't collide with the sub */
.ba-menu[data-active] .ba-menu__screen--main {
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear .35s;
}
.ba-menu[data-active] .ba-menu__screen--sub {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}
.ba-menu__screen--main.is-fading { opacity: 0; transition: opacity var(--ba-dur-fade) ease; }
.ba-menu__screen--main.is-resetting li {
  transition: none !important;
  transform: translateX(calc(-1 * var(--ba-menu-slide))) !important;
}

/* entrance: in from the left, one after another (60ms apart, from 180ms) */
.ba-menu.is-open .ba-menu__screen--main li,
.ba-menu[data-active] .ba-menu__screen--sub li { transform: translateX(0); }
.ba-menu__screen li:nth-child(1) { transition-delay: .18s; }
.ba-menu__screen li:nth-child(2) { transition-delay: .24s; }
.ba-menu__screen li:nth-child(3) { transition-delay: .30s; }
.ba-menu__screen li:nth-child(4) { transition-delay: .36s; }
.ba-menu__screen li:nth-child(5) { transition-delay: .42s; }
.ba-menu__screen li:nth-child(6) { transition-delay: .48s; }
.ba-menu__screen li:nth-child(7) { transition-delay: .54s; }
.ba-menu__screen li:nth-child(8) { transition-delay: .60s; }

/* exit: back out to the left, bottom item first */
.ba-menu.is-closing .ba-menu__screen--main li,
.ba-menu.is-sub-closing .ba-menu__screen--sub li { transform: translateX(calc(-1 * var(--ba-menu-slide))); }
.ba-menu.is-closing .ba-menu__screen--main li:nth-child(1),
.ba-menu.is-sub-closing .ba-menu__screen--sub li:nth-child(1) { transition-delay: .42s; }
.ba-menu.is-closing .ba-menu__screen--main li:nth-child(2),
.ba-menu.is-sub-closing .ba-menu__screen--sub li:nth-child(2) { transition-delay: .36s; }
.ba-menu.is-closing .ba-menu__screen--main li:nth-child(3),
.ba-menu.is-sub-closing .ba-menu__screen--sub li:nth-child(3) { transition-delay: .30s; }
.ba-menu.is-closing .ba-menu__screen--main li:nth-child(4),
.ba-menu.is-sub-closing .ba-menu__screen--sub li:nth-child(4) { transition-delay: .24s; }
.ba-menu.is-closing .ba-menu__screen--main li:nth-child(5),
.ba-menu.is-sub-closing .ba-menu__screen--sub li:nth-child(5) { transition-delay: .18s; }
.ba-menu.is-closing .ba-menu__screen--main li:nth-child(6),
.ba-menu.is-sub-closing .ba-menu__screen--sub li:nth-child(6) { transition-delay: .12s; }
.ba-menu.is-closing .ba-menu__screen--main li:nth-child(7),
.ba-menu.is-sub-closing .ba-menu__screen--sub li:nth-child(7) { transition-delay: .06s; }
.ba-menu.is-closing .ba-menu__screen--main li:nth-child(8),
.ba-menu.is-sub-closing .ba-menu__screen--sub li:nth-child(8) { transition-delay: 0s; }

/* ---- image panel (Projects only) ---- */
.ba-menu__image {
  position: relative;
  height: 100%;
  overflow: hidden;
  flex: 0 0 var(--ba-menu-image);
  background: var(--ba-bg-raised);
}
.ba-menu__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateX(-100%);
  transition: transform var(--ba-dur-wipe) var(--ba-ease-panel);
  z-index: 1;
}
.ba-menu__image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--ba-grad-menu-image);
  pointer-events: none;
}
.ba-menu__label {
  position: absolute;
  bottom: 108px;
  left: calc(50% - 100px);
  z-index: 2;
  color: var(--ba-fg);
  font-size: var(--ba-text-base);
  letter-spacing: var(--ba-track-3);
  text-transform: uppercase;
  opacity: .9;
  text-shadow: 0 1px 8px rgba(0 0 0 / .6);
}
.ba-menu__cta {
  position: absolute;
  bottom: 60px;
  left: calc(50% - 135px);
  z-index: 2;
}

@media (max-width: 900px) {
  .ba-menu, .ba-menu[data-active] { width: 100%; }
  .ba-menu__image { display: none; }
  .ba-menu__text { flex-basis: 100%; }
  .ba-menu__screen { padding: 0 30px; }
  .ba-menu__screen a { font-size: 20px; }
  .ba-menu__close { left: 30px; }
}


/* ==========================================================================
   4  BUTTONS + LINKS
   ========================================================================== */

/* Primary: white pill, near-black label, gold on hover. The hero CTA. */
.ba-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ba-fg);
  color: var(--ba-fg-on-light);
  font-family: var(--ba-font);
  font-size: var(--ba-text-xs);
  font-weight: var(--ba-weight-semi);
  letter-spacing: var(--ba-track-3);
  text-transform: uppercase;
  line-height: 1;
  padding: 17px 60px;
  border: 1px solid transparent;
  border-radius: var(--ba-radius-pill);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--ba-dur-fast) ease, color var(--ba-dur-fast) ease, border-color var(--ba-dur-fast) ease;
}
.ba-btn:hover { background: var(--ba-accent); }

/* Arrow pill: the menu image-panel "Discover →". Stays white on hover;
   the arrow nudges 4px instead. */
.ba-btn--arrow {
  color: var(--ba-black);
  font-weight: var(--ba-weight-normal);
  letter-spacing: var(--ba-track-2);
  padding: 16px 50px;
  border-color: var(--ba-white-a75);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: 90px;
}
.ba-btn--arrow:hover { background: var(--ba-fg); color: #111; border-color: var(--ba-fg); }
.ba-btn__arrow { display: inline-block; transition: transform var(--ba-dur-quick) ease; }
.ba-btn--arrow:hover .ba-btn__arrow { transform: translateX(4px); }

/* Gold: consent actions. Squared (2px), the only resting gold surface. */
.ba-btn--gold {
  background: var(--ba-accent);
  border-color: var(--ba-accent);
  color: var(--ba-fg-on-gold);
  font-size: var(--ba-text-md);
  font-weight: var(--ba-weight-medium);
  letter-spacing: normal;
  text-transform: none;
  padding: 8px 27px;
  border-radius: var(--ba-radius-xs);
}
.ba-btn--gold:hover { background: var(--ba-accent-hover); border-color: var(--ba-accent-hover); }

/* Outline: consent "Customise" — same box as gold, hairline white */
.ba-btn--outline {
  background: transparent;
  border-color: var(--ba-fg);
  color: var(--ba-fg);
  font-size: var(--ba-text-md);
  font-weight: var(--ba-weight-medium);
  letter-spacing: normal;
  text-transform: none;
  padding: 8px 12px;
  border-radius: var(--ba-radius-xs);
}
.ba-btn--outline:hover { background: var(--ba-white-a15); }

.ba-btn--block { width: 100%; }

/* Header text link: REGISTER INTEREST. Arial, like the MENU label. */
.ba-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ba-fg);
  font-family: var(--ba-font-ui);
  font-size: var(--ba-text-xs);
  font-weight: var(--ba-weight-medium);
  letter-spacing: var(--ba-track-2);
  text-transform: uppercase;
}

/* Underline link: card "View project" style, pinned to the card bottom */
.ba-link-underline {
  display: inline-block;
  width: fit-content;
  padding-bottom: 2px;
  font-size: var(--ba-text-sm);
  letter-spacing: var(--ba-track-1-5);
  text-transform: uppercase;
  color: var(--ba-fg);
  border-bottom: 1px solid var(--ba-fg);
  transition: opacity var(--ba-dur-fast) var(--ba-ease);
}
.ba-link-underline:hover { opacity: .75; }

/* Filter tab (blog/news category). Black at rest, gold when hovered or on. */
.ba-tab {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  font-size: var(--ba-text-xs);
  letter-spacing: var(--ba-track-2);
  text-transform: uppercase;
  background: var(--ba-black);
  color: var(--ba-fg);
  border: 1px solid var(--ba-line);
  border-radius: var(--ba-radius-pill);
  transition: background var(--ba-dur-fast) ease, color var(--ba-dur-fast) ease, border-color var(--ba-dur-fast) ease;
}
.ba-tab:hover { border-color: var(--ba-fg); background: var(--ba-accent); color: var(--ba-black); }
.ba-tab.is-active, .ba-tab[aria-selected="true"] { background: var(--ba-accent); color: var(--ba-black); border-color: var(--ba-accent); }

/* Round icon button: modal close */
.ba-icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ba-lilac-50);
  font-size: 20px;
  transition: background var(--ba-dur-instant) ease;
}
.ba-icon-btn:hover { background: rgba(243 238 246 / .15); }


/* ==========================================================================
   5  HERO SLIDER
   Stacked 100vh slides. Each slide's copy is hidden 34px low and rises in
   over 1.5s on the signature ease, staggered eyebrow → title → subtitle →
   CTA, when the slide is 60% in view. While scrolling, media drifts and
   scales (lerp .065) and fades as it leaves; a wheel tick snaps a full
   slide. All of that is ba.js; this is the static frame + states.
   ========================================================================== */
.ba-hero { position: relative; z-index: var(--ba-z-slider); }

.ba-hero__slide {
  position: relative;
  height: 100vh;
  min-height: 560px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ba-hero__slide--start { justify-content: flex-start; }
.ba-hero__slide--start .ba-hero__content { margin-left: 8%; }
.ba-hero__slide--end { justify-content: flex-end; }
.ba-hero__slide--end .ba-hero__content { margin-right: 5%; }

/* media runs 116% tall from -8% so the parallax drift never shows an edge */
.ba-hero__media {
  position: absolute;
  top: -8%;
  left: 0;
  width: 100%;
  height: 116%;
  max-width: none;
  object-fit: cover;
  filter: saturate(1.05);
  will-change: transform, opacity;
}
.ba-hero__overlay { position: absolute; inset: 0; will-change: opacity; }
.ba-hero__overlay--grad { background: var(--ba-grad-hero); }

.ba-hero__content {
  position: relative;
  z-index: var(--ba-z-content);
  text-align: center;
  color: var(--ba-fg);
  padding: 0 24px;
  max-width: 900px;
  will-change: transform;
}

.ba-hero__eyebrow,
.ba-hero__title,
.ba-hero__subtitle,
.ba-hero__cta {
  opacity: 0;
  transform: translateY(var(--ba-rise));
  transition:
    opacity var(--ba-dur-reveal) var(--ba-ease),
    transform var(--ba-dur-reveal) var(--ba-ease),
    letter-spacing var(--ba-dur-reveal) var(--ba-ease);
}
.ba-hero__eyebrow {
  font-size: var(--ba-text-lg);
  font-weight: var(--ba-weight-heavy);
  letter-spacing: var(--ba-track-12);
  text-transform: uppercase;
  margin-bottom: 18px;
  transition-delay: .05s;
}
.ba-hero__title {
  font-weight: var(--ba-weight-hair);
  font-size: var(--ba-text-hero);
  letter-spacing: var(--ba-track-title);
  text-transform: uppercase;
  line-height: var(--ba-leading-tight);
  margin-bottom: 14px;
  transition-delay: .18s;
}
.ba-hero__subtitle {
  font-weight: var(--ba-weight-hair);
  font-size: clamp(var(--ba-text-sub-min), var(--ba-text-sub-fluid), var(--ba-text-sub-max));
  letter-spacing: var(--ba-track-sub);
  text-transform: uppercase;
  line-height: var(--ba-leading-snug);
  margin-bottom: 40px;
  transition-delay: .3s;
}
.ba-hero__subtitle--bold { font-weight: var(--ba-weight-bold); }
/* the CTA's background still reacts at .3s while its reveal runs at 1.5s */
.ba-hero__cta {
  transition-property: opacity, transform, background;
  transition-duration: var(--ba-dur-reveal), var(--ba-dur-reveal), var(--ba-dur-fast);
  transition-delay: .5s, .5s, 0s;
}

.ba-hero__slide.is-active .ba-hero__eyebrow,
.ba-hero__slide.is-active .ba-hero__title,
.ba-hero__slide.is-active .ba-hero__subtitle,
.ba-hero__slide.is-active .ba-hero__cta {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .ba-hero__title { letter-spacing: .08em; font-size: 40px; }
  .ba-hero__subtitle { letter-spacing: .2em; }
  .ba-hero__slide--start .ba-hero__content,
  .ba-hero__slide--end .ba-hero__content { margin: 0; }
  .ba-hero__slide--start, .ba-hero__slide--end { justify-content: center; }
}


/* ==========================================================================
   6  DOTS + SCROLL INDICATOR
   ========================================================================== */
.ba-dots {
  position: fixed;
  left: 34px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 123;
  display: flex;
  flex-direction: column;
  gap: 22px;
  opacity: 0;
  transition: opacity var(--ba-dur-medium) ease;
  pointer-events: none;
}
.ba-dots.is-visible { opacity: 1; pointer-events: auto; }
.ba-dots--static { position: static; transform: none; opacity: 1; pointer-events: auto; }
.ba-dots--row { flex-direction: row; align-items: center; }

.ba-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ba-cream-a40);
  border: 1px solid transparent;
  padding: 0;
  transition: all var(--ba-dur-fade) var(--ba-ease);
}
.ba-dot.is-active {
  background: transparent;
  border-color: var(--ba-fg);
  width: 13px;
  height: 13px;
  box-shadow: 0 0 0 3px var(--ba-cream-a15) inset;
}
@media (max-width: 640px) {
  .ba-dots { left: 16px; gap: 16px; }
}

/* 1px track with a brighter drop falling through it, forever. Fades in
   after a 1s hold so it arrives after the hero copy. */
.ba-scroll-indicator {
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: ba-fade-in 1s ease 1s forwards;
}
.ba-scroll-line {
  width: 1px;
  height: 60px;
  background: var(--ba-white-a30);
  position: relative;
  overflow: hidden;
}
.ba-scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--ba-white-a80);
  animation: ba-scroll-drop 1.8s ease-in-out infinite;
}
@keyframes ba-fade-in { to { opacity: 1; } }
@keyframes ba-scroll-drop {
  0%   { top: -100%; }
  50%  { top: 100%; }
  100% { top: 100%; }
}


/* ==========================================================================
   7  SECTION HEAD + PROJECT CARD
   ========================================================================== */
.ba-section { padding: var(--ba-space-12) 0; background: var(--ba-bg); position: relative; z-index: var(--ba-z-slider); }

.ba-section-head { text-align: center; margin-bottom: var(--ba-space-10); }
.ba-section-head__eyebrow {
  font-weight: var(--ba-weight-medium);
  font-size: var(--ba-text-2xl);
  letter-spacing: var(--ba-track-section);
  text-transform: uppercase;
  color: var(--ba-fg);
  margin-bottom: 14px;
}
.ba-section-head__title {
  font-weight: var(--ba-weight-normal);
  font-size: var(--ba-text-md);
  letter-spacing: var(--ba-track-2);
  text-transform: uppercase;
  color: var(--ba-fg);
}

/* Card: 400px image that eases to 1.05 on hover; body hangs off a warm
   hairline on its left edge. */
.ba-card { height: 100%; }
.ba-card > a, .ba-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.ba-card__img { height: var(--ba-card-img-h); overflow: hidden; flex-shrink: 0; }
.ba-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--ba-dur-slow) var(--ba-ease);
}
.ba-card:hover .ba-card__img img { transform: scale(1.05); }
.ba-card__body {
  border-left: 1px solid var(--ba-line-warm);
  padding: 26px 24px 20px;
  min-height: 130px;
  background: var(--ba-bg);
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.ba-card__title {
  font-weight: var(--ba-weight-medium);
  font-size: var(--ba-text-base);
  letter-spacing: var(--ba-track-2);
  text-transform: uppercase;
  color: var(--ba-fg);
  margin: 0 0 12px;
  line-height: var(--ba-leading-snug);
}
.ba-card__text {
  font-size: var(--ba-text-base);
  line-height: var(--ba-leading-body);
  color: var(--ba-fg);
  font-weight: var(--ba-weight-hair);
}
.ba-card__body .ba-link-underline { margin-top: auto; padding-top: 18px; border-bottom: 0; }
.ba-card__body .ba-link-underline span { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.ba-card:hover .ba-link-underline { opacity: .75; }
@media (max-width: 768px) { .ba-card__img { height: 280px; } }


/* ==========================================================================
   8  CAROUSEL
   Replaces the site's Slick setup with the same behaviour: 3 / 2 / 1 per
   view at >1024 / >640 / below, step 1, 500ms ease, not infinite, square
   black arrows with a 2px white glow. Gold dots if enabled.
   ========================================================================== */
.ba-carousel { position: relative; max-width: var(--ba-carousel-max); margin: 0 auto; --ba-per-view: 3; }
.ba-carousel__viewport { overflow: hidden; }
.ba-carousel__track {
  display: flex;
  transition: transform var(--ba-dur-medium) ease;
  will-change: transform;
}
.ba-carousel__slide { flex: 0 0 calc(100% / var(--ba-per-view)); padding: 0 12px; }
.ba-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ba-black);
  box-shadow: 0 0 2px var(--ba-fg);
  color: var(--ba-fg);
  font-size: 20px;
  transition: opacity var(--ba-dur-fast) ease;
}
.ba-carousel__arrow i { opacity: .85; transition: opacity var(--ba-dur-fast) ease; }
.ba-carousel__arrow:hover i { opacity: 1; }
.ba-carousel__arrow--prev { left: -10px; }
.ba-carousel__arrow--next { right: -10px; }
.ba-carousel__arrow[disabled] { cursor: default; }
.ba-carousel__arrow[disabled] i { opacity: .25; }
.ba-carousel__dots { display: flex; justify-content: center; gap: 0; margin-top: 30px; }
.ba-carousel__dots button { width: 20px; height: 20px; display: grid; place-items: center; }
.ba-carousel__dots button::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ba-accent); opacity: .25; transition: opacity var(--ba-dur-fast) ease;
}
.ba-carousel__dots button[aria-current="true"]::before { opacity: .75; }
@media (max-width: 1024px) { .ba-carousel { --ba-per-view: 2; } }
@media (max-width: 640px)  { .ba-carousel { --ba-per-view: 1; } .ba-carousel__arrow--prev { left: 0; } .ba-carousel__arrow--next { right: 0; } }


/* ==========================================================================
   9  PROJECT DROPDOWN
   Transparent toggle, chevron flips 180°, list grows from max-height 0
   to 400 behind a 6px frost.
   ========================================================================== */
.ba-dropdown { position: relative; width: 100%; max-width: 320px; }
.ba-dropdown__toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 0;
  color: var(--ba-fg);
  text-align: left;
}
.ba-dropdown__chevron { display: inline-flex; flex-shrink: 0; transition: transform var(--ba-dur-quick) ease; }
.ba-dropdown.is-open .ba-dropdown__chevron { transform: rotate(180deg); }
.ba-dropdown__current { font-size: var(--ba-text-sm); letter-spacing: var(--ba-track-1-5); text-transform: uppercase; }
.ba-dropdown__list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--ba-dur-fast) ease;
  z-index: 20;
}
.ba-dropdown.is-open .ba-dropdown__list { max-height: 400px; overflow-y: auto; }
.ba-dropdown__list a {
  display: block;
  padding: 12px 18px;
  font-size: var(--ba-text-sm);
  font-weight: var(--ba-weight-medium);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ba-white-a75);
  transition: background var(--ba-dur-instant) ease, color var(--ba-dur-instant) ease;
}
.ba-dropdown__list a:hover { background: var(--ba-white-a06); color: var(--ba-fg); }
.ba-dropdown__list .is-active a { color: var(--ba-fg); font-weight: var(--ba-weight-bold); }


/* ==========================================================================
   10  FORMS + MODAL
   Fields are filled #1c1c1c blocks with a 2px white underline, set in the
   Avenir hairline rather than Riviera.
   ========================================================================== */
.ba-field { display: block; }
.ba-field__label {
  display: block;
  font-size: var(--ba-text-xs);
  letter-spacing: var(--ba-track-2);
  text-transform: uppercase;
  color: var(--ba-fg-dim);
  margin-bottom: 10px;
}
.ba-input, .ba-select {
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 0 18px;
  border: 0;
  border-bottom: 2px solid var(--ba-line-strong);
  border-radius: 0;
  outline: 0;
  background: var(--ba-bg-field);
  color: var(--ba-fg);
  font-family: var(--ba-font-numeral);
  letter-spacing: var(--ba-track-2);
  transition: border-color var(--ba-dur-fast) ease;
}
.ba-input::placeholder { color: var(--ba-fg-dim); }
.ba-input:focus-visible, .ba-select:focus-visible { outline: 0; border-bottom-color: var(--ba-accent); }
.ba-select {
  height: 60px;
  padding: 0 44px 0 10px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 10px) center;
  background-size: 22px;
}
.ba-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.ba-form-grid > .ba-span-2 { grid-column: span 2; }
@media (max-width: 640px) { .ba-form-grid { grid-template-columns: 1fr; } .ba-form-grid > .ba-span-2 { grid-column: auto; } }

.ba-check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--ba-text-sm); line-height: var(--ba-leading-body); color: var(--ba-fg-dim); }
.ba-check input { accent-color: var(--ba-accent); width: 16px; height: 16px; margin: 2px 0 0; flex-shrink: 0; }

/* Modal: black panel, 8px corners, grey hairline + glow, drops in 20px */
.ba-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--ba-scrim-modal);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ba-modal.is-open { display: flex; }
.ba-modal__panel {
  position: relative;
  background: var(--ba-bg);
  padding: 80px 40px;
  display: flex;
  justify-content: center;
  width: 900px;
  max-width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--ba-radius-md);
  border: 1px solid var(--ba-neutral-600);
  box-shadow: 0 0 5px var(--ba-neutral-600);
  animation: ba-modal-in .25s ease;
}
.ba-modal__close { position: absolute; top: 15px; right: 15px; }
.ba-modal__body { max-width: 600px; width: 100%; }
.ba-modal__title {
  color: var(--ba-fg);
  font-size: var(--ba-text-base);
  font-weight: var(--ba-weight-semi);
  text-transform: uppercase;
  margin-bottom: 15px;
  line-height: 1.5;
  letter-spacing: var(--ba-track-1);
}
.ba-modal__heading {
  text-align: center;
  font-size: var(--ba-text-3xl);
  font-weight: var(--ba-weight-semi);
  letter-spacing: var(--ba-track-3);
  margin-bottom: 30px;
}
@keyframes ba-modal-in {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) { .ba-modal__panel { padding: 40px 20px; } }

/* list row inside a modal (Register / Sales / Broker…) */
.ba-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid rgba(243 238 246 / .25);
  color: var(--ba-lilac-50);
  transition: opacity var(--ba-dur-fast) ease;
}
.ba-list-row:hover { opacity: .7; }
.ba-list-row__left { display: flex; align-items: center; gap: 12px; }
.ba-list-row__text { font-size: var(--ba-text-xs); letter-spacing: var(--ba-track-1-5); font-weight: var(--ba-weight-medium); text-transform: uppercase; }


/* ==========================================================================
   11  CONSENT BAR
   ========================================================================== */
.ba-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99998;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 20px 22px;
  background: #111111;
  border-top: 1px solid var(--ba-black);
  color: var(--ba-neutral-150);
  transform: translateY(0);
  transition: transform var(--ba-dur-medium) var(--ba-ease), opacity var(--ba-dur-medium) ease;
}
.ba-consent.is-dismissed { transform: translateY(100%); opacity: 0; pointer-events: none; }
.ba-consent--static { position: relative; z-index: auto; }
.ba-consent__copy { flex: 1 1 auto; }
.ba-consent__title { font-size: var(--ba-text-xl); font-weight: var(--ba-weight-bold); letter-spacing: var(--ba-track-1-3); margin-bottom: 14px; }
.ba-consent__text { font-size: var(--ba-text-md); line-height: 1.6; max-width: 70ch; }
.ba-consent__actions { display: flex; gap: 12px; flex-shrink: 0; }
@media (max-width: 860px) {
  .ba-consent { flex-direction: column; align-items: stretch; }
  .ba-consent__actions { flex-wrap: wrap; }
  .ba-consent__actions > * { flex: 1 1 auto; }
}


/* ==========================================================================
   12  FOOTER
   Five link columns and a social cluster under a centred logo. With
   .ba-footer--reveal the footer sits fixed behind the page and is uncovered
   as the black page wrapper scrolls away (ba.js sets --ba-footer-h).
   ========================================================================== */
.ba-footer {
  background: var(--ba-bg);
  color: var(--ba-fg-soft);
  padding: 40px 0;
}
.ba-footer__logo { text-align: center; margin: 0 auto; width: 170px; padding-bottom: 40px; }
.ba-footer__logo img { max-width: 100%; height: auto; margin: 0 auto; }
.ba-footer__rule { border: 0; border-top: 1px solid var(--ba-line-solid); margin: 0 0 36px; }
.ba-footer__rule--bottom { margin: 50px 0 0; }
.ba-footer__cols { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.ba-footer__col { min-width: 150px; }
.ba-footer__heading {
  font-size: var(--ba-text-sm);
  letter-spacing: var(--ba-track-2);
  color: var(--ba-fg-soft);
  font-weight: var(--ba-weight-semi);
  margin-bottom: 22px;
}
.ba-footer__col li { margin-bottom: 18px; }
.ba-footer__col li a {
  color: var(--ba-fg);
  font-size: var(--ba-text-sm);
  letter-spacing: var(--ba-track-1-3);
  text-transform: uppercase;
  transition: color var(--ba-dur-instant) ease, opacity var(--ba-dur-instant) ease;
}
.ba-footer__col li a:hover { opacity: .7; }
.ba-footer__lang { display: flex; align-items: center; gap: 8px; color: var(--ba-fg-muted); font-size: var(--ba-text-sm); letter-spacing: var(--ba-track-1-5); }
.ba-footer__lang select {
  background: var(--ba-black);
  color: var(--ba-neutral-400);
  border: 1px solid var(--ba-neutral-400);
  padding: 4px 6px;
  font-size: var(--ba-text-sm);
}
.ba-social { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; justify-content: flex-end; max-width: 180px; }
.ba-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ba-bg-chip);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ba-neutral-200);
  font-size: 14px;
  transition: background var(--ba-dur-instant) ease, color var(--ba-dur-instant) ease;
}
.ba-social a:hover { background: var(--ba-bg-chip-hover); color: var(--ba-fg); }

.ba-page { position: relative; z-index: 2; background: var(--ba-bg); }
.ba-footer-reveal-body { padding-bottom: var(--ba-footer-h, 0px); }
.ba-footer--reveal { position: fixed; left: 0; bottom: 0; width: 100%; z-index: 1; }

@media (max-width: 767px) {
  .ba-footer__cols { flex-direction: column; }
  .ba-social { justify-content: flex-start; }
}
