/* ==========================================================================
   Women, Money & Tech — landing page
   Shared stylesheet for the EN (/index.html) and PL (/pl/index.html) versions.
   Palette sampled from the report cover.
   ========================================================================== */

:root {
  --ink:        #060D22;
  --ink-2:      #0A1330;   /* alternating section band, one step above --ink */
  --ink-card:   #131C3A;
  --ink-line:   #222C50;
  --gold:       #D4AC73;
  --gold-lt:    #E7C68F;
  --purple:     #6E42A6;
  --purple-lt:  #9B6FD4;
  --text:       #FFFFFF;
  --text-mut:   #A9AEC6;
  --error:      #FF9B8F;   /* 8:1 on --ink, deliberately not the brand gold */

  --serif: "Playfair Display", "Times New Roman", Times, serif;
  --sans:  "Jost", "Helvetica Neue", Arial, system-ui, sans-serif;

  --wrap: 1180px;
  --pad:  clamp(1.25rem, 4vw, 2.5rem);
  --sec:  clamp(4.5rem, 9vw, 8rem);
  --r:    14px;
}

/* --------------------------------------------------------------- base --- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-lt); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.14; margin: 0; }
h1 { font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.5rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.85rem, 1.25rem + 2.4vw, 3rem); letter-spacing: -.01em; }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); }
p  { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

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

/* Focus: white ring, held off the element and haloed in ink so it stays
   visible against gold buttons, cards, photos and the ribbon artwork alike. */
:focus-visible {
  outline: 3px solid #FFFFFF;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(6, 13, 34, .95);
  border-radius: 4px;
}

.skip {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -140%);
  z-index: 200; background: var(--gold); color: var(--ink);
  padding: .7rem 1.4rem; border-radius: 0 0 8px 8px; font-weight: 500;
  text-decoration: none;
}
.skip:focus { transform: translate(-50%, 0); color: var(--ink); }

/* -------------------------------------------------------- typographic --- */

.eyebrow {
  font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 1rem;
}
.lead { color: var(--text-mut); font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); max-width: 62ch; }
.sec-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.sec-head h2 + .lead { margin-top: 1.25rem; }

/* ------------------------------------------------------------ buttons --- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-size: .95rem; font-weight: 500; letter-spacing: .02em;
  padding: .95rem 1.75rem; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; text-align: center;
}
.btn--gold  { background: var(--gold); color: #12100B; }
.btn--gold:hover  { background: var(--gold-lt); color: #12100B; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--ink-line); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-lt); }
.btn--lg { padding: 1.1rem 2.25rem; font-size: 1rem; }

/* ------------------------------------------------------------ header --- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6, 13, 34, .88);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--ink-line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 74px; padding-block: .7rem;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--text); }
.brand picture { display: block; }
/* Height-driven so the lockup and the monogram-only variant swap without a jump. */
.brand img { height: 42px; width: auto; flex: none; }
@media (max-width: 560px) { .brand img { height: 36px; } }
.site-footer .brand img { height: 46px; }
@media (max-width: 560px) { .site-footer .brand img { height: 40px; } }

.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav-links { display: flex; gap: clamp(1rem, 2.2vw, 2rem); }
.nav-links a {
  color: var(--text-mut); text-decoration: none; font-size: .88rem; letter-spacing: .02em;
  padding-block: .4rem;
}
.nav-links a:hover { color: var(--text); }
@media (max-width: 1000px) { .nav-links { display: none; } }

