:root {
  --page: #f8fafc;
  --navy: #000000;
  --ink: #000000;
  --ink-2: #ffffff;
  --panel: #ffffff;
  --brand: #2563eb;
  --brand-deep: #1e3a8a;
  --gold: #d4af37;
  --gold-2: #d4af37;
  --gold-dim: #b8962e;
  --cyan: #06b6d4;
  --sand: #06b6d4;
  --sun: #06b6d4;
  --line: #e2e8f0;
  --cream: #000000;
  --cream-dim: #333333;
  --muted: #64748b;
  --crimson: #1e3a8a;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  --radius: 20px;
  --nav-h: 92px;
  --max: 1180px;
  --glass: #ffffff;
  --glass-strong: #ffffff;
  --glass-border: #e2e8f0;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 100px;
  padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
}

body.nav-open { overflow: hidden; }

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

.site { position: relative; z-index: 3; }

.skip {
  position: absolute;
  left: 16px;
  top: 0;
  transform: translateY(-120%);
  background: var(--brand);
  color: #ffffff;
  padding: 8px 12px;
  z-index: 100;
  border-radius: 8px;
}

.skip:focus {
  transform: translateY(16px);
  outline: none;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
}

.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.brand {
  display: flex;
  align-items: center;
  line-height: 0;
}

.brand-logo {
  display: block;
  height: 64px;
  width: auto;
  max-width: min(340px, 62vw);
  object-fit: contain;
  border-radius: 8px;
}

.brand-mark {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  font-size: 14px;
  font-weight: 600;
  color: var(--cream);
}

.brand-mark span { color: var(--gold); }

.footer-brand {
  display: inline-block;
  line-height: 0;
  margin-bottom: 12px;
}

.footer-logo {
  display: block;
  height: 56px;
  width: auto;
  max-width: min(280px, 100%);
  object-fit: contain;
  border-radius: 8px;
}

.brand-sub {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  font-size: 14px;
  letter-spacing: -0.01em;
  font-weight: 500;
  color: var(--cream-dim);
}

.nav-links a:hover,
.nav-links a.is-active { color: var(--brand); }

.nav-cta {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #ffffff !important;
  padding: 10px 16px;
  border-radius: 980px;
}

.nav-cta:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 50;
  flex-shrink: 0;
  border-radius: 10px;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 10px;
  width: 22px;
  height: 1px;
  background: var(--cream);
}

.menu-btn span { top: 21px; }
.menu-btn span::before { top: -7px; }
.menu-btn span::after { top: 7px; }

.cursor { display: none; }

.loader {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #f8fafc;
  display: grid;
  place-items: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner { text-align: center; }

.countdown {
  font-family: var(--font-display);
  font-size: clamp(72px, 14vw, 160px);
  color: var(--brand);
  line-height: 1.05;
  transition: font-size 0.25s ease;
}

.countdown.is-brand {
  font-size: clamp(22px, 5.5vw, 42px);
  letter-spacing: 0.04em;
  font-weight: 700;
  max-width: min(92vw, 520px);
  margin: 0 auto;
  padding: 0 16px;
}

.loader-label {
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--muted);
}

.hero, .section, .page-hero { position: relative; }

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding: 140px 24px 80px;
  text-align: left;
  overflow: hidden;
  color: #ffffff;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% center;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.58) 0%, rgba(15, 23, 42, 0.28) 42%, rgba(15, 23, 42, 0.08) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  margin-left: max(24px, calc((100% - 1180px) / 2));
}

.hero .display,
.hero .fine {
  color: #ffffff;
}

.hero .fine {
  margin-left: 0;
}

.hero .actions {
  justify-content: flex-start;
}

.hero .btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
}

.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.hero .btn-solid {
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.28);
}

.hero .scroll-hint {
  color: rgba(255, 255, 255, 0.72);
  z-index: 1;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 18px;
}

.kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.display {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.038em;
  line-height: 1.02;
  margin: 0 0 18px;
  font-size: clamp(36px, 6.2vw, 72px);
  color: var(--navy);
}

.lede {
  max-width: 720px;
  margin: 0 auto 28px;
  font-family: var(--font-sans);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--cream);
}

.fine {
  max-width: 680px;
  margin: 0 auto 36px;
  color: var(--cream-dim);
}

.actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--brand);
  letter-spacing: -0.01em;
  font-weight: 600;
  font-size: 15px;
  border-radius: 980px;
  transition: 0.25s ease;
}

.btn-ghost {
  background: #ffffff;
  border-color: var(--line);
}

