/* =========================================================
   Safyra Biotech — Styles
   Layout & motion modelled on the Medefy reference, re-skinned
   with Safyra's navy + cyan brand system.
   ========================================================= */

:root {
  /* Brand */
  --navy: #000b1c;          /* logo background */
  --navy-2: #041a33;
  --ink: #001226;           /* body text on light */
  --ink-70: rgba(0, 18, 38, .7);
  --ink-50: rgba(0, 18, 38, .5);
  --ink-10: rgba(0, 18, 38, .1);
  --teal: #00a1af;          /* gradient start (from logo) */
  --teal-dark: #0a8f9c;     /* solid button teal */
  --cyan: #56dcdb;          /* gradient end (from logo) */
  --cyan-soft: #d3f5f6;
  --bg: #f1f1f1;
  --white: #ffffff;
  --cream: #f4f8f8;
  --line: rgba(0, 18, 38, .1);

  --grad-brand: linear-gradient(180deg, var(--teal) 0%, var(--cyan) 100%);
  --grad-dark: linear-gradient(160deg, #000b1c 0%, #05304a 55%, #0b8a97 100%);
  --grad-card: linear-gradient(180deg, #06223c 0%, #0a8f9c 100%);
  --grad-cta: linear-gradient(100deg, #000b1c 0%, #063a52 40%, #0aa3b0 78%, #56dcdb 100%);

  --font: "Inter", "Inter Display", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-lg: 24px;
  --r-md: 20px;
  --r-pill: 50px;
  --container: 1240px;
  --gutter: 20px;
  --nav-h: 70px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

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

.section-title {
  font-size: clamp(34px, 3.4vw, 46px);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.5px;
  text-align: center;
  color: var(--ink);
  margin-bottom: 60px;
}

/* ---------- Buttons (rolling text) ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px 30px;
  border-radius: var(--r-pill);
  border: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(.97); }
.btn-dark  { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--navy); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--cyan-soft); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--cyan-soft); }
.btn-teal  { background: var(--teal-dark); color: #fff; }
.btn-teal:hover { background: #0b7f8b; }
.btn-glass {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255, 255, 255, .22); }

.btn-text { display: inline-block; }
.rl { display: inline-block; height: 1.2em; overflow: hidden; vertical-align: top; }
.rl-i { display: flex; flex-direction: column; will-change: transform; }
.rl-i > span { display: block; height: 1.2em; line-height: 1.2; }
.rl-space { width: .28em; }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(0, 18, 38, .06);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}
.pill-glass { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; margin-top: 18px; }
.link-arrow i { font-style: normal; transition: transform .3s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* =========================================================
   NAV
   ========================================================= */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(241, 241, 241, .82); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); transition: box-shadow .4s var(--ease), background .4s; }
.nav.is-scrolled { background: rgba(241, 241, 241, .9); box-shadow: 0 1px 0 rgba(0, 18, 38, .06), 0 20px 40px -30px rgba(0, 18, 38, .25); }
.nav.is-scrolled .nav-inner { height: 62px; }
.nav-inner { transition: height .4s var(--ease); }
.nav-inner {
  height: var(--nav-h);
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { height: 34px; width: auto; }
.brand-word { font-weight: 700; font-size: 17px; letter-spacing: .22em; color: var(--ink); line-height: 1; display: flex; flex-direction: column; gap: 3px; }
.brand-word small { font-size: 8px; font-weight: 500; letter-spacing: .12em; color: var(--ink-70); text-transform: none; }
.nav-links { display: flex; justify-content: center; gap: 22px; }
.nav-links > a, .nav-links > .has-dd > a { font-size: 14px; font-weight: 500; color: var(--ink); position: relative; padding: 4px 0; }
.nav-links > a::after, .nav-links > .has-dd > a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav-links > a:hover::after, .nav-links > .has-dd > a:hover::after, .nav-links > .has-dd.is-open > a::after { transform: scaleX(1); transform-origin: left; }
.nav-right { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.nav-right .btn { padding: 15px 28px; }
.nav-burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; position: relative; }
.nav-burger span { position: absolute; left: 12px; width: 20px; height: 2px; background: var(--ink); transition: transform .35s var(--ease), top .35s var(--ease); }
.nav-burger span:first-child { top: 18px; }
.nav-burger span:last-child { top: 25px; }
.nav.is-open .nav-burger span:first-child { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav-burger span:last-child { top: 21px; transform: rotate(-45deg); }
.nav-mobile { display: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding: 0 10px; margin-bottom: 200px; }
.hero-wrap {
  position: relative;
  height: 800px;
  border-radius: var(--r-md);
  background: var(--navy);
  overflow: visible;
  isolation: isolate;
}
.hero-canvas, .hero-fade {
  position: absolute; inset: 0; border-radius: var(--r-md); overflow: hidden;
}
.hero-canvas { width: 100%; height: 100%; display: block; z-index: 0; }
.hero-fade {
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(241, 241, 241, 0) 0%, rgba(241, 241, 241, 0) 66%, rgba(241, 241, 241, .92) 84%, var(--bg) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding-top: 140px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 4px 16px 4px 4px;
  border-radius: 44px;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero-badge-tag { padding: 4px 12px; border-radius: 20px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.hero-badge-text { color: #fff; font-size: 14px; font-weight: 500; }
.hero-title {
  margin-top: 22px;
  font-size: clamp(38px, 5.2vw, 64px);
  font-weight: 700;
  line-height: .99;
  letter-spacing: -.02em;
  color: #fff;
  text-shadow: 0 10px 40px rgba(0, 11, 28, .35);
}
.hero-sub { margin-top: 20px; max-width: 620px; color: rgba(255, 255, 255, .8); font-size: 17px; line-height: 1.5; }
.hero-btns { display: flex; gap: 12px; margin-top: 30px; }

/* Stat cards */
.hero-cards {
  position: absolute; left: 0; right: 0; bottom: -190px; z-index: 3;
  display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 20px;
  padding: 0 20px;
  max-width: calc(var(--container) + 40px); margin: 0 auto;
}
.hcard {
  background: #fff; border-radius: var(--r-lg); padding: 28px;
  box-shadow: 0 30px 60px -30px rgba(0, 18, 38, .25);
  min-height: 260px; display: flex; flex-direction: column; justify-content: space-between;
}
.hcard-num { font-size: 32px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.hcard-label { font-size: 14px; color: var(--ink-70); margin-top: 4px; }
.hcard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.hcard-img { width: 150px; height: 120px; border-radius: 16px; overflow: hidden; flex-shrink: 0; }
.hcard-img img { width: 100%; height: 100%; object-fit: cover; }
.hcard-bottom { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 24px; }
.hcard-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; padding: 4px 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad-brand); box-shadow: 0 0 0 4px rgba(0, 161, 175, .12); }
.hcard-mini { font-size: 12px; text-align: right; color: var(--ink-50); line-height: 1.25; }
.hcard-center { min-height: 260px; }
.hcard-title { font-size: 20px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.hcard-title span { display: block; font-size: 13px; font-weight: 400; color: var(--ink-50); margin-top: 4px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 130px; margin-top: 24px; }
.bar {
  flex: 1; height: var(--h); border-radius: 8px 8px 4px 4px; position: relative;
  background: linear-gradient(180deg, #56dcdb 0%, #0aa3b0 55%, #06223c 100%);
  transform-origin: bottom; transform: scaleY(0);
}
.bar span { position: absolute; left: 50%; bottom: -20px; transform: translateX(-50%); font-size: 10px; color: var(--ink-50); white-space: nowrap; letter-spacing: .02em; }
.hcard-right .hcard-num { font-size: 30px; }
.live { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; font-size: 11px; font-weight: 600; color: var(--teal-dark); text-transform: uppercase; letter-spacing: .06em; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(0, 161, 175, .5); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 161, 175, .5); } 100% { box-shadow: 0 0 0 8px rgba(0, 161, 175, 0); } }
.sparkline { width: 100%; height: 90px; margin-top: 18px; }
.spark-line { stroke-dasharray: 600; stroke-dashoffset: 600; }
.hcard-note { font-size: 12px; color: var(--ink-50); margin-top: 12px; }

/* =========================================================
   ABOUT / INTRO
   ========================================================= */
.about { padding: 60px 0 100px; }
.about-top { display: grid; grid-template-columns: 240px 1fr; gap: 60px; align-items: start; margin-bottom: 70px; }
.about-kicker { font-size: 15px; line-height: 1.45; color: var(--ink-70); max-width: 220px; padding-top: 10px; }
.about-text { font-size: clamp(24px, 2.5vw, 36px); line-height: 1.2; font-weight: 400; letter-spacing: -.01em; }
.about-text .w { display: inline-block; margin-right: .25em; color: var(--ink-10); will-change: color; }
.about-main .btn { margin-top: 36px; }
.about-media { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.about-img { border-radius: var(--r-lg); overflow: hidden; height: 520px; }
.about-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease); }
.about-img:hover img { transform: scale(1.06); }
.about-card {
  border-radius: var(--r-lg); padding: 32px; color: #fff; position: relative; overflow: hidden;
  background: var(--grad-card);
  display: flex; flex-direction: column; justify-content: space-between; min-height: 520px;
}
.about-card::before { content: ""; position: absolute; inset: 0; background: url("../assets/img/safyra-icon.png") no-repeat right -60px bottom -40px / 320px auto; opacity: .16; filter: blur(1px); }
.about-card > * { position: relative; }
.about-card-num { font-size: 32px; font-weight: 600; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.star { font-size: 22px; color: var(--cyan); }
.about-card-label { color: rgba(255, 255, 255, .7); font-size: 14px; margin-top: 4px; }

/* =========================================================
   THREE FIELDS (cards)
   ========================================================= */
.fields { padding: 40px 0 120px; }
.fields-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fcard {
  position: relative; background: #fff; border-radius: var(--r-lg); padding: 28px;
  min-height: 385px; display: flex; flex-direction: column; justify-content: space-between;
  color: var(--ink); overflow: hidden; will-change: transform;
  transition: background .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease);
}
.fcard::after { content: ""; position: absolute; inset: 0; background: var(--grad-card); opacity: 0; transition: opacity .5s var(--ease); z-index: 0; }
.fcard > * { position: relative; z-index: 1; }
.fcard h3 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 12px; }
.fcard p { font-size: 15px; line-height: 1.55; color: var(--ink-70); transition: color .5s var(--ease); }
.fcard-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 18, 38, .06); color: var(--ink); }
.fcard-icon svg { width: 22px; height: 22px; }
.fcard-hl { color: #fff; box-shadow: 0 30px 60px -30px rgba(0, 161, 175, .55); }
.fcard-hl::after { opacity: 1; }
.fcard-hl p { color: rgba(255, 255, 255, .78); }
.fcard-hl .fcard-icon { background: rgba(255, 255, 255, .14); color: #fff; }
.fcard-hl .pill { background: rgba(255, 255, 255, .16); color: #fff; }
.fcard:hover { color: #fff; box-shadow: 0 30px 60px -30px rgba(0, 161, 175, .55); }
.fcard:hover::after { opacity: 1; }
.fcard:hover p { color: rgba(255, 255, 255, .78); }
.fcard:hover .fcard-icon { background: rgba(255, 255, 255, .14); color: #fff; }
.fcard:hover .pill { background: rgba(255, 255, 255, .16); color: #fff; }

/* =========================================================
   BENTO
   ========================================================= */
.bento { padding: 20px 0 120px; }
.bento-grid { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 20px; align-items: start; }
.bento-col { display: flex; flex-direction: column; gap: 20px; }
.bcard { border-radius: var(--r-lg); overflow: hidden; position: relative; background: #fff; }
.bcard-dark { background: var(--grad-card); color: #fff; padding: 28px; min-height: 366px; display: flex; flex-direction: column; }
.bcard-num { font-size: 32px; font-weight: 600; letter-spacing: -.02em; }
.bcard-label { color: rgba(255, 255, 255, .7); font-size: 14px; margin: 2px 0 22px; }
.bcard-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.avatars { display: flex; }
.avatars img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, .9); margin-left: -10px; }
.avatars img:first-child { margin-left: 0; }
.live-tag { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.bcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.bcard-img:hover img { transform: scale(1.05); }
.bcard-sm { height: 180px; }
.bcard-md { height: 220px; }
.bcard-feature { min-height: 417px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; isolation: isolate; }
.bcard-feature-sm { min-height: 331px; }
.bcard-feature-tall { min-height: 341px; }
.bcard-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.bcard-feature:hover .bcard-bg { transform: scale(1.05); }
.bcard-feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 11, 28, .55) 0%, rgba(0, 11, 28, .05) 45%, rgba(0, 11, 28, .7) 100%); }
.bcard-head { display: flex; align-items: center; gap: 12px; }
.bcard-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; border: 2px solid rgba(255, 255, 255, .8); flex-shrink: 0; }
.bcard-avatar img { width: 26px; }
.bcard-head h3 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.caps { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .8); margin-top: 2px; }
.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .85); backdrop-filter: blur(6px);
  display: grid; place-items: center; transition: transform .4s var(--ease), background .4s;
}
.play:hover { transform: translate(-50%, -50%) scale(1.08); background: #fff; }
.play i { width: 0; height: 0; border-left: 14px solid var(--teal-dark); border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.bcard-cta { background: linear-gradient(160deg, #0aa3b0 0%, #56dcdb 100%); color: #fff; padding: 32px; min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 22px; }
.bcard-cta h3 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; color: var(--navy); }

/* =========================================================
   PARTNERS (ticker)
   ========================================================= */
.partners { padding: 0 10px 120px; }
.partners-wrap {
  border-radius: var(--r-lg); background: var(--grad-dark); color: #fff;
  padding: 60px; display: grid; grid-template-columns: 360px 1fr; gap: 60px; align-items: center;
  position: relative; overflow: hidden;
}
.partners-wrap::after { content: ""; position: absolute; width: 700px; height: 700px; right: -260px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(86, 220, 219, .28) 0%, rgba(86, 220, 219, 0) 65%); pointer-events: none; }
.partners-img { border-radius: 18px; overflow: hidden; height: 440px; }
.partners-img img { width: 100%; height: 100%; object-fit: cover; }
.partners-track-wrap { min-width: 0; position: relative; z-index: 1; }
.partners-kicker { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .6); margin-bottom: 26px; }
.ticker { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 88%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 88%, transparent 100%); }
.ticker-track { display: flex; gap: 20px; width: max-content; will-change: transform; }
.tcard { width: 620px; flex-shrink: 0; padding: 10px 0; }
.quote { display: block; font-size: 64px; line-height: .6; font-weight: 700; color: rgba(255, 255, 255, .12); margin-bottom: 26px; font-family: Georgia, serif; }
.tcard h4 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 18px; }
.tcard p { font-size: clamp(22px, 2.1vw, 30px); line-height: 1.25; letter-spacing: -.01em; font-weight: 400; margin-bottom: 30px; }
.tcard-foot { display: flex; flex-direction: column; gap: 2px; }
.tcard-foot strong { font-size: 15px; font-weight: 600; }
.tcard-foot span { font-size: 13px; color: rgba(255, 255, 255, .6); }

/* =========================================================
   INNOVATION JOURNEY (interactive stepper)
   ========================================================= */
.journey { padding: 20px 0 140px; }
.journey-wrap { background: #fff; border-radius: var(--r-lg); padding: 44px 48px 40px; box-shadow: 0 30px 60px -30px rgba(0, 18, 38, .18); }

/* rail */
.j-rail { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); align-items: start; margin-bottom: 44px; }
.j-line { position: absolute; left: calc(100% / 12); right: calc(100% / 12); top: 29px; height: 2px; background: var(--ink-10); border-radius: 2px; overflow: hidden; }
.j-line-fill { display: block; height: 100%; width: 0; background: var(--grad-brand); background: linear-gradient(90deg, var(--teal), var(--cyan)); border-radius: 2px; }
.j-node { position: relative; background: transparent; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0; z-index: 1; }
.j-ring { position: absolute; top: -1px; left: 50%; width: 60px; height: 60px; transform: translateX(-50%) rotate(-90deg); pointer-events: none; }
.j-ring circle { fill: none; stroke-width: 2; }
.j-ring-bg { stroke: transparent; }
.j-ring-fg { stroke: var(--teal-dark); stroke-dasharray: 170; stroke-dashoffset: 170; stroke-linecap: round; opacity: 0; }
.j-node.is-active .j-ring-fg { opacity: 1; }
.j-dot { width: 58px; height: 58px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; transition: background .45s var(--ease), transform .45s var(--ease), box-shadow .45s var(--ease); }
.j-dot i { font-style: normal; font-size: 13px; font-weight: 600; color: var(--ink-70); letter-spacing: .02em; transition: color .45s; }
.j-node:hover .j-dot { transform: scale(1.06); background: var(--cyan-soft); }
.j-node.is-active .j-dot { background: var(--grad-card); box-shadow: 0 14px 30px -12px rgba(0, 161, 175, .7); }
.j-node.is-active .j-dot i, .j-node.is-done .j-dot i { color: #fff; }
.j-node.is-done .j-dot { background: var(--teal-dark); }
.j-lab { font-size: 13px; font-weight: 500; color: var(--ink-50); transition: color .3s; }
.j-node.is-active .j-lab { color: var(--ink); font-weight: 600; }

/* panel */
.j-panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: stretch; }
.j-copy { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 420px; padding: 20px 0; }
.j-big { position: absolute; left: -10px; top: -10px; font-size: 240px; font-weight: 700; line-height: 1; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px rgba(0, 18, 38, .1); user-select: none; pointer-events: none; overflow: hidden; }
.j-big b { display: block; font-weight: inherit; }
.j-text { position: relative; }
.j-kicker { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-dark); font-weight: 600; margin-bottom: 14px; }
.j-title { font-size: clamp(30px, 3vw, 42px); font-weight: 600; letter-spacing: -.02em; line-height: 1; margin-bottom: 16px; }
.j-desc { font-size: 17px; line-height: 1.55; color: var(--ink-70); max-width: 480px; margin-bottom: 22px; }
.j-outs { display: flex; flex-direction: column; gap: 8px; }
.j-outs li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.j-outs li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad-brand); box-shadow: 0 0 0 4px rgba(0, 161, 175, .12); flex-shrink: 0; }
.j-ctrls { position: relative; display: flex; align-items: center; gap: 10px; margin-top: 34px; }
.j-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); color: var(--ink); }
.j-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.j-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: scale(1.05); }
.j-auto { margin-left: 8px; font-size: 12px; color: var(--ink-50); display: inline-flex; align-items: center; gap: 6px; }
.j-auto i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); animation: pulse 1.8s infinite; }
.j-auto.is-paused i { animation: none; background: var(--ink-10); }

