/* ==========================================================================
   LoyalEdge careers — v3: all-sans corporate, photography-led.
   White ground, flat quiet panels, brand navy #1B3476 / blue #4780FF.
   No external requests: system faces, local images only. No italics.
   ========================================================================== */

:root {
  --paper:    #FFFFFF;
  --panel:    #F3F6FB;   /* flat quiet panel */
  --hairline: #E5EAF2;
  --ink:      #16295E;   /* headings */
  --ink-soft: #2A3E6E;
  --slate:    #48546F;   /* body */
  --mist:     #7A85A1;   /* meta, captions */
  --blue:     #4780FF;
  --blue-700: #2F63E0;
  --navy:     #1B3476;   /* bands */
  --navy-deep:#12245C;   /* footer */
  --on-navy:  #C9D5F4;
  --on-navy-dim: #8FA2D6;
  --bad:      #C43D3D;
  --ok:       #1E7A4F;

  --sans: system-ui, "Segoe UI", -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1216px;
  --gut: clamp(20px, 4vw, 48px);
  /* left/right padding that lines full-bleed children up with .wrap content */
  --edge: max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut)));

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow-soft: 0 20px 50px -32px rgba(18, 36, 92, .28);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--slate);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
figure { margin: 0; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  text-wrap: balance;
}

/* the whole page is upright — em carries emphasis through weight/colour instead */
em { font-style: normal; }

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--blue-700); text-decoration: none; }

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

