/* ==========================================================================
   EGNATIA PLATINUM FINANCE — Core stylesheet
   Savills-derived editorial structure · Egnatia emerald palette
   Border-radius 0px by default. Sharp corners are the identity.
   ========================================================================== */

/* ─── SELF-HOSTED FONTS (L15 — no Google Fonts CDN) ─────────────────────
   Both families are VARIABLE fonts: one file covers the whole weight range,
   so we declare a font-weight range rather than one @font-face per weight.
   That is three fewer requests and ~110KB less than static instances.
   Latin subset only — swap in the full file if a non-Latin market needs it. */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/assets/fonts/cormorant-garamond-var.woff2') format('woff2-variations'),
       url('/assets/fonts/cormorant-garamond-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/manrope-var.woff2') format('woff2-variations'),
       url('/assets/fonts/manrope-var.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ─── DESIGN TOKENS ───────────────────────────────────────────────────── */
:root {
  /* Palette — emerald from Petra's dashboard reference */
  --emerald:        #10B981;
  --emerald-deep:   #047857;
  --forest-ink:     #022C22;
  --platinum-ink:   #0B0F0E;
  --ink-60:         #5A625F;
  --ink-40:         #8B928F;
  --ink-20:         #D6D9D7;
  --cream:          #F8F7F2;
  --card-cream:     #FEFDF9;
  --paper:          #FFFFFF;
  --success:        #059669;
  --warning:        #D97706;
  --error:          #B91C1C;
  --coral:          #EF6058;   /* withdrawals — soft, NOT the loud error red */

  /* Type */
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono:  ui-monospace, SFMono-Regular, 'SF Mono', Consolas, 'Liberation Mono', monospace;

  --fs-h1-hero: clamp(2.75rem, 4vw + 1rem, 4rem);
  --fs-h1:      clamp(2rem, 2vw + 1.5rem, 3rem);
  --fs-h2:      clamp(1.625rem, 1vw + 1.2rem, 2.25rem);
  --fs-h3:      1.75rem;
  --fs-h4:      1.375rem;
  --fs-lead:    1.25rem;
  --fs-body:    1rem;
  --fs-small:   0.875rem;
  --fs-meta:    0.75rem;
  --fs-legal:   0.6875rem;

  /* Space */
  --gutter: 24px;
  --maxw:   1280px;
  --maxw-narrow: 760px;

  /* THE identity decision — sharp corners everywhere */
  --radius: 0px;

  --shadow-card:   0 1px 3px rgba(0,0,0,.04);
  --shadow-sticky: 0 2px 8px rgba(0,0,0,.06);
  --ease: cubic-bezier(.32,.72,0,1);
}

/* ─── 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; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}
body {
  margin: 0; background: var(--paper); color: var(--platinum-ink);
  font: 400 var(--fs-body)/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, picture, video, svg { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4,h5,h6 { margin: 0 0 .6em; font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1.15em; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.25em; }
li { margin-bottom: .4em; }
hr { border: 0; border-top: 1px solid var(--ink-20); margin: 3rem 0; }
:focus-visible { outline: 2px solid var(--platinum-ink); outline-offset: 2px; }
::selection { background: var(--emerald); color: #fff; }

/* ─── LAYOUT ──────────────────────────────────────────────────────────── */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: var(--maxw-narrow); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 6vw, 6rem); }
.section--cream { background: var(--cream); }
.section--forest { background: var(--forest-ink); color: var(--cream); }
.section--forest h1,.section--forest h2,.section--forest h3 { color: var(--cream); }
.section--tight { padding-block: clamp(2rem, 4vw, 3.5rem); }
.grid { display: grid; gap: clamp(20px, 3vw, 36px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.eyebrow {
  font: 600 var(--fs-meta)/1.4 var(--sans); text-transform: uppercase;
  letter-spacing: .12em; color: var(--ink-60); margin: 0 0 .75rem;
}
.section--forest .eyebrow { color: var(--emerald); }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-60); }
.section--forest .lead { color: rgba(248,247,242,.82); }
.rule { width: 56px; height: 2px; background: var(--emerald); margin: 0 0 1.5rem; }

/* ─── BUTTONS ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-block; border: none; border-radius: var(--radius);
  font: 600 15px/1.4 var(--sans); letter-spacing: .02em; padding: 14px 28px;
  cursor: pointer; transition: background .15s ease-out, color .15s ease-out;
  text-align: center;
}
.btn--primary { background: var(--emerald); color: #fff; }
.btn--primary:hover { background: var(--emerald-deep); }
.btn--primary:disabled { background: var(--ink-40); cursor: not-allowed; }
.btn--outline {
  background: transparent; color: var(--platinum-ink);
  border: 1px solid var(--platinum-ink); padding: 13px 27px;
}
.btn--outline:hover { background: var(--platinum-ink); color: #fff; }  /* hard inversion */
/* Outline buttons default to ink-on-light. Anywhere they sit on a dark
   surface — the forest sections and BOTH hero types, which carry a dark
   gradient scrim over the photograph — they must invert, or they render
   near-black on near-black. */
