/* ==========================================================================
   VIDEOBLAST.AI — premium landing
   ========================================================================== */

:root {
  --navy-950: #071530;
  --navy-900: #0b1f45;
  --navy-800: #102b5e;
  --blue-700: #1a4a9c;
  --blue-600: #2160c4;
  --blue-400: #5d93e0;
  --gold-300: #fbe2a6;
  --gold-400: #f6cf7c;
  --gold-500: #e9b65c;
  --gold-grad: linear-gradient(135deg, #fde7ae 0%, #f6cf7c 45%, #e3a94c 100%);
  --white: #ffffff;
  --text: rgba(255, 255, 255, 0.92);
  --text-muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.18);
  --glass: rgba(10, 30, 70, 0.38);

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

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 88px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --blend: 20vh; /* overlap between home scenes */
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--navy-900);
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 18px; border-radius: 999px;
  background: var(--gold-400); color: var(--navy-900);
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

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

/* ---------- Typography ---------- */

.eyebrow {
  display: block;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: clamp(11px, 0.85vw, 13px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 18px;
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: var(--white);
  margin: 0;
  text-shadow: 0 2px 30px rgba(5, 20, 50, 0.25);
}
.display--xl { font-size: clamp(42px, 5.6vw, 92px); }
.display--lg { font-size: clamp(34px, 3.9vw, 62px); }
.display--md { font-size: clamp(30px, 3.4vw, 54px); }

.gold {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.lead-caps {
  font-size: clamp(13px, 1.05vw, 16px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 1.9;
  color: var(--text);
  margin: 26px 0 0;
}

/* ---------- Buttons ---------- */

.btn {
  --h: 54px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: var(--h);
  padding: 0 32px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), background-color .4s, color .4s, border-color .4s;
  isolation: isolate;
  overflow: hidden;
}
.btn svg { width: 16px; height: 16px; transition: transform .5s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.btn--gold {
  background: var(--gold-grad);
  color: #1d1a12;
  box-shadow: 0 10px 30px -10px rgba(233, 182, 92, 0.65);
}
.btn--gold::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease-out);
  z-index: -1;
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(233, 182, 92, 0.8); }
.btn--gold:hover::after { transform: translateX(120%); }

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
  background: rgba(8, 26, 62, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.95); color: var(--navy-900); border-color: #fff; }

.btn--sm { --h: 44px; padding: 0 24px; font-size: 12px; }

.btn-row { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 40px; }
.btn-row .btn { min-width: 236px; justify-content: space-between; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: height .5s var(--ease), background-color .5s var(--ease), box-shadow .5s;
}
.site-header::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 21, 48, 0.55), rgba(7, 21, 48, 0));
  pointer-events: none;
  transition: opacity .5s;
}
.site-header.is-scrolled {
  height: 68px;
  background: rgba(9, 27, 62, 0.62);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.site-header.is-scrolled::before { opacity: 0; }

.site-header .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo { display: inline-flex; flex-direction: column; line-height: 1; }
.logo__word {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 26px;
  letter-spacing: 0.02em;
  color: var(--white);
}
.logo__word b { font-weight: 300; color: var(--gold-400); }
.logo__tag {
  margin-top: 6px;
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.nav__link {
  position: relative;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  transition: color .3s;
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold-400);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--gold-400); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; gap: 18px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  position: relative;
}
.burger span {
  position: absolute; left: 10px; right: 10px;
  height: 1.5px; background: #fff;
  transition: transform .45s var(--ease-out), opacity .3s;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px var(--gutter) 40px;
  background: linear-gradient(160deg, rgba(16, 43, 94, 0.97), rgba(7, 21, 48, 0.98));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility .5s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(30px, 8vw, 44px);
  text-transform: uppercase;
  color: #fff;
  padding: 8px 0;
  transform: translateY(16px); opacity: 0;
  transition: transform .6s var(--ease-out), opacity .6s, color .3s;
}
.mobile-menu a:hover, .mobile-menu a[aria-current="page"] { color: var(--gold-400); }
.menu-open .mobile-menu a { transform: none; opacity: 1; }
.menu-open .mobile-menu a:nth-child(2) { transition-delay: .05s; }
.menu-open .mobile-menu a:nth-child(3) { transition-delay: .1s; }
.menu-open .mobile-menu a:nth-child(4) { transition-delay: .15s; }
.menu-open .mobile-menu a:nth-child(5) { transition-delay: .2s; }
.mobile-menu .btn { margin-top: 32px; align-self: flex-start; }

