/* =========================================================================
   ITFS x LIAFE - corporate platform stylesheet
   Structure and section rhythm follow the approved RoofX reference; palette,
   typography and components are the ITFS brand system.
   Sections:  1 tokens  2 reset  3 typography  4 layout  5 buttons  6 forms
              7 header  8 hero  9 cards 10 sections 11 footer 12 utilities
   ========================================================================= */

/* -- 1. tokens ---------------------------------------------------------- */
:root {
  /* brand */
  --navy:         #0B2545;
  --navy-deep:    #071B33;
  --navy-soft:    #12365F;
  --navy-line:    #1C4574;
  --green:        #13963A;   /* accents, badges, icons, headings 24px+ */
  --green-text:   #0E7A2E;   /* body-size green: #13963A is 3.85:1 on white */
  --green-deep:   #0A5824;
  --green-wash:   #E8F5ED;

  /* neutrals */
  --surface:      #F4F7F6;
  --surface-alt:  #EEF3F1;
  --white:        #FFFFFF;
  --text:         #1C1C1C;
  --muted:        #5A6472;
  --border:       #DCE4E8;
  --border-soft:  #E9EFF1;

  /* type */
  --font-head: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --fs-eyebrow: .78rem;
  --fs-small:   .875rem;
  --fs-body:    1rem;
  --fs-lead:    1.0625rem;
  --fs-h4:      clamp(1.0625rem, 1.4vw, 1.1875rem);
  --fs-h3:      clamp(1.25rem, 1.9vw, 1.5rem);
  --fs-h2:      clamp(1.75rem, 3.4vw, 2.625rem);
  --fs-h1:      clamp(2.125rem, 4.6vw, 3.5rem);

  /* space + shape */
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(4.5rem, 9vw, 7.5rem);
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(11, 37, 69, .06);
  --shadow-md: 0 12px 28px rgba(11, 37, 69, .10);
  --shadow-lg: 0 24px 56px rgba(11, 37, 69, .16);
  --ring: 0 0 0 3px rgba(19, 150, 58, .35);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 84px;
}

/* -- 2. reset ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0; background: var(--white); color: var(--text);
  font: 400 var(--fs-body)/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, picture, svg, video { max-width: 100%; display: block; }
img { height: auto; }
/* Line-icon set: soft rounded terminals + joins on every inline icon, matching
   the site's icon language. Only affects stroked shapes; filled marks (social)
   are untouched. Set here because presentation attributes on a <symbol> do not
   inherit into a <use> instance from the sprite's own ancestors. */
svg { stroke-linecap: round; stroke-linejoin: round; }
a { color: var(--green-text); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--navy); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--green); color: #fff; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