.section--forest .btn--outline,
.hero .btn--outline,
.page-hero .btn--outline { color: var(--cream); border-color: var(--cream); }
.section--forest .btn--outline:hover,
.hero .btn--outline:hover,
.page-hero .btn--outline:hover { background: var(--cream); color: var(--forest-ink); }
.btn--ghost { background: transparent; color: var(--emerald); padding: 8px 0; }
.btn--ghost:hover { color: var(--emerald-deep); text-decoration: underline; text-underline-offset: 3px; }
.btn--block { display: block; width: 100%; }
.btn--danger { background: transparent; color: var(--error); border: 1px solid var(--error); padding: 13px 27px; }
.btn--danger:hover { background: var(--error); color: #fff; }
.btn--sm { padding: 9px 16px; font-size: 13px; }

/* Signature arrow link — the chevron shifts on hover */
.arrow-link {
  display: inline-flex; align-items: center; gap: .45em;
  font: 600 15px/1.4 var(--sans); color: var(--platinum-ink);
}
.arrow-link::after { content: '›'; font-size: 1.35em; line-height: 1; transition: transform .2s ease-out; }
.arrow-link:hover::after { transform: translateX(4px); }
.arrow-link:hover { color: var(--emerald-deep); }
.section--forest .arrow-link { color: var(--cream); }
.section--forest .arrow-link:hover { color: var(--emerald); }

/* ─── HEADER ──────────────────────────────────────────────────────────── */
.utility-bar {
  background: var(--forest-ink); color: rgba(248,247,242,.78);
  font: 400 var(--fs-meta)/1 var(--sans); letter-spacing: .04em;
}
.utility-bar .wrap { display: flex; align-items: center; justify-content: flex-end; gap: 22px; height: 38px; }
.utility-bar a { color: inherit; }
.utility-bar a:hover { color: var(--emerald); }
.utility-bar .sep { width: 1px; height: 14px; background: rgba(248,247,242,.22); }

.site-header {
  position: sticky; top: 0; z-index: 90; background: var(--paper);
  border-bottom: 1px solid var(--ink-20);
}
.site-header.is-stuck { box-shadow: var(--shadow-sticky); }
/* The logo is the emblem stacked over the wordmark, so at 42px the wordmark
   was ~10px tall and unreadable. Petra: "if the logo is 1, I want it 4" —
   168px at rest. The header grows to hold it, then collapses to a compact
   bar once the page scrolls so the mark does not eat the viewport. */
.site-header .wrap { display: flex; align-items: center; gap: 32px; min-height: 76px; padding-top: 4px; padding-bottom: 4px; transition: padding .28s var(--ease); }
.site-header.is-stuck .wrap { padding-top: 2px; padding-bottom: 2px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 150px; width: auto; transition: height .28s var(--ease); }
.site-header.is-stuck .brand img { height: 80px; }
@media (max-width: 900px) {
  .brand img { height: 110px; }
  .site-header.is-stuck .brand img { height: 64px; }
}
.nav-main { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-main > li { list-style: none; position: relative; margin: 0; }
.nav-main { padding: 0; margin: 0 0 0 auto; }
.nav-main > li > a {
  display: block; padding: 12px 14px; font: 500 15px/1 var(--sans);
  color: var(--platinum-ink); position: relative;
}
.nav-main > li > a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--emerald); transform: scaleX(0); transform-origin: left;
  transition: transform .2s var(--ease);
}
.nav-main > li:hover > a::after,
.nav-main > li > a[aria-current="page"]::after { transform: scaleX(1); }

/* Mega-menu (Savills-style) */
.mega {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(-8px);
  min-width: 280px; background: var(--paper); border: 1px solid var(--ink-20);
  border-radius: var(--radius); padding: 18px; opacity: 0; visibility: hidden;
  transition: opacity .16s ease-out, transform .16s var(--ease), visibility .16s;
  box-shadow: var(--shadow-sticky); list-style: none; margin: 0;
}
.nav-main > li:hover .mega, .nav-main > li:focus-within .mega {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.mega li { margin: 0; }
.mega a {
  display: block; padding: 9px 12px; font: 400 14px/1.4 var(--sans); color: var(--ink-60);
  border-left: 2px solid transparent; transition: color .15s, border-color .15s, background .15s;
}
.mega a:hover { color: var(--platinum-ink); border-left-color: var(--emerald); background: var(--cream); }

.header-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--platinum-ink); margin: 4px 0; transition: .2s; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; margin-left: auto; }
  .nav-main {
    position: fixed; inset: 76px 0 0 auto; width: min(360px, 88vw); background: var(--paper);
    border-left: 1px solid var(--ink-20); flex-direction: column; align-items: stretch;
    padding: 20px; gap: 0; overflow-y: auto; transform: translateX(100%);
    transition: transform .24s var(--ease); margin: 0;
  }
  .nav-main.is-open { transform: translateX(0); }
  .nav-main > li > a { padding: 14px 8px; border-bottom: 1px solid var(--ink-20); }
  .mega {
    position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none;
    border: 0; border-bottom: 1px solid var(--ink-20); padding: 4px 0 12px 12px; min-width: 0;
  }
  .header-cta .btn { display: none; }
}

/* ─── HERO ────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: clamp(520px, 74vh, 760px); display: grid; align-items: center; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
/* ⚠ egnatia_picture() wraps the <img> in a <picture>. A picture's height is
   auto, so an img with height:100% resolves against the picture's CONTENT
   height, not the container — the image ends up letterboxed with dead space
   below it. Every full-bleed media box therefore has to stretch the picture
   itself, not just the img inside it. */
.hero__media picture { display: block; width: 100%; height: 100%; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(2,44,34,.86) 0%, rgba(2,44,34,.66) 46%, rgba(2,44,34,.22) 100%);
}
.hero__inner { position: relative; z-index: 1; color: var(--cream); padding-block: 60px; }
.hero__inner .wrap { max-width: var(--maxw); }
.hero h1 { font-size: var(--fs-h1-hero); color: var(--cream); max-width: 15ch; margin-bottom: .35em; }
.hero .lead { color: rgba(248,247,242,.86); max-width: 46ch; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__motto {
  margin-top: 2.5rem; font: 600 var(--fs-meta)/1 var(--sans);
  letter-spacing: .28em; text-transform: uppercase; color: var(--emerald);
}

/* ─── CARDS ───────────────────────────────────────────────────────────── */
.card {
  background: var(--paper); border: 1px solid var(--ink-20); border-radius: var(--radius);
  display: flex; flex-direction: column; transition: border-color .18s, transform .18s var(--ease);
}
.card:hover { border-color: var(--platinum-ink); }
.card__media { overflow: hidden; }
.card__media picture { display: block; width: 100%; }
.card__media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.035); }
.card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-size: 1.375rem; margin-bottom: .4em; }
.card__body p { color: var(--ink-60); font-size: var(--fs-small); flex: 1; }
.card__body .arrow-link { margin-top: 14px; align-self: flex-start; }