/* ---------- Home scenes ---------- */

.scene {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.scene__bg {
  position: absolute;
  left: 0; right: 0;
  top: -12%; bottom: -12%;
  z-index: -2;
  will-change: transform;
}
.scene__bg img,
.scene__bg picture {
  width: 100%; height: 100%;
  object-fit: cover;
}

.scene__shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.scene__content { position: relative; width: 100%; will-change: transform, opacity; }

/* scenes after the first overlap the previous one and dissolve into it */
.scene + .scene {
  margin-top: calc(var(--blend) * -1);
  min-height: calc(100vh + var(--blend));
  min-height: calc(100svh + var(--blend));
  padding-top: var(--blend);
}
.scene + .scene {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0,0,0,.35) calc(var(--blend) * .45), #000 var(--blend));
  mask-image: linear-gradient(180deg, transparent 0, rgba(0,0,0,.35) calc(var(--blend) * .45), #000 var(--blend));
}

/* Scene 1 — hero */
.scene--hero .scene__bg img { object-position: 70% 40%; }
.scene--hero .scene__shade {
  background:
    linear-gradient(90deg, rgba(8, 30, 74, 0.62) 0%, rgba(8, 30, 74, 0.28) 38%, rgba(8, 30, 74, 0) 60%),
    linear-gradient(180deg, rgba(8, 30, 74, 0.35) 0%, rgba(8, 30, 74, 0) 22%, rgba(8, 30, 74, 0) 72%, rgba(11, 38, 92, 0.55) 100%);
}
.scene--hero .scene__content { padding-top: var(--header-h); padding-bottom: 10vh; }
.hero__copy { max-width: 860px; }

.scroll-cue {
  position: absolute;
  left: 50%; bottom: calc(var(--blend) + 8px);
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--text-muted);
  transition: opacity .6s var(--ease);
}
.has-scrolled .scroll-cue { opacity: 0; pointer-events: none; }
.scroll-cue i {
  width: 1px; height: 46px;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,0));
  transform-origin: top;
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* Scene 2 — portfolio */
.scene--portfolio,
.scene--news { background: linear-gradient(180deg, #16407f 0%, #0f2d63 100%); }
.scene--portfolio .scene__bg img { object-position: 30% 55%; }
.scene--portfolio .scene__shade {
  background:
    linear-gradient(180deg, rgba(11, 38, 92, 0.55) 0%, rgba(11, 38, 92, 0.2) 40%, rgba(11, 38, 92, 0) 60%, rgba(11, 38, 92, 0.45) 100%),
    linear-gradient(270deg, rgba(8, 30, 74, 0.55) 0%, rgba(8, 30, 74, 0) 50%);
}
.scene--portfolio .scene__content {
  display: grid;
  gap: clamp(22px, 3.6vh, 44px);
  padding-top: clamp(16px, 4vh, 56px);
  padding-bottom: calc(var(--blend) + 4vh);
}

.portfolio-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.portfolio-head .eyebrow { margin: 0; }
.portfolio-head a {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-400);
  display: inline-flex; gap: 10px; align-items: center;
}

.cat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }

