/* disclosureromania.org — landing page
   Same template as itnerd.co.uk and robertogrosa.org, with its own look ("Semnal": night, petrol blue,
   a point between two brackets). See BLUEPRINT.md. */

/* Fonts (SIL OFL 1.1, self-hosted): Source Serif 4 for headings, IBM Plex Sans for text.
   Each comes in two files (latin + latin-ext); Romanian ș ț ă live in latin-ext. */
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 200 900; font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-latin-ext-wght-normal.woff2") format("woff2-variations"); font-weight: 200 900; font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 100 700; font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-ext-wght-normal.woff2") format("woff2-variations"); font-weight: 100 700; font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  color-scheme: light dark;
  --ground: #F5F4F0;
  --mist: #E8ECEE;
  --card: #FFFFFF;
  --ink: #13212B;
  --muted: #4C5A64;
  --accent: #2E6A80;
  --accent-soft: rgba(46, 106, 128, .16);
  --line: #D3DADF;
  --soft: #AEBEC6;
  --on-ink: #FFFFFF;
  --error: #A6473A;

  /* Always dark: hero, bands, the hero form */
  --night: #12202B;
  --band: #0E1A22;
  --sky: #0F2230;
  --light-accent: #9FC7D6;
  --band-text: #D3DDE2;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --header-h: 84px;
  --content: 1160px;
  --logo-on-light: block; --logo-on-dark: none;   /* scrolled bar and inner pages */
}
/* Dark mode: the same night the hero shows */
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0F1A21;
    --mist: #15232C;
    --card: #182831;
    --ink: #E6ECEF;
    --muted: #A7B6BE;
    --accent: #7FBCD0;
    --accent-soft: rgba(127, 188, 208, .2);
    --line: #2A3B46;
    --soft: #4D6371;
    --on-ink: #0F1A21;
    --error: #E59A8E;
    --logo-on-light: none; --logo-on-dark: block;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button, input, textarea { font: inherit; color: inherit; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--night); color: #fff; padding: 10px 16px; border-radius: 3px; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h); margin-bottom: calc(var(--header-h) * -1);
  display: flex; align-items: center;
  background: transparent; box-shadow: none; color: #fff;
  transition: background-color .9s var(--ease), box-shadow .9s var(--ease), color .9s var(--ease), height .9s var(--ease), margin-bottom .9s var(--ease);
}
.site-header__inner { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 32px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; transition: gap .9s var(--ease); }
.brand:hover { color: inherit; }
/* Logo: white lettering over the hero; on the scrolled bar the version that suits the colour scheme */
.brand__logo { display: block; height: 56px; width: auto; flex: none; transition: height .9s var(--ease); }
.brand__logo--on-light { display: none; }
.site-header.is-scrolled .brand__logo--on-light { display: var(--logo-on-light); }
.site-header.is-scrolled .brand__logo--on-dark { display: var(--logo-on-dark); }

.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav__link { color: inherit; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-decoration: none; padding: 0 12px; min-height: 44px; display: flex; align-items: center; transition: font-size .9s var(--ease); }
.site-nav__link:hover { color: inherit; opacity: .75; }

.lang { position: relative; }
.lang__toggle { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px 0 12px; background: none; border: 0; color: inherit; font-size: .8rem; font-weight: 600; letter-spacing: .14em; cursor: pointer; transition: font-size .9s var(--ease); }
.lang__menu { position: absolute; right: 0; top: calc(100% + 2px); margin: 0; padding: 6px; list-style: none; min-width: 150px; background: var(--card); border-radius: 6px; box-shadow: 0 8px 24px rgba(14, 26, 34, .2);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s; }
.lang__menu a { display: block; padding: 10px 14px; color: var(--ink); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-decoration: none; border-radius: 4px; }
.lang__menu a:hover { background: var(--mist); }
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (hover: hover) { .lang:hover .lang__menu, .lang:focus-within .lang__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; } }

/* Scrolled: a soft bar in the page colour, shrunk to 75% */
.site-header.is-scrolled { --header-h: 63px; background: var(--ground); color: var(--ink); box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(14, 26, 34, .06); }
.site-header.is-scrolled .brand__logo { height: 40px; }
.site-header.is-scrolled .site-nav__link, .site-header.is-scrolled .lang__toggle { font-size: .62rem; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; max-height: 980px; overflow: hidden; background: var(--sky); color: #fff; isolation: isolate; }
.hero__layers { position: absolute; inset: 0; pointer-events: none; }
.layer { position: absolute; will-change: transform; }
.layer--back { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; z-index: 0; transform: translate3d(0, var(--y-back, 0px), 0); }
.hero__layers::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(14, 26, 34, .35) 0%, rgba(14, 26, 34, 0) 45%, rgba(14, 26, 34, .35) 100%); }

