/* Petronavis — one-page site. Values mirror the Kimi mockup (see mockup/SPEC.md). */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../assets/fonts/fraunces.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../assets/fonts/inter.woff2") format("woff2");
}

:root {
  --paper: #F6F4EE;
  --ink: #10181F;
  --navy: #0B1D2A;
  --navy-2: #0E2534;
  --gold: #C6972F;
  --gold-soft: #D9B45C;
  --line: rgba(16, 24, 31, .15);
  --line-light: rgba(255, 255, 255, .1);
  --display: "Fraunces", Georgia, serif;
}

/* ---- base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, blockquote, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, .stat-value, .num, .quote-mark, blockquote {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 300;
}
::selection { background: var(--gold); color: var(--navy); }
[id] { scroll-margin-top: 72px; }

.container { max-width: 1400px; margin: 0 auto; padding-inline: 24px; }
.overline {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  text-decoration: overline;   /* the mockup renders a hairline above every eyebrow */
}
.gold { color: var(--gold); }
.num { font-weight: 400; font-size: 18px; line-height: 28px; color: var(--gold); }

.grid-12 { display: grid; gap: 48px; }
.section { padding-block: 112px; }
.section--paper { background: var(--paper); color: var(--ink); }
.section--navy { background: var(--navy); color: var(--paper); }
.section--navy2 { background: var(--navy-2); color: var(--paper); }

/* ---- header -------------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-block: 28px;
  border-bottom: 1px solid transparent;
  transition: background-color .5s, padding .5s, border-color .5s;
}
.site-header.is-scrolled {
  padding-block: 16px;
  background: rgba(11, 29, 42, .95);
  border-bottom-color: var(--line-light);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo img { height: 36px; width: auto; }
.nav { display: none; align-items: center; gap: 36px; }
.nav-link {
  position: relative;
  font-size: 13px; letter-spacing: .025em;
  color: rgba(246, 244, 238, .8);
  transition: color .15s;
}
.nav-link:hover { color: var(--paper); }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1px; background: var(--gold);
  transition: width .35s ease;
}
.nav-link:hover::after { width: 100%; }
.btn-desk {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px;
  border: 1px solid rgba(198, 151, 47, .6);
  color: var(--gold);
  font-size: 13px; letter-spacing: .025em;
  transition: background-color .3s, color .3s;
}
.btn-desk:hover { background: var(--gold); color: var(--navy); }

/* ---- hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  background: var(--navy);
  color: var(--paper);
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(11, 29, 42, .7), transparent 50%, transparent),
    linear-gradient(to top, #0B1D2A, rgba(11, 29, 42, .45) 50%, rgba(11, 29, 42, .3));
}
.hero-inner { position: relative; width: 100%; padding-block: 176px 96px; }
.hero .overline { margin-bottom: 32px; }
.hero h1 {
  max-width: 13ch;
  font-size: 13vw; line-height: 1.02; letter-spacing: -.025em;
}
.hero-row { margin-top: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.hero-lead { max-width: 448px; font-size: 15px; line-height: 1.625; color: rgba(246, 244, 238, .8); }
.hero-actions { display: flex; align-items: center; gap: 32px; }
.btn-gold {
  padding: 16px 32px;
  background: var(--gold); color: var(--navy);
  font-size: 13px; font-weight: 500; letter-spacing: .025em;
  transition: background-color .15s;
}
.btn-gold:hover { background: var(--gold-soft); }
.hero-link:hover { color: var(--gold); }

/* ---- ticker -------------------------------------------------------------- */
.ticker {
  background: var(--navy);
  border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light);
  padding-block: 20px;
  overflow: hidden;
}
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-track span {
  display: flex; align-items: center; gap: 40px;
  padding-right: 40px;
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  color: rgba(246, 244, 238, .5);
}
.marquee-track i { width: 6px; height: 6px; transform: rotate(45deg); background: rgba(198, 151, 47, .7); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- about --------------------------------------------------------------- */
.about-rule { margin-top: 24px; width: 64px; height: 1px; background: rgba(16, 24, 31, .3); }
.about h2 { font-size: 36px; line-height: 1.15; }
.about-text { margin-top: 40px; max-width: 672px; font-size: 16px; line-height: 1.625; color: rgba(16, 24, 31, .7); }
.stats { margin-top: 96px; display: grid; border-top: 1px solid var(--line); }
.stat { padding: 32px 32px 16px 0; }
.stat-value { font-size: 60px; line-height: 1; }
.stat p { margin-top: 16px; max-width: 26ch; font-size: 13px; line-height: 1.625; color: rgba(16, 24, 31, .6); }

/* ---- markets ------------------------------------------------------------- */
.markets { padding-top: 0; }
.markets-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 64px; }
.markets-head h2 { margin-top: 24px; font-size: 36px; line-height: 40px; }
.markets-intro { display: none; max-width: 320px; font-size: 13px; line-height: 1.625; color: rgba(16, 24, 31, .6); }
.market-list { border-top: 1px solid var(--line); }
.market-row {
  display: grid; gap: 16px; align-items: baseline;
  padding-block: 36px;
  border-bottom: 1px solid var(--line);
  transition: background-color .4s ease, padding-left .4s ease;
}
.market-row:hover { background: rgba(198, 151, 47, .06); padding-left: 24px; }
.market-row h3 { font-size: 30px; line-height: 36px; }
.market-row p { font-size: 14px; line-height: 1.625; color: rgba(16, 24, 31, .65); }
.market-row .arrow { display: none; text-align: right; color: var(--gold); opacity: 0; transition: opacity .15s; }
.market-row:hover .arrow { opacity: 1; }

