/* Zyneva launch site. Plain CSS, no frameworks, no external requests.
   Colours: navy #1B2340, amber #C9922E, off-white #F7F5F0, white.
   Fonts are self-hosted (Fraunces, IBM Plex Sans; both SIL Open Font Licence 1.1). */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/fraunces-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
}

:root {
  --navy: #1b2340;
  --amber: #c9922e;
  --amber-hover: #d8a54a;
  --white: #ffffff;
  --offwhite: #f7f5f0;
  --text: rgba(247, 245, 240, 0.78);
  --text-quiet: rgba(247, 245, 240, 0.68);
  --panel: rgba(255, 255, 255, 0.05);
  --panel-card: rgba(255, 255, 255, 0.06);
  --line: rgba(247, 245, 240, 0.12);
  --amber-line: rgba(201, 146, 46, 0.4);
  --container: 1100px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --gap: 24px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

p {
  margin: 0;
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-style: normal;
  color: var(--white);
  text-wrap: balance;
}

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

.sr {
  position: absolute;
  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: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--amber);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  border-radius: 3px;
}
.skip:focus {
  top: 0.75rem;
}

.container {
  width: min(var(--container), 100% - 2 * var(--pad));
  margin-inline: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}

/* One shared amber rule, used everywhere */
.rule {
  display: block;
  width: 40px;
  height: 3px;
  background: var(--amber);
}

/* Links in running text */
.link,
.stat-caption a,
.card-email,
.footer-inner a,
.reading a,
.field a {
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.link:hover,
.stat-caption a:hover,
.card-email:hover,
.footer-inner a:hover,
.reading a:hover,
.field a:hover {
  color: var(--white);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--amber);
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--amber);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--amber-hover);
  border-color: var(--amber-hover);
}
.btn-outline {
  background: transparent;
  color: var(--amber);
}
.btn-outline:hover {
  background: rgba(201, 146, 46, 0.14);
  color: var(--amber-hover);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--navy);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}
.wordmark {
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
}
.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--amber);
  white-space: nowrap;
}

/* Hero */
.hero {
  padding: clamp(48px, 6vw, 80px) 0 clamp(52px, 6vw, 80px);
}
.hero-head {
  grid-column: 1 / 9;
  grid-row: 1;
}
.hero-head .rule {
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.25rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
}
.mark {
  grid-column: 10 / 13;
  grid-row: 1;
  align-self: start;
  justify-self: center;
  margin-top: 0;
}
/* The approved mark sits inside a 200-unit box with clear space, so the box is
   larger than the visible mark (about 130px visible at full size). */
.mark svg {
  width: clamp(150px, 15vw, 210px);
  height: auto;
}
.hero-lede {
  grid-column: 5 / 11;
  grid-row: 2;
  margin-top: 40px;
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--text);
}

/* Research band */
.research {
  padding: clamp(44px, 5vw, 64px) 0;
  background: var(--panel);
}
.research-left {
  grid-column: 1 / 8;
}
.research-h {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.2;
  margin-bottom: 16px;
}
.research-sub {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  text-wrap: balance;
}
.research-right {
  grid-column: 8 / 13;
  margin-top: 56px;
}
.stat {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(3.25rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--amber);
}
.stat-caption {
  max-width: 42ch;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
}

/* Principles and card */
.principles {
  padding: clamp(48px, 5vw, 64px) 0;
}
.pgrid {
  row-gap: 32px;
}
.eyebrow {
  grid-column: 1 / 9;
  grid-row: 1;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}
.pcols {
  grid-column: 1 / 9;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}
.pcol:nth-child(2) {
  margin-top: 24px;
}
.pcol:nth-child(3) {
  margin-top: 48px;
}
.pcol .rule {
  margin-bottom: 16px;
}
.pcol h3 {
  margin-bottom: 10px;
  font-size: clamp(1.1rem, 1.55vw, 1.3rem);
  line-height: 1.25;
}
.pcol p {
  font-size: 1rem;
  color: var(--text);
}

