/* =========================================================================
   GLA Thailand — Galaxy Advertising
   Design system. Signature: the red<->blue "duality meridian" (events<->digital).
   Multilingual type: IBM Plex superfamily (Latin/Thai/SC) + Space Grotesk display.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Sans+Thai:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans+SC:wght@400;500;600;700&display=swap');

:root {
  /* palette — from the brand orb: deep space + red/blue rim light */
  /* palette — pixel-sampled from the Galaxy logo: 3 blues + 1 magenta */
  --magenta: #E6077E;     /* logo pink  — event line */
  --navy: #1C417D;        /* logo navy  */
  --deep: #08548E;        /* logo deep blue */
  --azure: #2295D2;       /* logo mid blue — digital line */
  --sky: #85CEF2;         /* logo sky blue */

  --ink: #0A1A33;
  --space: #0E2242;
  --nebula: #13294C;
  --nebula-2: #1C417D;
  --signal: #2295D2;      /* digital line */
  --signal-soft: #85CEF2;
  --ember: #E6077E;       /* event line */
  --ember-soft: #F274B6;
  --mist: #F2F6FB;
  --mist-2: #E6EDF6;
  --paper: #FFFFFF;
  --steel: #6E82A6;
  --steel-dk: #40547A;
  --line: #DFE6F0;
  --line-dk: rgba(255,255,255,.12);
  --ink-text: #10233F;

  /* type */
  --display: 'Space Grotesk', 'IBM Plex Sans', system-ui, sans-serif;
  --body: 'IBM Plex Sans', 'IBM Plex Sans Thai', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --maxw: 1200px;
  --gap: clamp(1rem, 3vw, 2rem);
  --radius: 4px;
  --radius-lg: 10px;
}

html[lang="th"] { --body: 'IBM Plex Sans Thai', 'IBM Plex Sans', system-ui, sans-serif; }
html[lang="zh"] { --body: 'IBM Plex Sans SC', 'IBM Plex Sans', system-ui, sans-serif;
                  --display: 'Space Grotesk', 'IBM Plex Sans SC', system-ui, sans-serif; }
html[lang="th"] .display-face,
html[lang="zh"] .display-face { letter-spacing: 0; }

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  color: var(--ink-text);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gap); }