.btn-solid { background: var(--brand); color: #ffffff; }
.btn-solid:hover { background: var(--brand-deep); color: #ffffff; }
.btn-ghost:hover { background: rgba(37, 99, 235, 0.08); color: var(--brand); }

.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

.section { padding: 110px 24px; }
.wrap { width: min(var(--max), 100%); margin: 0 auto; }

.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #111111;
  box-shadow: var(--shadow);
}

.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 74vh;
  background: #111111;
}

.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.35);
  color: #ffffff;
  z-index: 2;
}

.video-play span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 980px;
  background: var(--brand);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.video-play:hover span {
  background: var(--brand-deep);
}

.video-play.is-hidden {
  display: none;
}

h2, .h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.4vw, 48px);
  letter-spacing: -0.03em;
  font-weight: 650;
  line-height: 1.1;
  margin: 0 0 16px;
}

h3, .h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.gold { color: var(--gold); }
.muted { color: var(--muted); }

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  background: #ffffff;
}

.marquee-track {
  display: flex;
  gap: 42px;
  width: max-content;
  animation: marquee 32s linear infinite;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--cyan);
}

@keyframes marquee { to { transform: translateX(-50%); } }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 22px;
  align-items: start;
}

.card, .cadre, .step, .project, .talent, .deal {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.card:hover, .project:hover, .cadre:hover {
  border-color: rgba(37, 99, 235, 0.28);
}

.num {
  font-family: var(--font-display);
  color: var(--gold);
  letter-spacing: 0.2em;
  font-size: 12px;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin: 36px 0;
}

.chip {
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 8px 12px;
  letter-spacing: 0.02em;
  font-size: 13px;
  border-radius: 980px;
  color: var(--cream-dim);
}

.arrow { color: var(--cyan); }

.cadre { position: relative; overflow: hidden; }

.cadre::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.16), transparent 70%);
}

.price {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 26px;
  color: var(--gold);
  margin: 8px 0 16px;
}

.list { margin: 0; padding-left: 18px; color: var(--cream-dim); }
.list li + li { margin-top: 8px; }

.pipeline { display: grid; gap: 16px; }

.pipe {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
  border-left: 2px solid var(--cyan);
  background: #ffffff;
  border-radius: 0 16px 16px 0;
}

.pipe strong {
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  font-size: 13px;
}

.quote {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.page-hero {
  padding: 160px 24px 60px;
  text-align: center;
}

.filters {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.field, select, input, textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--cream);
  appearance: none;
}

.field:focus, select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

select option {
  background: #ffffff;
  color: #000000;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.form-grid .full { grid-column: 1 / -1; }

.recaptcha-wrap {
  margin: 8px 0 22px;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.recaptcha-wrap .g-recaptcha {
  transform-origin: left top;
}

.error-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px 24px 80px;
  color: var(--cream);
  background:
    radial-gradient(ellipse at top, rgba(37, 99, 235, 0.08), transparent 55%),
    var(--page);
}

.error-page .display {
  color: var(--cream);
  margin: 12px 0 16px;
}

.error-page .lede {
  color: var(--cream-dim);
  max-width: 420px;
  margin: 0 auto 28px;
}

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  color: var(--cream);
}

.faq-item p {
  margin: 0;
  color: var(--cream-dim);
  font-size: 15px;
}

.founder-card p + p {
  color: var(--cream-dim);
}

.desk-card h2 {
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.desk-meta {
  margin: 0 0 18px;
}

.desk-meta dt {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}

.desk-meta dd {
  margin: 0 0 16px;
  color: var(--cream);
}

.desk-meta a {
  display: inline;
  color: var(--brand);
}

.project {
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.tag {
  font-size: 12px;
  letter-spacing: 0.01em;
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 980px;
  padding: 5px 10px;
  color: var(--cream-dim);
}

.project-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  color: var(--brand);
  font-size: 13px;
}

.empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--muted);
}