.j-media { position: relative; border-radius: 20px; overflow: hidden; min-height: 420px; background: var(--navy); isolation: isolate; }
.j-img { position: absolute; inset: 0; margin: 0; opacity: 0; }
.j-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.j-img.is-active { opacity: 1; }
.j-img figcaption { position: absolute; left: 20px; bottom: 20px; padding: 8px 14px; border-radius: 20px; background: rgba(0, 11, 28, .55); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.j-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 11, 28, 0) 50%, rgba(0, 11, 28, .45) 100%); z-index: 1; pointer-events: none; }
.j-media-glow { position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(86, 220, 219, .55), rgba(86, 220, 219, 0) 65%); z-index: 2; pointer-events: none; mix-blend-mode: screen; }
.journey-more { text-align: center; margin-top: 40px; font-size: 14px; color: var(--ink-70); }
.journey-more a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; margin-left: 8px; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { position: relative; padding: 40px 0 120px; }
.float-set { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.float { position: absolute; width: 90px; opacity: .55; filter: drop-shadow(0 20px 30px rgba(0, 161, 175, .25)); will-change: transform; }
.float-1 { left: 14%; top: 6%; width: 140px; }
.float-2 { right: 10%; top: 12%; width: 70px; filter: blur(1px) drop-shadow(0 20px 30px rgba(0, 161, 175, .25)); }
.float-3 { left: 6%; bottom: 8%; width: 60px; filter: blur(2px); opacity: .35; }
.float-4 { right: 16%; bottom: 4%; width: 110px; }
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: end; }
.ccard { background: #fff; border-radius: var(--r-lg); padding: 36px; box-shadow: 0 30px 60px -30px rgba(0, 18, 38, .2); }
.ccard h3 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; margin-bottom: 30px; }
.connect-list li { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; font-size: 15px; border-top: 1px solid var(--line); }
.connect-list li:first-child { border-top: 0; }
.connect-list em { font-style: normal; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 20px; background: rgba(0, 18, 38, .06); }
.cform { background: #fff; border-radius: var(--r-lg); padding: 44px; box-shadow: 0 30px 60px -30px rgba(0, 18, 38, .2); }
.cform h3 { font-size: 26px; font-weight: 500; letter-spacing: -.01em; line-height: 1.15; margin-bottom: 30px; }
.frow { display: grid; gap: 20px; margin-bottom: 8px; }
.frow-2 { grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 0; position: relative; }
.field span { font-size: 13px; font-weight: 500; color: var(--ink); padding: 14px 0 6px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 8px 0 12px; outline: 0; border-radius: 0; resize: none; -webkit-appearance: none; appearance: none;
  transition: border-color .3s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); }