/* ---------- type helpers ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--steel);
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--ember), var(--signal));
}
.eyebrow.on-dark { color: var(--signal-soft); }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; letter-spacing: -.015em; }
.h-xl { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; }
.h-lg { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.h-md { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.28rem); color: var(--steel-dk); line-height: 1.55; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--mono); font-size: .82rem; letter-spacing: .04em;
  font-weight: 500; padding: .85rem 1.5rem; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(100deg, var(--ember), var(--signal)); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--ink-text); background: #fff; }
.btn-ghost.on-dark { border-color: var(--line-dk); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: var(--signal); }
.btn .arw { transition: transform .18s ease; }
.btn:hover .arw { transform: translateX(3px); }

/* =========================================================================
   HEADER / NAV
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,11,20,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dk);
}
.nav { display: flex; align-items: center; gap: 1.5rem; height: 70px; }
.brand { display: flex; align-items: center; gap: .7rem; color: #fff; flex-shrink: 0; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 50%; position: relative; flex-shrink: 0;
  background: radial-gradient(circle at 50% 42%, rgba(34,149,210,.35) 0, transparent 60%), var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.06);
}
.brand .mark::before {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  background: conic-gradient(from 220deg, var(--ember), transparent 25%, transparent 62%, var(--signal));
  -webkit-mask: radial-gradient(circle, transparent 55%, #000 57%);
  mask: radial-gradient(circle, transparent 55%, #000 57%);
}
.brand b { font-family: var(--display); font-weight: 700; font-size: 1.02rem; letter-spacing: .01em; }
.brand span { color: var(--steel); font-size: .72rem; font-family: var(--mono); letter-spacing: .04em; }

.nav-links { display: flex; align-items: center; gap: .3rem; margin-left: auto; }
.nav-links > li { position: relative; }
.nav-links a, .nav-links .navtop {
  display: inline-flex; align-items: center; gap: .35rem;
  color: #C3D2E4; font-size: .92rem; padding: .55rem .8rem; border-radius: var(--radius);
  transition: color .15s ease, background .15s ease; cursor: pointer;
}
.nav-links a:hover, .nav-links .navtop:hover, .nav-links li:hover .navtop { color: #fff; background: rgba(255,255,255,.06); }
.nav-links .caret { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .6; }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 620px;
  background: var(--nebula); border: 1px solid var(--line-dk); border-radius: var(--radius-lg);
  padding: 1rem; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  box-shadow: 0 24px 60px rgba(0,0,0,.5); display: grid; grid-template-columns: 1fr 1fr; gap: .3rem;
}
.nav-links li:hover .dropdown, .nav-links li:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown.single { grid-template-columns: 1fr; min-width: 300px; }
.dd-item { display: block; padding: .7rem .8rem; border-radius: var(--radius); }
.dd-item:hover { background: rgba(255,255,255,.05); }
.dd-item .tt { color: #fff; font-weight: 500; font-size: .92rem; display: flex; align-items: center; gap: .5rem; }
.dd-item .ds { color: var(--steel); font-size: .78rem; margin-top: .15rem; }
.dd-item .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot.event { background: var(--ember); } .dot.digital { background: var(--signal); }

.lang-switch { display: flex; gap: .1rem; margin-left: .8rem; padding: .2rem; border: 1px solid var(--line-dk); border-radius: 30px; }
.lang-switch a { padding: .28rem .6rem; font-family: var(--mono); font-size: .74rem; color: var(--steel); border-radius: 20px; }
.lang-switch a[aria-current="true"] { background: linear-gradient(100deg, var(--ember), var(--signal)); color: #fff; }

.nav-cta { margin-left: .6rem; }
.hamburger { display: none; margin-left: auto; background: none; border: 1px solid var(--line-dk); border-radius: var(--radius); width: 42px; height: 40px; cursor: pointer; flex-direction: column; gap: 4px; align-items: center; justify-content: center; }
.hamburger span { width: 18px; height: 2px; background: #fff; border-radius: 2px; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; padding: clamp(4rem, 10vw, 7rem) 0 clamp(3.5rem, 7vw, 5rem); }
.hero::before { /* starfield */
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    radial-gradient(1px 1px at 20% 30%, #fff, transparent),
    radial-gradient(1px 1px at 65% 15%, #B9DCF3, transparent),
    radial-gradient(1px 1px at 80% 55%, #fff, transparent),
    radial-gradient(1px 1px at 35% 70%, #F9C1DF, transparent),
    radial-gradient(1.5px 1.5px at 50% 45%, #fff, transparent),
    radial-gradient(1px 1px at 12% 80%, #B9DCF3, transparent);
}
.hero::after { /* nebula glow */
  content: ""; position: absolute; top: -30%; right: -10%; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(34,149,210,.22), transparent 60%), radial-gradient(circle at 70% 70%, rgba(230,7,126,.16), transparent 55%);
  filter: blur(20px); pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { max-width: 15ch; margin-top: 1.1rem; }
.hero .grad { background: linear-gradient(100deg, var(--ember-soft), var(--signal-soft)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #A9BCD6; max-width: 54ch; margin-top: 1.3rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* the signature: duality meridian */
.meridian { position: relative; z-index: 2; margin-top: clamp(2.5rem, 6vw, 4rem); }
.meridian .line { height: 1px; background: linear-gradient(90deg, var(--ember) 0%, rgba(255,255,255,.25) 50%, var(--signal) 100%); }
.meridian .row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: start; margin-top: 1.3rem; }
.meridian .pole { display: flex; flex-direction: column; gap: .3rem; }
.meridian .pole.right { text-align: right; align-items: flex-end; }
.meridian .pole .k { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.meridian .pole.left .k { color: var(--ember-soft); }
.meridian .pole.right .k { color: var(--signal-soft); }
.meridian .pole .v { color: #D3DFEC; font-size: .95rem; max-width: 30ch; }
.meridian .core { width: 46px; height: 46px; border-radius: 50%; position: relative; align-self: center;
  background: var(--ink); box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 0 30px rgba(34,149,210,.4); }
.meridian .core::before { content:""; position:absolute; inset:-3px; border-radius:50%;
  background: conic-gradient(from 200deg, var(--ember), transparent 30%, transparent 60%, var(--signal));
  -webkit-mask: radial-gradient(circle, transparent 52%, #000 54%); mask: radial-gradient(circle, transparent 52%, #000 54%); }

/* =========================================================================
   SECTIONS
   ========================================================================= */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section.tight { padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.section.dark { background: var(--space); color: #fff; }
.section.mist { background: var(--mist); }
.section-head { max-width: 62ch; }
.section-head .lead { margin-top: 1rem; }
.section.dark .lead { color: #A9BCD6; }

.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-top: 2.5rem; }
.section.dark .stat-strip { background: var(--line-dk); border-color: var(--line-dk); }
.stat { background: var(--paper); padding: 1.5rem 1.3rem; }
.section.dark .stat { background: var(--nebula); }
.stat .n { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem,3vw,2.3rem);
  background: linear-gradient(100deg, var(--ember), var(--signal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .l { font-size: .82rem; color: var(--steel); margin-top: .3rem; }

/* two business lines */
.lines { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; margin-top: 2.5rem; }
.line-card { position: relative; padding: 2rem; border-radius: var(--radius-lg); border: 1px solid var(--line-dk); overflow: hidden; background: var(--nebula); }
.line-card.event { background: linear-gradient(160deg, rgba(230,7,126,.14), var(--nebula) 60%); }
.line-card.digital { background: linear-gradient(160deg, rgba(34,149,210,.14), var(--nebula) 60%); }
.line-card .tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.line-card.event .tag { color: var(--ember-soft); } .line-card.digital .tag { color: var(--signal-soft); }
.line-card h3 { color: #fff; margin: .7rem 0 .5rem; }
.line-card p { color: #B9C1D6; font-size: .95rem; }
.line-card ul { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .5rem; }
.line-card li { color: #D3DFEC; font-size: .9rem; padding-left: 1.4rem; position: relative; }
.line-card li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 2px; }
.line-card.event li::before { background: var(--ember); } .line-card.digital li::before { background: var(--signal); }

/* service / generic card grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-top: 2.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; margin-top: 2.5rem; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(18,23,42,.08); border-color: transparent; }
.card .kicker { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); display: flex; align-items: center; gap: .5rem; }
.card .kicker .dot { width: 7px; height: 7px; border-radius: 50%; }
.card h3 { font-size: 1.18rem; margin: .8rem 0 .5rem; color: var(--ink-text); }
.card p { color: var(--steel-dk); font-size: .93rem; flex-grow: 1; }
.card .more { margin-top: 1.1rem; font-family: var(--mono); font-size: .8rem; color: var(--signal); display: inline-flex; align-items: center; gap: .4rem; }
.card:hover .more .arw { transform: translateX(3px); }
.card .arw { transition: transform .18s ease; }
.card.event:hover { border-top: 2px solid var(--ember); }
.card.digital:hover { border-top: 2px solid var(--signal); }

/* case cards */
.case-card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; transition: transform .18s ease, box-shadow .18s ease; }
.case-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(18,23,42,.1); }
.case-card .thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--nebula), var(--nebula-2)); position: relative; display: flex; align-items: flex-end; padding: 1rem; }
.case-card .thumb::after { content:""; position:absolute; inset:0; background-image: radial-gradient(1px 1px at 30% 40%,#fff,transparent),radial-gradient(1px 1px at 70% 60%,#B9DCF3,transparent); opacity:.6; }
.case-card .thumb .badge { position: relative; z-index: 1; font-family: var(--mono); font-size: .68rem; letter-spacing:.1em; text-transform: uppercase; color:#fff; background: rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.2); padding:.3rem .6rem; border-radius: 30px; }
.case-card .body { padding: 1.4rem; }
.case-card .meta { font-family: var(--mono); font-size: .72rem; color: var(--steel); letter-spacing: .04em; }
.case-card h3 { font-size: 1.1rem; margin: .5rem 0; }
.case-card p { font-size: .9rem; color: var(--steel-dk); }
.case-card .svc { margin-top: .9rem; font-size: .8rem; color: var(--signal); font-family: var(--mono); }

/* =========================================================================
   SERVICE / CONTENT PAGE
   ========================================================================= */
.page-hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; padding: clamp(3rem,7vw,5rem) 0 clamp(2.5rem,5vw,3.5rem); }
.page-hero::after { content:""; position:absolute; top:-40%; right:-15%; width:60vw; height:60vw; max-width:700px; max-height:700px; background: radial-gradient(circle, rgba(34,149,210,.18), transparent 60%); filter: blur(10px); }
.page-hero.event::after { background: radial-gradient(circle, rgba(230,7,126,.2), transparent 60%); }
.page-hero .wrap { position: relative; z-index: 2; }
.breadcrumb { font-family: var(--mono); font-size: .74rem; color: var(--steel); margin-bottom: 1rem; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: .5; margin: 0 .4rem; }
.page-hero h1 { max-width: 20ch; margin: .6rem 0 1rem; }
.page-hero .lead { color: #A9BCD6; max-width: 58ch; }
.line-flag { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.line-flag .dot { width: 8px; height: 8px; border-radius: 50%; }
.line-flag.event { color: var(--ember-soft); } .line-flag.event .dot { background: var(--ember); }
.line-flag.digital { color: var(--signal-soft); } .line-flag.digital .dot { background: var(--signal); }

.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.1rem; color: var(--steel-dk); }
.prose h2 { font-size: clamp(1.5rem,3vw,2rem); margin: 2.5rem 0 1rem; }
.offer-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .1rem; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.offer-list li { padding: 1.1rem 1.3rem; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; gap: .9rem; font-size: .98rem; }
.offer-list li:last-child { border-bottom: none; }
.offer-list li .num { font-family: var(--mono); font-size: .78rem; color: var(--signal); flex-shrink: 0; padding-top: .1rem; }
.page-hero.event ~ * .offer-list li .num, .offer-list.event li .num { color: var(--ember); }

/* FAQ */
.faq-cat { margin-top: 2.5rem; }
.faq-cat > h2 { font-size: 1.3rem; display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.faq-cat > h2 .dot { width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(100deg,var(--ember),var(--signal)); }
details.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .6rem; background: #fff; overflow: hidden; }
details.faq-item summary { padding: 1.1rem 1.3rem; cursor: pointer; font-weight: 500; font-family: var(--display); font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; font-family: var(--mono); color: var(--signal); font-size: 1.3rem; flex-shrink: 0; transition: transform .2s ease; }
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item .ans { padding: 0 1.3rem 1.2rem; color: var(--steel-dk); font-size: .96rem; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,3.5rem); margin-top: 2.5rem; }
.field { display: block; margin-bottom: 1rem; }
.field label { display: block; font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); margin-bottom: .4rem; }
.field input, .field select, .field textarea { width: 100%; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--body); font-size: .95rem; background: #fff; color: var(--ink-text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--signal); outline-offset: 1px; border-color: transparent; }
.contact-detail { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-detail .k { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.contact-detail .v { font-size: 1.05rem; margin-top: .2rem; }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content:""; position:absolute; inset:0; background: linear-gradient(90deg, rgba(230,7,126,.12), transparent 40%, transparent 60%, rgba(34,149,210,.12)); }
.cta-band .wrap { position: relative; z-index: 2; text-align: center; padding: clamp(3rem,6vw,4.5rem) var(--gap); }
.cta-band h2 { max-width: 22ch; margin: 0 auto 1rem; }
.cta-band .lead { color: #A9BCD6; max-width: 50ch; margin: 0 auto 1.8rem; }
.cta-band .hero-cta { justify-content: center; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: var(--ink); color: #C3D2E4; padding: clamp(3rem,6vw,4.5rem) 0 2rem; border-top: 1px solid var(--line-dk); }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.foot-brand .brand { margin-bottom: 1rem; }
.foot-brand p { font-size: .9rem; color: var(--steel); max-width: 34ch; }
.foot-col h4 { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.foot-col a { display: block; font-size: .9rem; padding: .3rem 0; color: #A9B2C8; }
.foot-col a:hover { color: #fff; }
.foot-social { display: flex; gap: .5rem; margin-top: 1.2rem; flex-wrap: wrap; }
.foot-social a { font-family: var(--mono); font-size: .74rem; padding: .35rem .7rem; border: 1px solid var(--line-dk); border-radius: 30px; color: #A9B2C8; }
.foot-social a:hover { border-color: var(--signal); color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dk); font-size: .8rem; color: var(--steel); }
.foot-bottom .legal-name { color: #A9B2C8; }
.foot-nap { font-size: .82rem; color: var(--steel); line-height: 1.8; margin-top: .8rem; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 940px) {
  .two-col, .contact-grid { grid-template-columns: 1fr; }
  .lines, .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-links, .lang-switch.desktop, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 70px; left: 0; right: 0;
    background: var(--nebula); border-bottom: 1px solid var(--line-dk); padding: 1rem; gap: .2rem; margin: 0;
  }
  .nav-links.open .dropdown { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; box-shadow: none; grid-template-columns: 1fr; background: transparent; border: none; padding: .3rem 0 .3rem 1rem; }
  .meridian .row { grid-template-columns: 1fr; }
  .meridian .pole.right { text-align: left; align-items: flex-start; }
  .meridian .core { display: none; }
}
@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
  .foot-top, .stat-strip { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}

/* focus visibility */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--signal); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- FAQ hub cards + category sub-pages ---------- */
.faq-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:1rem; margin-top:1.4rem; }
.faq-card { display:flex; flex-direction:column; gap:.5rem; padding:1.3rem 1.4rem; border:1px solid var(--line); border-radius:var(--radius-lg); background:#fff; text-decoration:none; color:var(--ink-text); transition:border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.faq-card:hover { border-color:var(--signal); transform:translateY(-2px); box-shadow:0 8px 24px rgba(34,149,210,.10); }
.faq-card h3 { font-size:1.06rem; }
.faq-card p { font-size:.9rem; color:var(--steel-dk); line-height:1.5; margin:0; flex:1; }
.faq-count { font-family:var(--mono); font-size:.72rem; color:var(--signal); letter-spacing:.02em; }
.faq-hub-h2 { font-size:1.4rem; margin-bottom:.2rem; }
.faq-back { margin-top:2rem; font-family:var(--mono); font-size:.82rem; }
.faq-others { margin-top:2.4rem; padding-top:1.6rem; border-top:1px solid var(--line); }
.faq-others h3 { font-size:1rem; margin-bottom:.8rem; }
.faq-others ul { list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; gap:.5rem; }
.faq-others li a { display:inline-block; padding:.4rem .85rem; border:1px solid var(--line); border-radius:100px; font-size:.85rem; text-decoration:none; color:var(--steel-dk); }
.faq-others li a:hover { border-color:var(--signal); color:var(--ink-text); }

/* =========================================================================
   v4 — LIGHT TWO-TIER HEADER + FULL-BLEED HERO VIDEO
   (appended: overrides the v3 dark header / starfield hero above)
   ========================================================================= */
:root { --hdr-top-h: 78px; --hdr-nav-h: 52px; --hdr-h: 130px; }

/* ---------- header shell ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: #fff; backdrop-filter: none;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(12,17,32,.08); }

.hdr-top-in {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: var(--hdr-top-h); transition: height .2s ease;
}
.site-header.scrolled .hdr-top-in { height: 62px; }

.brand { display: flex; align-items: center; gap: .8rem; color: var(--ink-text); flex-shrink: 0; }
.brand-logo { width: 46px; height: 46px; object-fit: contain; transition: width .2s ease, height .2s ease; }
.site-header.scrolled .brand-logo { width: 38px; height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-family: var(--display); font-weight: 700; font-size: 1.06rem; letter-spacing: .01em; color: var(--ink-text); }
.brand-text span { color: var(--steel); font-size: .68rem; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; }

.hdr-top-right { display: flex; align-items: center; gap: .9rem; }

/* ---------- language switch (light) ---------- */
.lang-switch { display: flex; gap: .1rem; margin-left: 0; padding: .2rem; border: 1px solid var(--line); border-radius: 30px; background: #fff; }
.lang-switch a { padding: .3rem .68rem; font-family: var(--mono); font-size: .74rem; color: var(--steel-dk); border-radius: 20px; }
.lang-switch a:hover { color: var(--ink-text); background: var(--mist); }
.lang-switch a[aria-current="true"] { background: linear-gradient(100deg, var(--ember), var(--signal)); color: #fff; }

/* ---------- nav row ---------- */
.hdr-main { background: #fff; }
.hdr-main-in { display: flex; align-items: center; justify-content: center; gap: .1rem; height: var(--hdr-nav-h); }
.nav-links { display: flex; align-items: center; gap: .1rem; margin-left: 0; list-style: none; padding: 0; }
.nav-links > li { position: relative; }
.nav-links a, .nav-links .navtop {
  position: relative; display: inline-flex; align-items: center; gap: .4rem;
  color: var(--ink-text); font-size: .93rem; font-weight: 600; letter-spacing: .005em;
  padding: .55rem .85rem; border-radius: var(--radius); background: none;
  transition: color .15s ease;
}
.nav-links a::after, .nav-links .navtop::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .18rem; height: 2px;
  background: linear-gradient(90deg, var(--ember), var(--signal));
  transform: scaleX(0); transform-origin: left; transition: transform .2s ease; border-radius: 2px;
}
.nav-links a:hover, .nav-links .navtop:hover,
.nav-links li:hover .navtop, .nav-links li:focus-within .navtop { color: var(--signal); background: none; }
.nav-links a:hover::after, .nav-links li:hover .navtop::after, .nav-links li:focus-within .navtop::after { transform: scaleX(1); }
.nav-links .caret { width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .55; }

/* ---------- dropdown (light) ---------- */
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px); min-width: 640px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: .9rem; box-shadow: 0 26px 60px rgba(12,17,32,.14);
  display: grid; grid-template-columns: 1fr 1fr; gap: .2rem;
  opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-links li:hover .dropdown, .nav-links li:focus-within .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown.single { grid-template-columns: 1fr; min-width: 330px; }
.dd-item:hover { background: var(--mist); }
.dd-item .tt { color: var(--ink-text); font-weight: 600; }
.dd-item .ds { color: var(--steel); }

/* ---------- social icon rail ---------- */
.nav-social { display: flex; align-items: center; gap: .45rem; margin-left: 1rem; padding-left: 1rem; border-left: 1px solid var(--line); }
.nav-social a {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--steel-dk); background: #fff;
  transition: transform .15s ease, border-color .15s ease, color .15s ease, background .15s ease;
}
.nav-social a:hover { transform: translateY(-2px); color: #fff; border-color: transparent; background: linear-gradient(140deg, var(--ember), var(--signal)); }
.nav-social svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- hamburger (light) ---------- */
.hamburger { display: none; margin-left: 0; background: none; border: 1px solid var(--line); border-radius: var(--radius); width: 44px; height: 42px; cursor: pointer; flex-direction: column; gap: 4px; align-items: center; justify-content: center; }
.hamburger span { width: 19px; height: 2px; background: var(--ink-text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================================
   HERO VIDEO
   ========================================================================= */
.hero-video {
  position: relative; overflow: hidden; background: var(--ink); color: #fff;
  min-height: calc(100svh - var(--hdr-h));
  display: flex; align-items: flex-end;
}
.hero-media {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%; z-index: 0;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8,11,20,.42) 0%, rgba(8,11,20,0) 26%, rgba(8,11,20,.10) 52%, rgba(8,11,20,.86) 100%),
    linear-gradient(90deg, rgba(8,11,20,.55) 0%, rgba(8,11,20,0) 62%);
}
.hero-video .wrap.hero-inner { position: relative; z-index: 2; padding-block: clamp(2.6rem, 6vw, 4.8rem); width: 100%; }
.hero-video h1 { max-width: 17ch; margin-top: 1.1rem; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero-video .grad { background: linear-gradient(100deg, var(--ember-soft), var(--signal-soft)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-video .lead { color: #DCE2F0; max-width: 56ch; margin-top: 1.2rem; text-shadow: 0 1px 20px rgba(0,0,0,.4); }
.hero-video .hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.hero-scroll {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 1.1rem; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.10);
  backdrop-filter: blur(6px); display: grid; place-items: center; color: #fff;
  animation: heroBob 2.4s ease-in-out infinite;
}
.hero-scroll:hover { background: rgba(255,255,255,.2); }
.hero-scroll svg { width: 14px; height: 14px; fill: currentColor; }
@keyframes heroBob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 5px); } }

/* meridian moved out of hero into its own dark strip */
.meridian-strip { background: var(--ink); color: #fff; padding: clamp(1.8rem, 4vw, 2.8rem) 0; border-top: 1px solid var(--line-dk); }
.meridian-strip .meridian { margin-top: 0; }

/* =========================================================================
   FLOATING WIDGETS (contact bubble + back to top)
   ========================================================================= */
.float-stack { position: fixed; right: 16px; bottom: 16px; z-index: 70; display: flex; align-items: center; gap: .55rem; }
.float-bubble {
  background: #fff; color: var(--ink-text); border: 1px solid var(--line);
  border-radius: 999px; padding: .58rem 1.05rem; font-size: .84rem; font-weight: 600;
  box-shadow: 0 10px 30px rgba(12,17,32,.14); white-space: nowrap;
}
.float-btn {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--ember), var(--signal));
  box-shadow: 0 12px 30px rgba(34,149,210,.35); transition: transform .15s ease;
}
.float-btn:hover { transform: translateY(-3px) scale(1.03); }
.float-btn svg { width: 24px; height: 24px; fill: currentColor; }

.to-top {
  position: fixed; left: 16px; bottom: 16px; z-index: 70;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255,255,255,.92); color: var(--ink-text);
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(12,17,32,.12);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 15px; height: 15px; fill: currentColor; }

/* =========================================================================
   RESPONSIVE (v4)
   ========================================================================= */
@media (max-width: 1080px) {
  .nav-links a, .nav-links .navtop { padding: .55rem .6rem; font-size: .88rem; }
  .nav-social { margin-left: .6rem; padding-left: .6rem; }
}
@media (max-width: 900px) {
  :root { --hdr-h: 62px; }
  .hamburger { display: flex; }
  .hdr-top-in { height: 62px; }
  .site-header.scrolled .hdr-top-in { height: 62px; }
  .hdr-top-right .nav-cta { display: none; }
  .hdr-top-right .lang-switch.desktop { display: flex; }

  .hdr-main { display: none; }
  .hdr-main.open {
    display: block; position: fixed; top: 62px; left: 0; right: 0;
    max-height: calc(100dvh - 62px); overflow-y: auto;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(12,17,32,.12);
  }
  .hdr-main.open .hdr-main-in { flex-direction: column; align-items: stretch; height: auto; padding-block: 1rem 1.4rem; }
  .nav-links { flex-direction: column; align-items: stretch; width: 100%; gap: .1rem; }
  .nav-links a, .nav-links .navtop { padding: .75rem .4rem; font-size: 1rem; justify-content: space-between; }
  .nav-links a::after, .nav-links .navtop::after { display: none; }
  .dropdown, .dropdown.single {
    position: static; transform: none; opacity: 1; visibility: visible; min-width: 0;
    grid-template-columns: 1fr; background: var(--mist); border: none; box-shadow: none;
    padding: .3rem .5rem; margin: 0 0 .5rem; border-radius: var(--radius);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav-links li.open .dropdown { max-height: 1400px; }
  .nav-links li.open .navtop .caret { transform: rotate(-135deg) translateY(-2px); }
  .nav-social { justify-content: center; margin: .8rem 0 0; padding: .9rem 0 0; border-left: none; border-top: 1px solid var(--line); }
  .mobile-lang { display: block; }
  .hero-video { min-height: calc(100svh - 62px); align-items: flex-end; }
  .hero-video h1 { max-width: 100%; }
  .float-bubble { display: none; }
  .float-btn { width: 50px; height: 50px; }
}
@media (min-width: 901px) { .mobile-lang { display: none; } }
@media (max-width: 560px) {
  .brand-text b { font-size: .95rem; }
  .brand-text span { font-size: .6rem; }
  .hero-video { min-height: 78svh; }
}
@media (prefers-reduced-motion: reduce) { .hero-scroll { animation: none; } }

/* --- v4.1 small-screen header fit --- */
@media (max-width: 900px) {
  .hdr-top-in { gap: .5rem; }
  .brand { min-width: 0; }
  .brand-text { min-width: 0; }
  .hdr-top-right { gap: .5rem; flex-shrink: 0; }
}
@media (max-width: 620px) {
  .hdr-top-right .lang-switch.desktop { display: none; }
  .brand-logo, .site-header.scrolled .brand-logo { width: 38px; height: 38px; }
  .hero-scroll { display: none; }
  .hero-video .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
}

/* =========================================================================
   v4.1 — hero video is pure video; copy moves to the intro strip beneath
   ========================================================================= */
.hero-video { align-items: stretch; }
/* much lighter scrim: nothing to protect now, just a top tuck under the
   white header and a soft foot that hands off to the dark intro strip */
.hero-scrim {
  background:
    linear-gradient(180deg, rgba(8,11,20,.22) 0%, rgba(8,11,20,0) 18%, rgba(8,11,20,0) 72%, rgba(8,11,20,.55) 100%);
}
.hero-video .wrap.hero-inner { display: none; }

.hero-intro { background: var(--ink); color: #fff; padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
.hero-intro .hero-intro-copy { max-width: 900px; }
.hero-intro h1 { max-width: 20ch; margin-top: 1.1rem; }
.hero-intro .grad { background: linear-gradient(100deg, var(--ember-soft), var(--signal-soft)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-intro .lead { color: #A9BCD6; max-width: 58ch; margin-top: 1.3rem; }
.hero-intro .hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-intro .meridian { margin-top: clamp(2.5rem, 6vw, 4rem); }
@media (max-width: 900px) {
  .hero-intro .meridian .row { grid-template-columns: 1fr; }
  .hero-intro .meridian .pole.right { text-align: left; align-items: flex-start; }
  .hero-intro .meridian .core { display: none; }
}
@media (max-width: 620px) { .hero-scroll { display: none; } }

/* =========================================================================
   v4.2 — logo-derived palette + header hairline divider
   ========================================================================= */
.hdr-main { border-top: 1px solid var(--line); }
@media (max-width: 900px) { .hdr-main { border-top: none; } }

/* three-stop gradients so all four logo colors carry across the site */
.btn-primary { background: linear-gradient(100deg, var(--magenta) 0%, var(--azure) 62%, var(--deep) 100%); }
.lang-switch a[aria-current="true"] { background: linear-gradient(100deg, var(--magenta), var(--azure)); }
.eyebrow::before { background: linear-gradient(90deg, var(--magenta), var(--azure)); }
.nav-social a:hover { background: linear-gradient(140deg, var(--magenta), var(--azure)); }
.float-btn { background: linear-gradient(140deg, var(--magenta), var(--azure)); box-shadow: 0 12px 30px rgba(34,149,210,.35); }
.meridian .line { background: linear-gradient(90deg, var(--magenta) 0%, var(--sky) 50%, var(--azure) 100%); }
.hero-intro .grad, .hero-video .grad { background: linear-gradient(100deg, var(--ember-soft), var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* =========================================================================
   v4.3 — header spans the full viewport (body content keeps its 1200px wrap)
   ========================================================================= */
.site-header .wrap {
  max-width: none;
  padding-inline: clamp(1.1rem, 4vw, 4rem);
}
/* nav row stays optically centred; the social rail rides the right edge */
.hdr-main-in { position: relative; justify-content: center; }
@media (min-width: 901px) {
  .hdr-main-in .nav-social { position: absolute; right: clamp(1.1rem, 4vw, 4rem); margin-left: 0; }
}
@media (max-width: 900px) {
  .hdr-main.open .hdr-main-in { position: static; }
}

/* =========================================================================
   v4.5 — slimmed homepage: clickable pillar cards + secondary tiles
   ========================================================================= */
a.line-card { display: block; color: inherit; transition: transform .18s ease, border-color .18s ease; }
a.line-card:hover { transform: translateY(-3px); }
a.line-card.event:hover { border-color: var(--magenta); }
a.line-card.digital:hover { border-color: var(--azure); }
.line-card .more { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.4rem;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; color: #fff; }

.tile-section { padding: 0; }
.tile-section .wrap { max-width: none; padding-inline: 0; }
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(260px, 26vw, 340px); padding: clamp(1.8rem, 3vw, 2.8rem);
  display: flex; flex-direction: column; justify-content: flex-end; gap: .5rem; color: #fff;
}
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; transition: transform .5s ease, filter .3s ease;
}
.tile.t1::before { background: linear-gradient(150deg, var(--magenta) 0%, var(--navy) 90%); }
.tile.t2::before { background: linear-gradient(150deg, var(--azure) 0%, var(--navy) 90%); }
.tile.t3::before { background: linear-gradient(150deg, var(--navy) 0%, var(--deep) 55%, var(--azure) 100%); }
.tile:hover::before { transform: scale(1.06); filter: brightness(1.08); }
.tile h3 { font-family: var(--display); font-size: clamp(1.35rem, 2.2vw, 1.8rem); font-weight: 700; }
.tile p { color: rgba(255,255,255,.85); font-size: .95rem; max-width: 32ch; }
.tile .more { display: inline-flex; align-items: center; gap: .45rem; margin-top: .6rem;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; }
.tile:hover .arw { transform: translateX(4px); }

@media (max-width: 900px) { .tile-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   v4.6 — intro strip gets the low-poly brand backdrop, white copy
   ========================================================================= */
.hero-intro {
  position: relative; isolation: isolate;
  background-color: var(--ink);
  background-image: url("/assets/img/intro-bg.jpg");
  background-image: image-set(url("/assets/img/intro-bg.webp") type("image/webp"),
                              url("/assets/img/intro-bg.jpg") type("image/jpeg"));
  background-size: cover; background-position: center; background-repeat: no-repeat;
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2.5rem, 5vw, 3.5rem);
}
/* readability scrim — the art is dark already, this just steadies the left column */
.hero-intro::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8,20,40,.72) 0%, rgba(8,20,40,.38) 55%, rgba(8,20,40,.20) 100%);
}
.hero-intro .wrap { position: relative; z-index: 1; }

/* copy goes white on the artwork */
.hero-intro h1 { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero-intro .lead { color: rgba(255,255,255,.92); text-shadow: 0 1px 16px rgba(0,0,0,.35); }
.hero-intro .eyebrow.on-dark { color: #fff; }
.hero-intro .meridian .pole .v { color: rgba(255,255,255,.90); }
.hero-intro .meridian .pole.left .k { color: var(--ember-soft); }
.hero-intro .meridian .pole.right .k { color: var(--sky); }
.hero-intro .btn-ghost.on-dark { border-color: rgba(255,255,255,.45); }
.hero-intro .btn-ghost.on-dark:hover { border-color: #fff; background: rgba(255,255,255,.08); }

@media (max-width: 900px) {
  .hero-intro {
    background-image: url("/assets/img/intro-bg-sm.jpg");
    background-image: image-set(url("/assets/img/intro-bg-sm.webp") type("image/webp"),
                                url("/assets/img/intro-bg-sm.jpg") type("image/jpeg"));
  }
  .hero-intro::before { background: linear-gradient(180deg, rgba(8,20,40,.66), rgba(8,20,40,.78)); }
}

/* =========================================================================
   v4.7 — auto-hiding header · full-screen blocks · flat brand colors
          colour arc: video → polygon → deep navy → tiles → black → white
   ========================================================================= */

/* ---------- 1. header hides on scroll down, returns on scroll up ---------- */
.site-header { transition: transform .32s cubic-bezier(.4,0,.2,1), box-shadow .2s ease; will-change: transform; }
.site-header.hide { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }

/* ---------- 2. brand lockup is one line now ---------- */
.brand-text { justify-content: center; }
.brand-text b { font-size: 1.02rem; letter-spacing: .01em; white-space: nowrap; }
@media (max-width: 620px) { .brand-text b { font-size: .84rem; } }
@media (max-width: 380px) { .brand-text { display: none; } }
.foot-brand .brand { display: flex; align-items: center; gap: .8rem; }
.foot-brand .brand-logo { width: 46px; height: 46px; }

/* ---------- 3. no gradients: flat logo colours everywhere ---------- */
.btn-primary { background: var(--magenta); color: #fff; }
.btn-primary:hover { background: #c40569; filter: none; }

.lang-switch { border: none; background: none; padding: 0; gap: .3rem; }
.lang-switch a {
  min-width: 40px; padding: .34rem .5rem; text-align: center; border-radius: 6px;
  color: #fff; font-weight: 600; opacity: .48; transition: opacity .15s ease, transform .15s ease;
}
.lang-switch a:nth-child(1) { background: var(--sky); color: var(--navy); }   /* light  */
.lang-switch a:nth-child(2) { background: var(--azure); }                     /* mid    */
.lang-switch a:nth-child(3) { background: var(--navy); }                      /* deep   */
.lang-switch a:hover { opacity: .8; background: inherit; }
.lang-switch a[aria-current="true"] { opacity: 1; background: inherit; box-shadow: 0 2px 10px rgba(16,35,63,.28); }
.lang-switch a:nth-child(1)[aria-current="true"] { background: var(--sky); }
.lang-switch a:nth-child(2)[aria-current="true"] { background: var(--azure); }
.lang-switch a:nth-child(3)[aria-current="true"] { background: var(--navy); }

.nav-social a:hover { background: var(--azure); }
.float-btn { background: var(--magenta); box-shadow: 0 12px 30px rgba(230,7,126,.32); }
.eyebrow::before { background: var(--magenta); }
/* hard-stop two-tone, not a blend */
.meridian .line { background: linear-gradient(90deg, var(--magenta) 0 50%, var(--azure) 50% 100%); }
.hero-intro .grad, .hero-video .grad { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--sky); }
.line-card.event { background: rgba(230,7,126,.10); }
.line-card.digital { background: rgba(34,149,210,.10); }
.cta-band::before { display: none; }
.tile.t1::before { background: var(--azure); }   /* light  */
.tile.t2::before { background: var(--deep); }    /* mid    */
.tile.t3::before { background: var(--navy); }    /* deep   */
.tile:hover::before { transform: none; filter: brightness(1.14); }

/* ---------- 4. every block fills the viewport ---------- */
@media (min-width: 901px) {
  .hero-intro,
  .section.dark,
  .tile-section { min-height: 100svh; display: flex; align-items: center; }
  .hero-intro > .wrap,
  .section.dark > .wrap,
  .tile-section > .wrap { width: 100%; }
  .tile-grid { min-height: 74svh; }
  /* the last screen = black CTA on top, white footer beneath */
  .cta-band { min-height: 44svh; display: flex; align-items: center; }
  .site-footer { min-height: 56svh; display: flex; align-items: center; }
  .site-footer > .wrap { width: 100%; }
}

/* ---------- 5. colour arc ---------- */
.section.dark { background: #060E1C; }            /* deeper than the polygon strip */
.cta-band { background: #000; }                   /* black */
.cta-band .lead { color: rgba(255,255,255,.75); }

/* ---------- 6. footer goes white, matching the header ---------- */
.site-footer { background: #fff; color: var(--steel-dk); border-top: 1px solid var(--line); }
.site-footer .brand-text b { color: var(--ink-text); }
.foot-brand p { color: var(--steel); }
.foot-col h4 { color: var(--ink-text); }
.foot-col a { color: var(--steel-dk); }
.foot-col a:hover { color: var(--azure); }
.foot-social a { border: 1px solid var(--line); color: var(--steel-dk); background: #fff; }
.foot-social a:hover { border-color: var(--azure); color: var(--azure); }
.foot-nap { color: var(--steel); }
.foot-bottom { border-top: 1px solid var(--line); color: var(--steel); }
.foot-bottom .legal-name { color: var(--ink-text); }

/* ---------- 7. CTA headline stays on one line on desktop ---------- */
.cta-band h2 { max-width: none; font-size: clamp(1.5rem, 2.7vw, 2.6rem); }
@media (min-width: 1100px) { .cta-band h2 { white-space: nowrap; } }

/* --- v4.7.1: black CTA + white footer must total exactly one screen --- */
@media (min-width: 901px) {
  .cta-band { min-height: 38svh; }
  .cta-band .wrap { padding-block: clamp(2rem, 4vw, 3rem); }
  .site-footer { min-height: 0; padding: clamp(2.2rem, 4vw, 3.2rem) 0 1.4rem; }
  .foot-top { gap: 1.6rem; }
  .foot-col a { padding: .22rem 0; }
  .foot-social { margin-top: .9rem; }
}

/* --- v4.7.2: the closing screen = black CTA (flexes) + white footer (natural) --- */
@media (min-width: 901px) {
  .closing { min-height: 100svh; display: flex; flex-direction: column; }
  .cta-band { flex: 1 0 auto; min-height: 0; }
  .site-footer { flex: 0 0 auto; min-height: 0; }
}

/* --- v4.7.3: short viewports (1366x768, 1280x720 laptops) --- */
@media (min-width: 901px) and (max-height: 860px) {
  .cta-band .wrap { padding-block: 1.4rem; }
  .cta-band h2 { font-size: clamp(1.35rem, 2.1vw, 2rem); margin-bottom: .6rem; }
  .cta-band .lead { margin-bottom: 1.1rem; font-size: .95rem; }
  .site-footer { padding: 1.8rem 0 1rem; }
  .foot-top { gap: 1.2rem; }
  .foot-brand p { font-size: .84rem; }
  .foot-col a { padding: .16rem 0; font-size: .85rem; }
  .foot-social { margin-top: .7rem; }
  .foot-social a { padding: .3rem .6rem; font-size: .72rem; }
  .foot-bottom { margin-top: 1.2rem; padding-top: 1rem; font-size: .78rem; }
}

/* =========================================================================
   v4.9 — exact logo blues · photographic tiles
   ========================================================================= */

/* ---------- language pills: the three most distinct logo blues, always
     at full strength. The active one is marked by a ring, not by dimming
     the others (dimming was washing the brand colours out). ---------- */
.lang-switch a { opacity: 1; box-shadow: none; position: relative; }
.lang-switch a:nth-child(1) { background: #85CEF2; color: #10233F; }  /* logo light  */
.lang-switch a:nth-child(2) { background: #147FC3; color: #fff; }     /* logo mid    */
.lang-switch a:nth-child(3) { background: #1C417D; color: #fff; }     /* logo deep   */
.lang-switch a:hover { opacity: 1; transform: translateY(-1px); }
.lang-switch a[aria-current="true"] {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px currentColor;
}
.lang-switch a:nth-child(1)[aria-current="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #85CEF2; }
.lang-switch a:nth-child(2)[aria-current="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #147FC3; }
.lang-switch a:nth-child(3)[aria-current="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #1C417D; }
/* inside the dark mobile drawer the ring needs a dark inner gap */
.mobile-lang .lang-switch a[aria-current="true"] { box-shadow: 0 0 0 2px var(--mist), 0 0 0 3.5px currentColor; }

/* ---------- tiles: real photography, copy on the flat side ---------- */
.tile { justify-content: flex-end; }
.tile::before {
  background-size: cover; background-position: 22% center; background-repeat: no-repeat;
  transition: transform .6s ease;
}
.tile.t1::before {
}
.tile.t2::before {
}
.tile.t3::before {
}
/* scrim keeps the copy legible wherever the collage bleeds in */
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6,14,28,.30) 0%, rgba(6,14,28,.05) 38%, rgba(6,14,28,.72) 100%);
}
.tile:hover::before { transform: scale(1.04); filter: none; }
.tile h3, .tile p { text-shadow: 0 1px 18px rgba(0,0,0,.5); }
.tile p { color: rgba(255,255,255,.90); }
/* hairline between tiles reads better on photography than the light grid gap */
.tile-grid { background: rgba(255,255,255,.10); }

@media (max-width: 900px) {
  .tile::before { background-position: 30% center; }
}

/* =========================================================================
   v4.10 — tiles show the photography, copy still lands on the flat area
   ========================================================================= */
.tile::before {
  /* frame toward the collage side; the flat wedge stays under the copy */
  background-position: 68% center;
  background-size: cover;
}
/* stronger foot, lighter head: photography reads up top, copy reads down low */
.tile::after {
  background:
    linear-gradient(180deg, rgba(6,14,28,.08) 0%, rgba(6,14,28,0) 34%, rgba(6,14,28,.55) 72%, rgba(6,14,28,.90) 100%),
    linear-gradient(90deg, rgba(6,14,28,.55) 0%, rgba(6,14,28,.10) 46%, rgba(6,14,28,0) 100%);
}
.tile:hover::before { transform: scale(1.05); }
.tile h3, .tile p { text-shadow: 0 2px 20px rgba(0,0,0,.65); }

@media (max-width: 900px) {
  /* short, wide tiles on mobile — recentre so the collage still shows */
  .tile::before { background-position: 62% center; }
}

/* --- v4.10.1: the scrim was eating the photo; contrast had 16:1 of headroom --- */
.tile::before { background-position: 78% center; }
.tile::after {
  background:
    linear-gradient(180deg, rgba(6,14,28,0) 0%, rgba(6,14,28,0) 52%, rgba(6,14,28,.42) 76%, rgba(6,14,28,.80) 100%),
    linear-gradient(90deg, rgba(6,14,28,.34) 0%, rgba(6,14,28,.06) 40%, rgba(6,14,28,0) 100%);
}
@media (max-width: 900px) { .tile::before { background-position: 70% center; } }

/* =========================================================================
   v4.11 — tiles use the originals, untouched. Only the flat left/top
           was cropped away, so the whole frame is collage now.
   ========================================================================= */
.tile::before { background-position: center; background-size: cover; }
.tile.t1::before {
  background-image: url("/assets/img/tile-cases-v3.jpg");
  background-image: image-set(url("/assets/img/tile-cases-v3.webp") type("image/webp"),
                              url("/assets/img/tile-cases-v3.jpg") type("image/jpeg"));
}
.tile.t2::before {
  background-image: url("/assets/img/tile-about-v3.jpg");
  background-image: image-set(url("/assets/img/tile-about-v3.webp") type("image/webp"),
                              url("/assets/img/tile-about-v3.jpg") type("image/jpeg"));
}
.tile.t3::before {
  background-image: url("/assets/img/tile-contact-v3.jpg");
  background-image: image-set(url("/assets/img/tile-contact-v3.webp") type("image/webp"),
                              url("/assets/img/tile-contact-v3.jpg") type("image/jpeg"));
}
/* copy now sits on photography, so keep a foot scrim — nothing else */
.tile::after {
  background: linear-gradient(180deg, rgba(6,14,28,0) 0%, rgba(6,14,28,0) 46%,
                                      rgba(6,14,28,.45) 70%, rgba(6,14,28,.88) 100%);
}
@media (max-width: 900px) {
  .tile::before { background-position: center; }
  .tile.t1::before { background-image: image-set(url("/assets/img/tile-cases-sm-v3.webp") type("image/webp"), url("/assets/img/tile-cases-sm-v3.jpg") type("image/jpeg")); }
  .tile.t2::before { background-image: image-set(url("/assets/img/tile-about-sm-v3.webp") type("image/webp"), url("/assets/img/tile-about-sm-v3.jpg") type("image/jpeg")); }
  .tile.t3::before { background-image: image-set(url("/assets/img/tile-contact-sm-v3.webp") type("image/webp"), url("/assets/img/tile-contact-sm-v3.jpg") type("image/jpeg")); }
}

/* =========================================================================
   v4.12 — phone hero plays a vertical clip; desktop/tablet keep the wide one
   ========================================================================= */
@media (max-width: 767px) {
  /* a 9:16 clip should show whole, not be cropped like the wide cut.
     contain + a matching backdrop = full vertical frame, no ugly crop. */
  .hero-media.is-vertical {
    object-fit: cover;              /* fill the phone hero; vertical source matches portrait */
    object-position: center;
  }
  /* give the vertical hero a touch more height so the 9:16 frame breathes */
  .hero-video { min-height: calc(100svh - var(--hdr-h, 62px)); }
}