/* Numbered process step */
.step { text-align: center; }
.step img { width: 96px; height: 96px; object-fit: contain; margin: 0 auto 18px; }
.step__num {
  display: inline-block; font: 600 var(--fs-meta)/1 var(--sans); letter-spacing: .14em;
  color: var(--emerald); text-transform: uppercase; margin-bottom: .6rem;
}
.step h3 { font-size: 1.25rem; }
.step p { font-size: var(--fs-small); color: var(--ink-60); }

/* Stat block */
.stat { border-left: 2px solid var(--emerald); padding-left: 20px; }
.stat__num { font: 400 clamp(2.25rem, 3vw, 3rem)/1 var(--serif); color: var(--platinum-ink); display: block; }
.section--forest .stat__num { color: var(--cream); }
.stat__label { font: 400 var(--fs-small)/1.5 var(--sans); color: var(--ink-60); margin-top: .5rem; display: block; }
.section--forest .stat__label { color: rgba(248,247,242,.7); }

/* ─── EDITORIAL / CONTENT PAGES ───────────────────────────────────────── */
.page-hero { position: relative; min-height: clamp(320px, 42vh, 440px); display: grid; align-items: end; overflow: hidden; }
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media picture { display: block; width: 100%; height: 100%; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2,44,34,.32) 0%, rgba(2,44,34,.86) 100%);
}
.page-hero__inner { position: relative; z-index: 1; color: var(--cream); padding-block: 44px; }
.page-hero h1 { color: var(--cream); max-width: 20ch; margin-bottom: .25em; }
.page-hero .lead { color: rgba(248,247,242,.84); max-width: 56ch; margin: 0; }

.crumbs { margin-bottom: 1.25rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; font-size: var(--fs-meta); }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: rgba(248,247,242,.45); }
.crumbs a { color: rgba(248,247,242,.75); }
.crumbs a:hover { color: var(--emerald); }
.crumbs [aria-current] { color: var(--cream); }
.content-body .crumbs a { color: var(--ink-60); }
.content-body .crumbs [aria-current] { color: var(--platinum-ink); }
.content-body .crumbs li + li::before { color: var(--ink-40); }

.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; font-size: 1.375rem; }
.prose ul li::marker { color: var(--emerald); }
.prose blockquote {
  margin: 2rem 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--emerald);
  font: 400 1.375rem/1.5 var(--serif); color: var(--platinum-ink);
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: var(--fs-small); }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--ink-20); }
.prose th { font-weight: 600; color: var(--ink-60); font-size: var(--fs-meta); text-transform: uppercase; letter-spacing: .08em; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; } }

/* Point list with emerald ticks */
.points { list-style: none; padding: 0; }
.points li { position: relative; padding-left: 30px; margin-bottom: 14px; }
.points li::before {
  content: ''; position: absolute; left: 0; top: .55em; width: 14px; height: 8px;
  border-left: 2px solid var(--emerald); border-bottom: 2px solid var(--emerald);
  transform: rotate(-45deg);
}

/* FAQ accordion */
.faq details { border-bottom: 1px solid var(--ink-20); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font: 600 1.0625rem/1.45 var(--sans);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--emerald); border-bottom: 2px solid var(--emerald);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 22px; color: var(--ink-60); max-width: 74ch; }

/* ─── FORMS ───────────────────────────────────────────────────────────── */
.field { margin-bottom: 20px; }
.field label, .label {
  display: block; font: 600 var(--fs-small)/1.4 var(--sans);
  color: var(--platinum-ink); margin-bottom: 7px;
}
.field .hint { font-size: var(--fs-meta); color: var(--ink-40); margin-top: 5px; }
.field .req { color: var(--emerald); margin-left: 2px; }
input[type=text], input[type=email], input[type=tel], input[type=password],
input[type=number], input[type=date], input[type=datetime-local], input[type=search],
select, textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--ink-20); border-radius: var(--radius);
  font: 400 15px/1.4 var(--sans); color: var(--platinum-ink); background: var(--paper);
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(16,185,129,.12); }
input::placeholder, textarea::placeholder { color: var(--ink-40); }
textarea { min-height: 130px; resize: vertical; }
/* Readable dropdowns — a family-wide fix; native selects inherit dark bg badly */
select {
  appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A625F' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
select option { background: var(--paper); color: var(--platinum-ink); }
.field--error input, .field--error select, .field--error textarea { border-color: var(--error); }
.field--error .hint { color: var(--error); }
.check { display: flex; align-items: flex-start; gap: 10px; }
.check input[type=checkbox], .check input[type=radio] { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--emerald); flex-shrink: 0; }
.check label { font-weight: 400; margin: 0; }

/* Password eye toggle — crossed = hidden, open = shown (family standard) */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 46px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink-40);
  display: flex; align-items: center;
}
.pw-toggle:hover { color: var(--platinum-ink); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 620px) { .form-row, .form-row-3 { grid-template-columns: 1fr; } }

.fieldset-block { border: 1px solid var(--ink-20); border-radius: var(--radius); padding: 26px; margin-bottom: 26px; }
.fieldset-block legend { padding: 0 10px; font: 600 var(--fs-meta)/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--emerald-deep); }