.field-select::after { content: ""; position: absolute; right: 4px; bottom: 18px; width: 8px; height: 8px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); pointer-events: none; }
.cform-foot { display: flex; align-items: center; gap: 30px; margin-top: 30px; }
.cform-foot p { font-size: 13px; color: var(--ink-70); line-height: 1.5; max-width: 300px; }
.cform-success { margin-top: 24px; padding: 16px 20px; border-radius: 14px; background: var(--cyan-soft); color: var(--ink); font-size: 14px; }

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta { padding: 0 10px 60px; }
.cta-wrap { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--grad-cta); color: #fff; min-height: 560px; isolation: isolate; }
.cta-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.cta-inner { position: relative; z-index: 1; padding: 80px 60px; min-height: 560px; display: flex; justify-content: space-between; align-items: stretch; }
.cta-left { display: flex; flex-direction: column; justify-content: center; gap: 32px; max-width: 520px; }
.cta-left h2 { font-size: clamp(40px, 4.6vw, 64px); font-weight: 600; line-height: .98; letter-spacing: -.02em; }
.cta-left .btn { align-self: flex-start; }
.cta-tags { display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; gap: 10px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { padding: 60px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.1fr 2fr; gap: 80px; padding-bottom: 56px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer-tag { margin-top: 22px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.footer-desc { font-size: 14px; line-height: 1.6; color: var(--ink-70); max-width: 340px; margin: 8px 0 26px; }
.footer-brand .btn { padding: 15px 26px; font-size: 15px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding-top: 6px; }
.fcol h5 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-50); margin-bottom: 18px; font-weight: 600; }
.fcol a { display: block; font-size: 14px; padding: 5px 0; color: var(--ink); white-space: nowrap; transition: color .3s, transform .3s var(--ease); }
.fcol a:hover { color: var(--teal-dark); transform: translateX(3px); }
.footer-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-70); }
.footer-legal { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer-legal a { color: var(--ink-70); font-size: 13px; transition: color .3s; }
.footer-legal a:hover { color: var(--ink); }
.socials { display: flex; gap: 10px; justify-content: flex-end; }
.socials a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 18, 38, .06); transition: background .3s, color .3s; color: var(--ink); }
.socials a:hover { background: var(--ink); color: #fff; }
.socials svg { width: 14px; height: 14px; fill: currentColor; }

/* =========================================================
   Reveal defaults (JS sets initial state; this is the no-JS fallback)
   ========================================================= */
.no-js [data-reveal], .no-js [data-hero] { opacity: 1 !important; transform: none !important; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .fields-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-col-wide { grid-column: span 2; flex-direction: row; }
  .bento-col-wide > * { flex: 1; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .j-big { font-size: 180px; }
  .partners-wrap { grid-template-columns: 300px 1fr; padding: 40px; gap: 40px; }
  .tcard { width: 520px; }
}

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: auto 1fr; }
  .nav-right .btn { display: none; }
  .nav-burger { display: block; }
  .nav-mobile {
    display: flex; flex-direction: column; gap: 6px; padding: 0 24px;
    max-height: 0; overflow: hidden; transition: max-height .5s var(--ease), padding .5s var(--ease);
  }
  .nav.is-open .nav-mobile { max-height: 520px; padding: 10px 24px 24px; }
  .nav-mobile a { font-size: 18px; font-weight: 500; padding: 10px 0; }
  .nav-mobile .btn { align-self: flex-start; margin-top: 10px; padding: 14px 26px; }

  .hero-wrap { height: auto; padding-bottom: 24px; }
  .hero-content { padding: 300px 24px 56px; }
  .hero-cards { grid-template-columns: 1fr 1fr; bottom: auto; position: relative; margin-top: 0; }
  .hero { margin-bottom: 60px; }
  .hcard-center { grid-column: 1 / -1; order: 3; }
  .hero-fade { background: linear-gradient(180deg, rgba(241, 241, 241, 0) 0%, rgba(241, 241, 241, 0) 45%, rgba(241, 241, 241, .9) 62%, var(--bg) 75%); }

  .about-top { grid-template-columns: 1fr; gap: 24px; }
  .about-media { grid-template-columns: 1fr; }
  .about-img { height: 380px; }
  .about-card { min-height: 320px; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; gap: 40px; padding: 60px 40px; }
  .cta-tags { align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .j-panel { grid-template-columns: 1fr; gap: 24px; }
  .j-media { min-height: 320px; }
  .j-copy { min-height: 0; }
}

@media (max-width: 768px) {
  :root { --gutter: 16px; }
  .hero { padding: 0 8px; }
  .hero-content { padding: 250px 20px 48px; }
  .hero-sub { font-size: 15px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-cards { grid-template-columns: 1fr; padding: 0 12px; }
  .hcard-center { grid-column: auto; order: 0; }
  .hcard-img { width: 110px; height: 90px; }
  .bar span { display: none; }
  .fields-grid { grid-template-columns: 1fr; }
  .fcard { min-height: 300px; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-col-wide { grid-column: auto; flex-direction: column; }
  .partners { padding: 0 8px 90px; }
  .partners-wrap { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
  .partners-img { height: 280px; }
  .tcard { width: min(80vw, 420px); }
  .frow-2 { grid-template-columns: 1fr; }
  .cform, .ccard { padding: 28px; }
  .cform-foot { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cta { padding: 0 8px 40px; }
  .cta-inner { padding: 50px 24px; }
  .cta-wrap, .cta-inner { min-height: 480px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { grid-template-columns: 1fr; gap: 16px; }
  .footer-legal { justify-content: flex-start; gap: 14px; }
  .socials { justify-content: flex-start; }
  .journey-wrap { padding: 24px 18px 26px; }
  .j-rail { grid-template-columns: repeat(6, 1fr); margin-bottom: 28px; }
  .j-dot { width: 40px; height: 40px; }
  .j-dot i { font-size: 11px; }
  .j-ring { width: 42px; height: 42px; }
  .j-line { top: 20px; }
  .j-lab { display: none; }
  .j-big { font-size: 120px; top: -6px; }
  .j-media { min-height: 240px; }
  .journey-more { line-height: 1.8; }
  .float { display: none; }
  .section-title { margin-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bar { transform: none; }
  .spark-line { stroke-dashoffset: 0; }
}

/* =========================================================
   INNER PAGES — shared components
   ========================================================= */
.nav-links > div { position: relative; }
.nav-links > a.is-current::after, .nav-links > .has-dd > a.is-current::after { transform: scaleX(1); }
.has-dd > a { display: inline-flex; align-items: center; gap: 6px; }
.has-dd > a i { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .3s; }
.dd { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 8px); min-width: 250px; padding: 10px; background: #fff; border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(0, 18, 38, .25); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; z-index: 60; }
.dd::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.has-dd:hover .dd, .has-dd:focus-within .dd { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-dd:hover > a i { transform: rotate(225deg) translateY(-2px); }
.dd a { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .25s; }
.dd a::after { display: none; }
.dd a span { font-size: 12px; font-weight: 400; color: var(--ink-50); }
.dd a:hover { background: var(--cream); }

.page-hero { margin-bottom: 0; }
.page-hero .hero-wrap { height: 560px; }
.page-hero .hero-content { align-items: flex-start; text-align: left; padding: 140px 20px 0; max-width: calc(var(--container) + 40px); margin: 0 auto; width: 100%; }
.page-hero .hero-title, .page-hero .hero-sub { max-width: 760px; }
.page-hero .hero-title { font-size: clamp(38px, 4.8vw, 62px); }
.page-hero .hero-sub { max-width: 640px; }
.page-hero .hero-fade { background: linear-gradient(180deg, rgba(241, 241, 241, 0) 0%, rgba(241, 241, 241, 0) 70%, rgba(241, 241, 241, .55) 100%); }
.crumb { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .6); margin-bottom: 18px; }
.crumb a { color: rgba(255, 255, 255, .85); }
.crumb i { width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); }

.section { padding: 100px 0; }
.section-tight { padding: 60px 0; }
.kicker { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-dark); font-weight: 600; margin-bottom: 16px; }
.h2 { font-size: clamp(30px, 3.2vw, 44px); font-weight: 600; letter-spacing: -.02em; line-height: 1.02; }
.h2-center { text-align: center; }
.lead { font-size: 19px; line-height: 1.5; color: var(--ink-70); }
.lead strong { color: var(--ink); font-weight: 600; }
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 60px; align-items: start; }
.split-media { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-media .img { border-radius: var(--r-lg); overflow: hidden; height: 460px; }
.split-media .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.split-media .img:hover img { transform: scale(1.05); }
.stack > * + * { margin-top: 18px; }
.bullets { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.bullets li { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; }
.bullets li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad-brand); box-shadow: 0 0 0 4px rgba(0, 161, 175, .12); flex-shrink: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chips .pill { padding: 10px 16px; font-size: 14px; background: #fff; box-shadow: 0 1px 0 rgba(0, 18, 38, .05); }

.cards { display: grid; gap: 20px; margin-top: 50px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.fcard-sm { min-height: 250px; padding: 26px; }
.fcard-sm h3 { font-size: 18px; }
.fcard-sm .fcard-icon { width: 44px; height: 44px; }
.fcard-num { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--teal-dark); }
.fcard:hover .fcard-num, .fcard-hl .fcard-num { color: var(--cyan); }

.pcard { background: #fff; border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 12px; min-height: 300px; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.pcard:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0, 18, 38, .3); }
.pcard-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pcard h3 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.pcard .tagline { font-size: 15px; font-weight: 600; color: var(--teal-dark); }
.pcard .actives { display: flex; flex-wrap: wrap; gap: 6px; }
.pcard .actives span { font-size: 12px; font-weight: 500; padding: 5px 10px; border-radius: 20px; background: var(--cream); color: var(--ink); }
.pcard p { font-size: 15px; line-height: 1.55; color: var(--ink-70); margin-top: auto; }
.pcard-mark { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; flex-shrink: 0; }
.pcard-mark img { width: 18px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 50px; }
.step { position: relative; padding: 28px 24px 28px; background: #fff; border-radius: var(--r-lg); min-height: 210px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.step::before { content: attr(data-n); position: absolute; right: 18px; top: 4px; font-size: 96px; font-weight: 700; line-height: 1; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px rgba(0, 18, 38, .12); }
.step h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 14px; line-height: 1.55; color: var(--ink-70); }

.band { padding: 0 10px; }
.band-inner { border-radius: var(--r-lg); background: var(--grad-dark); color: #fff; padding: 80px 64px; position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.band-inner::after { content: ""; position: absolute; width: 700px; height: 700px; right: -260px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(86, 220, 219, .28) 0%, rgba(86, 220, 219, 0) 65%); pointer-events: none; }
.band-inner::before { content: ""; position: absolute; inset: 0; background: url("../assets/img/safyra-icon.png") no-repeat right -80px bottom -120px / 420px auto; opacity: .1; }
.band-inner > * { position: relative; z-index: 1; }
.band-inner .h2 { color: #fff; }
.band-inner .lead { color: rgba(255, 255, 255, .75); }
.band-inner .kicker { color: var(--cyan); }
.band-list { display: grid; gap: 14px; }
.band-list li { padding: 18px 22px; border-radius: 16px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); display: flex; gap: 14px; align-items: flex-start; }
.band-list li strong { display: block; font-size: 15px; margin-bottom: 4px; }
.band-list li span { font-size: 14px; color: rgba(255, 255, 255, .7); line-height: 1.5; }
.band-list li i { width: 26px; height: 26px; border-radius: 50%; background: var(--grad-brand); font-style: normal; font-size: 11px; font-weight: 700; color: var(--navy); display: grid; place-items: center; flex-shrink: 0; }

.flow { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 50px; padding: 30px 34px; background: #fff; border-radius: var(--r-pill); box-shadow: 0 30px 60px -30px rgba(0, 18, 38, .18); }
.flow span { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.flow span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--grad-brand); box-shadow: 0 0 0 5px rgba(0, 161, 175, .12); }
.flow i { flex: 1; height: 2px; background: linear-gradient(90deg, var(--teal), var(--cyan)); border-radius: 2px; transform-origin: left; }

.vcard { background: #fff; border-radius: var(--r-lg); padding: 30px; min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; transition: background .5s var(--ease), color .5s var(--ease), transform .5s var(--ease); position: relative; overflow: hidden; }
.vcard::after { content: ""; position: absolute; inset: 0; background: var(--grad-card); opacity: 0; transition: opacity .5s var(--ease); }
.vcard > * { position: relative; z-index: 1; }
.vcard:hover { color: #fff; transform: translateY(-4px); }
.vcard:hover::after { opacity: 1; }
.vcard .n { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--teal-dark); }
.vcard:hover .n { color: var(--cyan); }
.vcard h3 { font-size: 20px; font-weight: 600; margin: 0 0 10px; }
.vcard p { font-size: 15px; line-height: 1.55; color: var(--ink-70); transition: color .5s; }
.vcard:hover p { color: rgba(255, 255, 255, .8); }

.two-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 50px; }
.two-cards .fcard { min-height: 320px; }
.two-cards .fcard p { font-size: 17px; }

.res-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }
.res { background: #fff; border-radius: 20px; padding: 24px 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 16px; transition: background .4s, color .4s, transform .4s var(--ease); }
.res:hover { background: var(--ink); color: #fff; transform: translateX(4px); }
.res i { width: 34px; height: 34px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; font-style: normal; transition: background .4s; }
.res:hover i { background: rgba(255, 255, 255, .15); }
.note { margin-top: 30px; padding: 20px 24px; border-radius: 16px; background: var(--cyan-soft); font-size: 14px; line-height: 1.55; color: var(--ink); }

.page-cta { padding: 60px 10px 60px; }
.page-cta .cta-wrap { min-height: 480px; }
.page-cta .cta-inner { min-height: 480px; }

.contact-page .contact { padding-top: 80px; }

@media (max-width: 1180px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .res-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .page-hero .hero-content { padding: 110px 24px 0; }
  .page-hero .hero-wrap { height: auto; min-height: 0; padding-bottom: 70px; }
  .split, .split-media, .band-inner, .two-cards { grid-template-columns: 1fr; gap: 32px; }
  .split-media .img { height: 360px; }
  .band-inner { padding: 50px 32px; }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .flow { flex-wrap: wrap; border-radius: 24px; gap: 14px; }
  .flow i { display: none; }
}
@media (max-width: 768px) {
  .page-hero .hero-content { padding: 90px 20px 0; }
  .section { padding: 70px 0; }
  .cards-2, .cards-3, .cards-4, .steps, .res-list { grid-template-columns: 1fr; }
  .band { padding: 0 8px; }
  .page-cta { padding: 40px 8px; }
}

/* =========================================================
   INNER PAGES — homepage-grade components (v2)
   ========================================================= */
.page-hero.has-cards { margin-bottom: 110px; }
.page-hero.has-cards .hero-wrap { height: auto; display: flex; flex-direction: column; }
.page-hero.has-cards .hero-content { padding-bottom: 72px; }
.page-hero.has-cards .hero-cards { position: relative; bottom: auto; margin: 0 auto -110px; }
.page-hero .hcard { min-height: 196px; padding: 26px 28px; justify-content: flex-start; }
.page-hero .hcard > div:first-child { margin-bottom: 20px; }
.page-hero .hcard-num { font-size: 30px; }
.page-hero .hcard-label { margin-top: 2px; }
.page-hero .hcard .pill-row { margin-top: 0; }
.page-hero .hcard .pill { background: var(--cream); }
.page-hero .hcard-text { font-size: 14px; line-height: 1.55; color: var(--ink-70); margin-top: 0; max-width: 340px; }

.intro { padding: 60px 0 90px; }
.intro .about-top { margin-bottom: 0; }
.intro .about-text { font-size: clamp(24px, 2.4vw, 34px); }

.media-row { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.media-row .about-img { height: 480px; }
.media-row .about-card { min-height: 480px; }
.media-row .about-card-num { font-size: 30px; }
.media-row .about-card p.desc { color: rgba(255, 255, 255, .78); font-size: 15px; line-height: 1.55; margin-top: 12px; max-width: 320px; }

.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }
.fgrid-2 { grid-template-columns: repeat(2, 1fr); }
.fgrid-4 { grid-template-columns: repeat(4, 1fr); }
.fgrid .bcard { min-height: 380px; }
.fgrid .bcard-feature { min-height: 380px; }
.fgrid .bcard-dark { min-height: 380px; }
.fgrid-4 .bcard, .fgrid-4 .bcard-feature, .fgrid-4 .bcard-dark { min-height: 340px; }
.bcard-desc { font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .85); margin: 14px 0 16px; max-width: 320px; }
.bcard-dark .bcard-desc { color: rgba(255, 255, 255, .75); }
.bcard-big { font-size: 64px; font-weight: 700; letter-spacing: -.04em; line-height: 1; color: #fff; }
.bcard-dark .bcard-body { margin-top: auto; }
.bcard-dark .bcard-body h3 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.bcard-feature .bcard-body { margin-top: auto; }
.bcard-feature .bcard-body h3 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.bcard-feature .bcard-num { position: absolute; right: 22px; top: 22px; font-size: 12px; font-weight: 600; letter-spacing: .1em; color: rgba(255, 255, 255, .8); padding: 6px 10px; border-radius: 20px; background: rgba(0, 11, 28, .45); backdrop-filter: blur(6px); }

.pcard { padding: 0; gap: 0; min-height: 0; }
.pcard-hero { background: var(--grad-card); color: #fff; padding: 26px 26px 22px; position: relative; overflow: hidden; }
.pcard-hero::before { content: ""; position: absolute; inset: 0; background: url("../assets/img/safyra-icon.png") no-repeat right -40px top -30px / 160px auto; opacity: .18; }
.pcard-hero > * { position: relative; }
.pcard-hero h3 { color: #fff; font-size: 22px; }
.pcard-hero .tagline { color: var(--cyan); margin-top: 6px; }
.pcard-body { padding: 20px 26px 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.pcard-body p { margin-top: auto; }

.fcard-sm { min-height: 230px; }
.fcard-sm .fcard-icon { background: var(--grad-card); color: #fff; }
.fcard-sm .fcard-icon img { filter: brightness(2); }
.fcard-hl .fcard-icon, .fcard:hover .fcard-icon { background: rgba(255, 255, 255, .16); }

.partners-inner { padding: 0 10px 120px; }
.partners-inner .partners-wrap { grid-template-columns: 320px 1fr; }
.partners-inner .partners-img { height: 400px; }

.res i { background: var(--grad-card); color: #fff; }

@media (max-width: 1180px) { .fgrid, .fgrid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1024px) {
  .page-hero.has-cards { margin-bottom: 60px; }
  .page-hero.has-cards .hero-wrap { padding-bottom: 0; }
  .page-hero.has-cards .hero-cards { margin: 0 auto -60px; }
  .page-hero.has-cards .hero-content { padding-bottom: 40px; }
  .media-row { grid-template-columns: 1fr; }
  .media-row .about-img { height: 380px; }
  .media-row .about-card { min-height: 340px; }
  .partners-inner .partners-wrap { grid-template-columns: 1fr; }
  .partners-inner .partners-img { height: 300px; }
}
@media (max-width: 768px) {
  .fgrid, .fgrid-2, .fgrid-4 { grid-template-columns: 1fr; }
  .fgrid .bcard, .fgrid-4 .bcard { min-height: 300px; }
  .intro { padding: 40px 0 70px; }
}


/* =========================================================
   MEGA MENU (Portfolio)
   ========================================================= */
.nav-links > .has-dd { position: static; }
.mega {
  position: absolute; left: 10px; right: 10px; top: calc(100% - 4px);
  background: #fff; border-radius: 22px; padding: 26px;
  box-shadow: 0 30px 70px -24px rgba(0, 18, 38, .32), 0 0 0 1px rgba(0, 18, 38, .05);
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.995);
  transition: opacity .3s var(--ease), transform .4s var(--ease), visibility .3s;
  z-index: 60;
}
.has-dd.is-open .mega, .has-dd:focus-within .mega { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.has-dd.is-open > a i, .has-dd:focus-within > a i { transform: rotate(225deg) translateY(-2px); }
.mega-inner { display: grid; grid-template-columns: 300px 1fr 320px; gap: 28px; max-width: var(--container); margin: 0 auto; align-items: stretch; }

.mega-intro { display: flex; flex-direction: column; padding: 10px 4px; }
.mega-intro .kicker { margin-bottom: 10px; }
.mega-intro h3 { font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.05; margin-bottom: 12px; color: var(--ink); }
.mega-intro p { font-size: 14px; line-height: 1.55; color: var(--ink-70); max-width: 260px; }
.mega-intro .link-arrow { margin-top: auto; padding-top: 22px; color: var(--ink); font-size: 14px; }

.mega-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: stretch; }
.mega-link {
  display: flex; flex-direction: column; gap: 12px; padding: 16px;
  border-radius: 16px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  opacity: 0; transform: translateY(6px);
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease), opacity .4s var(--ease);
}
.has-dd.is-open .mega-link, .has-dd:focus-within .mega-link { opacity: 1; transform: translateY(0); }
.has-dd.is-open .mega-link:nth-child(2) { transition-delay: .05s; }
.has-dd.is-open .mega-link:nth-child(3) { transition-delay: .1s; }
.has-dd.is-open .mega-link:nth-child(4) { transition-delay: .15s; }
.mega-link:hover { border-color: rgba(0, 161, 175, .45); background: var(--cream); box-shadow: 0 16px 30px -22px rgba(0, 18, 38, .35); }
.mega-link-head { display: flex; align-items: center; justify-content: space-between; }
.mega-ico { width: 38px; height: 38px; border-radius: 11px; background: var(--cyan-soft); color: var(--teal-dark); display: grid; place-items: center; transition: background .3s, color .3s; }
.mega-ico svg { width: 19px; height: 19px; }
.mega-link:hover .mega-ico { background: var(--teal-dark); color: #fff; }
.mega-arrow { font-style: normal; font-size: 16px; color: var(--ink-50); opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s var(--ease), color .3s; }
.mega-link:hover .mega-arrow { opacity: 1; transform: translateX(0); color: var(--ink); }
.mega-txt strong { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.mega-txt small { display: block; font-size: 13px; color: var(--ink-70); margin-top: 3px; line-height: 1.45; }

.mega-feature { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 240px; border-radius: 18px; overflow: hidden; background: var(--navy); color: #fff; isolation: isolate; padding: 18px; }
.mega-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.mega-feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 11, 28, .35) 0%, rgba(0, 11, 28, .25) 40%, rgba(0, 11, 28, .92) 100%); }
.mega-feature:hover img { transform: scale(1.06); }
.mega-feature .pill { align-self: flex-start; }
.mega-feature-body { display: flex; flex-direction: column; gap: 4px; }
.mega-feature-body strong { font-size: 22px; font-weight: 600; letter-spacing: -.01em; color: #fff; }
.mega-feature-body small { font-size: 13px; color: rgba(255, 255, 255, .82); line-height: 1.45; }
.mega-feature-body em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--cyan); margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; }

.mega-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 18px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-70); flex-wrap: wrap; }
.mega-foot nav { display: flex; gap: 22px; }
.mega-foot nav a { color: var(--ink); font-weight: 500; transition: color .3s; }
.mega-foot nav a:hover { color: var(--teal-dark); }
.mega-foot .link-arrow { margin: 0; color: var(--ink); }
@media (max-width: 1180px) { .mega-inner { grid-template-columns: 260px 1fr; } .mega-feature { display: none; } }


/* =========================================================
   BACK TO TOP — logo mark with scroll-progress ring
   ========================================================= */
.totop {
  position: fixed; right: 26px; bottom: 26px; z-index: 80;
  width: 64px; height: 64px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: var(--navy); color: #fff;
  box-shadow: 0 18px 40px -14px rgba(0, 11, 28, .6), inset 0 0 0 1px rgba(86, 220, 219, .18);
  display: grid; place-items: center; isolation: isolate;
  opacity: 0; visibility: hidden; transform: translateY(24px) scale(.7);
  transition: opacity .45s var(--ease), transform .55s var(--ease), visibility .45s, box-shadow .4s var(--ease);
}
.totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.totop:hover { box-shadow: 0 22px 50px -14px rgba(0, 161, 175, .75), inset 0 0 0 1px rgba(86, 220, 219, .5); }
.totop:active { transform: scale(.94); }
.totop > * { grid-area: 1 / 1; }
.totop-ring { width: 64px; height: 64px; transform: rotate(-90deg); }
.totop-ring circle { fill: none; stroke-width: 2.5; }
.totop-ring-bg { stroke: rgba(255, 255, 255, .1); }
.totop-ring-fg { stroke: url(#totopGrad); stroke: var(--cyan); stroke-dasharray: 182.2; stroke-dashoffset: 182.2; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(86, 220, 219, .8)); }
.totop-mark { width: 30px; height: 30px; display: grid; place-items: center; animation: totop-spin 16s linear infinite; transition: opacity .35s var(--ease), transform .5s var(--ease); }
.totop-mark img { width: 26px; height: auto; display: block; }
.totop-arrow { width: 22px; height: 22px; opacity: 0; transform: translateY(14px) scale(.6); transition: opacity .35s var(--ease), transform .5s var(--ease); }
.totop-arrow svg { width: 100%; height: 100%; fill: none; stroke: var(--cyan); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.totop:hover .totop-mark, .totop:focus-visible .totop-mark { opacity: 0; transform: translateY(-16px) scale(.5) rotate(90deg); animation-play-state: paused; }
.totop:hover .totop-arrow, .totop:focus-visible .totop-arrow { opacity: 1; transform: translateY(0) scale(1); }
.totop-glow { position: absolute; inset: -14px; border-radius: 50%; background: radial-gradient(circle, rgba(86, 220, 219, .45) 0%, rgba(86, 220, 219, 0) 65%); z-index: -1; opacity: .35; animation: totop-breathe 3.2s ease-in-out infinite; pointer-events: none; }
.totop:hover .totop-glow { opacity: .8; }
@keyframes totop-spin { to { transform: rotate(360deg); } }
@keyframes totop-breathe { 0%, 100% { transform: scale(.9); opacity: .25; } 50% { transform: scale(1.08); opacity: .5; } }
@media (max-width: 768px) { .totop { right: 16px; bottom: 16px; width: 54px; height: 54px; } .totop-ring { width: 54px; height: 54px; } .totop-mark img { width: 22px; } }
@media (prefers-reduced-motion: reduce) { .totop-mark, .totop-glow { animation: none; } }