.cat-card {
  position: relative;
  display: block;
  height: clamp(170px, 23vh, 250px);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 24px 60px -30px rgba(3, 12, 32, 0.8);
  border: 1px solid rgba(255,255,255,.12);
}
.cat-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  transform: scale(1.04);
  transition: transform 1.4s var(--ease-out);
}
.cat-card::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(16, 52, 120, 0.92) 0%, rgba(16, 52, 120, 0.6) 38%, rgba(16, 52, 120, 0) 70%);
  transition: opacity .6s;
}
.cat-card:hover img { transform: scale(1.1); }
.cat-card__body {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: clamp(18px, 2vw, 28px);
}
.cat-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 1.9vw, 30px);
  text-transform: uppercase;
  color: #fff;
  line-height: 1.05;
}
.cat-card p {
  margin: 0;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--text);
  max-width: 14em;
}
.cat-card .arrow { margin-top: auto; color: var(--gold-400); }
.arrow { display: inline-block; width: 40px; height: 14px; transition: transform .6s var(--ease-out); }
.cat-card:hover .arrow { transform: translateX(8px); }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 30, 74, 0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
}
.feature {
  display: flex; gap: 18px; align-items: flex-start;
  padding: clamp(18px, 2.4vh, 26px) clamp(18px, 2vw, 32px);
}
.feature + .feature { border-left: 1px solid var(--line); }
.feature svg { flex: none; width: 34px; height: 34px; color: var(--gold-400); }
.feature h3 {
  margin: 0 0 4px;
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #fff;
}
.feature p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-muted); }

.statement { justify-self: end; text-align: left; max-width: 620px; }
.statement .lead-caps { margin-top: 18px; }

/* Scene 3 — newsletter */
.scene--news { align-items: stretch; flex-direction: column; }
.scene--news .scene__bg img { object-position: 60% 60%; }
.scene--news .scene__shade {
  background:
    linear-gradient(90deg, rgba(8, 30, 74, 0.72) 0%, rgba(8, 30, 74, 0.35) 42%, rgba(8, 30, 74, 0) 62%),
    linear-gradient(180deg, rgba(8, 30, 74, 0) 70%, rgba(7, 21, 48, 0.75) 100%);
}
.scene--news .scene__content {
  flex: 1;
  display: flex; align-items: center;
  padding-top: 6vh; padding-bottom: 6vh;
}
.news__copy { max-width: 560px; }
.news__copy p.body { margin: 22px 0 0; color: var(--text); font-size: 16px; line-height: 1.7; max-width: 30em; }