/* ─── ALERTS ──────────────────────────────────────────────────────────── */
.alert { padding: 14px 18px; border-radius: var(--radius); border-left: 3px solid; margin-bottom: 22px; font-size: var(--fs-small); }
.alert--ok    { background: rgba(5,150,105,.07);  border-color: var(--success); color: #044e3c; }
.alert--warn  { background: rgba(217,119,6,.07);  border-color: var(--warning); color: #7c4a06; }
.alert--error { background: rgba(185,28,28,.06);  border-color: var(--error);   color: #7f1d1d; }
.alert--info  { background: var(--cream);         border-color: var(--ink-40);  color: var(--ink-60); }

/* ─── BADGES / PILLS ──────────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 4px 10px; border-radius: var(--radius);
  font: 600 var(--fs-meta)/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase;
}
.badge--emerald { background: rgba(16,185,129,.12); color: var(--emerald-deep); }
.badge--forest  { background: var(--forest-ink); color: var(--emerald); }
.badge--muted   { background: var(--cream); color: var(--ink-60); }
.badge--warn    { background: rgba(217,119,6,.12); color: #7c4a06; }
.badge--error   { background: rgba(185,28,28,.09); color: var(--error); }

/* ─── LANGUAGE PICKER (searchable, ~104 languages) ────────────────────── */
.lang-picker { position: relative; }
.lang-picker__btn {
  background: none; border: 0; color: inherit; cursor: pointer; padding: 4px 2px;
  font: inherit; display: flex; align-items: center; gap: 6px;
}
.lang-picker__btn::after { content: '▾'; font-size: .85em; opacity: .7; }
.lang-picker__panel {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 200;
  width: 268px; max-height: 340px; background: var(--paper); color: var(--platinum-ink);
  border: 1px solid var(--ink-20); border-radius: var(--radius);
  box-shadow: var(--shadow-sticky); display: none; flex-direction: column;
}
.lang-picker__panel.is-open { display: flex; }
.lang-picker__search { padding: 10px; border-bottom: 1px solid var(--ink-20); }
.lang-picker__search input { padding: 9px 11px; font-size: 14px; }
.lang-picker__list { overflow-y: auto; padding: 6px; margin: 0; list-style: none; }
.lang-picker__list li { margin: 0; }
.lang-picker__list button {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 9px 11px; font: 400 14px/1.3 var(--sans); color: var(--platinum-ink);
  border-left: 2px solid transparent;
}
.lang-picker__list button:hover { background: var(--cream); border-left-color: var(--emerald); }
.lang-picker__list button[aria-selected="true"] { color: var(--emerald-deep); font-weight: 600; }
/* Hide Google's own injected banner/skiptranslate chrome */
.goog-te-banner-frame, .skiptranslate { display: none !important; }
body { top: 0 !important; }

/* ─── FOOTER ──────────────────────────────────────────────────────────── */
.site-footer { background: var(--forest-ink); color: rgba(248,247,242,.72); padding-block: 64px 0; font-size: var(--fs-small); }
.site-footer h4 {
  color: var(--cream); font: 600 var(--fs-meta)/1 var(--sans);
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.1rem;
}
.site-footer a { color: rgba(248,247,242,.72); }
.site-footer a:hover { color: var(--emerald); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: .55em; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 36px; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .footer-grid { grid-template-columns: 1fr; } }
/* width:auto is load-bearing: the <img> carries width="480" height="321" for
   layout stability, and a CSS height alone left the attribute width in force —
   the mark rendered squashed to 480×46. */
.footer-brand img { height: 96px; width: auto; margin-bottom: 18px; }
.footer-motto {
  font: 600 var(--fs-meta)/1 var(--sans); letter-spacing: .26em;
  text-transform: uppercase; color: var(--emerald); margin-bottom: 1.2rem;
}
.footer-legal {
  margin-top: 52px; padding-block: 26px; border-top: 1px solid rgba(248,247,242,.14);
  display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between;
  font-size: var(--fs-legal); color: rgba(248,247,242,.52);
}
.footer-legal p { margin: 0; max-width: 74ch; }
.footer-disclaimer { padding-bottom: 30px; font-size: var(--fs-legal); color: rgba(248,247,242,.45); line-height: 1.7; max-width: 90ch; }

/* ─── TRUST / ACCREDITATION STRIP ─────────────────────────────────────── */
.accreditation { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: center; opacity: .68; }
.accreditation img { height: 44px; width: auto; }

/* ─── 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;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--emerald); color: #fff; padding: 12px 20px; font-weight: 600;
}
.skip-link:focus { left: 0; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; } .mb-2 { margin-bottom: 2rem; }
.mt-3 { margin-top: 3rem; } .mb-3 { margin-bottom: 3rem; }
.maintenance { display: grid; place-items: center; min-height: 100vh; text-align: center; padding: 24px; }

/* ─── PRINT ───────────────────────────────────────────────────────────── */
@media print {
  .site-header, .utility-bar, .site-footer, .hero__media, .nav-toggle { display: none !important; }
  body { color: #000; background: #fff; }
  a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: 10px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   ACCOUNT-OPENING WIZARD
   ═══════════════════════════════════════════════════════════════════════ */
.wiz-rail {
  display: flex; gap: 0; list-style: none; margin: 0 0 36px; padding: 0;
  counter-reset: wiz; flex-wrap: wrap;
}
.wiz-rail__item {
  flex: 1; min-width: 110px; display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 0 6px; position: relative; text-align: center;
}
.wiz-rail__item::after {
  content: ''; position: absolute; top: 15px; left: 50%; width: 100%; height: 1px;
  background: var(--ink-20); z-index: 0;
}
.wiz-rail__item:last-child::after { display: none; }
.wiz-rail__num {
  position: relative; z-index: 1; width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid var(--ink-20); background: var(--cream);
  font: 500 .8125rem/1 var(--sans); color: var(--ink-60); border-radius: 50%;
  transition: background .2s, color .2s, border-color .2s;
}
.wiz-rail__label { font: 500 .6875rem/1.3 var(--sans); color: var(--ink-60); letter-spacing: .04em; }
.wiz-rail__item.is-current .wiz-rail__num {
  background: var(--emerald); border-color: var(--emerald); color: #fff;
}
.wiz-rail__item.is-current .wiz-rail__label { color: var(--platinum-ink); }
.wiz-rail__item.is-done .wiz-rail__num {
  background: var(--forest-ink); border-color: var(--forest-ink); color: var(--cream);
}

.wiz-step { border: 0; padding: 0; margin: 0; }
.wiz-step[hidden] { display: none; }
.wiz-step__legend { display: block; width: 100%; padding: 0; margin: 0 0 24px; }
.wiz-step__title {
  display: block; font: 400 clamp(1.375rem, 2.6vw, 1.875rem)/1.2 var(--serif);
  color: var(--platinum-ink); margin-bottom: 6px;
}
.wiz-step__sub { display: block; font-size: .9375rem; color: var(--ink-60); }
.wiz-nav {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--ink-20);
}
.wiz-nav .btn { min-width: 140px; }

/* Without JS every step is shown, so the rail would mislead — hide it. */
.no-js .wiz-rail { display: none; }
.no-js .wiz-step { display: block !important; margin-bottom: 40px; }

/* ═══════════════════════════════════════════════════════════════════════
   CARDS SHOWCASE — homepage + cards product page
   The same three finishes the dashboard uses, drawn in CSS so the fan
   renders before any image loads. Petra can replace with generated card
   artwork later: drop a 1012×638 image per finish at
   assets/images/card-{emerald,gold,graphite}.png and set it as background.
   ═══════════════════════════════════════════════════════════════════════ */
.split--wide { align-items: center; }
.cards-showcase .points--light li { color: var(--cream); }
.cards-showcase .points--light li::before { background: var(--emerald); }

.cards-fan {
  position: relative; height: 380px; perspective: 1400px;
}
.pcard-slot { position: absolute; left: 50%; top: 50%; width: min(360px, 86%); transition: transform .5s var(--ease); transform-origin: center; }
.pcard {
  position: absolute; left: 50%; top: 50%;
  width: min(340px, 86%); aspect-ratio: 1.586;
  border-radius: 12px;                          /* the one place the radius is allowed */
  padding: 22px 24px; color: #F4F2E9;
  box-shadow: 0 24px 48px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.18);
  display: flex; flex-direction: column; justify-content: space-between;
  transform-origin: center;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  overflow: hidden;
}
.pcard::after {                                 /* soft sheen */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 42%, rgba(255,255,255,0) 62%, rgba(255,255,255,.08) 100%);
  pointer-events: none;
}
.pcard--emerald  { background: linear-gradient(135deg, #0B4A36 0%, #10B981 58%, #6EE7B7 100%); }
.pcard--gold     { background: linear-gradient(135deg, #7A5A1E 0%, #C9A86A 55%, #EBD7A7 100%); color: #1A1408; }
.pcard--graphite { background: linear-gradient(135deg, #0B0F0E 0%, #2E3532 55%, #5A625F 100%); }

.cards-fan .pcard-slot:nth-child(1) { transform: translate(-50%, -50%) rotate(-12deg) translateX(-70px) translateY(20px); z-index: 1; }
.cards-fan .pcard-slot:nth-child(2) { transform: translate(-50%, -50%) rotate(0deg)   translateY(-10px);                    z-index: 3; }
.cards-fan .pcard-slot:nth-child(3) { transform: translate(-50%, -50%) rotate(12deg)  translateX(70px)  translateY(20px); z-index: 2; }
.cards-fan:hover .pcard-slot:nth-child(1) { transform: translate(-50%, -50%) rotate(-18deg) translateX(-120px) translateY(30px); }
.cards-fan:hover .pcard-slot:nth-child(3) { transform: translate(-50%, -50%) rotate(18deg)  translateX(120px)  translateY(30px); }
.cards-fan:hover .pcard-slot:nth-child(2) { transform: translate(-50%, -50%) translateY(-24px); }
@media (max-width: 700px) {
  .cards-fan { height: 300px; }
  .cards-fan .pcard-slot:nth-child(1), .cards-fan .pcard-slot:nth-child(3) { display: none; }
}

.pcard__top { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.pcard__chip {
  width: 38px; height: 28px; border-radius: 5px;
  background: linear-gradient(135deg, #E9DDB8, #B9A26B 60%, #E9DDB8);
  border: 1px solid rgba(0,0,0,.25);
}
.pcard__brand { flex: 1; font: 500 .8125rem/1 var(--serif); letter-spacing: .22em; }
.pcard__brand small { display: block; font: 500 .4375rem/1 var(--sans); letter-spacing: .28em; margin-top: 4px; opacity: .8; }
.pcard__wifi { width: 22px; height: 22px; opacity: .85; }
.pcard__num { position: relative; z-index: 1; font: 500 1.125rem/1 var(--mono); letter-spacing: .16em; margin: 0; }
.pcard__bottom { display: flex; justify-content: space-between; align-items: flex-end; position: relative; z-index: 1; }
.pcard__kind { font: 600 .6875rem/1 var(--sans); letter-spacing: .18em; }
.pcard__kind small { display: block; font: 500 .5rem/1 var(--sans); letter-spacing: .12em; margin-top: 6px; opacity: .8; }
.pcard__scheme { font: 800 1.125rem/1 var(--sans); font-style: italic; letter-spacing: .04em; text-align: right; }
.pcard__scheme small { display: block; font: 600 .4375rem/1 var(--sans); letter-spacing: .22em; font-style: normal; margin-top: 3px; opacity: .85; }

/* ═══════════════════════════════════════════════════════════════════════
   CHAT LAUNCHER — brand-shaped, always present
   ═══════════════════════════════════════════════════════════════════════ */
.egchat { position: fixed; right: 22px; bottom: 22px; z-index: 950; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.egchat__btn {
  width: 64px; height: 64px; padding: 0; border: 0; background: none; cursor: pointer;
  color: #14181F;                                   /* the near-black of Petra's reference */
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.28));
  transition: transform .18s var(--ease), color .18s;
}
.egchat__btn:hover { transform: translateY(-3px) scale(1.04); color: var(--forest-ink); }
.egchat__btn:focus-visible { outline: 3px solid var(--emerald); outline-offset: 4px; border-radius: 50%; }
.egchat__bubble { width: 100%; height: 100%; display: block; }
.egchat.is-open .egchat__btn { color: var(--emerald-deep); }
.egchat__panel {
  width: min(340px, calc(100vw - 44px)); background: var(--paper);
  border: 1px solid var(--ink-20); box-shadow: 0 24px 60px rgba(2,44,34,.28);
  animation: egchat-in .22s var(--ease);
}
@keyframes egchat-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.egchat__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--forest-ink); color: var(--cream); }
.egchat__head img { width: 34px; height: 34px; }
.egchat__title { font: 500 .875rem/1.2 var(--serif); letter-spacing: .04em; margin: 0; }
.egchat__sub { font: 400 .6875rem/1.3 var(--sans); color: rgba(248,247,242,.62); margin: 3px 0 0; }
.egchat__body { padding: 8px; }
.egchat__opt {
  display: flex; align-items: center; gap: 14px; padding: 12px 12px; text-decoration: none; color: var(--platinum-ink);
  border-bottom: 1px solid var(--ink-20); transition: background .15s;
}
.egchat__opt:last-child { border-bottom: 0; }
.egchat__opt:hover { background: var(--card-cream); }
.egchat__opt svg { width: 22px; height: 22px; color: var(--emerald-deep); flex-shrink: 0; }
.egchat__opt strong { display: block; font: 500 .9375rem/1.2 var(--sans); }
.egchat__opt small { display: block; font-size: .75rem; color: var(--ink-60); margin-top: 2px; }
.egchat__foot { margin: 0; padding: 12px 18px 14px; font-size: .6875rem; color: var(--ink-60); border-top: 1px solid var(--ink-20); line-height: 1.5; }
@media (max-width: 600px) { .egchat { right: 14px; bottom: 14px; } .egchat__btn { width: 56px; height: 56px; } }

/* ═══════════════════════════════════════════════════════════════════════
   PREMIUM PASS — motion, depth, typographic finish
   Everything here respects prefers-reduced-motion.
   ═══════════════════════════════════════════════════════════════════════ */
/* 1. The header turns to frosted glass once scrolled */
.site-header.is-stuck { background: rgba(255,255,255,.82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
/* 2. Hero: slow drift on the photograph, a grain layer, a gold hairline */
.hero__media img, .hero__media video { animation: hero-drift 28s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes hero-drift { from { transform: scale(1.02) translate(0,0); } to { transform: scale(1.10) translate(-1.6%, -1.2%); } }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: .18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.hero__inner { position: relative; z-index: 3; }
.hero h1 { font-weight: 300; letter-spacing: -.012em; }
.hero h1::after { content: ''; display: block; width: 64px; height: 1px; background: linear-gradient(90deg, #C9A86A, rgba(201,168,106,0)); margin: 22px 0 0; }
/* 3. Eyebrows get a leading gold tick */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ''; width: 22px; height: 1px; background: #C9A86A; }
/* 4. Cards: image lift, hairline hover, arrow motion */
.card { transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; border: 1px solid transparent; }
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -24px rgba(2,44,34,.35); border-color: rgba(201,168,106,.45); }
.card__media img { transition: transform .9s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.arrow-link::after { display: inline-block; transition: transform .25s var(--ease); }
.arrow-link:hover::after { transform: translateX(6px); }
/* 5. Buttons: a quiet sheen on the primary, sharper focus */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.28) 50%, rgba(255,255,255,0) 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn:focus-visible { outline: 2px solid var(--emerald-deep); outline-offset: 3px; }
/* 6. Stats read as engraved numerals */
.stat__num { font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 4vw, 3.4rem); letter-spacing: -.01em; }
/* 7. Section ornaments on forest sections */
.section--forest { position: relative; }
.section--forest::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(201,168,106,.7), transparent); }
/* 8. Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s } .reveal[data-delay="2"] { transition-delay: .2s } .reveal[data-delay="3"] { transition-delay: .3s }
@media (prefers-reduced-motion: reduce) {
  .hero__media img, .hero__media video { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .card__media img, .btn--primary::after { transition: none; }
}

/* ======================================================================
   LIVE FIXES — 5 Sep 2026
      Appended deliberately: later rules win, so each fix is one block and
         can be removed without unpicking the stylesheet above.
            ====================================================================== */
            
            /* A. Header — tighter band, larger navigation type.
                  The logo stays 150px; the white space around it is what shrinks. */
                  .site-header .wrap { min-height: 0; padding-top: 0; padding-bottom: 0; gap: 20px; }
                  .site-header.is-stuck .wrap { padding-top: 0; padding-bottom: 0; }
                  .brand { margin-block: -14px; }
                  .brand img { height: 150px; }
                  .site-header.is-stuck .brand img { height: 84px; }
                  .nav-main { gap: 10px; }
.nav-main > li > a { font-size: 1.0625rem; padding: 12px 12px; letter-spacing: .005em; }
@media (max-width: 1100px) { .nav-main { gap: 2px; } .nav-main > li > a { font-size: 1rem; padding: 12px 9px; } }
                  
                  /* B. Chat launcher — larger, floating, with a visible invitation.
                        Without a label the bubble reads as decoration; people do not click it. */
                        .egchat { right: 26px; bottom: 26px; gap: 10px; align-items: flex-end; }
                        .egchat__btn { width: 86px; height: 86px; animation: egchat-float 3.4s ease-in-out infinite; }
                        @keyframes egchat-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
                        .egchat__btn:hover { animation-play-state: paused; }
                        .egchat__invite {
                              order: -1; background: var(--forest-ink); color: var(--cream);
                                font: 500 .8125rem/1.35 var(--sans); padding: 10px 15px; max-width: 210px;
                                  box-shadow: 0 10px 26px rgba(2,44,34,.3); position: relative; text-align: left;
                                    animation: egchat-in .4s var(--ease) 1.2s both;
                        }
                        .egchat__invite::after {
                              content: ''; position: absolute; right: 26px; bottom: -7px; width: 0; height: 0;
                                border-left: 8px solid transparent; border-right: 8px solid transparent;
                                  border-top: 8px solid var(--forest-ink);
                        }
                        .egchat__invite b { display: block; color: var(--emerald); font-weight: 600; }
                        .egchat__invite-close {
                              position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%;
                                background: var(--cream); color: var(--forest-ink); border: 0; cursor: pointer;
                                  font: 700 .75rem/1 var(--sans); box-shadow: 0 2px 6px rgba(0,0,0,.25);
                        }
                        .egchat.is-open .egchat__invite { display: none; }
                        @media (prefers-reduced-motion: reduce) { .egchat__btn { animation: none; } }
                        @media (max-width: 600px) {
                              .egchat { right: 16px; bottom: 16px; }
                                .egchat__btn { width: 66px; height: 66px; }
                                  .egchat__invite { max-width: 165px; font-size: .75rem; }
}


/* ======================================================================
   D. LEADERSHIP
   ====================================================================== */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 980px) { .team-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 620px) { .team-grid { grid-template-columns: 1fr; } }

.team-card { background: var(--paper); border: 1px solid var(--ink-20);
  display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.team-card:hover { transform: translateY(-5px); box-shadow: 0 26px 44px -22px rgba(2,44,34,.34); border-color: rgba(201,168,106,.5); }

.team-card__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--forest-ink); }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%;
  transition: transform .9s var(--ease); display: block; }
.team-card:hover .team-card__photo img { transform: scale(1.05); }

.team-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.team-card__name { font: 400 1.375rem/1.2 var(--serif); margin: 0 0 4px; color: var(--platinum-ink); }
.team-card__role { font: 500 .6875rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--emerald-deep); margin: 0 0 14px; }
.team-card__bio { font-size: .9375rem; line-height: 1.65; color: var(--ink-60); margin: 0 0 16px; }
.team-card__focus { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--ink-20);
  font-size: .8125rem; line-height: 1.5; color: var(--platinum-ink); }
.team-card__focus span { display: block; font: 500 .625rem/1 var(--sans); letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-60); margin-bottom: 6px; }


/* ======================================================================
   E. SIGN-IN PANEL TEXTURE
   The geometric plate sits behind the sign-in form at very low opacity so
   the panel is not a flat block of colour. Purely decorative: it carries no
   information and is skipped by screen readers.
   ====================================================================== */
.auth__panel::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url('/assets/images/bg-login-geometric.jpeg') center / cover no-repeat;
  opacity: .05; mix-blend-mode: luminosity;
}
.auth__panel > * { position: relative; z-index: 1; }

/* Section ornament — the emerald monogram, used as a quiet watermark behind
   cream sections so they are not blank fields of colour. Decorative only. */
.section--cream { position: relative; overflow: hidden; }
.section--cream::after {
  content: ''; position: absolute; right: -60px; bottom: -60px; width: 320px; height: 320px;
  background: url('/assets/images/monogram-emerald.png') center / contain no-repeat;
  opacity: .04; pointer-events: none;
}
@media (max-width: 760px) { .section--cream::after { width: 190px; height: 190px; } }


/* ======================================================================
   C. LANDING SLIDER
   Five scenes on a rail that translates horizontally. The active image
   drifts slowly so a still photograph does not sit dead on screen, and a
   gradient veil keeps the headline legible over any part of any picture.
   ====================================================================== */
.hero--slider { position: relative; overflow: hidden; background: var(--forest-ink); }
.hero__viewport { overflow: hidden; }
.hero__rail {
  display: flex; width: calc(100% * var(--count));
  transform: translateX(0);
  transition: transform .95s cubic-bezier(.65,.02,.28,1);
  will-change: transform;
}
.hero__slide { position: relative; width: calc(100% / var(--count)); flex: 0 0 auto;
  min-height: clamp(560px, 78vh, 860px); display: flex; align-items: center; }
.hero__slide .hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__slide .hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
/* slow drift, only on the slide currently in view */
.hero__slide.is-active .hero__media img { animation: hero-drift 9s ease-out forwards; }
@keyframes hero-drift { from { transform: scale(1.06); } to { transform: scale(1.14); } }

.hero__veil { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(2,44,34,.93) 0%, rgba(2,44,34,.74) 32%, rgba(2,44,34,.20) 62%, rgba(2,44,34,.05) 100%),
    linear-gradient(to top, rgba(2,44,34,.55) 0%, rgba(2,44,34,0) 42%); }