.notice, .form-status {
  margin-top: 16px;
  min-height: 24px;
  color: var(--brand);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 48px 24px 28px;
  background: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.footer a {
  color: var(--cream-dim);
  margin-bottom: 4px;
  padding: 6px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.footer a:hover {
  color: var(--brand);
}

.copyright {
  margin-top: 0;
  color: var(--muted);
  font-size: 13px;
}

.credit {
  margin-top: 0;
  font-size: 13px;
  color: var(--cream-dim);
  text-align: right;
}


.footer-legal {
  width: min(var(--max), 100%);
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-legal a {
  display: inline-flex;
  min-height: auto;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: var(--cream-dim);
}

.footer-legal a:hover { color: var(--brand); }
.footer-bottom {
  width: min(var(--max), 100%);
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom .copyright,
.footer-bottom .credit {
  margin: 0;
  width: auto;
  max-width: 100%;
}

.credit a {
  display: inline;
  color: var(--brand);
  letter-spacing: 0.04em;
}

.legal {
  max-width: 820px;
}

.legal h2 {
  margin: 36px 0 12px;
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--cream);
}

.legal h3 {
  margin: 24px 0 8px;
  font-size: 17px;
  color: var(--cream);
}

.legal p,
.legal li {
  color: var(--cream-dim);
  font-size: 15px;
  line-height: 1.75;
}

.legal ul,
.legal ol {
  margin: 0 0 16px;
  padding-left: 1.2em;
}

.legal li { margin-bottom: 8px; }

.legal .legal-meta {
  margin: 0 0 28px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--muted);
  font-size: 14px;
}

.legal a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 28px;
}

.legal-nav a {
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.legal-nav a:hover { text-decoration: underline; }

.form-legal {
  margin: 8px 0 16px;
  font-size: 13px;
  color: var(--cream-dim);
  line-height: 1.55;
}

.form-legal a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cert-profile {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.cert-profile + .cert-profile {
  margin-top: 72px;
  padding-top: 72px;
  border-top: 1px solid var(--line);
}

.cert-profile--flip {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
}

.cert-profile--flip .cert-profile-media {
  order: 2;
}

.cert-profile--flip .cert-profile-copy {
  order: 1;
}

.cert-profile-media {
  margin: 0;
  position: relative;
  padding: 26px;
  border-radius: 2px;
  background:
    repeating-linear-gradient(
      88deg,
      rgba(255, 236, 200, 0.045) 0 1px,
      transparent 1px 9px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.04) 0 1px,
      transparent 1px 5px
    ),
    linear-gradient(165deg, #6b5340 0%, #3f3124 22%, #1c1510 48%, #2a2118 72%, #120e0a 100%);
  box-shadow:
    0 1px 0 rgba(255, 220, 160, 0.22) inset,
    0 -4px 8px rgba(0, 0, 0, 0.5) inset,
    4px 0 8px rgba(0, 0, 0, 0.28) inset,
    -4px 0 8px rgba(0, 0, 0, 0.28) inset,
    0 28px 56px rgba(0, 0, 0, 0.36),
    0 8px 18px rgba(0, 0, 0, 0.22);
}

.cert-profile-media::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1.5px solid rgba(212, 175, 55, 0.62);
  box-shadow:
    0 0 0 1px rgba(60, 40, 15, 0.45),
    inset 0 0 0 1px rgba(255, 230, 160, 0.12);
  pointer-events: none;
  z-index: 2;
}

.cert-profile-media::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
  z-index: 2;
}

.cert-profile-media button {
  display: block;
  width: 100%;
  padding: 18px;
  border: 0;
  background:
    linear-gradient(180deg, #f8f3e9 0%, #efe6d6 55%, #e8decc 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.16),
    0 2px 0 rgba(255, 255, 255, 0.8) inset,
    0 -2px 3px rgba(0, 0, 0, 0.06) inset;
  cursor: zoom-in;
  position: relative;
  z-index: 1;
}

.cert-profile-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: #f4efe6;
}

.cert-profile-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.2;
}

.cert-profile-copy .gold {
  margin: 0 0 18px;
  font-weight: 600;
}

.cert-profile-copy p {
  color: var(--cream-dim);
  margin: 0 0 14px;
}