.card {
  grid-column: 9 / 13;
  grid-row: 2;
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 32px;
  background: var(--panel-card);
  border: 1px solid var(--amber-line);
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}
.card h3 {
  margin-bottom: 14px;
  font-size: 1.5rem;
  line-height: 1.2;
}
.card p {
  margin-bottom: 14px;
  font-size: 1rem;
  color: var(--text);
}
.card .btn {
  margin-top: 6px;
}
.card-email {
  display: inline-block;
  margin-top: 18px;
  font-size: 1rem;
  color: var(--white);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--text-quiet);
}

/* Inner pages: briefing, privacy, thank you, 404 */
.page {
  padding: clamp(44px, 6vw, 80px) 0 clamp(64px, 8vw, 104px);
}
.page-left {
  grid-column: 1 / 6;
}
.page-left .rule {
  margin-bottom: 28px;
}
.page h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
}
.nowrap {
  white-space: nowrap;
}
.page-intro {
  margin-top: 24px;
  max-width: 32ch;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--text);
}
.page-right {
  grid-column: 7 / 13;
}

.form-panel {
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.field {
  margin-bottom: 22px;
}
.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--white);
}
.req {
  color: var(--amber);
}
.opt {
  font-weight: 400;
  color: var(--text);
}
.hint {
  display: block;
  margin-bottom: 8px;
  font-size: 0.875rem;
  color: var(--text);
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--offwhite);
  border: 1px solid rgba(247, 245, 240, 0.4);
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.4;
}
.field input:focus {
  border-color: var(--amber);
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
.field input[aria-invalid="true"] {
  border-color: var(--amber);
  border-width: 2px;
  padding: 9px 13px;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.consent input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--amber);
}
.consent label {
  margin: 0;
  font-weight: 400;
  color: var(--offwhite);
}
.consent-body {
  flex: 1;
  min-width: 0;
}
.error {
  margin-top: 8px;
  padding-left: 10px;
  border-left: 2px solid var(--amber);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--white);
}
.error[hidden] {
  display: none;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.success {
  padding: 4px 0;
}
.success p {
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.35;
  color: var(--white);
}
.success:focus {
  outline: none;
}

.reading {
  max-width: 640px;
}
.draft {
  margin-bottom: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
}
.reading h1 {
  margin-bottom: 28px;
}
.reading p {
  margin-bottom: 18px;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
}
.centered-page h1 {
  margin-bottom: 20px;
}
.centered-page p {
  font-size: 1.125rem;
  color: var(--text);
}
.centered-page .btn {
  margin-top: 28px;
}

/* Motion: one gentle arrival on the mark, and a soft fade on sections */
@media (prefers-reduced-motion: no-preference) {
  .mark .spin {
    transform-box: view-box;
    transform-origin: 100px 100px;
    animation: settle 1.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .mark .core {
    transform-box: fill-box;
    transform-origin: center;
    animation: core 0.8s 0.9s ease-out both;
  }
  .js .reveal {
    opacity: 0;
    transition: opacity 0.8s ease;
  }
  .js .reveal.is-visible {
    opacity: 1;
  }
}
@keyframes settle {
  from {
    transform: rotate(-36deg) scale(0.9);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes core {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Narrow desktop and tablets: the card drops beneath the principles */
@media (max-width: 1000px) {
  .eyebrow,
  .pcols {
    grid-column: 1 / -1;
  }
  .card {
    grid-column: 1 / -1;
    grid-row: 3;
    position: static;
  }
}

/* Tablets and phones: one column, left-aligned, no offsets */
@media (max-width: 899px) {
  .hero-head,
  .hero-lede,
  .mark,
  .research-left,
  .research-right,
  .page-left,
  .page-right {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .mark {
    order: -1;
    justify-self: start;
    margin: -18px 0 4px -26px;
  }
  .mark svg {
    width: 130px;
  }
  .hero-lede {
    margin-top: 24px;
  }
  .research-right {
    margin-top: 32px;
  }
  .pcols {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .pcol:nth-child(2),
  .pcol:nth-child(3) {
    margin-top: 0;
  }
  .page-right {
    margin-top: 32px;
  }
}

@media (max-width: 440px) {
  .tagline {
    display: none;
  }
  .form-panel,
  .card {
    padding: 24px;
  }
}