.hero__slide .hero__inner { position: relative; z-index: 2; width: 100%; padding-bottom: 74px; }
.hero__slide h1 { color: var(--cream); max-width: 17ch; }
.hero__slide .lead { color: rgba(248,247,242,.9); max-width: 52ch; }
.hero__slide .eyebrow { color: var(--gold); }
.hero__slide .eyebrow::before { background: var(--gold); }

/* entrance: text lifts in once its slide lands */
.hero__slide .eyebrow, .hero__slide h1, .hero__slide .lead, .hero__slide .hero__actions { opacity: 0; transform: translateY(20px); }
.hero__slide.is-active .eyebrow,
.hero__slide.is-active h1,
.hero__slide.is-active .lead,
.hero__slide.is-active .hero__actions { animation: hero-rise .75s var(--ease) forwards; }
.hero__slide.is-active h1 { animation-delay: .10s; }
.hero__slide.is-active .lead { animation-delay: .18s; }
.hero__slide.is-active .hero__actions { animation-delay: .26s; }
@keyframes hero-rise { to { opacity: 1; transform: none; } }

/* arrows */
.hero__arrow { position: absolute; top: 46%; transform: translateY(-50%); z-index: 6;
  width: 56px; height: 56px; display: grid; place-items: center; cursor: pointer;
  color: var(--cream); background: rgba(2,44,34,.34); border: 1px solid rgba(248,247,242,.28);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .2s, border-color .2s, opacity .2s; opacity: 0; }