.subscribe {
  display: flex; gap: 10px;
  margin-top: 30px;
  max-width: 520px;
}
.field-pill {
  flex: 1;
  display: flex; align-items: center; gap: 12px;
  height: 54px; padding: 0 22px;
  border-radius: 999px;
  background: rgba(7, 21, 48, 0.55);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color .3s, background-color .3s;
}
.field-pill:focus-within { border-color: var(--gold-400); background: rgba(7, 21, 48, 0.7); }
.field-pill svg { width: 18px; height: 18px; flex: none; color: var(--text-muted); }
.field-pill input {
  flex: 1; min-width: 0;
  background: none; border: 0; outline: 0;
  font-size: 15px; color: #fff;
}
.field-pill input::placeholder { color: var(--text-muted); }
.form-note { min-height: 1.4em; margin: 12px 0 0; font-size: 13px; color: var(--text-muted); }
.form-note.is-ok { color: var(--gold-300); }
.form-note.is-err { color: #ffb4a8; }

.news__cta { margin-top: 18px; min-width: 236px; justify-content: space-between; }

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  z-index: 2;
  background: rgba(7, 21, 48, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 56px 0 28px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand p { margin: 18px 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.7; max-width: 30em; }
.footer-col h4 {
  margin: 0 0 14px;
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: #fff;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a, .footer-col button { color: var(--text-muted); transition: color .3s; font-size: 14px; }
.footer-col a:hover, .footer-col button:hover { color: var(--gold-400); }
.socials { display: flex; gap: 16px; }
.socials a { color: #fff; transition: color .3s, transform .4s var(--ease-out); }
.socials a:hover { color: var(--gold-400); transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: var(--text-muted); font-size: 12px;
}
.footer-bottom a:hover { color: var(--gold-400); }

/* ---------- Inner pages (portfolio categories, about, legal) ---------- */

.page {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(120% 60% at 15% 0%, rgba(120, 170, 240, 0.55) 0%, rgba(120, 170, 240, 0) 60%),
    radial-gradient(90% 50% at 100% 40%, rgba(90, 140, 220, 0.4) 0%, rgba(90, 140, 220, 0) 60%),
    linear-gradient(180deg, #4a82cf 0%, #3a70bf 40%, #2b5ba6 75%, #1d4486 100%);
  overflow: hidden;
  isolation: isolate;
}
.silk {
  position: absolute; left: 0; right: 0;
  width: 100%; height: auto;
  z-index: -1;
  pointer-events: none;
  will-change: transform;
}
.silk--top { top: 40px; }
.silk--bottom { bottom: 120px; }
.silk path { fill: none; stroke-linecap: round; }
.silk .g { stroke: url(#silkGold); stroke-width: 1.4; opacity: .85; }
.silk .w { stroke: rgba(255,255,255,.55); stroke-width: 1; }
.silk .r { stroke: rgba(220, 70, 90, .45); stroke-width: 1; }
.silk path { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 3.6s var(--ease) .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.page-hero { padding-top: calc(var(--header-h) + clamp(40px, 7vh, 80px)); padding-bottom: clamp(36px, 6vh, 64px); }
.page-hero .display--xl { font-size: clamp(56px, 8vw, 128px); }
.page-hero .lead-caps { margin-top: 22px; letter-spacing: .38em; }

/* Film carousels of the category pages: assets/css/portfolio.css */

.explore { padding-top: clamp(64px, 10vh, 110px); }
.explore .cat-cards { grid-template-columns: repeat(2, 1fr); margin-top: 22px; }

.cta-band { text-align: center; padding-top: clamp(80px, 13vh, 140px); padding-bottom: clamp(80px, 12vh, 130px); position: relative; }
.cta-band .eyebrow { letter-spacing: .5em; }
.cta-band .btn { margin-top: 34px; }

.prose { max-width: 760px; padding-bottom: 80px; }
.prose h2 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(24px, 2.4vw, 34px); color: #fff; margin: 56px 0 16px; line-height: 1.15;
}
.prose p, .prose li { color: var(--text); font-size: 17px; line-height: 1.75; }
.prose ol, .prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 10px; }
.prose strong { color: #fff; font-weight: 500; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px 0 0; }
.stat { padding: 26px; border-radius: var(--radius); background: rgba(10, 36, 88, 0.28); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 3.6vw, 52px); line-height: 1; }
.stat span { display: block; margin-top: 10px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); }

/* About */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 28px); }
.pillar__media {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 60px -34px rgba(4, 16, 44, 0.9);
}
.pillar__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.4s var(--ease-out); }
.pillar:hover .pillar__media img { transform: scale(1.07); }
.pillar h3, .step h3 {
  margin: 20px 0 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 1.7vw, 25px);
  text-transform: uppercase;
  line-height: 1.15;
  color: #fff;
}
.pillar p, .step p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--text); }