/* ---- services ------------------------------------------------------------ */
.services h2 { margin-top: 24px; font-size: 36px; line-height: 1.1; }
.services-lead { margin-top: 32px; max-width: 448px; font-size: 15px; line-height: 1.625; color: rgba(246, 244, 238, .6); }
.service { padding-block: 40px; border-bottom: 1px solid var(--line-light); }
.service:first-child { padding-top: 0; }
.service:last-child { border-bottom: 0; }
.service-inner { display: flex; align-items: baseline; gap: 24px; }
.service h3 { font-size: 24px; line-height: 32px; }
.service p { margin-top: 12px; max-width: 576px; font-size: 14px; line-height: 1.625; color: rgba(246, 244, 238, .6); }

/* ---- presence ------------------------------------------------------------ */
.presence { border-top: 1px solid var(--line-light); }
.presence h2 { margin-top: 24px; font-size: 36px; line-height: 1.1; }
.presence-lead { margin-top: 32px; max-width: 384px; font-size: 15px; line-height: 1.625; color: rgba(246, 244, 238, .6); }
.desks { border-top: 1px solid var(--line-light); }
.desk { display: grid; gap: 8px; align-items: baseline; padding-block: 32px; border-bottom: 1px solid var(--line-light); }
.desk h3 { font-size: 30px; line-height: 36px; }
.desk .zone { color: var(--gold); }
.desk .role { font-size: 14px; color: rgba(246, 244, 238, .8); }
.desk .note { font-size: 13px; color: rgba(246, 244, 238, .45); }

/* ---- quote --------------------------------------------------------------- */
.quote-section { padding-block: 112px; background: var(--paper); }
.quote-inner { max-width: 1100px; margin: 0 auto; padding-inline: 24px; text-align: center; }
.quote-mark { font-weight: 400; font-size: 60px; line-height: 1; color: var(--gold); }
blockquote { font-size: 30px; line-height: 1.25; }
.quote-credit { margin-top: 40px; color: rgba(16, 24, 31, .5); }