.lang { display: flex; align-items: center; gap: .35rem; font-size: .82rem; letter-spacing: .08em; }
.lang a { color: var(--text-mut); text-decoration: none; padding: .25rem .35rem; }
.lang a:hover { color: var(--text); }
.lang a[aria-current] { color: var(--gold); font-weight: 500; }
.lang span { color: #707894; }

.site-header .btn { padding: .7rem 1.25rem; font-size: .85rem; }
@media (max-width: 620px) { .site-header .btn { padding: .6rem 1rem; font-size: .78rem; } }
@media (max-width: 400px) { .nav { gap: .6rem; } .lang { font-size: .76rem; } }

/* -------------------------------------------------------------- hero --- */

.hero { position: relative; overflow: hidden; padding-block: clamp(4rem, 9vw, 7.5rem) clamp(3rem, 6vw, 5rem); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: url("img/ribbon.jpg");
  background-repeat: no-repeat;
  background-position: right -4% top -6%;
  background-size: auto 128%;
  opacity: .95;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, var(--ink) 0%, var(--ink) 28%, rgba(6,13,34,.92) 44%, rgba(6,13,34,.34) 66%, rgba(6,13,34,.08) 100%),
    linear-gradient(to top, var(--ink) 2%, rgba(6,13,34,0) 42%);
}
.hero > .wrap { position: relative; z-index: 2; }
.hero-copy { max-width: 40rem; }
.hero h1 { font-family: var(--serif); margin-bottom: 1.5rem; }
.hero h1 .l2 { display: block; color: var(--gold); }
.hero .lead { margin-bottom: 1.25rem; }
.hero-sub { color: var(--text-mut); max-width: 46rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.25rem; }

.stats {
  display: grid; gap: clamp(1rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  margin-top: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--ink-line); padding-top: clamp(2rem, 4vw, 2.75rem);
}
.stat dt {
  font-family: var(--serif); font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.25rem);
  line-height: 1; color: var(--gold); margin-bottom: .6rem;
}
.stat dd { margin: 0; color: var(--text-mut); font-size: .95rem; max-width: 22ch; }

/* On narrow screens the ribbon can no longer be pushed aside horizontally,
   so it is anchored to the top and scrimmed vertically instead — the copy
   below it always sits on flat ink. */
@media (max-width: 860px) {
  .hero::before {
    background-size: 155% auto;
    background-position: right -12% top 0;
    opacity: .85;
  }
  .hero::after {
    background:
      linear-gradient(to bottom,
        rgba(6, 13, 34, .52) 0%, rgba(6, 13, 34, .84) 28%, var(--ink) 50%),
      linear-gradient(to right, rgba(6, 13, 34, .85) 0%, rgba(6, 13, 34, .1) 70%);
  }
}

/* ---------------------------------------------------------- sections --- */

.section { padding-block: var(--sec); }
.section--band { background: var(--ink-2); }

/* ------------------------------------------------------------- cards --- */

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }

.card {
  background: var(--ink-card); border: 1px solid var(--ink-line);
  border-radius: var(--r); padding: clamp(1.6rem, 3vw, 2.2rem);
}
.card h3 { margin-bottom: .75rem; }
.card p { color: var(--text-mut); }
.card .num {
  font-family: var(--serif); font-size: 1.4rem; color: var(--gold);
  display: block; margin-bottom: .9rem; line-height: 1;
}

/* pillars: what the initiative is */
.pillar { position: relative; }
.pillar h3 {
  font-family: var(--sans); font-size: .82rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
  margin-bottom: .9rem;
}
.pillar::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  border-radius: var(--r) var(--r) 0 0;
  background: linear-gradient(90deg, var(--gold), var(--purple));
}

/* --------------------------------------------------------- chapters --- */

.report-layout {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 940px) { .report-layout { grid-template-columns: minmax(0, 1fr) 330px; } }

.chapters { display: grid; gap: 0; border-top: 1px solid var(--ink-line); }
.chapters li {
  display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 0 1rem;
  padding: 1.4rem .25rem; border-bottom: 1px solid var(--ink-line);
}
.chapters .n {
  font-family: var(--serif); color: var(--gold); font-size: 1.05rem;
  line-height: 1.5; font-variant-numeric: tabular-nums;
}
.chapters h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.chapters p { color: var(--text-mut); font-size: .95rem; }

.cover-figure {
  background: var(--ink-card); border: 1px solid var(--ink-line);
  border-radius: var(--r); padding: 1rem 1rem 1.1rem; margin: 0;
  position: sticky; top: 100px;
}
.cover-figure img { border-radius: 8px; width: 100%; }
.cover-figure figcaption {
  color: var(--text-mut); font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; margin-top: .9rem; text-align: center;
}
@media (max-width: 939px) { .cover-figure { position: static; max-width: 380px; margin-inline: auto; } }