.cert-bio {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.cert-bio h3 {
  margin: 0 0 10px;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

@media (max-width: 980px) {
  .cert-profile,
  .cert-profile--flip {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cert-profile--flip .cert-profile-media,
  .cert-profile--flip .cert-profile-copy {
    order: initial;
  }

  .cert-profile + .cert-profile {
    margin-top: 48px;
    padding-top: 48px;
  }
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.cert-card {
  margin: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 14px 22px;
  box-shadow: var(--shadow);
}

.cert-card:hover {
  border-color: rgba(212, 175, 55, 0.5);
}

.cert-preview {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #f8fafc;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
}

.cert-profile-media .cert-preview {
  padding: 18px;
  border-radius: 0;
  overflow: visible;
  background: linear-gradient(180deg, #f8f3e9 0%, #efe6d6 55%, #e8decc 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.16),
    0 2px 0 rgba(255, 255, 255, 0.8) inset,
    0 -2px 3px rgba(0, 0, 0, 0.06) inset;
  cursor: zoom-in;
}

.cert-preview img {
  width: 100%;
  height: auto;
  aspect-ratio: 900 / 640;
  object-fit: cover;
  background: #ffffff;
}

.cert-profile-media .cert-preview img {
  aspect-ratio: auto;
  object-fit: contain;
  background: #f4efe6;
}

.cert-preview-label {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 8px 14px;
  border-radius: 980px;
  background: var(--brand);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cert-preview:hover .cert-preview-label,
.cert-preview:focus-visible .cert-preview-label {
  opacity: 1;
}

.cert-preview:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.cert-card figcaption {
  padding: 16px 8px 0;
}

.cert-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.cert-card p {
  margin: 0;
  color: var(--cream-dim);
  font-size: 14px;
}

.cert-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.72);
}

.cert-lightbox.is-open {
  display: grid;
}

.cert-lightbox-inner {
  position: relative;
  width: min(960px, 100%);
}

.cert-lightbox img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.cert-lightbox-caption {
  margin: 14px 0 0;
  text-align: center;
  color: #ffffff;
  font-size: 15px;
}

.cert-lightbox-close,
.cert-lightbox-nav {
  position: absolute;
  border: 0;
  background: #ffffff;
  color: var(--navy);
  cursor: pointer;
  box-shadow: var(--shadow);
}

.cert-lightbox-close {
  top: -14px;
  right: -14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 500;
}

.cert-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 22px;
}

.cert-lightbox-prev { left: -18px; }
.cert-lightbox-next { right: -18px; }

.side-rail {
  position: fixed;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  letter-spacing: 0.4em;
  font-size: 10px;
  color: var(--muted);
  z-index: 5;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.9s ease forwards;
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    width: 18px;
    height: 18px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 90;
    mix-blend-mode: normal;
  }
}

@media (max-width: 1100px) {
  .nav {
    padding: 0 16px;
  }

  .nav-links {
    gap: 18px;
  }
}

@media (max-width: 980px) {
  :root {
    --nav-h: 72px;
  }

  .nav {
    height: var(--nav-h);
    padding: 0 14px;
  }

  .brand-logo {
    height: 44px;
    max-width: min(220px, 58vw);
  }

  .menu-btn {
    display: inline-flex;
  }

  body.nav-open .menu-btn span {
    background: transparent;
  }

  body.nav-open .menu-btn span::before {
    top: 0;
    transform: rotate(45deg);
  }

  body.nav-open .menu-btn span::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .menu-btn span,
  .menu-btn span::before,
  .menu-btn span::after {
    transition: transform 0.25s ease, top 0.25s ease, background 0.25s ease;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - var(--nav-h));
    height: calc(100dvh - var(--nav-h));
    z-index: 45;
    display: flex;
    background: rgba(248, 250, 252, 0.98);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 24px 20px calc(40px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav-links a {
    font-size: 18px;
    padding: 14px 8px;
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
  }

  .nav-links .nav-cta {
    margin-top: 18px;
    justify-content: center;
    border-bottom: 0;
    min-height: 52px;
  }

  .nav-links.is-open,
  body.nav-open .nav-links {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .hero {
    text-align: center;
    padding: 108px 16px 72px;
    min-height: 100svh;
  }

  .hero-copy {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  .hero .display {
    font-size: clamp(28px, 8vw, 42px);
  }

  .hero .fine {
    font-size: 15px;
  }

  .hero .actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-media img {
    object-position: 55% center;
  }

  .hero-media::after {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.48) 0%, rgba(15, 23, 42, 0.62) 100%);
  }

  .scroll-hint { display: none; }

  .section {
    padding: 72px 16px;
  }

  .page-hero {
    padding: 120px 16px 40px;
  }

  .page-hero .display {
    font-size: clamp(28px, 8vw, 44px);
  }

  .section-head {
    margin-bottom: 32px;
  }

  .card,
  .cadre,
  .project,
  .faq-item {
    padding: 20px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .filters,
  .form-grid,
  .footer-grid,
  .pipe,
  .contact-layout,
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .video-frame video {
    max-height: 56vh;
  }

  .cert-lightbox-prev { left: 8px; }
  .cert-lightbox-next { right: 8px; }
  .cert-lightbox-close { right: 8px; top: 8px; }
  .side-rail { display: none; }

  .float-dock {
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(14px, env(safe-area-inset-bottom, 0px));
  }

  .float-fab {
    width: 56px;
    height: 56px;
  }

  .float-panel {
    width: min(300px, calc(100vw - 28px));
  }

  .recaptcha-wrap .g-recaptcha {
    transform: scale(0.92);
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 128px;
    padding-bottom: calc(128px + env(safe-area-inset-bottom, 0px));
  }

  .brand-logo {
    height: 38px;
    max-width: min(180px, 52vw);
  }

  .section {
    padding: 56px 14px;
  }

  .page-hero {
    padding: 108px 14px 32px;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .actions .btn {
    width: 100%;
    justify-content: center;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .marquee {
    font-size: 12px;
  }

  .pipe-step,
  .contact-card,
  .cadre {
    border-radius: 16px;
  }

  .recaptcha-wrap .g-recaptcha {
    transform: scale(0.82);
  }

  .faq-item h3 {
    font-size: 16px;
  }

  .copyright,
  .credit {
    font-size: 13px;
    line-height: 1.5;
  }

  
.footer-legal {
  width: min(var(--max), 100%);
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-legal a {
  display: inline-flex;
  min-height: auto;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: var(--cream-dim);
}

.footer-legal a:hover { color: var(--brand); }
.footer-bottom {
    margin-top: 28px;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom .credit {
    align-self: flex-end;
    text-align: right;
  }
}

@media (hover: none) {
  .cert-preview-label {
    opacity: 1;
  }
}

@media (min-width: 700px) and (max-width: 1100px) {
  .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Right-side contact launcher (Intixus-style) */
.float-dock {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  max-width: calc(100vw - 24px);
}

.float-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  width: min(320px, calc(100vw - 36px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.32s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.32s;
}

.float-dock.is-open .float-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.float-bubble {
  position: relative;
  background: #ffffff;
  color: #1e293b;
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16);
  border: 1px solid rgba(37, 99, 235, 0.12);
  font-size: 14px;
  line-height: 1.55;
}

.float-dock.is-open .float-bubble {
  animation: float-item-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.05s;
}

.float-bubble::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-right: 1px solid rgba(37, 99, 235, 0.12);
  border-bottom: 1px solid rgba(37, 99, 235, 0.12);
  transform: rotate(45deg);
}

.float-bubble p {
  margin: 0;
}

.float-bubble p + p {
  margin-top: 8px;
  color: #475569;
}

.float-bubble span {
  color: var(--brand);
  font-weight: 700;
}

.float-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
}

.float-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #ffffff;
  border: 1.5px solid var(--brand);
  color: var(--brand-deep);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.float-dock.is-open .float-pill {
  animation: float-item-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.float-dock.is-open .float-pill:nth-child(1) { animation-delay: 0.12s; }
.float-dock.is-open .float-pill:nth-child(2) { animation-delay: 0.2s; }
.float-dock.is-open .float-pill:nth-child(3) { animation-delay: 0.28s; }

.float-pill:hover,
.float-pill:focus-visible {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.2);
  background: var(--brand);
  color: #ffffff;
  outline: none;
}

.float-pill-wa {
  border-color: #25d366;
  color: #128c7e;
}

.float-pill-wa:hover,
.float-pill-wa:focus-visible {
  background: #25d366;
  border-color: #25d366;
  color: #ffffff;
}

.float-pill-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.float-fab {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(145deg, #2563eb 0%, #1e3a8a 100%);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4);
  animation: float-bob 3s ease-in-out infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.float-fab:hover,
.float-fab:focus-visible {
  animation-play-state: paused;
  transform: scale(1.06);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.5);
  outline: none;
}

.float-fab-icon {
  position: absolute;
  display: grid;
  place-items: center;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.float-fab-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}

.float-dock.is-open .float-fab-chat {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}

.float-dock.is-open .float-fab-close {
  opacity: 1;
  transform: none;
}

.float-dock.is-open .float-fab {
  background: linear-gradient(145deg, #1e3a8a 0%, #0f172a 100%);
}

.float-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  z-index: 2;
  animation: float-badge-pop 1.6s ease-in-out infinite;
}

.float-fab-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 99, 235, 0.45);
  animation: float-ring 2.4s ease-out infinite;
  pointer-events: none;
}

.float-fab-pulse-delay {
  animation-delay: 1.1s;
}

.float-dock.is-open .float-fab-pulse {
  opacity: 0;
}

@keyframes float-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes float-ring {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.75); opacity: 0; }
}

@keyframes float-item-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float-badge-pop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .reveal { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .float-fab,
  .float-fab-pulse,
  .float-bubble,
  .float-pill,
  .float-badge {
    animation: none;
  }
}