/* ---- compliance ---------------------------------------------------------- */
.compliance-head { max-width: 768px; }
.compliance h2 { margin-top: 24px; font-size: 36px; line-height: 1.1; }
.compliance-lead { margin-top: 32px; font-size: 15px; line-height: 1.625; color: rgba(246, 244, 238, .6); }
.cards { margin-top: 80px; display: grid; gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.card { padding: 40px; background: var(--navy); }
.card-rule { width: 32px; height: 1px; margin-bottom: 32px; background: var(--gold); }
.card h3 { font-size: 24px; line-height: 32px; }
.card p { margin-top: 16px; font-size: 14px; line-height: 1.625; color: rgba(246, 244, 238, .55); }

/* ---- contact ------------------------------------------------------------- */
.contact-grid { display: grid; gap: 64px; }
.contact h2 { margin-top: 24px; font-size: 36px; line-height: 1.08; }
.contact-lead { margin-top: 32px; max-width: 448px; font-size: 15px; line-height: 1.625; color: rgba(16, 24, 31, .65); }
.contact-blocks { margin-top: 48px; display: grid; gap: 20px; font-size: 14px; }
.contact-blocks .overline { margin-bottom: 4px; color: rgba(16, 24, 31, .45); }
.contact-blocks a { transition: color .15s; }
.contact-blocks a:hover { color: var(--gold); }
.contact-blocks span { color: rgba(16, 24, 31, .8); }
.form { padding: 32px; border: 1px solid var(--line); background: rgba(255, 255, 255, .4); }
.form-fields { display: grid; gap: 32px; }
.form label { display: block; margin-bottom: 12px; color: rgba(16, 24, 31, .45); }
.form input, .form textarea {
  width: 100%;
  padding: 8px 0;
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(16, 24, 31, .25); border-radius: 0;
  outline: 0;
  font-size: 15px;
  transition: border-color .15s;
}
.form input:focus, .form textarea:focus { border-bottom-color: var(--gold); }
.form input::placeholder, .form textarea::placeholder { color: rgba(16, 24, 31, .35); }
.form textarea { resize: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-submit {
  width: 100%;
  padding: 16px;
  border: 0;
  background: var(--navy); color: var(--paper);
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  cursor: pointer;
  transition: background-color .3s, color .3s;
}
.btn-submit:hover { background: var(--gold); color: var(--navy); }
.btn-submit:disabled { opacity: .6; cursor: default; }
.form-note { font-size: 12px; line-height: 1.625; color: rgba(16, 24, 31, .45); }
.form-note[data-state="sent"] { color: var(--ink); }
.form-note[data-state="error"] { color: #9b2c2c; }

/* ---- footer -------------------------------------------------------------- */
.footer { background: var(--navy); color: var(--paper); border-top: 1px solid var(--line-light); }
.footer-inner { padding-block: 64px; }
.footer-top { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.footer-brand img { height: 40px; width: auto; }
.footer-brand p { margin-top: 20px; max-width: 320px; font-size: 13px; line-height: 1.625; color: rgba(246, 244, 238, .45); }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; font-size: 13px; }
.footer-cols .overline { margin-bottom: 20px; }
.footer-cols ul { display: grid; gap: 12px; color: rgba(246, 244, 238, .6); }
.footer-cols a { transition: color .15s; }
.footer-cols a:hover { color: var(--paper); }
.footer-bottom {
  margin-top: 64px; padding-top: 32px;
  border-top: 1px solid var(--line-light);
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  font-size: 12px; color: rgba(246, 244, 238, .35);
}

/* ---- reveal (only when JS runs; without JS everything is visible) --------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.22, 1, .36, 1), transform .9s cubic-bezier(.22, 1, .36, 1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }
.reveal-delay-3 { transition-delay: .36s; }

/* ---- breakpoints (mockup: sm 640, md 768, lg 1024) ------------------------ */
@media (min-width: 640px) {
  .hero h1 { font-size: 9vw; }
  /* from sm up every h2 drops to line-height 1, as the mockup renders them */
  .about h2, .services h2, .contact h2 { font-size: 48px; line-height: 1; }
  .markets-head h2 { font-size: 48px; line-height: 1; }
  .presence h2, .compliance h2 { font-size: 48px; line-height: 1; }
  blockquote { font-size: 36px; line-height: 40px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .desk { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
  .desk h3 { grid-column: span 4; }
  .desk .zone { grid-column: span 2; }
  .desk .role, .desk .note { grid-column: span 3; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-bottom { flex-direction: row; }
}
@media (min-width: 768px) {
  .hero-row { flex-direction: row; align-items: flex-end; }
  .markets-intro { display: block; }
  .market-row { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
  .market-row .num { grid-column: span 1; }
  .market-row h3 { grid-column: span 4; }
  .market-row p { grid-column: span 6; }
  .market-row .arrow { display: block; grid-column: span 1; }
}
@media (min-width: 1024px) {
  .container, .quote-inner { padding-inline: 48px; }
  .nav { display: flex; }
  .hero h1 { font-size: 7.2vw; }
  .section { padding-block: 160px; }
  .markets { padding-top: 0; }
  .quote-section { padding-block: 144px; }
  .grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .col-4 { grid-column: span 4; }
  .col-5 { grid-column: span 5; }
  .col-7 { grid-column: span 7; }
  .col-8 { grid-column: span 8; }
  .about h2, .services h2, .contact h2 { font-size: 60px; }
  .stat-value { font-size: 72px; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat { padding-left: 32px; border-left: 1px solid var(--line); }
  .stat:first-child { padding-left: 0; border-left: 0; }
  .market-row h3 { font-size: 36px; line-height: 40px; }
  .service h3 { font-size: 30px; line-height: 36px; }
  blockquote { font-size: 48px; line-height: 1; }
  .card { padding: 56px; }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form { padding: 48px; }
  .footer-top { flex-direction: row; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
}