.hero--slider:hover .hero__arrow, .hero__arrow:focus-visible { opacity: 1; }
.hero__arrow:hover { background: var(--emerald-deep); border-color: var(--emerald); }
.hero__arrow svg { width: 22px; height: 22px; }
.hero__arrow--prev { left: 24px; } .hero__arrow--next { right: 24px; }

/* bottom bar: motto, progress dots, counter */
.hero__bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  padding: 18px 0 22px; background: linear-gradient(to top, rgba(2,44,34,.62), rgba(2,44,34,0)); }
.hero__bar-inner { display: flex; align-items: center; gap: 24px; }
.hero__motto { margin: 0; font: 500 .625rem/1 var(--sans); letter-spacing: .28em;
  text-transform: uppercase; color: rgba(248,247,242,.62); }
.hero__dots { display: flex; gap: 10px; margin-left: auto; }
.hero__dot { position: relative; width: 46px; height: 3px; padding: 0; border: 0; cursor: pointer;
  background: rgba(248,247,242,.28); overflow: hidden; }
.hero__dot-fill { position: absolute; inset: 0; width: 0; background: var(--emerald); }
.hero__dot.is-active .hero__dot-fill { width: 100%; transition: width 5s linear; }
.hero__dot:focus-visible { outline: 2px solid var(--emerald); outline-offset: 5px; }
.hero__count { margin: 0; font: 500 .75rem/1 var(--mono); color: rgba(248,247,242,.72); min-width: 44px; text-align: right; }
.hero__count i { opacity: .45; margin: 0 3px; font-style: normal; }

