/* CTD: white gallery, brand navy for details. Phone first (375 x 812). */
:root {
  --brand: #1c2d44;        /* CTD navy, from the logo */
  --brand-2: #2c4468;      /* hover */
  --brand-tint: #eef1f5;   /* soft navy wash */
  --bg: #ffffff;
  --bg-2: #f6f7f9;
  --text: #283141;
  --muted: #5d6878;
  --line: #e2e6eb;
  --line-2: #cfd5dd;
  --display: 'Jost', system-ui, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 16px;
  --header: 64px;
  --callbar: 60px;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: 32px; --header: 76px; } }
@media (min-width: 900px) { :root { --callbar: 0px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: clip; padding-bottom: var(--callbar);
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-decoration-color: rgba(28, 45, 68, 0.3); text-underline-offset: 3px; }
a:hover { color: var(--brand-2); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); color: var(--brand); line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 7vw, 4.6rem); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 4.6vw, 3rem); font-weight: 400; }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.45rem); font-weight: 500; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.22rem); color: var(--text); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.label {
  font: 500 0.72rem/1.4 var(--sans); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 1rem; display: inline-flex; align-items: center; gap: 0.7rem;
}
.label::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.plain { list-style: none; margin: 0; padding: 0; }
svg { width: 1.15em; height: 1.15em; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 50px; padding: 0.85em 1.6em; border: 1px solid var(--brand); border-radius: 999px;
  background: var(--brand); color: #fff; font: 500 0.9rem/1 var(--sans); letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s;
}
.btn:hover { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--brand-tint); color: var(--brand); border-color: var(--brand); }
.btn-light { background: #fff; color: var(--brand); border-color: #fff; }
.btn-light:hover { background: var(--brand-tint); color: var(--brand); border-color: var(--brand-tint); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: #fff; }
.btn-small { min-height: 42px; padding: 0.6em 1.2em; font-size: 0.84rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5em; color: var(--brand); text-decoration: none;
  font: 500 0.9rem/1.4 var(--sans); background: none; border: 0; padding: 0; cursor: pointer;
}
.link-arrow svg { transition: transform 0.3s var(--ease); }
.link-arrow:hover svg, a:hover .link-arrow svg { transform: translateX(5px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header);
  background: rgba(255, 255, 255, 0.86); border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  transition: border-color 0.3s;
}
.site-header.is-scrolled, .menu-open .site-header { border-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 1rem; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--brand); }
.brand-mark { width: 44px; height: 44px; background: var(--brand); -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.brand-word { font: 500 1.5rem/1 var(--display); letter-spacing: 0.3em; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; }
.site-nav a { font: 500 0.88rem/1 var(--sans); text-decoration: none; color: var(--text); padding: 0.5rem 0; position: relative; }
.site-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.site-nav a:hover::after, .site-nav a[aria-current='page']::after { transform: scaleX(1); }
.site-nav a[aria-current='page'], .site-nav a:hover { color: var(--brand); }
.menu-toggle { display: none; }
@media (max-width: 1319px) {
  .site-nav {
    position: fixed; inset: var(--header) 0 0; background: #fff; padding: 1.5rem var(--gutter) calc(var(--callbar) + 2rem);
    opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s; overflow-y: auto;
  }
  .menu-open .site-nav { opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a { display: block; padding: 1.05rem 0; font: 400 1.5rem/1.2 var(--display); color: var(--brand); }
  .site-nav a::after { display: none; }
  .menu-toggle {
    display: grid; place-content: center; gap: 7px; width: 46px; height: 46px; margin-left: auto;
    background: none; border: 1px solid var(--line-2); border-radius: 50%; cursor: pointer;
  }
  .menu-toggle span { display: block; width: 18px; height: 1.5px; background: var(--brand); transition: transform 0.3s var(--ease); }
  .menu-toggle[aria-expanded='true'] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded='true'] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .header-cta { display: none; }
}
@media (min-width: 1320px) { .nav-contact { display: none; } .header-cta { margin-left: 0.5rem; } }
.menu-open { overflow: hidden; }

/* Hero: split, text on white + moving media frame */
.hero { padding: clamp(1.5rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 4.5rem; } }
.hero h1 { font-size: clamp(2.4rem, 8vw, 5rem); font-weight: 300; line-height: 1.04; }
.hero h1 em { font-style: normal; font-weight: 500; }
.hero .lead { margin-top: 1.2rem; }
.media-frame { position: relative; overflow: hidden; border-radius: 6px; background: var(--bg-2); isolation: isolate; }
.media-frame video, .media-frame img, .media-frame picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media { aspect-ratio: 4 / 5; }
.hero-media.landscape { aspect-ratio: 5 / 4; }
@media (max-width: 959px) { .hero-media, .hero-media.landscape { aspect-ratio: 4 / 4.2; } }
.media-tag { position: absolute; left: 14px; bottom: 14px; z-index: 2; padding: 0.45rem 0.8rem; border-radius: 999px; background: rgba(255, 255, 255, 0.9);
  font: 500 0.72rem/1 var(--sans); letter-spacing: 0.08em; color: var(--brand); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.kenburns { animation: kenburns 22s ease-in-out infinite alternate; transform-origin: 60% 40%; will-change: transform; }
@keyframes kenburns { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.14) translate3d(-2%, -2%, 0); } }

/* Heading line reveal */
.js .split-line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.js .split-line > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.js .is-in .split-line > span { transform: none; }
.js .split-line:nth-child(2) > span { transition-delay: 0.08s; }
.js .split-line:nth-child(3) > span { transition-delay: 0.16s; }

/* Marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 1.1rem 0; background: #fff; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { font: 300 clamp(1.3rem, 3vw, 2rem)/1 var(--display); color: var(--brand); padding: 0 1.4rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 2.8rem; }
.marquee-track span::after { content: ''; width: 7px; height: 7px; background: var(--brand); transform: rotate(45deg); opacity: 0.5; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee.dark { background: var(--brand); border-color: var(--brand); }
.marquee.dark .marquee-track span { color: #fff; }
.marquee.dark .marquee-track span::after { background: #fff; }

/* Sections */
.section { padding: clamp(4rem, 10vw, 8rem) 0; }
.section.tint { background: var(--bg-2); }
.section.tight { padding-top: 0; }
.section-head { max-width: 780px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .label::before { display: none; }
.center-cta { text-align: center; margin: 2.5rem 0 0; }

/* Category tiles (big visuals) */
.tiles { display: grid; gap: 1rem; }
@media (min-width: 760px) { .tiles { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.tile { position: relative; display: block; overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 5; text-decoration: none; color: #fff; isolation: isolate; background: var(--brand); }
@media (min-width: 760px) { .tile { aspect-ratio: 5 / 5.4; } .tile:nth-child(even) { margin-top: 4rem; } }
.tile picture, .tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile img { transition: transform 1.4s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 20, 32, 0) 40%, rgba(12, 20, 32, 0.8) 100%); z-index: 0; }
.tile-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(1.3rem, 3vw, 2rem); }
.tile-body .num { font: 400 0.8rem/1 var(--sans); letter-spacing: 0.2em; opacity: 0.85; }
.tile h3 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 400; margin: 0.5rem 0 0.4rem; }
.tile p { margin: 0 0 0.9rem; opacity: 0.92; font-size: 0.95rem; max-width: 36ch; }
.tile .link-arrow { color: #fff; }

/* Feature rows: image and text alternating */
.feature { display: grid; gap: 2rem; align-items: center; padding: clamp(2rem, 5vw, 4rem) 0; }
@media (min-width: 900px) { .feature { grid-template-columns: 1fr 1fr; gap: 5rem; } .feature.flip .feature-media { order: 2; } }
.feature-media { aspect-ratio: 5 / 4; }
.feature-media.tall { aspect-ratio: 4 / 5; }
[data-parallax] img { transform: scale(1.14); will-change: transform; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin: 1.5rem 0 0; }
.facts div { background: #fff; padding: 1rem 1.1rem; min-width: 0; }
.facts dt { font: 500 0.7rem/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0.3rem 0 0; font: 400 1.12rem/1.3 var(--display); color: var(--brand); }

/* Info cards */
.cards { display: grid; gap: 1rem; }
@media (min-width: 700px) { .cards.c2, .cards.c4 { grid-template-columns: repeat(2, 1fr); } .cards.c3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .cards.c4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 700px) and (max-width: 899px) { .cards.c3 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: clamp(1.4rem, 3vw, 2rem); transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.4s var(--ease); min-width: 0; }
.card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(28, 45, 68, 0.35); }
.card .icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); margin-bottom: 1.2rem; font: 500 0.85rem/1 var(--display); }
.card p { color: var(--text); font-size: 0.97rem; margin: 0; }
.card .link-arrow { margin-top: 1rem; }
.card-k { font: 400 2.2rem/1 var(--display); color: var(--brand); letter-spacing: 0.06em; margin-bottom: 0.8rem; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); } }
.steps li { border-top: 2px solid var(--brand); padding: 1.3rem 0 0; min-width: 0; }
.steps .step-n { font: 300 2.4rem/1 var(--display); color: var(--brand); display: block; margin-bottom: 0.8rem; }
.steps p { font-size: 0.95rem; }
.step-meta { font: 500 0.72rem/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Horizontal gallery: scroll-driven on desktop, swipe on phones */
.hgallery { overflow: hidden; }
.hgallery-track { display: flex; gap: 1rem; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.hgallery figure { margin: 0; width: min(78vw, 440px); flex: none; }
.hgallery .media-frame { aspect-ratio: 4 / 5; }
.hgallery figcaption { font: 400 1.05rem/1.3 var(--display); color: var(--brand); margin-top: 0.8rem; }
@media (max-width: 899px) {
  .hgallery { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .hgallery::-webkit-scrollbar { display: none; }
  .hgallery figure { scroll-snap-align: center; }
  .hgallery-track { transform: none !important; }
}

/* Full-bleed video band with opening frame */
.band-frame { position: relative; height: 82svh; min-height: 460px; overflow: hidden; clip-path: inset(6% 5% 6% 5% round 10px); background: var(--brand); }
.band-frame.is-open { clip-path: none; }
.band-frame video, .band-frame img, .band-frame picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 20, 32, 0.05) 30%, rgba(12, 20, 32, 0.78) 100%); }
.band-caption { position: absolute; left: 0; right: 0; bottom: clamp(2.5rem, 12%, 5.5rem); z-index: 1; color: #fff; }
.band-caption .label { color: #fff; }
.band-text { font: 300 clamp(1.6rem, 4.4vw, 3rem)/1.15 var(--display); max-width: 22ch; margin: 0; color: #fff; }

/* Comparison table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.spec { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.spec th, .spec td { text-align: left; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec thead th { font: 500 0.7rem/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand); background: var(--brand-tint); }
.spec tbody th { font-weight: 500; color: var(--muted); }
.spec tr:last-child > * { border-bottom: 0; }
@media (max-width: 599px) {
  .spec thead { display: none; }
  .spec tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
  .spec tr:last-child { border-bottom: 0; }
  .spec tbody th { grid-column: 1 / -1; padding-bottom: 0.2rem; border: 0; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); }
  .spec td { border: 0; padding-top: 0.2rem; }
  .spec td::before { content: attr(data-h); display: block; font-size: 0.72rem; color: var(--muted); }
}

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 920px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.4rem 3rem 1.4rem 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: clamp(1.1rem, 2.6vw, 1.35rem); font-weight: 400; }
.faq summary::after { content: '+'; position: absolute; right: 0.2rem; top: 50%; width: 32px; height: 32px; margin-top: -16px; border: 1px solid var(--line-2); border-radius: 50%;
  display: grid; place-items: center; font: 300 1.3rem/1 var(--sans); color: var(--brand); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 1.5rem; max-width: 72ch; }

/* Prose */
.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.4rem, 3.6vw, 1.9rem); margin-top: 2.2rem; }

/* Related links */
.related { margin-top: 2.5rem; padding: 1.4rem 1.6rem; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-2); }
.related .label { margin-bottom: 0.6rem; }
.related li { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; align-items: baseline; }