/* -- 3. typography ------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head); color: var(--navy);
  font-weight: 700; line-height: 1.18; margin: 0 0 .6em;
  letter-spacing: -.015em;
}
h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: var(--fs-h2); font-weight: 800; letter-spacing: -.02em; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
p  { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }
.lead { font-size: var(--fs-lead); color: var(--muted); line-height: 1.72; }
.muted { color: var(--muted); }
strong, b { font-weight: 600; color: var(--navy); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font: 700 var(--fs-eyebrow)/1 var(--font-head);
  letter-spacing: .14em; text-transform: uppercase; color: var(--green-text);
  margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--green); flex: none; }
.eyebrow--light { color: #7EE0A0; }
.eyebrow--light::before { background: #7EE0A0; }
.eyebrow--center { justify-content: center; }

/* -- 4. layout ---------------------------------------------------------- */
.container { width: min(100% - (var(--gutter) * 2), var(--container)); margin-inline: auto; }
.container--narrow { --container: 860px; }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * .62); }
.section--surface { background: var(--surface); }
.section--navy { background: var(--navy); color: #C7D5E4; }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.section--navy .lead, .section--navy .muted { color: #A9BDD2; }

.grid { display: grid; gap: clamp(1.25rem, 2.4vw, 1.875rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(clamp(260px, 44%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
         grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }

.section-head { max-width: 62ch; margin: 0 0 clamp(2rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: var(--fs-lead); margin-bottom: 0; }
.section-head--split { display: grid; gap: 1.5rem 3rem; max-width: none;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: end; }

/* -- 5. buttons --------------------------------------------------------- */
.btn {
  --btn-bg: var(--green); --btn-fg: #fff; --btn-bd: var(--green);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.7rem; border-radius: var(--radius); border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg); cursor: pointer;
  font: 700 .9375rem/1 var(--font-head); letter-spacing: .01em; text-align: center;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), color .18s var(--ease);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn--navy   { --btn-bg: var(--navy); --btn-bd: var(--navy); }
.btn--ghost  { --btn-bg: transparent; --btn-fg: var(--navy); --btn-bd: var(--border); }
.btn--ghost:hover { --btn-bg: var(--navy); --btn-fg: #fff; --btn-bd: var(--navy); }
.btn--light  { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.45); }
.btn--light:hover { --btn-bg: #fff; --btn-fg: var(--navy); --btn-bd: #fff; }
.btn--sm { padding: .7rem 1.15rem; font-size: .875rem; }
.btn--block { width: 100%; }
.btn svg { width: 16px; height: 16px; fill: currentColor; flex: none; }

/* Primary-CTA rim-light (from the client's button inspiration), tuned to the
   brand: a rotating navy -> emerald -> gold shimmer around a glossy pill,
   instead of a full rainbow. Pure CSS; where @property is unsupported the rim
   simply shows without rotating. Applied via .btn--glow to primary CTAs only. */
@property --cta-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

.btn--glow {
  position: relative; z-index: 0; border-radius: 999px; border-color: transparent;
  isolation: isolate;
  box-shadow: 0 6px 20px rgba(11, 37, 69, .20), inset 0 1px 0 rgba(255, 255, 255, .40);
}
.btn--glow::before {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--cta-angle),
      var(--navy), #17A94A, #EBC55C, #FFFFFF, #EBC55C, #17A94A, var(--navy));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask-composite: exclude;
  animation: cta-rim 4.5s linear infinite;
  z-index: -1; pointer-events: none;
}
@keyframes cta-rim { to { --cta-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) { .btn--glow::before { animation: none; } }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font: 700 .875rem/1 var(--font-head); color: var(--green-text);
}
.link-arrow::after { content: "\2192"; transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--navy); }
.link-arrow:hover::after { transform: translateX(4px); }

/* -- 6. forms ----------------------------------------------------------- */
.field { display: grid; gap: .4rem; margin-bottom: 1.15rem; }
.field > label { font: 600 var(--fs-small)/1.4 var(--font-head); color: var(--navy); }
.field .hint { font-size: .8125rem; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; padding: .85rem 1rem; font: inherit; color: var(--text);
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.textarea { min-height: 150px; resize: vertical; }
.select { appearance: none; padding-right: 2.6rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235A6472' stroke-width='1.6' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--green); box-shadow: var(--ring);
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] {
  border-color: #C0392B; box-shadow: 0 0 0 3px rgba(192, 57, 43, .18);
}
.field-error { font-size: .8125rem; color: #C0392B; }
.form-status { border-radius: var(--radius); padding: .9rem 1.1rem; font-size: var(--fs-small);
  margin-bottom: 1.25rem; display: none; }
.form-status[data-state="ok"]   { display: block; background: var(--green-wash); color: var(--green-deep);
  border: 1px solid #BFE3CC; }
.form-status[data-state="error"]{ display: block; background: #FDECEA; color: #96271B;
  border: 1px solid #F5C6C0; }
.form-status[data-state="busy"] { display: block; background: var(--surface); color: var(--muted);
  border: 1px solid var(--border); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* -- 7. header ---------------------------------------------------------- */
/* Three bands, following the approved Aideo reference:
     1. utility strip  - quick links, social icons, search
     2. main header    - logo, phone, e-mail, call to action
     3. navigation     - navy band with a white parallelogram carrying the
                         header block down over its left side
   The nav band is the sticky element, so scrolling leaves a compact bar
   rather than the whole three-row stack.                                    */

/* --- band 1: utility strip --- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); }
.topbar__inner { display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 0 1.5rem; min-height: 44px; }

.topbar__links { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.topbar__links li + li { border-left: 1px solid var(--border); }
.topbar__links a { display: block; padding: .8rem 1.15rem;
  font: 600 .6875rem/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); }
.topbar__links li:first-child a { padding-left: 0; }
.topbar__links a:hover, .topbar__links a:focus-visible { color: var(--green-text); }

.topbar__utils { display: flex; list-style: none; margin: 0; padding: 0; align-self: stretch; }
.topbar__utils a { width: 44px; align-self: stretch; display: grid; place-items: center;
  border-left: 1px solid var(--border); color: var(--muted); transition: all .18s var(--ease); }
.topbar__utils li:last-child a { border-right: 1px solid var(--border); }
.topbar__utils a:hover, .topbar__utils a:focus-visible { background: var(--green); color: #fff; }
.topbar__utils svg { width: 15px; height: 15px; fill: currentColor; }
.topbar__utils svg[data-stroke] { fill: none; stroke: currentColor; stroke-width: 1.9; }

@media (max-width: 720px) {
  .topbar__links { flex: 1 1 100%; justify-content: center; }
  .topbar__links li:first-child a { padding-left: 1.15rem; }
  .topbar__utils { margin-inline: auto; }
  .topbar__utils li:first-child a { border-left: 0; }
}

/* --- band 2: main header --- */
.header-main { background: #fff; }
.header-main__inner { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.75rem);
  padding-block: clamp(1rem, 2vw, 1.5rem); }

.brand { display: inline-flex; align-items: center; gap: .7rem; flex: none; }
.brand img { height: 56px; width: auto; }
.brand__text { display: none; }
@media (min-width: 1400px) { .brand__text { display: block; } }
.brand__name { font: 800 1rem/1.1 var(--font-head); color: var(--navy); letter-spacing: -.01em; }
.brand__tag { font-size: .6875rem; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); }

.header-contact { display: flex; align-items: center; gap: .8rem; }
.header-contact + .header-contact { padding-left: clamp(1rem, 2.5vw, 2.25rem);
  border-left: 1px solid var(--border); }
.header-contact__icon { width: 48px; height: 48px; flex: none; border-radius: 50%;
  border: 1px solid var(--green); color: var(--green); display: grid; place-items: center; }
.header-contact__icon svg { width: 19px; height: 19px; fill: currentColor; }
.header-contact__label { display: block; font-size: .8125rem; color: var(--muted); line-height: 1.4; }
.header-contact__value { font: 600 .9375rem/1.35 var(--font-head); color: var(--navy);
  white-space: nowrap; }
.header-contact__value:hover { color: var(--green-text); }

.header-cta { margin-left: auto; flex: none; white-space: nowrap;
  --btn-bg: transparent; --btn-fg: var(--green-text); --btn-bd: var(--green); }
.header-cta:hover { --btn-bg: var(--green); --btn-fg: #fff; }

/* The reference keeps the contact blocks and the call to action on small
   screens, stacked under the logo, rather than hiding them behind the menu. */
@media (max-width: 1199px) {
  .header-main__inner { flex-wrap: wrap; gap: 1.1rem clamp(1rem, 4vw, 2rem); }
  .brand { flex: 1 1 100%; }
  .header-contact + .header-contact { padding-left: clamp(.9rem, 4vw, 2rem); }
  .header-cta { margin-left: 0; flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 560px) {
  .header-main__inner { gap: .9rem; }
  .header-contact { flex: 1 1 100%; }
  .header-contact + .header-contact { padding-left: 0; border-left: 0; }
  .header-contact__icon { width: 42px; height: 42px; }
}

/* --- band 3: navigation --- */
.header-nav { position: sticky; top: 0; z-index: 60; background: var(--navy-deep);
  transition: box-shadow .25s var(--ease); }
/* The white block carries the header colour down past the logo, cut back on a
   diagonal so the navy band appears to slide underneath it. */
.header-nav::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 43%; background: #fff; pointer-events: none;
  clip-path: polygon(0 0, 100% 0, calc(100% - 40px) 100%, 0 100%);
  transition: opacity .25s var(--ease); }
.header-nav[data-stuck="true"] { box-shadow: 0 6px 24px rgba(11, 37, 69, .18); }
.header-nav[data-stuck="true"]::before { opacity: 0; }
.header-nav__inner { position: relative; display: flex; align-items: center;
  justify-content: flex-end; gap: 1rem; }

.nav__list { display: flex; align-items: center; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.nav__link { display: block; padding: 1.15rem .82rem; position: relative; white-space: nowrap;
  font: 600 .8125rem/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase;
  color: #C7D5E4; }
.nav__link::after { content: ""; position: absolute; left: .82rem; right: .82rem; bottom: .7rem;
  height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left;
  transition: transform .22s var(--ease); }
/* White is only correct on the navy band. Scoping it to the desktop width stops
   it leaking into the drawer, where the background is white and a hovered item
   would disappear. */
@media (min-width: 1200px) {
  .nav__link:hover, .nav__link[aria-current="page"] { color: #fff; }
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta-mobile { display: none; }

.nav-toggle { display: none; flex: none; width: 46px; height: 46px;
  align-items: center; justify-content: center; background: var(--navy); color: #fff;
  border: 0; border-radius: var(--radius); cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; fill: currentColor; }
.nav-toggle .icon-close, .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1199px) {
  /* The band keeps its dark bar and diagonal; the menu button sits on it.
     The drawer is fixed rather than absolute for two reasons: the band's inner
     container is a positioned, gutter-inset element, so an absolute drawer
     would inherit that inset instead of spanning the screen; and a fixed drawer
     can be given a height that always fits the viewport. --drawer-top is
     measured from the toggle when the menu opens. */
  .nav-toggle { display: inline-flex; }
  .header-nav__inner { justify-content: flex-end; padding-block: .75rem; }
  .header-nav::before { width: 34%; }
  .nav { position: fixed; top: var(--drawer-top, 8rem); left: 0; right: 0;
    z-index: 59; margin: 0; background: #fff;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    max-height: calc(100dvh - var(--drawer-top, 8rem));
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s; }
  .nav[data-open="true"] { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem var(--gutter) 1.5rem; }
  .nav__link { padding: .95rem .25rem; border-bottom: 1px solid var(--border-soft);
    color: var(--navy); text-transform: none; letter-spacing: 0; font-size: .9375rem; }
  .nav__link::after { display: none; }
  .nav__link:hover, .nav__link:focus-visible { color: var(--green-text); }
  .nav__link[aria-current="page"] { color: var(--green-text); }
  .nav__cta-mobile { display: block; margin-top: 1rem; }
}
.skip-link { position: absolute; left: 50%; translate: -50% -150%; z-index: 200;
  background: var(--navy); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 4px 4px; }
.skip-link:focus { translate: -50% 0; color: #fff; }

/* -- 8. hero ------------------------------------------------------------ */
/* Full-bleed photograph with the copy laid over it, following the approved
   reference. Three things keep it readable and fast:
     - a two-stop gradient, weighted to the left where the text sits, rather
       than a flat scrim that would grey the whole picture;
     - a slow Ken Burns settle (scale 1.14 -> 1) that finishes and stops, so
       nothing animates for the life of the page;
     - overflow stays visible so the upcoming-event card can overhang.          */
.hero { position: relative; background: var(--navy-deep); color: #C7D5E4; isolation: isolate; }

.hero__bg { position: absolute; inset: 0; overflow: hidden; z-index: -2; }
.hero__slide { position: absolute; inset: 0; opacity: 0; }
/* Fallback (no JS / reduced motion): the first photograph stays visible. */
.hero__slide:first-child { opacity: 1; }
.hero__slide img,
.hero__slide picture { width: 100%; height: 100%; object-fit: cover; display: block;
  /* Bias the crop so the directors' faces survive on tall viewports. */
  object-position: center 40%; }

/* Three meeting photographs crossfade in rotation, each carrying a slow Ken
   Burns push. Only opacity and transform animate, so it stays on the
   compositor. Slides are staggered a third of a cycle apart so one is always
   up; the order 1->2->3 comes from the -2T/3, -T/3 delays. */
.js .hero__slide { animation: hero-fade 24s ease-in-out infinite; }
.js .hero__slide:nth-child(2) { animation-delay: -16s; }
.js .hero__slide:nth-child(3) { animation-delay: -8s; }
.js .hero__slide img { animation: hero-zoom 24s ease-out infinite; }
.js .hero__slide:nth-child(2) img { animation-delay: -16s; }
.js .hero__slide:nth-child(3) img { animation-delay: -8s; }
@keyframes hero-fade {
  0%, 29%  { opacity: 1; }
  33%, 96% { opacity: 0; }
  100%     { opacity: 1; }
}
/* Each photo settles from a slight zoom while it is the visible one (first
   third of the cycle), then quietly re-arms while hidden. */
@keyframes hero-zoom {
  0%   { transform: scale(1.14); }
  33%  { transform: scale(1); }
  100% { transform: scale(1.14); }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero__slide,
  .js .hero__slide img { animation: none; }
  .js .hero__slide { opacity: 0; }
  .js .hero__slide:first-child { opacity: 1; }
}

/* Left-weighted so the subject of the photograph stays visible on the right. */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(96deg, rgba(7,27,51,.94) 0%, rgba(7,27,51,.86) 32%,
                           rgba(7,27,51,.55) 62%, rgba(7,27,51,.34) 100%),
    radial-gradient(90% 70% at 88% 8%, rgba(19,150,58,.26), transparent 60%); }
/* A little extra weight at the foot, where the event card sits. */
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 42%; z-index: -1;
  background: linear-gradient(to top, rgba(7,27,51,.75), transparent); }

.hero__inner { position: relative; display: grid; align-items: center;
  padding-block: clamp(4.5rem, 13vw, 9.5rem); }
.hero__copy { max-width: 46rem; }
.hero h1 { color: #fff; margin-bottom: 1.1rem;
  text-shadow: 0 2px 24px rgba(7, 27, 51, .35); }
.hero__tagline { font: 800 clamp(1.05rem, 1.9vw, 1.35rem)/1.4 var(--font-head); color: #7EE0A0;
  margin: 0 0 .85rem; }
.hero__text { color: #D3DFEA; font-size: var(--fs-lead); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

/* Reserve room on the right for the event card once there is space for it. */
@media (min-width: 1200px) { .hero__copy { max-width: 40rem; } }

.metrics { border-top: 1px solid var(--navy-line); position: relative; }
.metrics__list { display: grid; list-style: none; margin: 0; padding: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.metrics__item { padding: 1.6rem clamp(1rem, 2.2vw, 1.9rem); border-right: 1px solid var(--navy-line); }
.metrics__item:last-child { border-right: 0; }
/* Stacked on narrow screens, the vertical rules become stray edges. */
@media (max-width: 700px) {
  .metrics__item { border-right: 0; border-bottom: 1px solid var(--navy-line); }
  .metrics__item:last-child { border-bottom: 0; }
}
.metrics__value { font: 800 1.125rem/1.2 var(--font-head); color: #7EE0A0; margin: 0 0 .3rem; }
.metrics__label { font-size: .875rem; color: #A9BDD2; margin: 0; }

.page-hero { position: relative; background: var(--navy); color: #C7D5E4;
  padding-block: clamp(3rem, 6vw, 5rem); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg, var(--navy) 38%, rgba(11,37,69,.72) 68%, rgba(11,37,69,.45)); }
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: .75rem; }
.page-hero p { color: #B7C8DA; font-size: var(--fs-lead); max-width: 64ch; margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 1.4rem 0 0;
  padding: 0; font-size: .8125rem; color: #92A9C0; }
.breadcrumb a { color: #C7D5E4; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: #5E7695; }
.breadcrumb [aria-current] { color: #7EE0A0; }

/* -- 9. cards ----------------------------------------------------------- */
.card { position: relative; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(1.5rem, 2.4vw, 2rem);
  transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease); }
.card::before { content: ""; position: absolute; inset: -1px -1px auto; height: 3px;
  background: var(--green); transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--border-soft); }
.card:hover::before { transform: scaleX(1); }
.card__index { font: 800 .8125rem/1 var(--font-head); color: var(--border); letter-spacing: .08em;
  position: absolute; top: 1.4rem; right: 1.5rem; }
.card__icon { width: 40px; height: 40px; display: grid; place-items: center start;
  color: var(--green-text); margin-bottom: 1.1rem; }
.card__icon svg { width: 34px; height: 34px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.card h3 { margin-bottom: .6rem; }
.card h3 a { color: var(--navy); }
.card:hover h3 a { color: var(--green-text); }
.card p { color: var(--muted); font-size: var(--fs-small); }
.card__list { list-style: none; margin: 1.1rem 0 1.35rem; padding: 0; display: grid; gap: .5rem; }
.card__list li { position: relative; padding-left: 1.4rem; font-size: var(--fs-small); color: var(--muted); }
.card__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px;
  border-radius: 50%; background: var(--green); }
.card--flat:hover { transform: none; box-shadow: var(--shadow-sm); }
.stretch-link::after { content: ""; position: absolute; inset: 0; }

.pillar { display: grid; gap: 1rem; grid-template-columns: 44px 1fr; align-items: start; }
.pillar__icon { width: 44px; height: 44px; display: grid; place-items: center start; color: #7EE0A0; }
.pillar__icon svg { width: 32px; height: 32px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.pillar h3 { font-size: var(--fs-h4); margin-bottom: .45rem; }

.counter { text-align: center; padding: 1.25rem .5rem; }
.counter__value { font: 800 clamp(2.25rem, 4.6vw, 3.25rem)/1 var(--font-head); color: var(--navy);
  display: flex; align-items: baseline; justify-content: center; gap: .1rem; }
.counter__value span { color: var(--green); }
.counter__label { margin: .6rem 0 0; color: var(--muted); font-size: var(--fs-small); }
.section--navy .counter__value { color: #fff; }
.section--navy .counter__label { color: #A9BDD2; }

.leader { background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .24s var(--ease), box-shadow .24s var(--ease); }
.leader:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.leader__photo { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; background: var(--surface); }
.leader__body { padding: 1.35rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.leader__name { font: 700 1.0625rem/1.3 var(--font-head); color: var(--navy); margin: 0 0 .2rem; }
.leader__role { font-size: .8125rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--green-text); font-weight: 600; margin: 0 0 .85rem; }
.leader__meta { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: .35rem;
  font-size: var(--fs-small); color: var(--muted); }
.leader__bio { font-size: var(--fs-small); color: var(--muted); margin-bottom: 1.1rem; }
.leader__body .link-arrow { margin-top: auto; }

/* Full profile row: the portrait fills the card rather than leaving a gap
   under itself when the biography column is taller. */
.profile-media { display: block; height: 100%; max-width: 360px; background: var(--surface); }
.profile-media picture { display: block; height: 100%; }
.profile-media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; aspect-ratio: auto; }

.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; position: relative;
  transition: transform .24s var(--ease), box-shadow .24s var(--ease); }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-card__media { position: relative; aspect-ratio: 16 / 9; background: var(--navy); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__tag { position: absolute; left: 1rem; bottom: 1rem; background: var(--green); color: #fff;
  font: 700 .6875rem/1 var(--font-head); letter-spacing: .09em; text-transform: uppercase;
  padding: .45rem .7rem; border-radius: 2px; }
.post-card__body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .8125rem;
  color: var(--muted); margin-bottom: .7rem; }
.post-card h3 { font-size: var(--fs-h4); margin-bottom: .55rem; }
.post-card h3 a { color: var(--navy); }
.post-card h3 a:hover { color: var(--green-text); }
.post-card p { font-size: var(--fs-small); color: var(--muted); }
.post-card .link-arrow { margin-top: auto; padding-top: 1rem; }

.event-card { display: grid; gap: 0; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.event-card__media { position: relative; min-height: 210px; background: var(--navy); }
.event-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.event-card__date { position: absolute; left: 1rem; top: 1rem; background: #fff; border-radius: var(--radius);
  padding: .6rem .85rem; text-align: center; box-shadow: var(--shadow-sm); }
.event-card__date strong { display: block; font: 800 1.375rem/1 var(--font-head); color: var(--navy); }
.event-card__date span { font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green-text); }
.event-card__body { padding: clamp(1.4rem, 2.4vw, 2rem); display: flex; flex-direction: column; }
.event-card h3 { font-size: var(--fs-h3); margin-bottom: .5rem; }
.event-card h3 a { color: var(--navy); }
.event-card h3 a:hover { color: var(--green-text); }
.event-card__meta { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: .45rem;
  font-size: var(--fs-small); color: var(--muted); }
.event-card__meta li { display: flex; gap: .55rem; align-items: center; }
.event-card__meta svg { width: 16px; height: 16px; stroke: var(--green); fill: none; stroke-width: 1.7; flex: none; }
.event-card__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: auto; padding-top: .4rem; }

.countdown { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.1rem 0 1.35rem; }
.countdown div { flex: 1 1 52px; min-width: 52px; text-align: center; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: .55rem .4rem; }
.countdown strong { display: block; font: 800 1.25rem/1 var(--font-head); color: var(--navy); }
.countdown span { font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.section--navy .countdown div { background: rgba(255,255,255,.06); border-color: var(--navy-line); }
.section--navy .countdown strong { color: #fff; }
.section--navy .countdown span { color: #A9BDD2; }

.doc-row { display: grid; gap: 1.1rem; align-items: center; background: #fff;
  grid-template-columns: 56px minmax(0, 1fr) auto; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.15rem 1.25rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.doc-row:hover { box-shadow: var(--shadow-sm); border-color: #C9D8DF; }
.doc-row__badge { width: 56px; height: 64px; border-radius: var(--radius); display: grid;
  place-items: center; font: 800 .6875rem/1 var(--font-head); letter-spacing: .06em;
  color: #fff; background: var(--navy-soft); }
.doc-row__badge[data-ext="pdf"] { background: #B3261E; }
.doc-row__badge[data-ext="doc"], .doc-row__badge[data-ext="docx"] { background: #1B5FA8; }
.doc-row__badge[data-ext="xls"], .doc-row__badge[data-ext="xlsx"] { background: var(--green-deep); }
.doc-row h3 { font-size: var(--fs-h4); margin-bottom: .3rem; }
.doc-row p { font-size: var(--fs-small); color: var(--muted); margin: 0; }
.doc-row__meta { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin-top: .55rem;
  font-size: .75rem; color: var(--muted); }
.doc-row__actions { display: flex; gap: .55rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 720px) {
  .doc-row { grid-template-columns: 56px minmax(0, 1fr); }
  .doc-row__actions { grid-column: 1 / -1; justify-content: flex-start; }
}

.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .6rem;
  border-radius: 2px; font: 700 .6875rem/1 var(--font-head); letter-spacing: .08em;
  text-transform: uppercase; background: var(--green-wash); color: var(--green-deep); }
.badge--navy { background: rgba(11,37,69,.08); color: var(--navy); }
.badge--outline { background: transparent; border: 1px solid var(--border); color: var(--muted); }

/* -- 10. composite sections --------------------------------------------- */
.alliance { position: relative; overflow: hidden; background: var(--navy-deep); color: #C7D5E4; }
.alliance__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.alliance::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(92deg, var(--navy-deep) 34%, rgba(7,27,51,.82) 62%, rgba(7,27,51,.35)); }
.alliance .container { position: relative; z-index: 1; }
.alliance h1, .alliance h2, .alliance h3, .alliance h4 { color: #fff; }
.alliance__logos { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.alliance__logos img { height: 58px; width: auto; }
.alliance__logos span { color: #7EE0A0; font: 800 1.25rem/1 var(--font-head); }

.filter-bar { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.filter-bar .select, .filter-bar .input { width: auto; min-width: 168px; flex: 1 1 168px; max-width: 260px; }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.chip { padding: .5rem .95rem; border: 1px solid var(--border); border-radius: 999px; background: #fff;
  font: 600 .8125rem/1 var(--font-head); color: var(--muted); cursor: pointer;
  transition: all .18s var(--ease); }
.chip:hover { border-color: var(--green); color: var(--green-text); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.pagination { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center;
  margin-top: clamp(2rem, 4vw, 3rem); }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center;
  padding: 0 .7rem; border: 1px solid var(--border); border-radius: var(--radius);
  font: 600 .875rem/1 var(--font-head); color: var(--navy); background: #fff; }
.pagination a:hover { border-color: var(--green); color: var(--green-text); }
.pagination [aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.empty-state { text-align: center; padding: clamp(2.5rem, 6vw, 4.5rem) 1rem;
  border: 1px dashed var(--border); border-radius: var(--radius); background: var(--surface); }
.empty-state h3 { margin-bottom: .5rem; }
.empty-state p { color: var(--muted); margin: 0 auto; max-width: 46ch; }

.prose { font-size: var(--fs-lead); line-height: 1.78; color: #2C333D; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin: 2.4rem 0 .9rem; }
.prose h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); margin: 2rem 0 .75rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.3rem; }
.prose li { margin-bottom: .5rem; }
.prose blockquote { margin: 1.9rem 0; padding: 1.3rem 1.6rem; background: var(--surface);
  border-left: 3px solid var(--green); font-size: 1.0625rem; color: var(--navy); }
.prose blockquote p:last-child { margin: 0; }
.prose img { border-radius: var(--radius); margin: 1.6rem 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: var(--fs-small); }
.prose th, .prose td { border: 1px solid var(--border); padding: .7rem .85rem; text-align: left; }
.prose th { background: var(--surface); font-family: var(--font-head); color: var(--navy); }
.table-scroll { overflow-x: auto; }

.map-embed { border: 0; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius);
  background: var(--surface); }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(1.5rem, 2.5vw, 2rem); height: 100%; }
.contact-card h3 { margin-bottom: .3rem; }
.contact-card__flag { font-size: .75rem; letter-spacing: .11em; text-transform: uppercase;
  color: var(--green-text); font-weight: 700; margin-bottom: 1rem; display: block; }
.contact-list { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .8rem; }
.contact-list li { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; font-size: var(--fs-small);
  color: var(--muted); }
.contact-list svg { width: 18px; height: 18px; stroke: var(--green); fill: none; stroke-width: 1.7;
  margin-top: .15rem; }
.contact-list a { color: var(--navy); font-weight: 500; }
.contact-list a:hover { color: var(--green-text); }

/* -- 11. footer --------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: #9FB3C8; font-size: var(--fs-small); }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1.15rem; }
.site-footer a { color: #C7D5E4; }
.site-footer a:hover { color: #7EE0A0; }
.footer__grid { display: grid; gap: clamp(2rem, 4vw, 3rem); padding-block: clamp(3rem, 6vw, 4.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.footer__brand img { height: 128px; width: auto; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.3rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  font-size: .8125rem; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.1rem; list-style: none; margin: 0; padding: 0; }
.newsletter { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.newsletter .input { flex: 1 1 160px; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16);
  color: #fff; }
.newsletter .input::placeholder { color: #7D93AC; }
.newsletter .input:focus { background: rgba(255,255,255,.1); border-color: var(--green); }
.social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--radius);
  background: rgba(255,255,255,.07); }
.social a:hover { background: var(--green); }
.social svg { width: 17px; height: 17px; fill: currentColor; }

.scroll-top { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 55; width: 46px; height: 46px;
  border: 0; border-radius: var(--radius); background: var(--green); color: #fff; cursor: pointer;
  display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .25s var(--ease); box-shadow: var(--shadow-md); }
.scroll-top[data-visible="true"] { opacity: 1; visibility: visible; transform: none; }
.scroll-top svg { width: 18px; height: 18px; fill: currentColor; }

/* -- 12. utilities ------------------------------------------------------ */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 1.25rem; } .mt-3 { margin-top: 2rem; }
.stack > * + * { margin-top: 1rem; }
.js .reveal { opacity: 0; transform: translateY(18px);
  transition: opacity .55s var(--ease), transform .55s var(--ease); }
.js .reveal[data-visible="true"] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* -- 13. hero event tab, metrics band and countdown --------------------- */

/* A tab, not a panel: heading and date only, as in the approved reference. The
   detail and the countdown live in the band below, reached by scrolling. */
.hero { padding-bottom: clamp(3rem, 7vw, 5rem); }

.hero__event {
  display: block; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden; text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.hero__event:hover { transform: translateY(-3px); box-shadow: 0 22px 44px rgba(7,27,51,.28); }

.hero__event__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: .85rem 1.25rem; border-bottom: 1px solid var(--border-soft);
}
.hero__event__label {
  font: 800 .8125rem/1.2 var(--font-head); letter-spacing: .12em;
  text-transform: uppercase; color: var(--green-text);
}
.hero__event__head svg { width: 22px; height: 22px; stroke: var(--green); fill: none;
  stroke-width: 1.6; flex: none; }

.hero__event__when {
  display: flex; align-items: center; gap: .55rem;
  padding: .85rem 1.25rem; font-size: var(--fs-small); color: var(--muted);
}
.hero__event__when svg { width: 15px; height: 15px; stroke: var(--muted); fill: none;
  stroke-width: 1.7; flex: none; }

/* Small screens: in normal flow beneath the hero copy, so it can never sit on
   top of the headline or the buttons. */
.hero__event { margin-top: clamp(2rem, 7vw, 3rem); }

@media (min-width: 900px) {
  /* Desktop: parked on the hero's lower-right, clear of the copy column. */
  .hero__event { position: absolute; z-index: 2; margin-top: 0;
    right: max(var(--gutter), calc((100% - var(--container)) / 2));
    bottom: clamp(1.5rem, 4vw, 3rem); width: min(360px, 34vw); }
}

/* --- metrics band: its own strip, no longer inside the hero --------------- */
.metrics-band { background: var(--navy); color: #C7D5E4; }
.metrics-band .metrics { border-top: 0; }

/* --- countdown band ------------------------------------------------------ */
.countdown-band { background: var(--surface); }
.countdown-band h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-bottom: .6rem; }
.countdown-band h2 a { color: var(--navy); }
.countdown-band h2 a:hover { color: var(--green-text); }
.countdown-band__meta { font-size: var(--fs-small); color: var(--muted); margin-bottom: 1rem; }
.countdown-band__seats { margin: .9rem 0 0; font-size: var(--fs-small); color: var(--muted); }

.countdown--lg { gap: .75rem; margin: 0; }
.countdown--lg div { flex: 1 1 88px; min-width: 88px; background: #fff;
  border-color: var(--border); padding: 1.1rem .5rem; }
/* Keep all four units on one row rather than wrapping three-plus-one. */
@media (max-width: 560px) {
  .countdown--lg { gap: .5rem; }
  .countdown--lg div { flex: 1 1 0; min-width: 0; padding: .85rem .25rem; }
  .countdown--lg span { font-size: .5625rem; letter-spacing: .08em; }
}
.countdown--lg strong { font-size: clamp(1.75rem, 4vw, 2.5rem); color: var(--green-text);
  font-variant-numeric: tabular-nums; }
.countdown--lg span { font-size: .6875rem; letter-spacing: .12em; }
