/* =========================================================================
   COMPONENTS — layout frame, navbar, controls, hero, every section type,
   footer. Markup comes from build/site.js.
   ========================================================================= */

/* ---- Frame: one bordered column; each section sits between hatched gutters */
.page { position: relative; overflow-x: clip; }
.frame { max-width: var(--container); margin-inline: auto; border-inline: 1px solid var(--border); }
.sec { position: relative; border-bottom: 1px solid var(--border); }
.sec-in { position: relative; margin-inline: var(--gutter); border-inline: 1px solid var(--border); }
.sec-in::before, .sec-in::after { content: ""; position: absolute; top: 0; bottom: 0; width: var(--gutter); pointer-events: none; background-image: repeating-linear-gradient(315deg, var(--hatch) 0 1px, #0000 0 50%); background-size: 10px 10px; }
.sec-in::before { right: calc(100% + 1px); } .sec-in::after { left: calc(100% + 1px); }
@media screen and (max-width: 600px) { .sec-in { border-inline: 0; } .sec-in::before, .sec-in::after { display: none; } }
.sec.is-accent { background: var(--accent); }

.sec-head { display: flex; flex-flow: column; align-items: center; gap: 12px; padding: var(--pad); text-align: center; border-bottom: 1px solid var(--border); }
.sec-head:last-child { border-bottom: 0; }
.sec-head > * { max-width: 680px; }
.sec-head p { color: var(--muted-foreground); font-weight: var(--fw-medium); line-height: 1.55; text-wrap: balance; }
.sec-head.is-left { align-items: flex-start; text-align: left; }
.sec-body { padding: 44px var(--pad); }
.sec-body.is-narrow > * { max-width: 780px; margin-inline: auto; }
.note { padding: 18px var(--pad); border-top: 1px solid var(--border); font-size: var(--fs-sm); color: var(--muted-foreground); line-height: 1.6; }
.note strong { color: var(--foreground); }

/* hairline cell grid */
.cells { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); overflow: hidden; }
.cells > * { margin: 0 -1px -1px 0; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cells.cols-1 { --cols: 1; } .cells.cols-2 { --cols: 2; } .cells.cols-3 { --cols: 3; } .cells.cols-4 { --cols: 4; }
@media screen and (max-width: 991px) { .cells.cols-3, .cells.cols-4 { --cols: 2; } }
@media screen and (max-width: 640px) { .cells { --cols: 1 !important; } }

/* ---- Controls ---------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 20px; border: 1px solid #0000; border-radius: 999px; font-size: var(--fs-sm); font-weight: var(--fw-normal); letter-spacing: .01em; white-space: nowrap; transition: transform .2s var(--ease-out), background-color .2s, border-color .2s, box-shadow .2s, filter .2s; }
.btn:active { transform: scale(.96); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--brand); color: var(--brand-foreground); font-weight: var(--fw-medium); border-color: #ffffff1f; box-shadow: inset 0 1px 2px #ffffff40, 0 3px 3px -1.5px #10182808, 0 1px 1px #10182808; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-solid { background: var(--foreground); color: var(--background); font-weight: var(--fw-medium); }
.btn-solid:hover { opacity: .88; }
.btn-outline { background: var(--card); color: var(--foreground); border-color: var(--border); }
.btn-outline:hover { background: var(--accent); border-color: var(--ring); }
.btn-white { background: #fff; color: #0a0a0a; font-weight: var(--fw-medium); box-shadow: 0 6px 16px #0000001f; }
.btn-white:hover { filter: brightness(.95); }
.btn-ghost-light { color: #04202c; border-color: #04202c40; }
.btn-ghost-light:hover { background: #04202c14; }
.btn-sm { height: 32px; padding: 0 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--border); border-radius: 999px; background: var(--background); color: var(--foreground); transition: background-color .2s, border-color .2s; }
.icon-btn:hover { background: var(--accent); }
.icon-btn svg { width: 15px; height: 15px; }
.badge { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--accent); font-size: var(--fs-sm); line-height: 1; color: var(--foreground); }
.badge svg { width: 14px; height: 14px; color: var(--brand); }
.badge.is-quiet { height: 26px; padding: 0 10px; font-size: var(--fs-xs); color: var(--muted-foreground); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: var(--fw-medium); letter-spacing: .01em; color: var(--link); background: color-mix(in srgb, var(--brand) 14%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent); }
.arrow-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--link); }
.arrow-link svg { width: 14px; height: 14px; transition: transform .25s var(--ease-out); }
a:hover > .arrow-link svg, a.arrow-link:hover svg { transform: translateX(4px); }
.icon-tile { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--accent); color: var(--brand); }
.icon-tile svg { width: 19px; height: 19px; }
.icon-tile.is-glow { width: 48px; height: 48px; border-color: color-mix(in srgb, var(--brand) 45%, transparent); background: color-mix(in srgb, var(--brand) 12%, transparent); box-shadow: 0 0 28px color-mix(in srgb, var(--brand) 30%, transparent), inset 0 1px 1px #ffffff26; }
.icon-tile.is-glow svg { width: 22px; height: 22px; }

.check-list { display: grid; gap: 9px; font-size: var(--fs-sm); color: var(--muted-foreground); }
.check-list li { position: relative; padding-left: 26px; line-height: 1.55; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 17px; height: 17px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent); background: color-mix(in srgb, var(--brand) 14%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2301aef2' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }

/* ---- Navbar: floats, then tightens into a blurred pill on scroll -------- */
.nav { position: sticky; top: 16px; z-index: 50; display: flex; justify-content: center; padding-inline: 12px; margin-bottom: -72px; pointer-events: none; }
.nav-bar { pointer-events: auto; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; max-width: var(--container); height: 56px; padding: 0 22px; border: 1px solid #0000; border-radius: var(--radius-2xl); transition: max-width .35s var(--ease-out), background-color .3s, border-color .3s, box-shadow .3s, backdrop-filter .3s; }
.nav.is-stuck .nav-bar { max-width: 920px; border-color: var(--border); background: color-mix(in srgb, var(--background) 76%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 10px 30px #0000001f; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; font-size: 17px; font-weight: var(--fw-semibold); letter-spacing: var(--tracking-tight); }
.brand img { width: 40px; height: 24px; object-fit: contain; border-radius: 0; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: none; font-size: var(--fs-sm); font-weight: var(--fw-medium); color: color-mix(in srgb, var(--foreground) 62%, transparent); transition: color .2s, background-color .2s; }
.nav-link:hover, .nav-link.is-current, .nav-dropdown.is-open > .nav-link { color: var(--foreground); }
.nav-link.is-current { background: var(--accent); box-shadow: inset 0 0 0 1px var(--border); }
.nav-link svg { width: 12px; height: 12px; transition: transform .25s; }
.nav-dropdown.is-open > .nav-link svg { transform: rotate(180deg); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

.nav-dropdown { position: relative; }
.nav-dropdown-toggle { position: relative; }
.nav-dropdown-list { display: none; position: absolute; z-index: 60; top: 100%; left: 50%; transform: translateX(-50%); padding-top: 18px; }
.nav-dropdown.is-open .nav-dropdown-list { display: block; animation: dd-in .22s var(--ease-out); }
@keyframes dd-in { from { opacity: 0; translate: 0 -6px; } }
.nav-dropdown-holder { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--card); box-shadow: var(--shadow-pop); }
.nav-dropdown-link-area { display: grid; gap: 28px; }
.nav-dropdown-link-wrap { display: grid; gap: 4px; min-width: 210px; align-content: start; }
.nav-dropdown-link-title { margin-bottom: 6px; padding: 0 10px; font-size: 11.5px; font-weight: var(--fw-semibold); letter-spacing: .08em; text-transform: uppercase; color: var(--muted-foreground); }
.nav-dropdown-link { display: block; padding: 7px 10px; border-radius: var(--radius-md); font-size: var(--fs-sm); line-height: 1.35; color: color-mix(in srgb, var(--foreground) 78%, transparent); transition: background-color .15s, color .15s; }
.nav-dropdown-link:hover { background: var(--accent); color: var(--foreground); }
.nav-dropdown-link.is-current { color: var(--link); background: color-mix(in srgb, var(--brand) 10%, transparent); }
.nav-dropdown-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 18px; padding: 16px 10px 0; border-top: 1px solid var(--border); font-size: var(--fs-sm); color: var(--muted-foreground); }
@media screen and (min-width: 992px) {
  .nav-dropdown.mega { position: static; }
  .mega .nav-dropdown-list { left: 0; right: 0; transform: none; padding-top: 10px; }
  .mega .nav-dropdown-link-area { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; }
  .mega .nav-dropdown-link-wrap { min-width: 0; }
  /* invisible strip so the pointer can travel from the toggle to the panel */
  .nav-dropdown.is-open > .nav-dropdown-toggle::after { content: ""; position: absolute; top: 100%; left: -40px; right: -40px; height: 44px; }
}
/* Below the desktop width the bar always has its blurred surface, and the
   Platform / Solutions panels open as sheets across the full bar. */
@media screen and (max-width: 991px) {
  .nav { top: 10px; }
  .nav-bar, .nav.is-stuck .nav-bar { max-width: none; padding: 0 14px; border-color: var(--border); background: color-mix(in srgb, var(--background) 86%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 10px 30px #0000001f; }
  .nav-dropdown { position: static; }
  .nav-dropdown-list, .mega .nav-dropdown-list { left: 0; right: 0; top: calc(100% + 8px); transform: none; padding-top: 0; }
  .nav-dropdown-holder { max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); overflow-y: auto; overscroll-behavior: contain; padding: 18px; }
  .nav-dropdown-link-area { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
  .nav-dropdown-link-wrap { min-width: 0; }
  .nav-dropdown-link { padding: 10px; font-size: 15px; }
  /* dim the page behind an open panel; tapping it closes the panel */
  .nav:has(.nav-dropdown.is-open)::before { content: ""; position: fixed; inset: 0; z-index: -1; background: #0a0a0a80; pointer-events: auto; animation: dd-in .2s; }
}
/* Phones: a second row keeps the whole top menu in view. */
@media screen and (max-width: 860px) {
  .nav { margin-bottom: -104px; }
  .nav-bar, .nav.is-stuck .nav-bar { flex-wrap: wrap; height: auto; row-gap: 0; padding: 0 12px; }
  .brand, .nav-actions { height: 52px; }
  .brand { flex: 1 1 0; min-width: 0; gap: 8px; }
  .brand img { flex: none; width: 36px; height: 22px; }
  .brand span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
  .nav-actions { flex: none; gap: 8px; }
  .nav-actions .btn-sm { padding: 0 14px; }
  .nav-links { order: 3; flex: 0 0 100%; justify-content: space-between; gap: 0; height: 46px; border-top: 1px solid var(--border); }
  .nav-link { height: 34px; padding: 0 11px; font-size: 14px; }
  .nav-link svg { width: 11px; height: 11px; }
  .nav-dropdown.is-open > .nav-link { background: var(--accent); box-shadow: inset 0 0 0 1px var(--border); }
  .nav-dropdown-holder { max-height: calc(100vh - 190px); max-height: calc(100dvh - 190px); padding: 14px; }
  .nav-dropdown-foot { flex-flow: column; align-items: stretch; gap: 12px; text-align: center; }
  .nav-dropdown-foot .btn { height: 40px; }
  .hero-copy { padding-top: 152px; }
}
@media screen and (max-width: 520px) { .nav-dropdown-link-area { grid-template-columns: 1fr; gap: 16px; } }
.when-narrow { display: none; }
@media screen and (max-width: 480px) { .when-wide { display: none; } .when-narrow { display: inline; } }
@media screen and (max-width: 359px) { .brand span { display: none; } .nav-links .nav-link { padding: 0 8px; font-size: 13px; } .nav-links .nav-link svg { display: none; } }

/* ---- Hero ---------------------------------------------------------------- */
.hero { position: relative; border-bottom: 1px solid var(--border); }
.hero-glow { position: absolute; inset: 0 0 auto; height: min(800px, 100%); z-index: 0; border-radius: 0 0 var(--radius-xl) var(--radius-xl); background: radial-gradient(125% 125% at 50% 10%, var(--background) 40%, var(--hero-glow) 100%); pointer-events: none; }
.hero.is-compact .hero-glow { height: 100%; background: radial-gradient(120% 150% at 50% 0%, var(--background) 45%, color-mix(in srgb, var(--hero-glow) 70%, var(--background)) 100%); }
.hero-copy { position: relative; z-index: 1; display: flex; flex-flow: column; align-items: center; gap: 28px; max-width: 860px; margin-inline: auto; padding: 132px 24px 0; text-align: center; }
.hero.is-compact .hero-copy { padding-bottom: 84px; }
.hero-text { display: flex; flex-flow: column; align-items: center; gap: 20px; }
.hero-text p { max-width: 720px; font-size: var(--fs-lg); font-weight: var(--fw-medium); line-height: 1.65; letter-spacing: var(--tracking-tight); color: var(--muted-foreground); text-wrap: balance; }
.hero .btn-row { justify-content: center; }
.crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: var(--fs-xs); color: var(--muted-foreground); }
.crumbs a:hover { color: var(--foreground); }
.crumbs [aria-current] { color: var(--foreground); }
.hero-media { position: relative; z-index: 1; padding: 44px 24px 0; }
.hero-frame { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-2xl); background: var(--card); box-shadow: var(--shadow-xl), 0 0 0 6px color-mix(in srgb, var(--foreground) 4%, transparent); }
.hero-frame img { width: 100%; max-height: 660px; object-fit: cover; object-position: top center; }
.hero-frame img[src$=".png"], .hero-frame img[src$=".jpg"], .hero-frame img[src$=".webp"] { object-fit: contain; background: #fff; }
.hero-media + .stat-grid, .hero-copy + .stat-grid { margin-top: 56px; border-top: 1px solid var(--border); }
.hero:not(:has(.stat-grid)) .hero-media { padding-bottom: 56px; }

/* Photo hero: full-width picture that dissolves into the page and drifts slowly */
.hero.is-immersive .hero-glow { height: 100%; opacity: .55; }
.hero-visual { position: relative; z-index: 0; height: clamp(240px, 50vw, 620px); margin-top: -84px; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #0000 0, #000 30%, #000 80%, #0000 100%), linear-gradient(to right, #0000 0, #000 10%, #000 90%, #0000 100%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #0000 0, #000 30%, #000 80%, #0000 100%), linear-gradient(to right, #0000 0, #000 10%, #000 90%, #0000 100%); mask-composite: intersect; }
.hero-visual-shift { position: absolute; inset: -7% 0; will-change: transform; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center var(--focus, 50%); border-radius: 0; transform-origin: 50% 60%; animation: hero-drift 34s ease-in-out infinite alternate; }
@keyframes hero-drift { from { transform: scale(1.03) translate3d(-.6%, 0, 0); } to { transform: scale(1.1) translate3d(.8%, -1%, 0); } }
.hero-visual-glow, .hero-visual-sweep, .hero-motes { position: absolute; inset: 0; }
.hero-visual-glow { background: radial-gradient(42% 52% at 50% 56%, #01aef266, #0000 72%); mix-blend-mode: screen; animation: hero-breathe 8s ease-in-out infinite; }
@keyframes hero-breathe { 0%, 100% { opacity: .2; } 50% { opacity: .75; } }
.hero-visual-sweep { inset: -20% -70%; background: linear-gradient(105deg, #0000 43%, #ffffff12 48.5%, #9fe2fb2e 50%, #ffffff12 51.5%, #0000 57%); mix-blend-mode: screen; animation: hero-sweep 12s cubic-bezier(.4, 0, .2, 1) infinite; }
@keyframes hero-sweep { 0% { transform: translateX(-48%); } 60%, 100% { transform: translateX(48%); } }
.hero-motes i { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%; background: #c8eefc; box-shadow: 0 0 8px 2px #01aef2b3; opacity: 0; animation: hero-mote var(--t) linear infinite; animation-delay: var(--dl); }
@keyframes hero-mote { 0% { opacity: 0; transform: translate3d(0, 24px, 0) scale(.6); } 18% { opacity: .9; } 70% { opacity: .45; } 100% { opacity: 0; transform: translate3d(8px, -96px, 0) scale(1); } }
.hero-visual + .stat-grid { border-top: 1px solid var(--border); }
.hero.is-immersive:not(:has(.stat-grid)) .hero-visual { margin-bottom: 12px; }
@media screen and (max-width: 860px) { .hero-visual { margin-top: -40px; } }
@media (prefers-reduced-motion: reduce) { .hero-visual img, .hero-visual-glow, .hero-visual-sweep { animation: none; } .hero-visual-sweep, .hero-motes { display: none; } }

/* stats */
.stat-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); overflow: hidden; background: var(--background); }
.stat { display: flex; flex-flow: column; gap: 6px; align-items: center; justify-content: center; min-height: 128px; margin: 0 -1px -1px 0; padding: 24px 20px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; }
.stat-value { font-size: clamp(28px, 3vw, 40px); font-weight: var(--fw-medium); letter-spacing: var(--tracking-tighter); line-height: 1; }
.stat-label { max-width: 240px; font-size: var(--fs-sm); color: var(--muted-foreground); line-height: 1.45; text-wrap: balance; }
@media screen and (max-width: 767px) { .stat-grid { --cols: 2 !important; } }

/* ---- Split: text beside media ------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.split.is-reverse .split-media { order: -1; border-left: 0; border-right: 1px solid var(--border); }
.split.is-text { grid-template-columns: 1fr; }
.split-text { display: flex; flex-flow: column; align-items: flex-start; justify-content: center; gap: 18px; padding: var(--pad); }
.split.is-text .split-text { max-width: 880px; margin-inline: auto; align-items: center; text-align: center; }
.split.is-text .check-list { text-align: left; }
.split-text h2 { font-size: clamp(26px, 2.8vw, 34px); }
.split-text .lead { color: var(--foreground); font-weight: var(--fw-medium); }
.split-media { display: grid; place-items: center; padding: 40px; border-left: 1px solid var(--border); background: color-mix(in srgb, var(--accent) 45%, transparent); }
.media-frame { overflow: hidden; width: 100%; border: 1px solid var(--border); border-radius: var(--radius-xl); background: #fff; box-shadow: var(--shadow-xl); }
.media-frame img { width: 100%; }
.media-frame.is-plain { border: 0; box-shadow: none; background: none; }
.media-frame.is-plain img { max-height: 420px; object-fit: contain; }
@media screen and (max-width: 991px) {
  .split { grid-template-columns: 1fr; }
  .split-media, .split.is-reverse .split-media { order: 0; border: 0; border-top: 1px solid var(--border); padding: 28px var(--pad); }
}

/* ---- Cards (cells) ------------------------------------------------------- */
.cell { position: relative; display: flex; flex-flow: column; align-items: flex-start; gap: 10px; padding: 30px 28px; transition: background-color .25s; }
a.cell:hover { background: color-mix(in srgb, var(--accent) 60%, transparent); }
.cell h3 { margin-top: 6px; }
.cell p { font-size: var(--fs-sm); line-height: 1.6; color: var(--muted-foreground); }
.cell .check-list { margin-top: 4px; }
.cell.is-orb { padding: 36px 30px; }
.cell-media { align-self: stretch; margin: -30px -28px 14px; aspect-ratio: 16 / 10; overflow: hidden; display: grid; place-items: center; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--accent) 55%, transparent); }
.cell-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s var(--ease-out); }
.cell-media img.is-contain { object-fit: contain; object-position: center; padding: 16px; background: #fff; }
a.cell:hover .cell-media img { transform: scale(1.04); }

/* ---- Rows: stack + alternating ------------------------------------------- */
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); border-bottom: 1px solid var(--border); }
.row:last-child { border-bottom: 0; }
.row-text { display: flex; flex-flow: column; align-items: flex-start; justify-content: center; gap: 14px; padding: 44px var(--pad); }
.row-num { font-size: var(--fs-sm); font-weight: var(--fw-medium); letter-spacing: .08em; color: var(--brand); font-variant-numeric: tabular-nums; }
.row-text h3 { font-size: 22px; font-weight: var(--fw-medium); letter-spacing: var(--tracking-tighter); line-height: 1.2; }
.row-media { display: grid; place-items: center; padding: 36px; border-left: 1px solid var(--border); background: color-mix(in srgb, var(--accent) 45%, transparent); }
.row-media img { width: 100%; max-height: 460px; object-fit: contain; border: 1px solid var(--border); border-radius: var(--radius-xl); background: #fff; box-shadow: var(--shadow-xl); }
.row-media .icon-tile { width: 96px; height: 96px; border-radius: 24px; }
.row-media .icon-tile svg { width: 40px; height: 40px; }
.row.is-flip .row-media { order: -1; border-left: 0; border-right: 1px solid var(--border); }
.row.is-text { grid-template-columns: 1fr; }
@media screen and (max-width: 991px) {
  .row { grid-template-columns: 1fr; }
  .row-media, .row.is-flip .row-media { order: 0; border: 0; border-top: 1px solid var(--border); padding: 24px var(--pad); }
  .row-text { padding: 32px var(--pad); }
}

/* ---- Steps ---------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.steps-head { padding: var(--pad); border-right: 1px solid var(--border); }
.steps-head > div { position: sticky; top: 110px; display: grid; gap: 14px; justify-items: start; }
.steps-head p { color: var(--muted-foreground); font-weight: var(--fw-medium); line-height: 1.55; }
.step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px 12px; padding: 28px var(--pad); border-bottom: 1px solid var(--border); transition: background-color .25s; }
.step:last-child { border-bottom: 0; }
.step:hover { background: color-mix(in srgb, var(--accent) 50%, transparent); }
.step-num { grid-row: span 2; font-size: 26px; font-weight: var(--fw-medium); letter-spacing: var(--tracking-tighter); line-height: 1.1; color: color-mix(in srgb, var(--brand) 85%, transparent); font-variant-numeric: tabular-nums; }
.step .rich, .step .check-list { grid-column: 2; font-size: var(--fs-sm); }
@media screen and (max-width: 991px) { .steps { grid-template-columns: 1fr; } .steps-head { border-right: 0; border-bottom: 1px solid var(--border); } .steps-head > div { position: static; } }

/* ---- Checklist ------------------------------------------------------------ */
.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.checklist .check-list { padding: 36px var(--pad); font-size: 15px; gap: 12px; }
.checklist .check-list + .check-list { border-left: 1px solid var(--border); }
@media screen and (max-width: 767px) { .checklist { grid-template-columns: 1fr; } .checklist .check-list + .check-list { border-left: 0; padding-top: 0; } }

/* ---- Table ---------------------------------------------------------------- */
.tbl-wrap { overflow-x: auto; }
.tbl { min-width: 620px; font-size: var(--fs-sm); }
.tbl th, .tbl td { padding: 14px 20px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); text-align: left; vertical-align: top; line-height: 1.5; }
.tbl th:last-child, .tbl td:last-child { border-right: 0; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl thead th { font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: .06em; text-transform: uppercase; color: var(--muted-foreground); background: color-mix(in srgb, var(--accent) 60%, transparent); }
.tbl td { color: var(--muted-foreground); }
.tbl td:first-child { color: var(--foreground); font-weight: var(--fw-medium); }
.tbl tbody tr { transition: background-color .2s; }
.tbl tbody tr:hover { background: color-mix(in srgb, var(--accent) 45%, transparent); }
.tbl .group-row th { padding-block: 10px; font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: .06em; text-transform: uppercase; color: var(--link); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.cell-yes, .cell-no { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; vertical-align: -4px; }
.cell-yes { color: var(--brand); background: color-mix(in srgb, var(--brand) 16%, transparent); }
.cell-no { color: var(--muted-foreground); background: var(--muted); opacity: .8; }
.cell-yes svg, .cell-no svg { width: 12px; height: 12px; stroke-width: 3; }
.cell-partial { color: var(--foreground); }

/* ---- Tiers (pricing-style cards) ------------------------------------------ */
.tiers { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 16px; padding: 44px var(--pad); align-items: start; }
.tier { position: relative; display: flex; flex-flow: column; gap: 14px; padding: 26px 24px 28px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--card); }
.tier.is-highlight { background: var(--accent); border-color: color-mix(in srgb, var(--brand) 55%, var(--border)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 35%, transparent), var(--shadow-xl); }
.tier h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 17px; }
.tier-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: var(--fw-medium); letter-spacing: 0; background: var(--brand); color: var(--brand-foreground); }
.tier-tagline { font-size: var(--fs-sm); line-height: 1.55; color: var(--muted-foreground); }
.tier .check-list { padding-top: 16px; border-top: 1px solid var(--border); }
@media screen and (max-width: 991px) { .tiers { grid-template-columns: 1fr; } }

/* ---- Gallery + lightbox ---------------------------------------------------- */
.gallery-item { position: relative; display: flex; flex-flow: column; gap: 12px; padding: 18px; border: 0; background: none; text-align: left; transition: background-color .25s; }
.gallery-item:hover { background: color-mix(in srgb, var(--accent) 60%, transparent); }
.gallery-thumb { display: block; overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s var(--ease-out); }
.gallery-item:hover .gallery-thumb img { transform: scale(1.04); }
.gallery-caption { font-size: var(--fs-xs); line-height: 1.5; color: var(--muted-foreground); }
.gallery-zoom { position: absolute; top: 28px; right: 28px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #0a0a0acc; color: #fff; opacity: 0; transform: scale(.8); transition: opacity .25s, transform .25s; }
.gallery-zoom svg { width: 14px; height: 14px; }
.gallery-item:hover .gallery-zoom, .gallery-item:focus-visible .gallery-zoom { opacity: 1; transform: none; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 60px 70px; background: #0a0a0ae6; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox.is-open { display: flex; }
.lightbox figure { display: grid; gap: 14px; justify-items: center; max-width: 100%; max-height: 100%; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 170px); border-radius: var(--radius); background: #fff; }
.lightbox figcaption { max-width: 820px; font-size: var(--fs-sm); text-align: center; color: #e5e5e5; }
.lightbox-btn { position: absolute; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #ffffff33; border-radius: 50%; background: #18181bcc; color: #fff; }
.lightbox-btn svg { width: 16px; height: 16px; }
.lightbox-close { top: 18px; right: 18px; } .lightbox-prev { left: 16px; top: 50%; rotate: 180deg; } .lightbox-next { right: 16px; top: 50%; }
@media screen and (max-width: 600px) { .lightbox { padding: 60px 12px; } .lightbox-prev, .lightbox-next { top: auto; bottom: 14px; } }

/* ---- Logos ----------------------------------------------------------------- */
.logo-cell { align-items: flex-start; }
.logo-chip { display: grid; place-items: center; height: 46px; padding: 8px 14px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); }
.logo-chip img { max-height: 28px; width: auto; max-width: 140px; object-fit: contain; border-radius: 0; }

/* ---- FAQ ------------------------------------------------------------------- */
.faq { display: grid; gap: 10px; max-width: 820px; margin-inline: auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--accent); overflow: hidden; }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 15px 18px; border: 0; background: none; text-align: left; font-size: 15px; font-weight: var(--fw-medium); }
.faq-q svg { flex: none; width: 15px; height: 15px; color: var(--muted-foreground); transition: transform .3s var(--ease-out); }
.faq-item.is-open .faq-q svg { transform: rotate(180deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease-out); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a .rich { padding: 0 18px 18px; font-size: var(--fs-sm); }

/* ---- Quotes ---------------------------------------------------------------- */
.quote-grid { display: grid; gap: 16px; grid-template-columns: 1fr; padding: 44px var(--pad); }
.quote-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quote-card { display: flex; flex-flow: column; gap: 20px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--accent); }
.quote-mark { width: 30px; height: 22px; fill: var(--brand); }
.quote-card blockquote { flex: 1; }
.quote-card blockquote p { font-size: 17px; font-weight: var(--fw-medium); line-height: 1.65; letter-spacing: var(--tracking-tight); }
.quote-card figcaption { display: flex; align-items: center; gap: 14px; }
.quote-rule { flex: none; width: 3px; align-self: stretch; min-height: 36px; border-radius: 3px; background: var(--brand); }
.quote-by { display: grid; gap: 1px; flex: 1; min-width: 0; }
.quote-by strong { font-weight: var(--fw-medium); }
.quote-by small { font-size: var(--fs-sm); color: var(--muted-foreground); }
.quote-year { flex: none; }
.quote-note { margin-top: -8px; font-size: var(--fs-xs); color: var(--muted-foreground); }
@media screen and (max-width: 991px) { .quote-grid.cols-2 { grid-template-columns: 1fr; } }

/* ---- Embed ----------------------------------------------------------------- */
.embed-frame { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--card); }
.embed-frame iframe { display: block; width: 100%; border: 0; }

/* ---- CTA panel ------------------------------------------------------------- */
.cta-sec { padding: 56px var(--pad); border-bottom: 1px solid var(--border); }
.cta { position: relative; overflow: hidden; display: flex; flex-flow: column; align-items: center; gap: 18px; padding: 84px 28px; border-radius: var(--radius-xl); text-align: center; color: #04202c; background: linear-gradient(135deg, #29bdf5, #01aef2 45%, #0189bf); box-shadow: 0 24px 60px color-mix(in srgb, var(--brand) 30%, transparent); }
.cta::before, .cta::after { content: ""; position: absolute; pointer-events: none; border-radius: 999px; border: 1px solid #ffffff59; background: #ffffff1a; }
.cta::before { width: 620px; height: 190px; left: 50%; top: 50%; translate: -50% -62%; }
.cta::after { width: 520px; height: 520px; right: -180px; bottom: -330px; border-radius: 0; rotate: 45deg; background: #ffffff14; border-color: #ffffff33; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { max-width: 760px; font-size: clamp(30px, 4.6vw, 54px); line-height: 1.05; color: #04202c; }
.cta p { max-width: 620px; font-weight: var(--fw-medium); color: #04202ccc; }
.cta .btn-row { justify-content: center; margin-top: 8px; }

/* ---- Contact form ---------------------------------------------------------- */
.form-card { position: relative; z-index: 1; width: 100%; max-width: 780px; margin: 44px auto 0; padding: 30px; border: 1px solid var(--border); border-radius: var(--radius-2xl); background: var(--card); box-shadow: var(--shadow-xl); text-align: left; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 7px; }
.field.is-full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.input { width: 100%; height: 42px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--background); font-size: var(--fs-sm); transition: border-color .2s, box-shadow .2s; }
textarea.input { height: 130px; padding: 12px 14px; resize: vertical; }
.input::placeholder { color: var(--muted-foreground); }
.input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.form-foot { display: flex; justify-content: flex-end; margin-top: 18px; }
.form-success { display: none; margin-top: 16px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent); border-radius: var(--radius); background: color-mix(in srgb, var(--brand) 10%, transparent); font-size: var(--fs-sm); }
.form-success.is-shown { display: block; }
@media screen and (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 20px; } }

/* ---- Footer ---------------------------------------------------------------- */
.footer-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 2.4fr); gap: 48px; padding: 56px var(--pad) 44px; }
.footer-brand { display: grid; gap: 16px; justify-items: start; align-content: start; }
.footer-brand p { max-width: 340px; font-weight: var(--fw-medium); line-height: 1.6; letter-spacing: var(--tracking-tight); color: var(--muted-foreground); }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
.footer-col h3 { margin-bottom: 14px; font-size: var(--fs-sm); font-weight: var(--fw-semibold); letter-spacing: 0; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: var(--fs-sm); color: var(--muted-foreground); transition: color .2s; }
.footer-col a:hover { color: var(--foreground); }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 18px var(--pad); border-top: 1px solid var(--border); font-size: var(--fs-xs); color: var(--muted-foreground); }
.footer-legal nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal a:hover { color: var(--foreground); }
.footer-owner { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.footer-owner img { height: 22px; width: auto; border-radius: 0; filter: brightness(0); opacity: .8; }
:root[data-theme="dark"] .footer-owner img { filter: none; opacity: 1; }
.footer-fx { position: relative; height: 150px; border-top: 1px solid var(--border); overflow: hidden; -webkit-mask-image: linear-gradient(#000, #0000); mask-image: linear-gradient(#000, #0000); }
.footer-fx canvas { width: 100%; height: 100%; }
@media screen and (max-width: 991px) { .footer-top { grid-template-columns: 1fr; gap: 36px; } }
@media screen and (max-width: 640px) { .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-legal { flex-flow: column; align-items: flex-start; } }
@media screen and (max-width: 640px) { .footer-owner { flex-wrap: wrap; white-space: normal; } }

/* ---- Motion: blur-fade reveal ---------------------------------------------- */
.js:not(.reveal-all) [data-reveal] { opacity: 0; transform: translateY(14px); filter: blur(6px); }
.js [data-reveal] { transition: opacity .6s var(--ease-out), transform .6s var(--ease-out), filter .6s var(--ease-out), background-color .25s; transition-delay: calc(var(--d, 0) * 70ms), calc(var(--d, 0) * 70ms), calc(var(--d, 0) * 70ms), 0s; }
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; } }

/* ---- Diagram sections inside the frame ------------------------------------- */
.sec-in > .ig { margin: 0; border: 0; border-radius: 0; box-shadow: none; background: none; padding: 52px var(--pad); }
.sec-in > .ig.is-dark { background: radial-gradient(120% 130% at 50% -10%, #123344 0, #0c0c0c 62%); }
.sec-in > .ig-note { max-width: none; margin: 0; padding: 16px var(--pad); border-top: 1px solid var(--border); font-size: var(--fs-sm); color: var(--muted-foreground); }
.sec-in > .ig-intro { max-width: 860px; margin: 0 auto; padding: 36px var(--pad) 0; text-align: center; }
.sec-in > .split-figure.is-wide { padding: 44px var(--pad); max-width: none; }
.split-figure { width: 100%; max-width: 560px; margin-inline: auto; }