/* Contact band (navy) */
.contact-band { background: var(--brand); color: #dfe5ee; padding: clamp(4rem, 9vw, 7rem) 0; }
.contact-band h2, .contact-band .label { color: #fff; }
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; } }
.contact-list { margin: 1.5rem 0 0; }
.contact-list li { display: flex; align-items: center; gap: 0.9rem; padding: 0.95rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); flex-wrap: wrap; }
.contact-list svg { color: #fff; opacity: 0.8; }
.contact-list a, .contact-list span { color: #fff; font-weight: 500; text-decoration: none; }
.contact-list .muted { font-weight: 400; }
.contact-list .muted { color: #aeb9c8; font-size: 0.82rem; margin-left: auto; }
.form { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 600px) { .form { grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field label { font: 500 0.72rem/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 0.8rem 0.95rem; background: #fff; color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--radius); font: 400 16px/1.4 var(--sans);
}
.field input:focus, .field textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(28, 45, 68, 0.12); }
.field textarea { resize: vertical; }
.contact-band .field label { color: #aeb9c8; }
.contact-band .field input, .contact-band .field textarea { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.22); color: #fff; }
.contact-band .field input:focus, .contact-band .field textarea:focus { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15); }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.form-actions .btn { flex: 1 1 200px; }
.form-status { margin: 0; font-size: 0.88rem; min-height: 1.2em; }
.contact-band .form-status { color: #fff; }

/* Inner page hero */
.page-hero { padding: clamp(1.5rem, 5vw, 4rem) 0 clamp(2.5rem, 6vw, 5rem); overflow: hidden; }
.page-hero h1 { font-weight: 300; }
.crumbs { font-size: 0.82rem; color: var(--muted); margin-bottom: 1.4rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.vt-title { view-transition-name: page-title; }
.vt-media { view-transition-name: page-media; }

/* Footer */
.site-footer { background: #111c2c; color: #b6c0cd; padding: 4.5rem 0 1.5rem; font-size: 0.92rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { background: #fff; }
.site-footer a { color: #e4e9f0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; }
.footer-grid > div:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 0.8fr; } .footer-grid > div:first-child { grid-column: auto; } }
.footer-grid .label { color: #fff; }
.footer-grid .label::before { display: none; }
.footer-grid li { padding: 0.28rem 0; }
.footer-claim { max-width: 36ch; margin-top: 1rem; font-size: 0.88rem; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem; margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.8rem; }
.footer-legal p { margin: 0; }
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }

/* Mobile call bar */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr 1fr;
  height: calc(var(--callbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, 0.95); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.call-bar a { display: flex; align-items: center; justify-content: center; gap: 0.45rem; text-decoration: none; font: 500 0.85rem/1 var(--sans); color: var(--brand); border-left: 1px solid var(--line); min-width: 0; }
.call-bar a:first-child { border-left: 0; background: var(--brand); color: #fff; }
@media (max-width: 359px) { .call-bar a span { display: none; } }
@media (min-width: 900px) { .call-bar { display: none; } }

/* Partner login */
.portal-box { max-width: 480px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 30px 60px -40px rgba(28, 45, 68, 0.45); }
.portal-box .form { grid-template-columns: 1fr; }
.portal:not([data-state='loading']) .portal-loading { display: none; }
.portal-welcome { text-align: center; max-width: 640px; margin: 0 auto; }
.icon-lock { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1.2rem; background: var(--brand-tint); color: var(--brand); }
#partner-app:empty { display: none; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal-stagger.is-in > * { opacity: 1; transform: none; }
.js .reveal-stagger.is-in > *:nth-child(2) { transition-delay: 0.08s; }
.js .reveal-stagger.is-in > *:nth-child(3) { transition-delay: 0.16s; }
.js .reveal-stagger.is-in > *:nth-child(4) { transition-delay: 0.24s; }
.js .reveal-stagger.is-in > *:nth-child(5) { transition-delay: 0.32s; }
.js .reveal-mask { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease); }
.js .reveal-mask.is-in { clip-path: inset(0 0 0 0); }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .reveal, .js .reveal-stagger > *, .js .split-line > span { opacity: 1; transform: none; }
  .js .reveal-mask { clip-path: none; }
  .band-frame { clip-path: none; }
}

.fill { position: absolute; inset: 0; overflow: hidden; }
.fill picture, .fill img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* CVD / HPHT schematic */
.growth svg { width: 100%; height: 100%; }
.growth .g-k { font: 500 22px var(--display); fill: var(--brand); letter-spacing: 0.12em; }
.growth .g-t { font: 500 15px var(--sans); fill: var(--brand); }
.growth .g-s { font: 400 13px var(--sans); fill: var(--muted); }
.growth .g-seed { fill: #d9dee6; stroke: var(--brand); stroke-width: 1.2; }
.growth .g-seed-side { fill: #c3cad5; stroke: var(--brand); stroke-width: 1.2; }
.growth .g-layer { fill: rgba(28, 45, 68, 0.06); stroke: rgba(28, 45, 68, 0.45); stroke-width: 1; animation: g-grow 4.2s var(--ease) infinite; }
.growth .g-top { fill: rgba(255, 255, 255, 0.85); stroke: var(--brand); stroke-width: 1.4; }
.growth .g-edge { stroke: #3a4250; stroke-width: 3; opacity: 0.55; }
.growth .g-body { fill: rgba(28, 45, 68, 0.07); stroke: var(--brand); stroke-width: 1.4; }
.growth .g-facet { fill: none; stroke: rgba(28, 45, 68, 0.45); stroke-width: 1; }
.growth .g-cap { fill: rgba(28, 45, 68, 0.12); stroke: var(--brand); stroke-width: 1; }
.growth .g-crystal { transform-origin: 90px 160px; animation: g-pulse 4.2s ease-in-out infinite; }
.growth .g-div { stroke: var(--line-2); stroke-dasharray: 3 5; }
@keyframes g-grow { 0%, 10% { opacity: 0; transform: translateY(8px); } 30%, 100% { opacity: 1; transform: none; } }
@keyframes g-pulse { 0%, 100% { transform: scale(0.96); } 50% { transform: scale(1.02); } }

/* Language menu */
.lang { position: relative; margin-left: 0.25rem; }
@media (max-width: 1319px) { .lang { margin-left: auto; } .lang + .header-cta + .menu-toggle { margin-left: 0.5rem; } }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; padding: 0 0.7rem; border: 1px solid var(--line-2); border-radius: 999px; font: 500 0.8rem/1 var(--sans); color: var(--brand); }
.lang summary::-webkit-details-marker { display: none; }
.lang[open] summary { border-color: var(--brand); }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 20px 40px -24px rgba(28, 45, 68, 0.45); padding: 0.4rem; z-index: 70; }
.lang li a { display: block; padding: 0.6rem 0.8rem; border-radius: 4px; text-decoration: none; color: var(--text); font-size: 0.92rem; }
.lang li a:hover { background: var(--brand-tint); color: var(--brand); }
.lang li a[aria-current='true'] { color: var(--brand); font-weight: 600; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin-top: 1rem; font-size: 0.85rem; }

/* Language suggestion */
.lang-banner { position: fixed; left: 16px; right: 16px; bottom: calc(var(--callbar) + 12px + env(safe-area-inset-bottom)); z-index: 80; display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap;
  max-width: 520px; margin: 0 auto; padding: 0.9rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 24px 50px -24px rgba(28, 45, 68, 0.5); }
.lang-banner p { margin: 0; flex: 1 1 180px; font-size: 0.92rem; color: var(--text); }
.lang-close { width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: 50%; background: #fff; color: var(--brand); font-size: 1.2rem; line-height: 1; cursor: pointer; }

/* Legal pages */
.legal-meta { font-size: 0.85rem; color: var(--muted); }
.legal-note { max-width: 74ch; padding: 0.9rem 1.1rem; border-left: 2px solid var(--brand); background: var(--bg-2); font-size: 0.92rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.5rem; }
.prose .table-scroll { margin: 1.2rem 0; }
.legal-facts { display: grid; grid-template-columns: 1fr; gap: 0; margin: 1rem 0 1.5rem; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.legal-facts div { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 1rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); }
.legal-facts div:last-child { border-bottom: 0; }
.legal-facts dt { color: var(--muted); font-size: 0.88rem; }
.legal-facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 599px) { .legal-facts div { grid-template-columns: 1fr; gap: 0.15rem; } }

/* Wireframe diamond stage (home hero) */
.hero-media.is-diamond { aspect-ratio: 4 / 5; background: #0b0f17; }
@media (max-width: 959px) { .hero-media.is-diamond { aspect-ratio: 4 / 5.2; } }
.diamond-stage {
  --brand-blue: #0066ff;    /* line colour; change here */
  --line-hi: #bfd6ff;       /* highlighted part */
  position: absolute; inset: 0; color: #e8eefc;
  background: radial-gradient(120% 70% at 50% 35%, #142035 0%, #0b0f17 62%);
  touch-action: pan-y; user-select: none;
}
.diamond-stage canvas { position: absolute; inset: 0; display: block; }
.dl-label { position: absolute; left: 20px; right: 20px; bottom: 78px; max-width: 420px; opacity: 0; transform: translateY(8px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); pointer-events: none; }
.dl-label.is-on { opacity: 1; transform: none; }
.dl-label strong { display: block; font: 500 1.05rem/1.2 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin-bottom: 0.3rem; }
.dl-label span { display: block; font-size: 0.9rem; line-height: 1.5; color: rgba(232, 238, 252, 0.82); }
.dl-chips { position: absolute; left: 14px; right: 14px; bottom: 16px; display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.dl-chips::-webkit-scrollbar { display: none; }
.dl-chips button { flex: 0 0 auto; min-height: 38px; padding: 0 0.85rem; border-radius: 999px; border: 1px solid rgba(191, 214, 255, 0.28); background: rgba(11, 15, 23, 0.55); color: rgba(232, 238, 252, 0.85); font: 500 0.78rem/1 var(--sans); cursor: pointer; transition: background 0.3s, border-color 0.3s, color 0.3s; }
.dl-chips button:hover, .dl-chips button[aria-pressed='true'] { border-color: var(--line-hi); color: #fff; background: rgba(0, 102, 255, 0.28); }