@media (max-width: 860px) {
  .hero__slide { min-height: 74vh; }
  .hero__arrow { display: none; }
  .hero__motto { display: none; }
  .hero__dots { margin: 0 auto; }
  .hero__veil { background: linear-gradient(to top, rgba(2,44,34,.92) 8%, rgba(2,44,34,.55) 48%, rgba(2,44,34,.28) 100%); }
}
/* Reduced motion: the slider still advances (a hero that never changes is a
   broken hero), but it cuts rather than slides and the image does not drift. */
.hero--slider.is-still .hero__rail { transition: none; }
.hero--slider.is-still .hero__slide.is-active .hero__media img { animation: none; transform: scale(1.02); }
.hero--slider.is-still .hero__slide .eyebrow,
.hero--slider.is-still .hero__slide h1,
.hero--slider.is-still .hero__slide .lead,
.hero--slider.is-still .hero__slide .hero__actions { opacity: 1; transform: none; animation: none; }
.hero--slider.is-still .hero__dot.is-active .hero__dot-fill { transition: none; width: 100%; }


/* ======================================================================
   F. WHO WE BANK
   A horizontal rail of sector photographs. Scroll-snap keeps cards aligned
   without any JavaScript; the section still works with scripting off.
   ====================================================================== */
.people-section { padding-bottom: 64px; }
.people-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 34px; }
.people-head__lead { font-size: 1rem; line-height: 1.7; color: var(--ink-60); margin: 0; max-width: 54ch; }
@media (max-width: 820px) { .people-head { grid-template-columns: 1fr; gap: 18px; } }