.hero__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: max(140px, 19vh) 24px 0; opacity: var(--fade, 1); }
.hero__kicker { margin: 0; font-size: .78rem; font-weight: 600; letter-spacing: .22em; color: var(--light-accent); }
.hero__title { margin: 0; font-family: var(--serif); font-size: clamp(2.6rem, 7.4vw, 5.4rem); font-weight: 500; letter-spacing: -.005em; line-height: 1.05; text-shadow: 0 1px 24px rgba(14, 26, 34, .35); }
.hero__line { margin: 4px 0 0; max-width: 640px; font-size: clamp(1.05rem, 2.2vw, 1.35rem); line-height: 1.5; }
.hero__soon { margin: 14px 0 0; font-size: .78rem; font-weight: 600; letter-spacing: .18em; }

.waitlist { width: min(100%, 460px); margin-top: 8px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.waitlist__row { display: flex; width: 100%; }
.waitlist input { flex: 1 1 auto; min-width: 0; height: 46px; padding: 0 14px; border: 0; border-radius: 3px 0 0 3px; background: #fff; color: var(--night); font-size: .95rem; }
.waitlist input::placeholder { color: #6E7B84; }
.waitlist button { flex: none; height: 46px; padding: 0 20px; border: 0; border-radius: 0 3px 3px 0; background: var(--accent-hero, #2E6A80); color: #fff; font-size: .75rem; font-weight: 600; letter-spacing: .16em; cursor: pointer; transition: background-color .2s; }
.waitlist button:hover { background: #255869; }
.waitlist__small { margin: 0; font-size: .8rem; }
.waitlist__small a { color: #fff; }
.hero .form-status { color: #fff; }
.hero .form-status.is-ok { color: #1F5567; font-weight: 500; background: rgba(255, 255, 255, .94); padding: 6px 14px; border-radius: 3px; }
.hero .form-status.is-error { background: rgba(14, 26, 34, .6); padding: 4px 10px; border-radius: 3px; }

/* ---------- Sections ---------- */
.section { padding: 104px 24px; }
.section--mist { background: var(--mist); }
.section-title { margin: 0; font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 500; line-height: 1.2; text-align: center; }
.kicker { margin: 0; font-size: .75rem; font-weight: 600; letter-spacing: .2em; color: var(--accent); text-align: center; }
.section-head { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.section-head__lead { margin: 0; max-width: 640px; text-align: center; color: var(--muted); line-height: 1.75; }

.pillars { display: flex; flex-direction: column; align-items: center; gap: 56px; }
.pillars__grid { width: 100%; max-width: 1080px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 48px; }
.pillar { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.pillar__icon { width: 52px; height: 52px; color: var(--accent); }
.pillar h3 { margin: 0; font-size: .95rem; font-weight: 600; letter-spacing: .2em; }
.pillar p { margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: .95rem; color: var(--muted); }

.why__inner { max-width: var(--content); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.why__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.why__text .section-title, .why__text .kicker { text-align: left; }
.why__text p { margin: 0; font-size: 1rem; line-height: 1.8; color: var(--muted); }
.why__text .why__who { font-size: .92rem; padding-left: 14px; border-left: 2px solid var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 26px; border: 0; border-radius: 3px; background: var(--ink); color: var(--on-ink); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-decoration: none; cursor: pointer; transition: background-color .2s, opacity .2s; }
.btn:hover { color: var(--on-ink); opacity: .88; }

.slider { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.slider__frame { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--night); }
.slider__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.slider__img.is-active { opacity: 1; }
.slider__dots { display: flex; gap: 4px; }
.slider__dots button { width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.slider__dots button::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--soft); transition: background-color .3s; }
.slider__dots button.is-active::before { background: var(--ink); }

/* ---------- Dark photo band ---------- */
.band { position: relative; overflow: hidden; background: var(--band); color: #fff; padding: 120px 24px; text-align: center; isolation: isolate; }
.band__bg { position: absolute; inset: -15% 0; z-index: -2; transform: translate3d(0, var(--y-band, 0px), 0); will-change: transform; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(14, 26, 34, .5); }
.band__content { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.band__title { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 500; line-height: 1.15; }
.band__text { margin: 0; max-width: 720px; font-size: 1.02rem; line-height: 1.8; color: var(--band-text); }
.tags { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tags li { padding: 7px 14px; border: 1px solid rgba(159, 199, 214, .55); border-radius: 3px; font-size: .72rem; font-weight: 600; letter-spacing: .18em; color: #fff; background: rgba(14, 26, 34, .35); }

/* ---------- Timeline (context) ---------- */
.timeline { display: flex; flex-direction: column; align-items: center; gap: 48px; }
.timeline__list { width: 100%; max-width: 760px; margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.timeline__item { position: relative; padding: 0 0 36px 28px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--ground); border: 2px solid var(--accent); }
.timeline__date { margin: 0; font-size: .78rem; font-weight: 600; letter-spacing: .16em; color: var(--accent); }
.timeline__text { margin: 6px 0 0; line-height: 1.75; }
.timeline__src { margin: 6px 0 0; font-size: .85rem; color: var(--muted); }
.timeline__src a { color: var(--muted); }
.timeline__note { margin: 0; max-width: 760px; font-size: .85rem; color: var(--muted); text-align: center; }

/* ---------- Channels ---------- */
.channels { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.channels__list { width: 100%; max-width: 860px; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.channels__list a { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
.channels__list a:hover { border-color: var(--accent); transform: translateY(-2px); }
.channels__name { font-size: .78rem; font-weight: 600; letter-spacing: .18em; color: var(--accent); }
.channels__handle { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); }

/* ---------- Contact ---------- */
.contact { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.contact__intro { margin: 0; max-width: 680px; text-align: center; font-size: 1rem; line-height: 1.8; color: var(--muted); }
.contact__care { margin: 0; max-width: 680px; text-align: center; font-size: .88rem; line-height: 1.7; color: var(--muted); padding: 12px 18px; border-radius: 4px; background: var(--mist); }
.contact__form { width: 100%; max-width: 760px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 560px) { .contact__form { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; color: var(--muted); }
.field--wide { grid-column: 1 / -1; }
.field input, .field textarea { height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 3px; background: var(--card); color: var(--ink); font-size: 1rem; }
.field textarea { height: auto; min-height: 150px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field [aria-invalid="true"] { border-color: var(--error); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.contact__actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 8px; }
.contact__small { margin: 0; font-size: .82rem; color: var(--muted); }
.form-status { margin: 0; font-size: .92rem; text-align: center; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }
.contact .form-status.is-ok { color: var(--accent); font-weight: 500; }
.is-sent .field, .is-sent .check, .is-sent .btn, .is-sent .cf-turnstile { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--mist); padding: 56px 24px 48px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.to-top { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; color: var(--ink); transition: border-color .2s; }
.to-top:hover { border-color: var(--accent); }
.footer__links { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: .85rem; }
.footer__links a { color: var(--muted); }
.copyright { margin: 0; font-size: .75rem; font-weight: 500; letter-spacing: .16em; color: var(--muted); }

/* ---------- Reveal on scroll (only when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.pillars__grid .pillar:nth-child(2) { transition-delay: .15s; }
.pillars__grid .pillar:nth-child(3) { transition-delay: .3s; }

/* ---------- Phones ---------- */
.site-nav__link, .lang__toggle { white-space: nowrap; }
.waitlist__small a, .contact__small a { white-space: nowrap; }
@media (max-width: 640px) {
  .site-header__inner { padding: 0 16px; gap: 8px; }
  .brand__logo { height: 40px; }
  .site-header.is-scrolled .brand__logo { height: 32px; }
  .site-nav { gap: 2px; }
  .site-nav__link { font-size: .62rem; letter-spacing: .08em; padding: 0 6px; }
  .lang__toggle { font-size: .62rem; letter-spacing: .08em; padding-left: 6px; gap: 4px; }
  .section { padding: 80px 16px; }
  .band { padding: 92px 16px; }
  .hero__content { padding-top: max(120px, 17vh); padding-left: 16px; padding-right: 16px; }
  .hero__kicker { font-size: .66rem; letter-spacing: .14em; }
  .hero__soon { font-size: .66rem; letter-spacing: .1em; }
  .waitlist button { padding: 0 14px; letter-spacing: .1em; }
  .timeline__item { padding-left: 22px; }
}
@media (max-width: 400px) {
  .site-nav__link { display: none; }
}
@media (max-width: 340px) {
  .brand__logo, .site-header.is-scrolled .brand__logo { height: 28px; }
}

/* ---------- Reduced motion: everything still ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .layer, .band__bg { transform: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