/* ------------------------------------------------------------- team --- */

.team-card {
  background: var(--ink-card); border: 1px solid var(--ink-line);
  border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column;
}
.team-card .photo { position: relative; }
.team-card .photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(6, 13, 34, .22) 0%, rgba(6, 13, 34, 0) 34%, rgba(19, 28, 58, .62) 100%);
}
.team-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.94); }
.team-card .body { padding: clamp(1.5rem, 3vw, 2.1rem); }
.team-card h3 { margin-bottom: .35rem; }
.team-card .role {
  color: var(--text); font-size: .92rem; margin-bottom: 1.15rem;
  border-left: 2px solid var(--gold); padding-left: .8rem;
}
.team-card p { color: var(--text-mut); font-size: .96rem; }

.together {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--r); padding: clamp(1.9rem, 4vw, 3rem);
  background:
    radial-gradient(120% 160% at 12% 0%, rgba(110, 66, 166, .5) 0%, rgba(110, 66, 166, 0) 62%),
    var(--ink-card);
  border: 1px solid #35275C;
}
.together h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin-bottom: 1rem; }
.together p { color: var(--text-mut); max-width: 68ch; }

/* -------------------------------------------------------- interstitial --- */

.interstitial { position: relative; line-height: 0; }
.interstitial img { width: 100%; height: clamp(180px, 26vw, 340px); object-fit: cover; }
.interstitial::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--ink) 0%, rgba(6,13,34,0) 22%, rgba(6,13,34,0) 78%, var(--ink) 100%);
}

/* ----------------------------------------------------------- benefits --- */

.benefit { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0 1.1rem; }
.benefit .mark {
  width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  background: rgba(212, 172, 115, .14); border: 1px solid rgba(212, 172, 115, .4);
  color: var(--gold); font-size: .9rem; line-height: 1; margin-top: .15rem;
}
.benefit h3 { font-size: 1.12rem; margin-bottom: .55rem; }
.benefit p { color: var(--text-mut); font-size: .96rem; }

/* -------------------------------------------------------------- KPIs --- */

.kpi h3 {
  font-family: var(--sans); font-size: .82rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
  padding-bottom: .9rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--ink-line);
}
.kpi ul { display: grid; gap: .7rem; }
.kpi li { color: var(--text-mut); font-size: .94rem; padding-left: 1.1rem; position: relative; }
.kpi li::before {
  content: ""; position: absolute; left: 0; top: .68em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--purple-lt);
}

/* ---------------------------------------------------------- timeline --- */

.timeline { display: grid; gap: 0; counter-reset: step; }
@media (min-width: 860px) { .timeline { grid-template-columns: repeat(5, 1fr); } }

.step { position: relative; padding: 2.5rem 1.25rem 1.5rem; }
@media (max-width: 859px) { .step { padding: 1.5rem 0 1.5rem 2rem; } }
.step::before {
  content: ""; position: absolute; background: var(--ink-line);
}
@media (min-width: 860px) { .step::before { left: 0; right: 0; top: 12px; height: 1px; } }
@media (max-width: 859px) { .step::before { left: 5px; top: 0; bottom: 0; width: 1px; } }
.step::after {
  content: ""; position: absolute; width: 11px; height: 11px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--ink);
}
@media (min-width: 860px) { .step::after { left: 0; top: 7px; } }
@media (max-width: 859px) { .step::after { left: 0; top: 1.55rem; } }
.step h3 {
  font-family: var(--sans); font-size: .82rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--text);
  margin-bottom: .6rem;
}
.step p { color: var(--text-mut); font-size: .93rem; }