/* Three across, wrapping to the next row — ten cards read as a considered
   set rather than an endless strip. Two up on tablet, one on a phone. */
.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 980px) { .people-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 620px) { .people-grid { grid-template-columns: 1fr; } }

.people-card {
  margin: 0;
  background: var(--paper); border: 1px solid var(--ink-20); overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.people-card:hover { transform: translateY(-5px); box-shadow: 0 26px 44px -22px rgba(2,44,34,.32); border-color: rgba(201,168,106,.5); }
.people-card picture { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.people-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s var(--ease); }
.people-card:hover img { transform: scale(1.06); }
.people-card figcaption { padding: 16px 18px 18px; display: block; }
.people-card__title { display: block; font: 500 .6875rem/1.3 var(--sans); letter-spacing: .16em;
  text-transform: uppercase; color: var(--emerald-deep); margin-bottom: 6px; }
.people-card__copy { display: block; font-size: .9375rem; line-height: 1.55; color: var(--platinum-ink); }

.people-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.people-foot p { margin: 0; font-family: var(--serif); font-size: 1.25rem; color: var(--platinum-ink); }
@media (prefers-reduced-motion: reduce) { .people-card, .people-card img { transition: none; } }

/* Slides 2-5 carry the same wording weight as the first, but only slide one is
   an <h1> — a page should have a single top-level heading. This makes the
   others look identical without pretending to be headings. */
.hero__h { font: 300 clamp(2.4rem, 5.2vw, 4.4rem)/1.06 var(--serif); letter-spacing: -.012em;
  color: var(--cream); max-width: 17ch; margin: 0 0 1.1rem; }
.hero__h::after { content: ''; display: block; width: 64px; height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(201,168,106,0)); margin: 22px 0 0; }
.hero__slide .hero__h { opacity: 0; transform: translateY(20px); }
.hero__slide.is-active .hero__h { animation: hero-rise .75s var(--ease) .10s forwards; }
.hero--slider.is-still .hero__slide .hero__h { opacity: 1; transform: none; animation: none; }


/* ======================================================================
   SUBMISSIONS FRONT DOOR
   Rendered by pages/exchange-home.php, only ever seen at the submissions
   domain, which reverse-proxies it for a bare "/".
   ====================================================================== */
.gate-hero { position: relative; min-height: 82vh; display: flex; align-items: center;
  overflow: hidden; background: var(--forest-ink); }
.gate-hero__media { position: absolute; inset: 0; }
.gate-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.gate-hero__veil { position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(2,44,34,.95) 0%, rgba(2,44,34,.8) 42%, rgba(2,44,34,.35) 100%); }
.gate-hero__inner { position: relative; z-index: 2; padding-block: 72px; max-width: 760px; }
.gate-hero h1 { color: var(--cream); max-width: 16ch; }
.gate-hero .lead { color: rgba(248,247,242,.9); max-width: 56ch; }
.gate-hero .eyebrow { color: var(--gold); }
.gate-hero .eyebrow::before { background: var(--gold); }
.gate-hero__note { font-size: .9375rem; line-height: 1.7; color: rgba(248,247,242,.68);
  max-width: 56ch; margin: 0 0 26px; }
.gate-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.gate-hero__trust { border-top: 1px solid rgba(201,168,106,.28); padding-top: 20px; max-width: 62ch; }
.gate-hero__trust p { font-size: .875rem; line-height: 1.75; color: rgba(248,247,242,.72); margin: 0; }
.gate-hero__trust strong { color: var(--cream); }
.gate-hero__trust .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .8125rem; color: var(--emerald); word-break: break-all; }
@media (max-width: 700px) {
  .gate-hero { min-height: 88vh; }
  .gate-hero__veil { background: linear-gradient(to top, rgba(2,44,34,.96) 20%, rgba(2,44,34,.7) 100%); }
}
