/* ==========================================================================
   BETH-HARAN GLOBAL GROUPS — base layer
   Design tokens, reset, typography, shared primitives.
   ========================================================================== */

:root{
  /* --- brand ground -------------------------------------------------- */
  --void:#4e043b;
  --aubergine:#4e043b;
  --aubergine-lift:#4e043b;
  --aubergine-deep:#4e043b;

  /* --- accent --------------------------------------------------------- */
  --gold:#ce9e49;           /* mid gold — hairlines, fills */
  --gold-light:#f1d578;     /* bright gold — small text on purple */
  --gold-ink:#865c0e;       /* deep gold — small text on cream */
  --gold-dim:rgba(212,166,78,.34);

  /* The client's gold, sampled row by row from their reference artwork.
     Light runs in horizontal bands, top to bottom: bright, amber, bright,
     amber, bright. Stops sit between 12% and 88% so the bands land on the
     capital letters rather than the empty space above and below them. */
  --gold-metal:linear-gradient(180deg,
      #f1d578 0%,  #f1d578 12%, #e3bc61 17%, #ce9e49 22%, #c18935 27%,
      #c89545 33%, #cfa048 38%, #dfbf6e 44%, #f3dd88 53%, #e1bb61 58%,
      #d09d45 64%, #dcaf4e 69%, #f3d778 75%, #f1d77b 81%, #f6de7d 88%,
      #f6de7d 100%);

  /* Same band pattern pressed darker for cream grounds, where the bright
     version would disappear. Every stop stays readable at heading size. */
  --gold-metal-deep:linear-gradient(180deg,
      #c29639 0%,  #c29639 12%, #b28228 17%, #9e6e1c 22%, #966619 27%,
      #97681d 33%, #a17221 38%, #b3852c 44%, #c3983b 53%, #b18329 58%,
      #9d6d1c 64%, #a87723 69%, #bc9036 75%, #c29638 81%, #c3973a 88%,
      #c3973a 100%);

  /* Thin lines are one pixel tall, so vertical bands would collapse to a
     single colour. Lines run the light sideways instead. */
  --gold-line:linear-gradient(90deg,#c18935 0%,#f3dd88 50%,#c18935 100%);
  --gold-line-deep:linear-gradient(90deg,#966619 0%,#c3983b 50%,#966619 100%);

  /* Context switches — dark surfaces flip these below */
  --g-text:var(--gold-ink);
  --g-metal:var(--gold-metal-deep);
  --g-line:var(--gold-line-deep);
  --g-edge:drop-shadow(0 1px 0 rgba(122,82,14,.5)) drop-shadow(0 2px 8px rgba(78,4,59,.10));

  /* --- light grounds --------------------------------------------------- */
  --paper:#f6f0e8;
  --cream:#eae0d2;
  --shell:#e2d6c6;

  /* --- ink -------------------------------------------------------------- */
  --ink:#1b1118;
  --body:#463742;
  --body-soft:#6b5a67;
  --on-dark:rgba(255,255,255,.86);
  --on-dark-soft:rgba(255,255,255,.62);

  /* --- lines ------------------------------------------------------------ */
  --line:rgba(78,4,59,.16);
  --line-dark:rgba(255,255,255,.16);

  /* --- metrics ---------------------------------------------------------- */
  --max:1480px;
  --gutter:6vw;
  --nav-h:96px;
  --nav-h-scrolled:72px;

  /* --- motion ----------------------------------------------------------- */
  --ease:cubic-bezier(.22,1,.36,1);
  --ease-io:cubic-bezier(.65,.05,.25,1);
  --slow:1.2s;
  --med:.62s;
  --fast:.32s;
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html{
  scroll-behavior:smooth;
  background:var(--paper);
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:Manrope,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  font-size:16px;
  line-height:1.7;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

body.is-locked{overflow:hidden}

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

::selection{background:var(--gold);color:var(--aubergine-deep)}

:focus-visible{
  outline:2px solid var(--gold);
  outline-offset:3px;
  border-radius:2px;
}

/* ==========================================================================
   Typography
   ========================================================================== */

.display,
h1,h2,h3,
.eyebrow,
.nav__link,
.brandmark,
.ticker,
.stat__figure,
.index-mark{
  font-family:"Bebas Neue",Impact,"Arial Narrow",sans-serif;
  font-weight:400;
  letter-spacing:.01em;
}

/* Display scale — set on a fifth, clamped for fluid behaviour */
.t-mega{font-size:clamp(3.6rem,10.5vw,9.5rem);line-height:.84;letter-spacing:-.012em}
.t-xl  {font-size:clamp(3rem,7vw,7.2rem);  line-height:.86;letter-spacing:-.008em}
.t-lg  {font-size:clamp(2.4rem,4.6vw,4.6rem);line-height:.9}
.t-md  {font-size:clamp(1.8rem,2.8vw,2.9rem);line-height:.98}
.t-sm  {font-size:clamp(1.35rem,1.9vw,1.85rem);line-height:1.06}

/* Metallic text. text-shadow would paint over a clipped background and
   muddy it, so any depth comes from drop-shadow instead. */
.accent{
  color:var(--gold);                      /* fallback */
  background-image:var(--g-metal);
  background-size:100% 100%;
  background-position:0 0;
  -webkit-background-clip:text;
          background-clip:text;
  -webkit-text-fill-color:transparent;
  text-shadow:none;
  filter:var(--g-edge);
  -webkit-box-decoration-break:clone;
          box-decoration-break:clone;
}

/* Soft shadow under the hero word so the gold lifts off the purple,
   as it does in the client's reference */
.gold-sheen{
  filter:drop-shadow(0 3px 10px rgba(0,0,0,.32));
}

/* Eyebrow — a hairline plus a label. Part of the established identity. */
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:14px;
  color:var(--g-text);
  font-size:.98rem;
  letter-spacing:.22em;
  line-height:1;
}
.eyebrow::before{
  content:"";
  width:44px;
  height:1px;
  background:var(--g-line);
  flex:none;
  transform-origin:left;
}
.eyebrow--bare::before{display:none}

/* Body copy */
.lede{
  font-size:clamp(1.08rem,1.4vw,1.32rem);
  line-height:1.68;
  color:var(--body);
  max-width:62ch;
}
.on-dark .lede{color:var(--on-dark)}

.prose{
  font-size:1.01rem;
  line-height:1.8;
  color:var(--body);
  max-width:66ch;
}
.prose p + p{margin-top:1.35em}
.on-dark .prose{color:var(--on-dark)}

.micro{
  font-size:.79rem;
  letter-spacing:.14em;
  line-height:1.5;
  color:var(--body-soft);
}
.on-dark .micro{color:var(--on-dark-soft)}

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.section{
  position:relative;
  padding-block:clamp(88px,10vw,164px);
  padding-inline:var(--gutter);
}
.section--tight{padding-block:clamp(64px,7vw,110px)}
.section--flush-top{padding-top:0}
.section--flush-bottom{padding-bottom:0}

.shell{
  max-width:var(--max);
  margin-inline:auto;
  width:100%;
}

.on-dark{background:var(--aubergine);color:#fff}
.on-dark,.hero,.pagehead,.footer,.svc,.tile,.panel,.drawer,
.statement,.ticker,.split,.banner{
  --g-text:var(--gold-light);
  --g-metal:var(--gold-metal);
  --g-line:var(--gold-line);
  --g-edge:none;
}
.on-dark + .on-dark{border-top:1px solid rgba(255,255,255,.1)}
.on-dark h1,.on-dark h2,.on-dark h3{color:#fff}

.ground-cream{background:var(--cream)}
.ground-shell{background:var(--shell)}

/* Two-column heading block: title left, lede right, baselines aligned */
.heading-pair{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:clamp(36px,7vw,110px);
  align-items:end;
  margin-bottom:clamp(52px,6vw,88px);
}
.heading-pair__title{margin-top:26px}

.rule{
  height:1px;
  background:var(--line);
  border:0;
  margin:0;
}
.on-dark .rule{background:var(--line-dark)}

/* ==========================================================================
   Media wrapper — every image on the site lives inside one of these.
   Provides: aspect ratio, overflow clip, a graceful ground while loading,
   and a labelled state if the file is not present yet.
   ========================================================================== */

.media{
  position:relative;
  overflow:hidden;
  background:
    linear-gradient(135deg,var(--aubergine) 0%,var(--aubergine-lift) 58%,var(--aubergine-deep) 100%);
  isolation:isolate;
}
.media > img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  /* Ken Burns rest state — the drift itself is applied by .kb below */
  transform:scale(1.001);
  will-change:transform;
}

/* Subtle tonal unification so mixed-source photography still reads as one set */
.media--tint > img{filter:saturate(.96) contrast(1.03)}

.media--1x1{aspect-ratio:1/1}
.media--4x5{aspect-ratio:4/5}
.media--3x4{aspect-ratio:3/4}
.media--3x2{aspect-ratio:3/2}
.media--16x9{aspect-ratio:16/9}
.media--21x9{aspect-ratio:21/9}

/* Gradient floor for text legibility over photography */
.media--scrim::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(180deg,rgba(78,4,59,0) 42%,rgba(78,4,59,.78) 100%);
  pointer-events:none;
}

/* --- pending-asset state --------------------------------------------------
   Applied by JS when a source 404s. Communicates the exact filename to drop
   in, so the build stays legible while photography is outstanding.          */
.is-pending > img{opacity:0;pointer-events:none}
.is-pending{
  background:linear-gradient(135deg,var(--aubergine) 0%,var(--aubergine-lift) 58%,var(--aubergine-deep) 100%);
}
.is-pending::before{
  content:attr(data-pending);
  position:absolute;
  inset:0;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  text-align:center;
  font-family:"Bebas Neue",Impact,sans-serif;
  font-size:.86rem;
  letter-spacing:.2em;
  color:rgba(239,194,127,.72);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255,255,255,.028) 0 12px,
      rgba(255,255,255,0) 12px 24px
    );
}

/* ==========================================================================
   Ken Burns — continuous, non-abrupt drift.
   Long duration + alternate direction means it never snaps back.
   ========================================================================== */

@keyframes kb-drift{
  from{transform:scale(1.04) translate3d(0,0,0)}
  to  {transform:scale(1.13) translate3d(-1.6%,-1.4%,0)}
}
@keyframes kb-drift-alt{
  from{transform:scale(1.12) translate3d(1.4%,-1%,0)}
  to  {transform:scale(1.03) translate3d(0,1.2%,0)}
}

.kb > img{
  animation:kb-drift 26s var(--ease-io) infinite alternate both;
}
.kb--alt > img{
  animation-name:kb-drift-alt;
  animation-duration:31s;
}

/* Pointer-driven lift, layered on top of the drift via the wrapper */
.media--lift{transition:transform 1.4s var(--ease),filter 1.1s var(--ease)}
@media(hover:hover){
  .lift-parent:hover .media--lift{transform:scale(1.028)}
}

/* ==========================================================================
   Links & buttons
   ========================================================================== */

.link-under{
  position:relative;
  display:inline-block;
  padding-bottom:3px;
}
.link-under::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:0;
  height:1px;
  background:currentColor;
  transform:scaleX(0);
  transform-origin:right;
  transition:transform var(--med) var(--ease);
}
.link-under:hover::after,
.link-under:focus-visible::after{transform:scaleX(1);transform-origin:left}

/* Primary action — a bordered slab that fills from the bottom on hover */
.action{
  --action-ink:var(--aubergine);
  --action-fill:var(--aubergine);
  --action-ink-hover:var(--paper);
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:16px;
  padding:19px 34px;
  font-family:"Bebas Neue",Impact,sans-serif;
  font-size:1.12rem;
  line-height:1.25;            /* same for words and plain text, so every button is the same height */
  letter-spacing:.16em;
  color:var(--action-ink);
  border:1px solid currentColor;
  overflow:hidden;
  isolation:isolate;
  transition:color var(--med) var(--ease);
}
.action::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:var(--action-fill);
  transform:translateY(101%);
  transition:transform var(--med) var(--ease);
}
.action:hover,
.action:focus-visible{color:var(--action-ink-hover)}
.action:hover::before,
.action:focus-visible::before{transform:translateY(0)}

.action__arrow{
  display:block;
  width:19px;height:1px;
  background:currentColor;
  position:relative;
  flex:none;
  transition:width var(--med) var(--ease);
}
.action__arrow::after{
  content:"";
  position:absolute;
  right:0;top:50%;
  width:7px;height:7px;
  border-top:1px solid currentColor;
  border-right:1px solid currentColor;
  transform:translateY(-50%) rotate(45deg);
}
.action:hover .action__arrow{width:30px}

.action--gold{
  --action-ink:var(--gold-light);
  --action-ink-hover:var(--aubergine);
  border-color:transparent;
}
.action--gold::before{background:var(--gold-metal)}
/* 1px metallic border drawn with a mask, so the interior stays see-through */
.action--gold::after{
  content:"";
  position:absolute;
  inset:0;
  padding:1px;
  background:var(--gold-metal);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
          mask-composite:exclude;
  pointer-events:none;
}
/* Glint — a narrow band of light crosses the button once on hover */
.action--gold .action__glint{
  position:absolute;
  top:0;bottom:0;
  left:-60%;
  width:40%;
  background:linear-gradient(100deg,transparent,rgba(255,250,230,.55),transparent);
  transform:skewX(-18deg);
  pointer-events:none;
  z-index:1;
}
.action--gold:hover .action__glint,
.action--gold:focus-visible .action__glint{
  animation:glint .9s var(--ease) forwards;
}
@keyframes glint{to{left:130%}}
.action--light{
  --action-ink:#fff;
  --action-fill:#fff;
  --action-ink-hover:var(--aubergine);
}

/* ==========================================================================
   Reveal — one orchestrated entrance per section, not per element.
   ========================================================================== */

.reveal{
  opacity:0;
  transform:translate3d(0,34px,0);
  transition:
    opacity .9s var(--ease) var(--reveal-delay,0ms),
    transform .9s var(--ease) var(--reveal-delay,0ms);
}
.reveal.is-in{opacity:1;transform:none}

/* Images enter with a directional wipe rather than a fade */
.reveal-wipe .media{
  clip-path:inset(0 0 100% 0);
  transition:clip-path 1.15s var(--ease) var(--reveal-delay,0ms);
}
.reveal-wipe.is-in .media{clip-path:inset(0 0 0 0)}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.visually-hidden{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  clip-path:inset(50%);
  white-space:nowrap;
  border:0;
}

.skip-link{
  position:absolute;
  top:-100px;left:16px;
  z-index:2000;
  padding:14px 22px;
  background:var(--gold);
  color:var(--aubergine-deep);
  font-family:"Bebas Neue",Impact,sans-serif;
  letter-spacing:.16em;
  transition:top var(--fast) var(--ease);
}
.skip-link:focus{top:16px}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.001ms!important;
    animation-iteration-count:1!important;
    transition-duration:.001ms!important;
  }
  .reveal{opacity:1;transform:none}
  .reveal-wipe .media{clip-path:none}
  .kb > img,.kb--alt > img{animation:none;transform:scale(1.04)}
}