.awards {
  margin-top: clamp(3rem, 6vw, 4.5rem); border-radius: var(--r);
  border: 1px solid var(--ink-line); background: var(--ink-card);
  padding: clamp(1.9rem, 4vw, 3rem);
}
.awards h3 { margin-bottom: .9rem; }
.awards > p { color: var(--text-mut); max-width: 60ch; }
.award-list {
  display: flex; flex-wrap: wrap; gap: .6rem;
  margin: 1.75rem 0 0;
}
.award-list li {
  border: 1px solid rgba(212, 172, 115, .38); border-radius: 999px;
  padding: .5rem 1.1rem; font-size: .88rem; color: var(--gold-lt);
  background: rgba(212, 172, 115, .07);
}
.award-note {
  margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--ink-line);
  color: var(--text-mut); font-size: .94rem;
}
.award-note strong {
  display: block; margin-top: .5rem; color: var(--text); font-weight: 400;
  font-family: var(--serif); font-size: 1.15rem;
}

/* -------------------------------------------------------------- form --- */

.cta { position: relative; overflow: hidden; background: var(--ink-2); }
.cta::before {
  content: ""; position: absolute; z-index: 0; inset: -10% auto -10% -18%;
  width: 52%; max-width: 640px;
  background-image: url("img/ribbon.jpg");
  background-repeat: no-repeat; background-position: center; background-size: cover;
  transform: scaleX(-1); opacity: .42;
}
.cta::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(85deg, rgba(10,19,48,.30) 0%, rgba(10,19,48,.90) 28%, var(--ink-2) 46%);
}
.cta > .wrap { position: relative; z-index: 2; }
.cta-layout { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .cta-layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); } }

.form-panel {
  background: var(--ink-card); border: 1px solid var(--ink-line);
  border-radius: var(--r); padding: clamp(1.6rem, 3.5vw, 2.5rem);
}
.field { margin-bottom: 1.15rem; }
.field label {
  display: block; font-size: .84rem; letter-spacing: .04em; font-weight: 400;
  color: var(--text); margin-bottom: .45rem;
}
.field .opt { color: var(--text-mut); font-weight: 300; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: .98rem; font-weight: 300;
  color: var(--text); background: #0C1430; border: 1px solid var(--ink-line);
  border-radius: 8px; padding: .8rem .95rem; line-height: 1.5;
}
.field textarea { resize: vertical; min-height: 6.5rem; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
                    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 1px), calc(100% - 14px) calc(50% + 1px);
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
  padding-right: 2.75rem;
}
.field select option { background: #0C1430; color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: #7A82A0; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #2E3A66; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-err { color: var(--error); font-size: .85rem; margin: .4rem 0 0; }
.field-err:empty { display: none; }

.consent { display: grid; grid-template-columns: 1.15rem minmax(0, 1fr); gap: 0 .75rem; align-items: start; }
.consent input { width: 1.15rem; height: 1.15rem; margin-top: .3rem; accent-color: var(--gold); }
.consent label { font-size: .86rem; color: var(--text-mut); line-height: 1.55; margin: 0; }
.consent .field-err { grid-column: 1 / -1; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin: 1.1rem 0 0; font-size: .95rem; }
.form-status:empty { display: none; }
.form-status[data-state="ok"]    { color: var(--gold-lt); }
.form-status[data-state="error"] { color: var(--error); }

.cta-side h2 { margin-bottom: 1.25rem; }
.cta-side .lead { margin-bottom: 1.5rem; }

/* ------------------------------------------------------------ footer --- */

.site-footer { border-top: 1px solid var(--ink-line); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.footer-grid {
  display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center;
  justify-content: space-between;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a { color: var(--text-mut); text-decoration: none; font-size: .9rem; }
.footer-links a:hover { color: var(--gold-lt); text-decoration: underline; }
.footer-note { color: var(--text-mut); font-size: .82rem; margin-top: 1.75rem; }

/* --------------------------------------------------------- animation --- */

@media (prefers-reduced-motion: no-preference) {
  .btn, .nav-links a, .lang a, .footer-links a,
  .field input, .field select, .field textarea, .card, .team-card {
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
  }
  .reveal { opacity: 0; transform: translateY(18px); }
  .reveal.is-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .card, .team-card, .form-panel, .awards { border: 1px solid CanvasText; }
}