::selection { background: rgba(71, 128, 255, .18); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  padding: 12px 18px; background: var(--ink); color: #fff;
  font: 600 14px/1 var(--sans); border-radius: var(--r-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 14px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

/* ==========================================================================
   Shared furniture
   ========================================================================== */

.section { padding: clamp(80px, 9.5vw, 128px) 0; }

.section-head { margin-bottom: clamp(38px, 5vw, 60px); }
.section-head h2, .about-grid h2 {
  font-size: clamp(1.9rem, 3.3vw, 2.7rem);
  line-height: 1.12;
  margin-bottom: .5em;
}
.section-sub { font-size: 1.09rem; margin-bottom: 0; }

.section-dark { background: var(--navy); color: var(--on-navy); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-sub { color: var(--on-navy); }

.section-panel { background: var(--panel); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 26px; height: 50px;
  font: 600 15px/1 var(--sans); letter-spacing: .005em;
  border-radius: var(--r-sm); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: background-color .22s var(--ease), border-color .22s var(--ease),
              color .22s var(--ease), transform .22s var(--ease),
              box-shadow .22s var(--ease);
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover {
  background: var(--blue-700);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -14px rgba(47, 99, 224, .65);
}
.btn-primary:active { transform: translateY(0); box-shadow: 0 6px 14px -10px rgba(47, 99, 224, .6); }
.btn-ghost { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-lg { height: 54px; padding: 0 30px; font-size: 15.5px; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 13.5px; }

.btn .btn-arr { transition: transform .25s var(--ease); }
.btn:hover .btn-arr { transform: translateX(4px); }

.link-quiet {
  display: inline-flex; align-items: center; gap: 9px;
  font: 600 15px/1 var(--sans); color: var(--ink);
  padding: 6px 2px;
  transition: color .2s var(--ease);
}
.link-quiet:hover { color: var(--blue-700); }
.link-quiet::after {
  content: "→";
  color: var(--blue);
  transition: transform .25s var(--ease);
}
.link-quiet:hover::after { transform: translateX(4px); }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--hairline);
  box-shadow: 0 12px 30px -26px rgba(18, 36, 92, .4);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 28px;
}

.logo { color: var(--ink); transition: opacity .2s var(--ease); }
.logo:hover { opacity: .78; }
.logo-svg { width: 156px; height: 47px; color: var(--ink); }

.nav { display: flex; align-items: center; gap: 2px; }
/* plain links only — the CTA keeps its .btn styling (scoping prevents the
   cascade collision that made its label invisible) */
.nav > a:not(.nav-cta) {
  position: relative;
  padding: 10px 13px;
  font: 600 14.5px/1 var(--sans);
  color: var(--slate);
  border-radius: var(--r-sm);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav > a:not(.nav-cta):hover { color: var(--ink); background: var(--panel); }
.nav > a.is-active:not(.nav-cta) { color: var(--blue-700); }
.nav > .nav-cta { margin-left: 14px; height: 42px; padding: 0 28px; font-size: 14px; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: 0; cursor: pointer;
}
.menu-toggle span {
  display: block; height: 2px; margin: 5px 0;
  background: var(--ink); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero — copy left, photography bleeding to the right edge
   ========================================================================== */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  min-height: clamp(540px, 82vh, 780px);
}

.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(48px, 7vh, 88px) clamp(36px, 5vw, 84px) clamp(48px, 7vh, 88px) var(--edge);
}

.hero-title {
  margin: 0 0 26px;
  font-size: clamp(2.6rem, 5.6vw, 4.7rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.028em;
}
.hero-title .acc {
  display: block;
  font-size: .52em;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--blue-700);
}
.hl-acc { margin-top: .3em; }

/* masked line reveal */
.hl { display: block; overflow: hidden; }
.hl > span {
  display: block;
  transform: translateY(112%);
  animation: line-up 1s var(--ease) forwards;
  animation-delay: calc(120ms + var(--l, 0) * 100ms);
}
@keyframes line-up { to { transform: translateY(0); } }

.reveal-load {
  opacity: 0;
  transform: translateY(16px);
  animation: load-in .9s var(--ease) forwards;
  animation-delay: calc(160ms + var(--l, 0) * 100ms);
}
@keyframes load-in { to { opacity: 1; transform: translateY(0); } }

.hero .lede {
  max-width: 50ch;
  font-size: 1.14rem;
  margin-bottom: 34px;
}

.hero-cta { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }

.hero-media { position: relative; overflow: hidden; }
.hero-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* --par is driven by the scroll parallax in script.js; the constant
     over-scale gives the drift room to move without exposing edges */
  transform: translate3d(0, var(--par, 0px), 0) scale(1.08);
  opacity: 0;
  animation: media-in 1.1s var(--ease) .18s forwards;
}
@keyframes media-in { to { opacity: 1; } }

/* ---------- stat band ---------- */
.statband { background: var(--navy); }
.trust {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding: clamp(30px, 4vw, 44px) 0;
}
/* items cascade in one after another once the band reveals */
.trust li {
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  opacity: 0; transform: translateY(12px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.trust.is-in li { opacity: 1; transform: none; }
.trust li:nth-child(2) { transition-delay: 90ms; }
.trust li:nth-child(3) { transition-delay: 180ms; }
.trust li:nth-child(4) { transition-delay: 270ms; }
.trust strong {
  font-size: 2.1rem; font-weight: 700; line-height: 1;
  letter-spacing: -.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
/* direct child only — the counter script injects spans INSIDE the strong,
   and those must inherit the number styling, not the label styling */
.trust li > span {
  font-size: 11.5px; font-weight: 600; line-height: 1.4;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--on-navy-dim);
}

/* ==========================================================================
   Why — three flat panels
   ========================================================================== */

.props {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.prop {
  background: var(--panel);
  border-radius: var(--r-md);
  padding: 32px 30px 30px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              background-color .3s var(--ease);
}
.prop:hover {
  background: var(--paper);
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}
.prop h3 { font-size: 1.16rem; line-height: 1.3; margin-bottom: .7em; }
.prop-quote {
  font-size: 1rem; font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: .75em;
}
.prop p:last-child { margin-bottom: 0; font-size: .97rem; }

/* ==========================================================================
   Who we're looking for — photo + profile list
   ========================================================================== */

.cand-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 5.5vw, 88px);
  align-items: center;
}
.cand-media { position: relative; overflow: hidden; border-radius: var(--r-lg); }
.cand-media img { width: 100%; height: 100%; max-height: 640px; object-fit: cover; }

.profiles { display: grid; gap: 0; }
.profile {
  padding: 24px 0;
  border-top: 1px solid var(--hairline);
  transition: border-color .3s var(--ease);
}
.profile:last-child { border-bottom: 1px solid var(--hairline); }
.profile h3 { font-size: 1.24rem; margin-bottom: .35em; transition: color .25s var(--ease); }
.profile:hover { border-top-color: var(--blue); }
.profile:hover h3 { color: var(--blue-700); }
.profile p { margin: 0; font-size: .99rem; max-width: 54ch; }

/* ==========================================================================
   Malta — full-bleed photo | navy panel
   ========================================================================== */

.malta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  background: var(--navy);
}
.malta-media { position: relative; overflow: hidden; min-height: 340px; }
.malta-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: translate3d(0, var(--par, 0px), 0) scale(1.1);
}
.malta-panel {
  padding: clamp(56px, 7vw, 100px) var(--edge) clamp(56px, 7vw, 100px) clamp(40px, 5vw, 88px);
  color: var(--on-navy);
}
.malta-panel h2 { color: #fff; font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.12; }
.malta-panel .section-sub { color: var(--on-navy); margin-bottom: 40px; }

.malta-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 34px;
}
.m-item {
  padding-left: 18px; border-left: 2px solid var(--blue);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.m-item:hover { transform: translateX(4px); border-color: #fff; }
.m-item h3 { font-size: 1.03rem; color: #fff; margin-bottom: .4em; }
.m-item p { margin: 0; font-size: .94rem; }

/* ==========================================================================
   Open roles — accordion list
   ========================================================================== */

.roles { display: grid; gap: 16px; }
.role {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.role:hover { border-color: #C6D4EE; box-shadow: var(--shadow-soft); }
.role.is-open { border-color: var(--blue); box-shadow: var(--shadow-soft); }

.role-head { margin: 0; }
.role-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  width: 100%; padding: 24px 26px;
  background: none; border: 0; cursor: pointer;
  text-align: left; font-family: inherit;
  border-radius: var(--r-md);
}

.role-title {
  display: flex; flex-direction: column; gap: 12px;
  font-size: 1.3rem; font-weight: 700; letter-spacing: -.015em;
  line-height: 1.25;
  color: var(--ink);
}
.role-title em { font-weight: 700; color: var(--blue-700); }

.role-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 6px 11px;
  font-size: 11.5px; font-weight: 600; line-height: 1; letter-spacing: .02em;
  color: var(--ink-soft);
  background: var(--panel);
  border-radius: 999px;
}
.tag-accent { color: var(--blue-700); background: rgba(71, 128, 255, .12); }

.role-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 8px;
}
.fact {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 15px;
  background: var(--panel); border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft); line-height: 1.35;
}
.fact svg { width: 20px; height: 20px; flex: none; color: var(--blue-700); }

.role-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.role-reply { margin: 0; font-size: .9rem; color: var(--mist); }

.role-chev {
  position: relative; flex: none;
  width: 44px; height: 44px;
  border: 1px solid var(--hairline); border-radius: 50%;
  transition: background-color .25s var(--ease), border-color .25s var(--ease),
              transform .35s var(--ease);
}
.role-chev::before, .role-chev::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 14px; height: 2px; background: var(--ink);
  transition: background-color .25s var(--ease), transform .35s var(--ease);
}
.role-chev::before { transform: translate(-50%, -50%); }
.role-chev::after  { transform: translate(-50%, -50%) rotate(90deg); }
.role-toggle:hover .role-chev { border-color: var(--navy); }
.role.is-open .role-chev { background: var(--navy); border-color: var(--navy); transform: rotate(180deg); }
.role.is-open .role-chev::before, .role.is-open .role-chev::after { background: #fff; }
.role.is-open .role-chev::after { transform: translate(-50%, -50%) rotate(180deg); }

.role-body { overflow: hidden; }
.role-body-inner {
  padding: 0 26px 32px;
  opacity: 0; transform: translateY(-6px);
  transition: opacity .45s var(--ease) .08s, transform .45s var(--ease) .08s;
}
.role.is-open .role-body-inner { opacity: 1; transform: none; }
.role-overview { padding: 6px 0 0; font-size: 1.05rem; }

.role-cols {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px; margin: 16px 0 30px;
}
.role-cols h4 {
  font-size: 12px; font-weight: 650; line-height: 1;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--mist); margin-bottom: 16px;
}
.ticks li {
  position: relative;
  padding: 0 0 10px 26px;
  font-size: .97rem;
}
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 7px;
  width: 10px; height: 5px;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

.roles-note { margin: 26px 2px 0; font-size: .95rem; color: var(--mist); }

/* ==========================================================================
   Benefits — quiet band, three columns
   ========================================================================== */

.perks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(216px, 1fr));
  gap: 14px;
}
.perk {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  font-size: 14.5px; font-weight: 600; line-height: 1.35;
  color: var(--ink-soft);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease);
}
.perk:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: #C6D4EE; }
.perk-icon {
  flex: none; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 11px;
  background: rgba(71, 128, 255, .1);
  color: var(--blue-700);
  transition: background-color .3s var(--ease), color .3s var(--ease),
              transform .3s var(--ease);
}
.perk-icon svg { width: 21px; height: 21px; }
.perk:hover .perk-icon { background: var(--blue-700); color: #fff; transform: scale(1.07) rotate(-4deg); }

.perks-note {
  margin: 26px 0 0;
  font-size: .86rem; line-height: 1.6;
  color: var(--mist);
}

/* ==========================================================================
   Growth — vertical timeline
   ========================================================================== */

.growth-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.growth-grid .section-head { margin-bottom: 0; position: sticky; top: 118px; }

.path { display: grid; gap: 0; }
.path li {
  position: relative;
  padding: 0 0 34px 62px;
}
.path li::before {
  content: ""; position: absolute; left: 17px; top: 40px; bottom: 0;
  width: 2px; background: var(--hairline);
}
.path li:last-child::before { display: none; }
.path li:last-child { padding-bottom: 0; }
.path li { transition: transform .3s var(--ease); }
.path li:hover { transform: translateX(4px); }
.path-num {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-size: 13px; font-weight: 650;
  font-variant-numeric: tabular-nums;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.path li:hover .path-num { background: var(--blue-700); transform: scale(1.1); }
.path h3 { font-size: 1.22rem; margin-bottom: .3em; padding-top: 4px; }
.path p { margin: 0; font-size: .96rem; max-width: 52ch; }

/* ==========================================================================
   About — copy + stats | photo
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 5.5vw, 92px);
  align-items: center;
}
.section-sub.about-copy {
  font-size: 1.22rem; font-weight: 550; line-height: 1.55;
  color: var(--ink-soft);
  max-width: 58ch;
  margin-bottom: .9em;
}
p.about-copy:not(.section-sub) { font-size: 1rem; max-width: 60ch; }

.about-stats {
  display: flex; gap: clamp(28px, 4vw, 56px);
  margin-top: 34px; padding-top: 28px;
  border-top: 1px solid var(--hairline);
}
.stat strong {
  display: block;
  font-size: 2.15rem; font-weight: 700; line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat span {
  font-size: 11.5px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mist);
}

.about-media { position: relative; overflow: hidden; border-radius: var(--r-lg); }
.about-media img { width: 100%; height: 100%; max-height: 560px; object-fit: cover; }

/* ==========================================================================
   Apply — head | form panel
   ========================================================================== */

.apply-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 5.5vw, 92px);
  align-items: start;
}
.apply-grid .section-head { margin-bottom: 0; position: sticky; top: 118px; }