.about-block { padding-top: clamp(72px, 11vh, 120px); }
.about-block .stats { margin-top: 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 28px); margin-top: clamp(32px, 5vh, 48px); }
.step {
  padding: clamp(24px, 2.4vw, 34px);
  border-radius: var(--radius);
  background: rgba(10, 36, 88, 0.32);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.step__num { display: block; font-family: var(--font-display); font-size: 44px; line-height: 1; }
.step h3 { margin-top: 18px; }
.step--plain h3 { margin-top: 0; }
.tools { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; }
.tools li {
  height: 38px; display: inline-flex; align-items: center; padding: 0 18px;
  border-radius: 999px; border: 1px solid rgba(246, 207, 124, 0.5);
  font-size: 13px; letter-spacing: .08em; color: var(--gold-300);
}
.explore .cat-cards--3 { grid-template-columns: repeat(3, 1fr); }
.cta-sub { margin: 18px auto 0; max-width: 30em; color: var(--text); }

/* ---------- Modal ---------- */

.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 24px;
  visibility: hidden;
}
.modal.is-open { visibility: visible; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 14, 34, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__dialog {
  position: relative;
  width: min(900px, 100%);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 20px;
  background:
    radial-gradient(120% 70% at 0% 0%, rgba(110, 160, 235, 0.35), rgba(110,160,235,0) 60%),
    linear-gradient(170deg, #17407f 0%, #0f2d63 55%, #0b2350 100%);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.7);
  padding: clamp(28px, 3vw, 44px) clamp(28px, 3.4vw, 52px);
  opacity: 0;
  transform: translateY(24px) scale(.985);
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
}
.modal.is-open .modal__dialog { opacity: 1; transform: none; }
.modal__dialog:focus { outline: none; }
.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  transition: background-color .3s, transform .5s var(--ease-out);
}
.modal__close:hover { background: rgba(255,255,255,.1); transform: rotate(90deg); }
.modal__close svg { width: 20px; height: 20px; }
.modal .eyebrow { margin-bottom: 12px; }
.modal h2 { margin-bottom: 10px; font-size: clamp(26px, 2.5vw, 38px); }
.modal__intro { margin: 0 0 24px; color: var(--text-muted); }

.form-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-4 { grid-column: span 4; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label, .field legend {
  font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted);
  padding: 0;
}
.field label i, .field legend i { color: var(--gold-400); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(5, 16, 40, 0.42);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  font-size: 15px;
  outline: 0;
  transition: border-color .3s, background-color .3s;
}
.field textarea { min-height: 92px; height: 92px; resize: none; line-height: 1.5; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6cf7c' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
}
.field select option { background: #0f2d63; color: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-400); background-color: rgba(5, 16, 40, 0.6); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #ff9b8a; }

fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; height: 38px; padding: 0 18px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.22);
  font-size: 13px; letter-spacing: .06em; color: var(--text);
  cursor: pointer;
  transition: background-color .3s, border-color .3s, color .3s;
}
.chip input:checked + span { background: var(--gold-grad); border-color: transparent; color: #1d1a12; }
.chip input:focus-visible + span { outline: 2px solid var(--gold-400); outline-offset: 2px; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.consent input { margin-top: 3px; accent-color: var(--gold-500); width: 16px; height: 16px; flex: none; }
.consent a { color: var(--gold-300); text-decoration: underline; text-underline-offset: 3px; }

.form-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 2px; }
.form-actions .form-note { margin: 0; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.modal__success { text-align: center; padding: 30px 0 10px; }
.modal__success .display { margin: 10px 0 16px; }
.modal__success p { color: var(--text-muted); margin: 0 auto 28px; max-width: 28em; }

@media (min-width: 641px) and (max-height: 820px) {
  .modal { padding: 16px; }
  .modal__dialog { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 26px 40px; }
  .modal .eyebrow { margin-bottom: 8px; }
  .modal h2 { font-size: 28px; margin-bottom: 6px; }
  .modal__intro { margin-bottom: 16px; font-size: 15px; }
  .form-grid { gap: 10px 16px; }
  .field input, .field select, .field textarea { min-height: 42px; padding: 8px 14px; }
  .field textarea { height: 64px; min-height: 64px; }
  .chip span { height: 34px; }
  .btn { --h: 48px; }
}
@media (min-width: 641px) and (max-height: 660px) {
  .modal__intro { display: none; }
  .modal h2 { font-size: 24px; }
  .field textarea { height: 52px; min-height: 52px; }
}

body.is-locked { overflow: hidden; }

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

.hero-in > * { opacity: 0; transform: translateY(26px); animation: heroIn 1.4s var(--ease-out) forwards; }
.hero-in > *:nth-child(1) { animation-delay: .25s; }
.hero-in > *:nth-child(2) { animation-delay: .4s; }
.hero-in > *:nth-child(3) { animation-delay: .6s; }
.hero-in > *:nth-child(4) { animation-delay: .8s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

.scene--hero .scene__bg img { animation: settle 2.8s var(--ease-out) both; }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; --blend: 12vh; }
  .nav, .header-actions .btn { display: none; }
  .burger { display: block; }
  .cat-cards { grid-template-columns: 1fr; }
  .cat-card { height: 150px; }
  .features { grid-template-columns: 1fr; }
  .feature + .feature { border-left: 0; border-top: 1px solid var(--line); }
  .statement { justify-self: start; }
  .explore .cat-cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .pillars, .steps, .explore .cat-cards--3 { grid-template-columns: 1fr; }
  .scene--hero .scene__shade {
    background: linear-gradient(180deg, rgba(8, 30, 74, 0.55) 0%, rgba(8, 30, 74, 0.25) 45%, rgba(8, 30, 74, 0.1) 65%, rgba(11, 38, 92, 0.6) 100%);
  }
  .scene--hero .scene__content { align-self: flex-start; padding-top: calc(var(--header-h) + 6vh); }
  .scene--news .scene__shade { background: linear-gradient(180deg, rgba(8, 30, 74, 0.25) 0%, rgba(8, 30, 74, 0.65) 55%, rgba(7, 21, 48, 0.85) 100%); }
}

@media (max-width: 640px) {
  .logo__word { font-size: 22px; }
  .btn-row .btn { width: auto; min-width: 0; padding: 0 26px; gap: 18px; }
  .news__cta { width: 100%; }
  .btn-row { display: inline-flex; align-items: stretch; gap: 12px; margin-top: 32px; }
  .subscribe { flex-direction: column; }
  .subscribe .field-pill { flex: none; }
  .subscribe .btn { width: 100%; justify-content: space-between; }
  /* Start a project: compact two-column form that fits one phone screen */
  .form-grid { grid-template-columns: 1fr 1fr; gap: 10px 10px; }
  .form-grid .span-2, .form-grid .span-4 { grid-column: span 1; }
  #project-modal .field:has(#pf-email) { grid-column: 1 / -1; }
  .field { gap: 5px; }
  .field label, .field legend { font-size: 10px; letter-spacing: .14em; }
  .field input, .field select, .field textarea { min-height: 42px; padding: 8px 12px; font-size: 16px; }
  .field select { padding-right: 34px; background-position: right 10px center; font-size: 14px; }
  .field textarea { height: 76px; min-height: 76px; }
  .chips { flex-wrap: nowrap; gap: 6px; }
  .chip { flex: 1 1 auto; min-width: 0; }
  .chip span { width: 100%; justify-content: center; height: 32px; padding: 0 8px; font-size: 11px; letter-spacing: .02em; white-space: nowrap; }
  .consent { font-size: 12px; gap: 10px; }
  .form-actions .btn { --h: 44px; padding: 0 22px; font-size: 12px; gap: 10px; }
  .modal .eyebrow { margin-bottom: 8px; font-size: 10px; }
  .modal h2 { font-size: 24px; margin-bottom: 6px; text-wrap: balance; }
  .modal__intro { font-size: 13px; line-height: 1.5; margin-bottom: 14px; }
  .modal__close { top: 10px; right: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .modal { padding: 0; align-items: end; }
  .modal__dialog { border-radius: 20px 20px 0 0; max-height: 100dvh; padding: 22px 20px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .hero-in > * { opacity: 1; transform: none; }
  .silk path { stroke-dashoffset: 0; }
}

.page-hero .about-title { font-size: clamp(40px, 6vw, 96px); }

/* Mobile: no backdrop blur and no content drift inside the blended scenes.
   Mobile browsers composite backdrop-filter inside masked, transformed layers
   poorly, which showed up as a dark band over the last screen. */
@media (max-width: 960px) {
  .site-footer,
  .scene--news .site-footer {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: linear-gradient(180deg, rgba(9, 26, 60, 0.9) 0%, #0a1c40 120px);
  }
  .field-pill,
  .features,
  .btn--ghost {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .field-pill { background: rgba(7, 21, 48, 0.62); }
  .scene__content { will-change: auto; }
}

@media (max-width: 640px) and (max-height: 680px) {
  .modal__intro { margin-bottom: 10px; }
  .field textarea { height: 56px; min-height: 56px; }
}