/* ==========================================================================
   Small gold text on purple — the same polished metal as the headlines.
   The band pattern repeats every line (1.25em) so each line of letters gets
   the full bright–amber–bright sweep, even inside tall boxes.
   ========================================================================== */
.on-dark .eyebrow,.hero .eyebrow,.pagehead .eyebrow,.footer .eyebrow,
.split .eyebrow,.banner .eyebrow,.statement .eyebrow,
.hero__caption,
.action--gold .action__label,
.ticker__label-text,
.tile__kicker,
.trio__label,
.svc__cue,
.footer__head,
.on-dark .step__no,
.on-dark .chapter__kicker,
.statement__attrib,
.fact__figure,
.nav__link.is-current,
.drawer__link.is-current,
.drawer__sublink.is-current,
.panel__item:hover .panel__title,
.panel__item:focus-visible .panel__title{
  color:var(--gold-light);                        /* fallback + arrow/caret colour */
  background-image:var(--gold-metal);
  background-size:100% 1.25em;
  background-repeat:repeat-y;
  background-position:0 0;
  line-height:1.25;
  -webkit-background-clip:text;
          background-clip:text;
  -webkit-text-fill-color:transparent;
}
/* The panel titles are larger display type; keep their own line height */
.panel__item:hover .panel__title,
.panel__item:focus-visible .panel__title{line-height:1;background-size:100% 1em}

/* Gold button: when the gold fill slides in on hover, the words turn purple */
.action--gold:hover .action__label,
.action--gold:focus-visible .action__label{
  -webkit-text-fill-color:var(--aubergine);
  background:none;
}
.action__label{position:relative;z-index:2}


/* Jump links (the homepage cards open a specific part of the Travel page):
   leave room for the fixed menu bar so the section heading is not hidden under it */
section[id], article[id]{scroll-margin-top:calc(var(--nav-h-scrolled) + 24px)}