.form {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  background: var(--panel);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3.5vw, 42px);
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field-wide { grid-column: 1 / -1; }

.field label, .check {
  font-size: 13.5px; font-weight: 600; line-height: 1.45;
  color: var(--ink-soft);
  transition: color .2s var(--ease);
}
.field:focus-within > label { color: var(--blue-700); }
.req { color: var(--blue-700); }
.opt { color: var(--mist); font-weight: 500; }

.field input:not([type="checkbox"]):not([type="file"]),
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  font: 400 15.5px/1.4 var(--sans);
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid #D9E0EC;
  border-radius: var(--r-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:hover:not(:focus):not([type="file"]),
.field select:hover:not(:focus),
.field textarea:hover:not(:focus) { border-color: #B9C6DE; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(71, 128, 255, .16);
}
.field [aria-invalid="true"] { border-color: var(--bad); }
.field input[type="file"] {
  padding: 11px 0;
  font: 400 14px/1.4 var(--sans);
  color: var(--slate);
}

.err { margin: 0; font-size: 13px; font-weight: 500; color: var(--bad); }
.err:empty { display: none; }

.consent .check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.consent input { margin-top: 3px; accent-color: var(--blue-700); width: 16px; height: 16px; flex: none; }
.consent a { text-decoration: underline; text-underline-offset: 2px; }

.form-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.form-note { margin: 0; font-size: .85rem; color: var(--mist); }

.form-status { grid-column: 1 / -1; margin: 0; font-size: 14.5px; font-weight: 600; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-bad { color: var(--bad); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-deep);
  color: var(--on-navy);
  padding: clamp(54px, 7vw, 80px) 0 0;
}
.footer-inner {
  display: grid; grid-template-columns: 1.2fr .7fr 1.3fr;
  gap: 44px;
  padding-bottom: 50px;
}
.footer-brand p {
  margin: 18px 0 0;
  font-size: 1rem; font-weight: 550;
  color: var(--on-navy);
}
.logo-svg--footer { width: 164px; height: 50px; color: #fff; }

.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a {
  font-size: 14px; font-weight: 600;
  color: var(--on-navy);
  transition: color .2s var(--ease), transform .25s var(--ease);
}
.footer-nav a:hover { color: #fff; transform: translateX(3px); }

.footer-legal p { font-size: .9rem; color: var(--on-navy-dim); margin-bottom: .9em; }
.footer-legal strong { color: var(--on-navy); }
.footer-contact a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.footer-disclaimer { padding-bottom: 30px; }
.footer-disclaimer p {
  max-width: 92ch; margin: 0;
  font-size: .82rem; line-height: 1.65;
  color: var(--on-navy-dim);
}
.footer-disclaimer strong { color: var(--on-navy); }

.footer-bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 26px; padding-bottom: 30px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .86rem; color: var(--on-navy-dim);
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--on-navy); }
.footer-bottom a:hover { color: #fff; }

/* ==========================================================================
   Scroll progress + reveals
   ========================================================================== */

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120;
  pointer-events: none;
}
.scroll-progress i {
  display: block; height: 100%;
  background: var(--blue);
  transform: scaleX(0); transform-origin: 0 50%;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* photography settles into place as it reveals, and answers the cursor */
.media-reveal img {
  transform: scale(1.05);
  transition: transform 1.4s var(--ease);
  transition-delay: var(--d, 0ms);
}
.media-reveal.is-in img { transform: scale(1); transition-delay: 0ms; }
.media-reveal.is-in:hover img { transform: scale(1.04); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: clamp(44px, 7vw, 64px) var(--gut); }
  .hero-media { min-height: 340px; }
  .hero-media img { position: absolute; }
  .props { grid-template-columns: 1fr; }
  .cand-grid { grid-template-columns: 1fr; }
  .cand-media img { max-height: 420px; }
  .malta-band { grid-template-columns: 1fr; }
  .malta-panel { padding: clamp(48px, 7vw, 72px) var(--gut); }
  .growth-grid, .apply-grid { grid-template-columns: 1fr; }
  .growth-grid .section-head, .apply-grid .section-head { position: static; margin-bottom: 38px; }
  .about-grid { grid-template-columns: 1fr; }
  .role-facts { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 84px; }
  .header-inner { height: 66px; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 66px 0 auto; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 30px 50px -30px rgba(18, 36, 92, .3);
    padding: 12px var(--gut) 22px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .28s var(--ease), opacity .22s var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav > a:not(.nav-cta) { padding: 14px 12px; font-size: 1.02rem; }
  .nav > .nav-cta { margin: 12px 0 0; height: 48px; }

  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .malta-list { grid-template-columns: 1fr; }
  .role-cols { grid-template-columns: 1fr; gap: 26px; }
  .role-toggle { padding: 20px 18px; }
  .role-body-inner { padding: 0 18px 26px; }
  .role-title { font-size: 1.16rem; }
  .form { grid-template-columns: 1fr; gap: 18px; }
  .about-stats { flex-wrap: wrap; }
}

@media (max-width: 560px) {
  :root { --gut: 20px; }
  body { font-size: 16px; }
  .logo-svg { width: 130px; height: 40px; }
  .hero-title { font-size: clamp(2.3rem, 9.5vw, 2.6rem); }
  .hero-cta .btn { width: 100%; }
  .hero-cta { gap: 18px; }
  .footer-inner { grid-template-columns: 1fr; gap: 34px; }
}

/* ==========================================================================
   Motion preferences / print
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .hl > span { transform: none; animation: none; }
  .reveal-load { opacity: 1; transform: none; animation: none; }
  .reveal { opacity: 1; transform: none; }
  .hero-media img { opacity: 1; animation: none; transform: none; }
  .malta-media img { transform: none; }
  .media-reveal img { transform: none; }
  .trust li { opacity: 1; transform: none; }
  .role-body-inner { opacity: 1; transform: none; }
}

@media print {
  .site-header, .scroll-progress, .skip-link, .menu-toggle { display: none; }
  .section-dark, .statband, .malta-band, .site-footer { background: #fff; color: #000; }
}

/* ==========================================================================
   Legal pages (terms.html, privacy.html)
   ========================================================================== */

.legal-main { padding: clamp(52px, 7vw, 88px) 0 clamp(84px, 10vw, 132px); }
.legal-wrap { max-width: 820px; }

.legal-head {
  margin-bottom: clamp(34px, 5vw, 52px);
  padding-bottom: clamp(24px, 3vw, 34px);
  border-bottom: 1px solid var(--hairline);
}
.legal-kicker {
  margin: 0 0 14px;
  font: 700 13px/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-700);
}
.legal-head h1 {
  font-size: clamp(2rem, 4.2vw, 2.8rem);
  line-height: 1.1;
  margin: 0;
}

.legal-body h2 {
  font-size: 1.22rem;
  margin: 2.1em 0 .65em;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin-bottom: 1.05em; }
.legal-body ul {
  list-style: disc;
  padding-left: 1.5em;
  margin: 0 0 1.05em;
}
.legal-body li { margin-bottom: .45em; padding-left: .2em; }
.legal-body li::marker { color: var(--blue); }
.legal-body strong { color: var(--ink-soft); }
.legal-body a { text-decoration: underline; text-underline-offset: 3px; }
