/* ============================================================
   BPM Lab legal site — design system
   Neutral grotesk · flat colour blocks · giant type · pills
   Typeface: Unica77 LL (licensed, self-hosted in assets/fonts).
   ============================================================ */

/* ---------- Unica77 LL @font-face ---------- */
@font-face { font-family: 'Unica77 LL'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/Unica77LLCyr-Regular.otf') format('opentype'); }
@font-face { font-family: 'Unica77 LL'; font-style: italic; font-weight: 400; font-display: swap; src: url('assets/fonts/Unica77LLCyr-RegularItalic.otf') format('opentype'); }
@font-face { font-family: 'Unica77 LL'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/Unica77LLCyr-Medium.otf') format('opentype'); }
@font-face { font-family: 'Unica77 LL'; font-style: italic; font-weight: 500; font-display: swap; src: url('assets/fonts/Unica77LLCyr-MediumItalic.otf') format('opentype'); }
@font-face { font-family: 'Unica77 LL'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/Unica77LLCyr-Bold.otf') format('opentype'); }
@font-face { font-family: 'Unica77 LL'; font-style: normal; font-weight: 800; font-display: swap; src: url('assets/fonts/Unica77LLCyr-Black.otf') format('opentype'); }
@font-face { font-family: 'Unica77 LL'; font-style: italic; font-weight: 800; font-display: swap; src: url('assets/fonts/Unica77LLCyr-BlackItalic.otf') format('opentype'); }

/* ---------- Tokens ---------- */
:root {
  --white: #FFFFFF;
  --ink: #0A0A0A;
  --g1: #F5F5F5;   /* lightest block */
  --g2: #EBEBEB;   /* light block */
  --g3: #E1E1E1;   /* mid block */
  --peri: #BFC0D2; /* hero pastel (periwinkle) */
  --peri-2: #CFD0DE;
  --pop: #FFF066;  /* yellow accent */
  --muted: #9A9AA0;       /* headline continuation on white */
  --muted-2: #6E6E74;     /* secondary body text */
  --line: #E2E2E2;
  --line-ink: rgba(10,10,10,.14);

  --f-sans: 'Unica77 LL', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --ease: cubic-bezier(.2,.7,.2,1);
  --wrap: 1600px;
  --gutter: clamp(20px, 4vw, 72px);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.bleed { width: 100%; }

/* ---------- Type ---------- */
h1, h2, h3 { font-weight: 500; letter-spacing: -.03em; line-height: .98; }

.display {
  font-size: clamp(44px, 8.6vw, 150px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: .94;
}
.h2 {
  font-size: clamp(34px, 6vw, 104px);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: .98;
}
.h3 {
  font-size: clamp(24px, 3vw, 44px);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.02;
}
/* black-first / grey-continuation headline pattern (airmee signature) */
.cont { color: var(--muted); }
.on-dark .cont { color: rgba(255,255,255,.5); }
.on-peri .cont { color: rgba(10,10,10,.42); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: clamp(11px, .9vw, 13px);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: inline-block;
}
.lead {
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.4;
  color: var(--muted-2);
  letter-spacing: -.01em;
  max-width: 40ch;
}
.body { font-size: clamp(16px, 1.15vw, 19px); line-height: 1.55; color: var(--muted-2); }

/* ---------- Buttons (pills) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-sans);
  font-size: clamp(15px, 1.1vw, 18px);
  font-weight: 500;
  letter-spacing: -.01em;
  padding: 16px 30px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .4s var(--ease), background .3s var(--ease), color .3s, border-color .3s;
}
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }
.btn-solid { background: var(--ink); color: var(--white); }
.btn-solid:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-pop { background: var(--pop); color: var(--ink); }
.btn-pop:hover { transform: translateY(-2px); filter: brightness(.97); }
.btn-lg { padding: 22px 42px; font-size: clamp(17px, 1.3vw, 21px); gap: 16px; }
.btn-block { width: 100%; justify-content: center; }
.on-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.on-dark .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background .35s var(--ease), border-color .35s, box-shadow .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--white);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 84px;
}
.logo {
  font-family: var(--f-sans);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -.03em;
  font-style: italic;
  margin-right: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 40px);
}
.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: opacity .25s;
}
.nav-item:hover { opacity: .55; }
.nav-item .ic {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--white);
  display: grid; place-items: center;
  flex-shrink: 0;
  font-family: var(--f-mono);
  font-size: 11px;
}
.nav-item .ic svg { width: 14px; height: 14px; }
.nav-cta { padding: 12px 24px; font-size: 15px; }
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-burger span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.nav-open .nav-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav-open .nav-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-overlay {
  position: fixed; inset: 0; z-index: 199;
  background: var(--white);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter);
  gap: 4px;
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease);
}
.nav-open .nav-overlay { opacity: 1; pointer-events: auto; }
.nav-overlay a { font-size: clamp(32px, 9vw, 60px); font-weight: 500; letter-spacing: -.03em; padding: 8px 0; }
.nav-overlay a:hover { color: var(--muted); }
.nav-overlay .foot { margin-top: 30px; font-family: var(--f-mono); font-size: 12px; color: var(--muted-2); letter-spacing: .06em; }

/* ---------- Sections & blocks ---------- */
.sec { padding: clamp(72px, 9vw, 150px) 0; }
.sec-tight { padding: clamp(48px, 6vw, 96px) 0; }
.block { padding: clamp(48px, 6vw, 100px) 0; }
.b-white { background: var(--white); }
.b-g1 { background: var(--g1); }
.b-g2 { background: var(--g2); }
.b-g3 { background: var(--g3); }
.b-peri { background: var(--peri); }
.b-pop { background: var(--pop); }
.b-ink { background: var(--ink); color: var(--white); }

/* label = logo + word (airmee "AIRMEE Home") */
.blocklabel {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 36px);
  letter-spacing: -.02em;
  margin-bottom: clamp(40px, 8vw, 120px);
}
.blocklabel .mk { font-weight: 800; font-style: italic; }

/* ---------- Hero ---------- */
.hero {
  background: var(--peri);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
}
.hero-pill {
  background: var(--white);
  border-radius: 999px;
  padding: clamp(40px, 7vw, 96px) clamp(48px, 8vw, 120px);
  display: inline-flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  font-size: clamp(28px, 4.5vw, 68px);
  font-weight: 500;
  letter-spacing: -.03em;
  transition: transform .5s var(--ease), box-shadow .5s;
  box-shadow: 0 20px 60px rgba(10,10,20,.10);
}
.hero-pill:hover { transform: scale(1.02); box-shadow: 0 30px 80px rgba(10,10,20,.16); }
.hero-pill .arr { transition: transform .5s var(--ease); }
.hero-pill:hover .arr { transform: translateX(10px); }
.hero-scroll {
  position: absolute;
  bottom: 34px; left: 50%; transform: translateX(-50%);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(10,10,10,.5);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero-scroll .dot { width: 2px; height: 40px; background: rgba(10,10,10,.3); animation: scrolldrop 2s var(--ease) infinite; transform-origin: top; }
@keyframes scrolldrop { 0% { transform: scaleY(0); } 40% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* big statement heading block */
.statement .display { max-width: 18ch; }

/* ---------- Split (two colour columns) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split > .pane {
  padding: clamp(48px, 6vw, 110px) clamp(32px, 4vw, 80px);
  min-height: clamp(420px, 46vw, 720px);
  display: flex;
  flex-direction: column;
}
.pane .pane-title { margin-top: auto; }
.pane .h3 { max-width: 20ch; }
.pane .pane-media {
  margin-top: 28px;
  flex: 0 0 auto;
}

/* ---------- Figures (big numbers) ---------- */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); }
.figure {
  padding: clamp(32px, 4vw, 64px) clamp(20px, 2.5vw, 40px);
  border-right: 1px solid var(--line-ink);
}
.figures .figure:last-child { border-right: none; }
.figure .fnum {
  font-size: clamp(52px, 8.5vw, 150px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .9;
  display: flex; align-items: baseline;
}
.figure .fnum .sfx { font-size: .5em; margin-left: .04em; }
.figure .flbl {
  font-family: var(--f-mono);
  font-size: clamp(11px, .9vw, 13px);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 20px;
}

/* ---------- Media / photo placeholders ---------- */
.media { position: relative; overflow: hidden; }
.placeholder {
  background: repeating-linear-gradient(45deg, rgba(10,10,10,.03) 0 12px, rgba(10,10,10,.05) 12px 24px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--muted-2); text-align: center; padding: 20px;
}
.placeholder .ph-kind { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.placeholder .ph-desc { font-size: 13px; max-width: 26ch; opacity: .8; }
.on-dark .placeholder { background: repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 12px, rgba(255,255,255,.09) 12px 24px); color: rgba(255,255,255,.7); }

/* ---------- Rows (roles / list) ---------- */
.rows { border-top: 1px solid var(--line-ink); }
.row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 24px;
  padding: clamp(24px, 2.6vw, 40px) 0;
  border-bottom: 1px solid var(--line-ink);
  transition: padding .4s var(--ease), background .4s;
}
.row:hover { background: var(--g1); padding-left: 24px; padding-right: 24px; }
.row .r-title { font-size: clamp(20px, 2.4vw, 38px); font-weight: 500; letter-spacing: -.02em; }
.row .r-arr { font-size: 24px; transition: transform .4s var(--ease); }
.row:hover .r-arr { transform: translateX(8px); }
.pill-tag {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink); background: transparent; border: 1px solid var(--line-ink);
  border-radius: 999px; padding: 7px 16px;
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent); mask-image: linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; align-items: center; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Long-read (privacy/terms) ---------- */
.longread { max-width: 820px; margin: 0 auto; }
.longread h1 { font-size: clamp(40px, 6vw, 88px); font-weight: 500; letter-spacing: -.035em; line-height: .96; margin-bottom: 12px; }
.longread .doc-meta { font-family: var(--f-mono); font-size: 12.5px; color: var(--muted-2); line-height: 2; padding: 22px 26px; background: var(--g1); border-radius: 6px; margin: 28px 0 44px; }
.longread h2 { font-size: clamp(24px, 3vw, 40px); font-weight: 500; letter-spacing: -.025em; margin: 60px 0 18px; scroll-margin-top: 110px; }
.longread h3 { font-size: 20px; font-weight: 600; margin: 32px 0 10px; }
.longread p, .longread li { font-size: 16px; color: var(--muted-2); margin-bottom: 14px; line-height: 1.6; }
.longread ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.longread strong { color: var(--ink); font-weight: 600; }
.longread a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--muted); text-underline-offset: 3px; }
.longread table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 18px 0 26px; }
.longread th, .longread td { text-align: left; padding: 12px 16px; border: 1px solid var(--line); color: var(--muted-2); }
.longread th { background: var(--g1); color: var(--ink); font-weight: 600; }
.toc { background: var(--g1); border-radius: 6px; padding: 26px 30px; margin-bottom: 52px; }
.toc h4 { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.toc ol { columns: 2; gap: 36px; padding-left: 18px; font-size: 14px; }
.toc li { margin-bottom: 8px; }
.toc a { color: var(--muted-2); text-decoration: none; }
.toc a:hover { color: var(--ink); }

/* ---------- Forms ---------- */
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 9px; }
.field input, .field textarea {
  width: 100%; font-family: var(--f-sans); font-size: 17px; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line); border-radius: 12px; padding: 16px 18px;
  transition: border-color .25s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field textarea { min-height: 150px; resize: vertical; }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: var(--white); padding: clamp(64px, 8vw, 120px) 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand .logo { color: #fff; margin-bottom: 16px; display: inline-block; }
.footer-brand p { color: rgba(255,255,255,.6); max-width: 30ch; font-size: 15px; }
.footer-col h4 { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: rgba(255,255,255,.75); font-size: 15.5px; transition: color .25s; }
.footer-col a:hover { color: #fff; }
.footer-email { font-size: clamp(20px, 2vw, 30px); font-weight: 500; letter-spacing: -.02em; color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social .s { width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; font-family: var(--f-mono); font-size: 10px; color: rgba(255,255,255,.6); }
.footer-bottom { margin-top: clamp(48px, 6vw, 96px); padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 12px; color: rgba(255,255,255,.5); letter-spacing: .04em; }

/* ---------- Reveal / motion ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .09s; }
.reveal.d2 { transition-delay: .18s; }
.reveal.d3 { transition-delay: .27s; }
.reveal.d4 { transition-delay: .36s; }
.pop-in { opacity: 0; transform: scale(.94); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.pop-in.in { opacity: 1; transform: none; }
.mask-line { display: block; overflow: hidden; }
.mask-line > span { display: block; transform: translateY(105%); transition: transform 1s var(--ease); }
.mask-line.in > span { transform: none; }
.mask-line.d1 > span { transition-delay: .12s; }
.mask-line.d2 > span { transition-delay: .24s; }
.mask-line.d3 > span { transition-delay: .36s; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .figures { grid-template-columns: 1fr 1fr; }
  .figure:nth-child(2) { border-right: none; }
  .figure:nth-child(-n+2) { border-bottom: 1px solid var(--line-ink); }
}
@media (max-width: 820px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .split { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr auto; }
  .row .pill-tag { display: none; }
  .toc ol { columns: 1; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .hero-pill { padding: 32px 40px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .pop-in { opacity: 1 !important; transform: none !important; transition: none !important; }
  .mask-line > span { transform: none !important; }
  .marquee-track, .hero-scroll .dot { animation: none !important; }
}

/* ============================================================
   Legal site additions — callouts, mail block, doc cards
   Same tokens as above (--g1 / --f-mono / --pop / --line).
   ============================================================ */

/* ---------- Callouts ---------- */
.longread .callout {
  background: var(--g1);
  border-left: 3px solid var(--ink);
  border-radius: 6px;
  padding: 26px 30px;
  margin: 32px 0;
}
.longread .callout > :last-child { margin-bottom: 0; }
.longread .callout-warn { background: #FFFBE3; border-left-color: var(--pop); }

/* ---------- Email template block ---------- */
.longread .mail-block {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin: 24px 0 34px;
}
.longread .mail-block__head {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
  background: var(--g1);
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
}
.longread .mail-block pre {
  margin: 0;
  padding: 26px 22px;
  background: var(--white);
  font-family: var(--f-mono);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---------- Definition list for form fields ---------- */
.longread .field-list { margin: 18px 0 30px; }
.longread .field-list dt {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 20px;
}
.longread .field-list dd { margin: 6px 0 0; font-size: 16px; color: var(--ink); }

.longread code {
  font-family: var(--f-mono);
  font-size: .88em;
  background: var(--g1);
  padding: 3px 7px;
  border-radius: 4px;
  word-break: break-word;
}

/* ---------- Index doc cards ---------- */
.doc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 44px 0 0; }
.doc-card {
  display: flex;
  flex-direction: column;
  padding: 30px 28px 26px;
  background: var(--g1);
  border-radius: 6px;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.doc-card:hover { background: var(--g2); transform: translateY(-3px); }
.doc-card h3 { font-size: 21px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 10px; line-height: 1.15; }
.doc-card p { font-size: 15px; color: var(--muted-2); line-height: 1.55; margin-bottom: 22px; flex: 1; }
.doc-card__go { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) { .doc-cards { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .longread .mail-block pre { font-size: 12px; padding: 20px 16px; }
  .longread .callout { padding: 22px 22px; }
}

/* ---------- Print ---------- */
@media print {
  .nav, .nav-overlay, footer, .toc, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .sec { padding: 0 !important; }
  .longread h2 { page-break-after: avoid; }
  .longread table, .longread .mail-block, .longread .callout { page-break-inside: avoid; }
}
