/* ==========================================================================
   WEBLINE.LK | Ethereal glass design system
   Deep blue-black, electric cobalt to violet light, glass hairlines.
   Cabinet Grotesk display + Satoshi body.
   Radius system: pills for interactive, 22px surfaces, 18px media.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('../fonts/cabinet-grotesk-vf.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/satoshi-vf.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #05060b;
  --bg-2: #0a0d16;
  --txt: #eef0f8;
  --txt-soft: rgba(238, 240, 248, 0.64);
  --txt-dim: rgba(238, 240, 248, 0.42);
  --line: rgba(238, 240, 248, 0.12);
  --line-soft: rgba(238, 240, 248, 0.07);
  --glass: rgba(255, 255, 255, 0.04);
  --accent: #4d5dff;
  --accent-2: #8b5cf6;
  --grad: linear-gradient(120deg, #4d5dff 10%, #8b5cf6 90%);
  --display: 'Cabinet Grotesk', 'Segoe UI', system-ui, sans-serif;
  --sans: 'Satoshi', 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --wide: 92rem;
  --r-card: 22px;
  --r-media: 18px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.reduce { scroll-behavior: auto; }
body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.68;
  font-weight: 430;
  color: var(--txt);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 300;
  background: var(--accent); color: #fff; padding: 0.6rem 1rem;
}
.skip-link:focus { left: 0; }

/* ---------- Ambient layers ---------- */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; will-change: transform; }
.orb-a { width: 44rem; height: 44rem; top: -18rem; right: -12rem; background: radial-gradient(circle, rgba(77, 93, 255, 0.14) 0%, rgba(77, 93, 255, 0.05) 40%, transparent 68%); }
.orb-b { width: 38rem; height: 38rem; top: 60%; left: -16rem; background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0.04) 40%, transparent 68%); }
main, footer { position: relative; z-index: 1; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 780; line-height: 1.02; letter-spacing: -0.025em; }
.h-display { font-size: clamp(2.9rem, 6.2vw, 6rem); }
.h-xl { font-size: clamp(2.1rem, 4.4vw, 3.9rem); }
.h-lg { font-size: clamp(1.7rem, 3.2vw, 2.7rem); line-height: 1.12; }
.h-md { font-size: clamp(1.3rem, 2.1vw, 1.75rem); line-height: 1.2; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lede { font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.6; color: var(--txt-soft); max-width: 36em; }
p { max-width: 64ch; }
.muted { color: var(--txt-soft); }

/* ---------- Layout ---------- */
.container { max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(5rem, 11vw, 10rem); }
.section-tight { padding-block: clamp(3.5rem, 7vw, 6.5rem); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.65rem;
  padding: 1.05rem 1.9rem;
  border-radius: 999px;
  font-weight: 600; font-size: 0.96rem; letter-spacing: 0.01em;
  transition: transform 0.6s var(--ease), background-color 0.6s var(--ease), border-color 0.6s var(--ease), box-shadow 0.6s var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn .orb-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.85em;
  transition: transform 0.6s var(--ease);
}
.btn:hover .orb-ic { transform: translate(2px, -2px) scale(1.08); }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 12px 40px -12px rgba(77, 93, 255, 0.55);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 16px 52px -12px rgba(99, 91, 255, 0.75); transform: translateY(-2px); }
.btn-ghost {
  border: 1px solid var(--line); color: var(--txt);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { border-color: rgba(238, 240, 248, 0.34); background: rgba(255, 255, 255, 0.06); transform: translateY(-2px); }
.btn-light { background: #fff; color: #0a0c18; }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 44px -14px rgba(255, 255, 255, 0.5); }
.btn-light .orb-ic { background: rgba(10, 12, 24, 0.1); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.95rem; color: var(--txt);
  transition: color 0.4s var(--ease);
}
.link-arrow .ar { transition: transform 0.5s var(--ease); }
.link-arrow:hover { color: #9aa4ff; }
.link-arrow:hover .ar { transform: translateX(5px); }

/* ---------- Floating pill navigation ---------- */
.nav {
  position: fixed; top: 1.1rem; left: 50%; z-index: 100;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.25rem);
  width: min(calc(100% - 2rem), 68rem);
  height: 4.1rem;
  padding-inline: 1.6rem 0.6rem;
  border-radius: 999px;
  background: rgba(10, 12, 22, 0.55);
  border: 1px solid var(--line-soft);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 50px -20px rgba(0, 0, 0, 0.8);
  transition: transform 0.7s var(--ease), background-color 0.5s var(--ease);
}
.nav.is-solid { background: rgba(9, 11, 20, 0.82); }
.nav.is-hidden { transform: translate(-50%, -140%); }

.brand { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; margin-right: auto; }
.brand i { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
.nav-links > li > a:not(.btn) {
  font-weight: 540; font-size: 0.93rem; color: var(--txt-soft);
  transition: color 0.35s var(--ease);
}
.nav-links > li > a:not(.btn):hover, .nav-links > li > a[aria-current] { color: var(--txt); }
.nav-cta .btn { padding: 0.68rem 1.3rem; font-size: 0.88rem; }

.nav-drop { position: relative; }
.drop-panel {
  position: absolute; top: calc(100% + 1.1rem); left: 50%;
  transform: translate(-50%, 10px);
  width: 22rem;
  background: rgba(12, 14, 25, 0.92);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 70px -20px rgba(0, 0, 0, 0.85);
  padding: 0.7rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0s linear 0.4s;
}
.nav-drop:hover .drop-panel, .nav-drop:focus-within .drop-panel {
  opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s;
}
.drop-panel a { display: block; padding: 0.7rem 0.9rem; border-radius: 14px; transition: background-color 0.3s var(--ease); }
.drop-panel a:hover { background: rgba(255, 255, 255, 0.06); }
.di-t { display: block; font-weight: 600; font-size: 0.94rem; }
.di-d { display: block; font-size: 0.8rem; color: var(--txt-dim); }

.burger { display: none; width: 2.9rem; height: 2.9rem; position: relative; z-index: 130; border-radius: 50%; }
.burger b {
  position: absolute; left: 0.7rem; right: 0.7rem; height: 1.5px;
  background: var(--txt);
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}
.burger b:first-child { top: calc(50% - 4px); }
.burger b:last-child { top: calc(50% + 4px); }
.burger.open b:first-child { top: 50%; transform: rotate(45deg); }
.burger.open b:last-child { top: 50%; transform: rotate(-45deg); }

.mnav {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(5, 6, 12, 0.9);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex; flex-direction: column; justify-content: center;
  padding-inline: var(--gutter);
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0s linear 0.5s;
}
.mnav.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.mnav-links li { overflow: hidden; }
.mnav-links a {
  display: inline-block;
  font-family: var(--display); font-weight: 760;
  font-size: clamp(2.4rem, 9vw, 4rem); line-height: 1.25; letter-spacing: -0.02em;
  transform: translateY(115%);
  transition: transform 0.75s var(--ease), color 0.3s;
}
.mnav-links a:hover { color: #9aa4ff; }
.mnav.open .mnav-links a { transform: translateY(0); }
.mnav.open .mnav-links li:nth-child(2) a { transition-delay: 0.06s; }
.mnav.open .mnav-links li:nth-child(3) a { transition-delay: 0.12s; }
.mnav.open .mnav-links li:nth-child(4) a { transition-delay: 0.18s; }
.mnav.open .mnav-links li:nth-child(5) a { transition-delay: 0.24s; }
.mnav-foot { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 1.8rem; color: var(--txt-soft); font-size: 0.95rem; }
.mnav-foot a:hover { color: #9aa4ff; }

/* ---------- Page transition veil ---------- */
.veil {
  position: fixed; inset: 0; z-index: 150; pointer-events: none;
  background: var(--bg);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.veil.on { opacity: 1; pointer-events: all; }

/* ---------- Cinematic hero (home) ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 8rem var(--gutter) 6rem;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 45%, rgba(5, 6, 11, 0.1), rgba(5, 6, 11, 0.78) 78%),
    linear-gradient(to bottom, rgba(5, 6, 11, 0.5), transparent 30%, transparent 62%, var(--bg) 98%);
}
.hero h1 { max-width: 13em; margin-inline: auto; text-wrap: balance; text-shadow: 0 6px 60px rgba(0, 0, 0, 0.6); }
.hero .lede { margin: 1.6rem auto 2.4rem; text-wrap: balance; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line-soft); padding-block: 1.4rem; background: rgba(255, 255, 255, 0.015); }
.marquee-track { display: flex; gap: 3.5rem; width: max-content; will-change: transform; animation: marquee 30s linear infinite; }
.marquee-track span {
  display: flex; align-items: center; gap: 3.5rem;
  font-family: var(--display); font-weight: 720; font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  letter-spacing: -0.01em; color: var(--txt-dim); white-space: nowrap;
}
.marquee-track em { font-style: normal; color: var(--accent); font-size: 0.6em; }
@keyframes marquee { to { transform: translateX(-50%); } }
html.reduce .marquee-track { animation: none; }

/* ---------- Statement ---------- */
.statement h2 { max-width: 21em; font-weight: 700; }
[data-words] .word { opacity: 0.14; }
html:not(.js) [data-words] .word, html.reduce [data-words] .word { opacity: 1; }

/* ---------- Bento ---------- */
.bento {
  display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-flow: dense;
  gap: clamp(0.9rem, 1.6vw, 1.4rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.cell {
  position: relative;
  border-radius: var(--r-card);
  border: 1px solid var(--line-soft);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.cell-media { grid-column: span 3; display: block; min-height: 24rem; }
.cell-media.tall { grid-column: span 3; grid-row: span 2; min-height: 100%; }
.cell-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0.92;
  transition: transform 0.9s var(--ease), opacity 0.5s;
  will-change: transform;
}
.cell-media:hover img { transform: scale(1.05); opacity: 1; }
.cell-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4, 5, 10, 0.88) 6%, rgba(4, 5, 10, 0.14) 46%, transparent 70%);
}
.cell-body { position: absolute; inset: auto 0 0 0; z-index: 2; padding: clamp(1.4rem, 2.4vw, 2rem); }
.cell-kicker { font-family: var(--display); font-weight: 700; font-size: 0.95rem; color: #9aa4ff; }
.cell-body h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin: 0.3rem 0 0.5rem; }
.cell-body p { color: var(--txt-soft); font-size: 0.95rem; max-width: 40ch; margin-bottom: 0.9rem; }
.cell-go {
  position: absolute; top: 1.3rem; right: 1.3rem; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.5s var(--ease), background-color 0.4s;
}
.cell-media:hover .cell-go { transform: translate(2px, -2px); background: rgba(255, 255, 255, 0.2); }
.cell-stat { grid-column: span 3; padding: clamp(1.5rem, 2.6vw, 2.2rem); display: flex; flex-direction: column; justify-content: flex-end; min-height: 11rem; }
.cell-stat b {
  font-family: var(--display); font-weight: 800; line-height: 0.9;
  font-size: clamp(3.4rem, 6vw, 5.6rem);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cell-stat span { color: var(--txt-soft); font-size: 0.95rem; margin-top: 0.7rem; max-width: 26ch; }

/* ---------- Pinned services split ---------- */
.svcx { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.svcx-intro { position: sticky; top: 8rem; }
.svcx-intro h2 { margin-bottom: 1.3rem; }
.svcx-intro p { color: var(--txt-soft); margin-bottom: 2rem; }
.svcx-list li { position: relative; }
.svcx-list a {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(1rem, 2vw, 1.8rem);
  padding: clamp(1.4rem, 2.4vw, 2rem) 0.5rem;
  border-top: 1px solid var(--line-soft);
  transition: padding-left 0.55s var(--ease);
}
.svcx-list li:last-child a { border-bottom: 1px solid var(--line-soft); }
.svcx-list a:hover { padding-left: 1.4rem; }
.svcx-list .n { font-family: var(--display); font-weight: 700; font-size: 0.9rem; color: var(--txt-dim); }
.svcx-list .t {
  font-family: var(--display); font-weight: 740; letter-spacing: -0.02em;
  font-size: clamp(1.45rem, 2.7vw, 2.3rem);
  transition: color 0.4s;
}
.svcx-list a:hover .t { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.svcx-list .ar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), background-color 0.4s, border-color 0.4s;
}
.svcx-list a:hover .ar { transform: rotate(-45deg); background: var(--accent); border-color: var(--accent); }

/* ---------- Brand cards ---------- */
.brands-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); flex-wrap: wrap; }
.brands { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(0.9rem, 1.6vw, 1.4rem); }
.bcard {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--r-card);
  border: 1px solid var(--line-soft);
  background: var(--bg-2);
}
.bcard img { width: 100%; height: clamp(22rem, 46vw, 33rem); object-fit: cover; opacity: 0.9; transition: transform 1s var(--ease), opacity 0.6s; will-change: transform; }
.bcard:hover img { transform: scale(1.05); opacity: 1; }
.bcard-body {
  position: absolute; inset: auto 0 0 0;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  background: linear-gradient(to top, rgba(3, 4, 8, 0.92), rgba(3, 4, 8, 0));
}
.bcard-kicker { font-family: var(--display); font-weight: 700; font-size: 0.92rem; color: #9aa4ff; }
.bcard-body h3 { font-size: clamp(2rem, 3.4vw, 3rem); margin: 0.35rem 0 0.45rem; }
.bcard-body p { color: var(--txt-soft); font-size: 0.96rem; max-width: 40em; }
.bcard-go {
  position: absolute; top: clamp(1.2rem, 2.4vw, 1.9rem); right: clamp(1.2rem, 2.4vw, 1.9rem);
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1.05rem; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; color: #fff;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  transition: background-color 0.4s, transform 0.5s var(--ease);
}
.bcard:hover .bcard-go { background: rgba(255, 255, 255, 0.22); transform: translateY(-2px); }

/* ---------- Stacking steps ---------- */
.stack { display: grid; gap: clamp(0.9rem, 1.6vw, 1.4rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.stack-card {
  position: sticky;
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.2rem, 3vw, 3rem); align-items: start;
  border-radius: var(--r-card);
  border: 1px solid var(--line-soft);
  background: linear-gradient(160deg, #10131f, #0a0c15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 -18px 50px -30px rgba(0, 0, 0, 0.9);
  padding: clamp(1.8rem, 3.4vw, 3rem);
  will-change: transform;
}
.stack-card:nth-child(1) { top: 7rem; }
.stack-card:nth-child(2) { top: 8.1rem; }
.stack-card:nth-child(3) { top: 9.2rem; }
.stack-card:nth-child(4) { top: 10.3rem; }
.stack-card .n {
  font-family: var(--display); font-weight: 800; line-height: 1;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stack-card h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin-bottom: 0.6rem; }
.stack-card p { color: var(--txt-soft); font-size: 1rem; max-width: 52ch; }

/* ---------- Numbered rows ---------- */
.steps { margin-top: clamp(2rem, 4vw, 3rem); }
.step {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(1rem, 3vw, 3rem); align-items: baseline;
  padding-block: clamp(1.6rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line-soft);
}
.step:last-child { border-bottom: 1px solid var(--line-soft); }
.step .n {
  font-family: var(--display); font-weight: 800; line-height: 1;
  font-size: clamp(2rem, 4vw, 3.2rem);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: clamp(1.4rem, 2.3vw, 2rem); }
.step p { color: var(--txt-soft); font-size: 0.98rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; text-align: center; padding-block: clamp(6rem, 13vw, 11rem); }
.cta-band::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 80% at 50% 110%, rgba(77, 93, 255, 0.34), transparent 65%),
    radial-gradient(ellipse 40% 50% at 68% 100%, rgba(139, 92, 246, 0.22), transparent 70%);
}
.cta-band h2 { max-width: 13em; margin-inline: auto; text-wrap: balance; }
.cta-band p { color: var(--txt-soft); margin: 1.3rem auto 2.4rem; max-width: 44em; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.015); }
.footer-top { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2.33fr)); gap: clamp(2rem, 4vw, 3rem); padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.footer-brand .brand { font-size: 2rem; }
.footer-brand p { color: var(--txt-soft); font-size: 0.95rem; margin-top: 1rem; max-width: 26em; }
.footer-brand .mail { display: inline-block; margin-top: 1.4rem; font-weight: 600; color: var(--txt); border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color 0.3s, border-color 0.3s; }
.footer-brand .mail:hover { color: #9aa4ff; border-color: #9aa4ff; }
.footer h4 { font-family: var(--display); font-size: 0.95rem; font-weight: 720; margin-bottom: 1.1rem; color: var(--txt-dim); }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { font-size: 0.94rem; color: var(--txt-soft); transition: color 0.3s; }
.footer-col a:hover { color: var(--txt); }
.footer-col .ext { font-size: 0.8em; color: var(--txt-dim); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.85rem; color: var(--txt-dim);
}

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; padding-top: clamp(9rem, 16vh, 12rem); }
.page-hero .crumb { color: var(--txt-dim); font-size: 0.9rem; margin-bottom: 1.3rem; }
.page-hero .crumb a { transition: color 0.3s; }
.page-hero .crumb a:hover { color: var(--txt); }
.page-hero h1 { max-width: 13em; }
.page-hero .lede { margin-top: 1.5rem; }
.page-fig { margin-top: clamp(2.5rem, 6vw, 4rem); overflow: hidden; border-radius: var(--r-card); border: 1px solid var(--line-soft); }
.page-fig img { width: 100%; height: clamp(18rem, 56vh, 34rem); object-fit: cover; will-change: transform; }

/* ---------- Editorial split ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 6rem); align-items: center; }
.split figure { overflow: hidden; border-radius: var(--r-card); border: 1px solid var(--line-soft); }
.split img { width: 100%; object-fit: cover; will-change: transform; }
.split .body h2 { margin-bottom: 1.4rem; }
.split .body p { color: var(--txt-soft); margin-bottom: 1.15rem; }
.split .body p:last-of-type { margin-bottom: 1.75rem; }
.kicker { font-family: var(--display); font-weight: 700; font-size: 0.95rem; color: #9aa4ff; }

/* ---------- Values grid ---------- */
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(0.9rem, 1.6vw, 1.4rem); }
.value {
  border-radius: var(--r-card); border: 1px solid var(--line-soft);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  transition: border-color 0.4s, transform 0.6s var(--ease);
}
.value:hover { border-color: rgba(154, 164, 255, 0.3); transform: translateY(-4px); }
.value .num { font-family: var(--display); font-weight: 800; color: #9aa4ff; }
.value h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); margin: 0.55rem 0 0.7rem; }
.value p { color: var(--txt-soft); font-size: 0.96rem; }

/* ---------- Services hub grid ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(0.9rem, 1.8vw, 1.6rem); }
.svc-card {
  display: block; overflow: hidden;
  border-radius: var(--r-card); border: 1px solid var(--line-soft);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
  transition: border-color 0.45s, transform 0.6s var(--ease);
}
.svc-card:hover { border-color: rgba(154, 164, 255, 0.35); transform: translateY(-4px); }
.svc-card figure { overflow: hidden; }
.svc-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.9s var(--ease); will-change: transform; }
.svc-card:hover img { transform: scale(1.05); }
.svc-card-body { padding: clamp(1.5rem, 2.5vw, 2rem); }
.svc-card h3 { font-size: clamp(1.45rem, 2.2vw, 1.9rem); margin-bottom: 0.6rem; }
.svc-card p { color: var(--txt-soft); font-size: 0.95rem; margin-bottom: 1.1rem; }

/* ---------- Service detail ---------- */
.included { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(0.9rem, 1.6vw, 1.4rem); }
.included li {
  border-radius: var(--r-card); border: 1px solid var(--line-soft);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  padding: clamp(1.4rem, 2.4vw, 2rem);
}
.included b { display: block; font-family: var(--display); font-weight: 720; font-size: 1.2rem; letter-spacing: -0.01em; margin-bottom: 0.45rem; }
.included span { color: var(--txt-soft); font-size: 0.94rem; }

.faq details { border-top: 1px solid var(--line-soft); }
.faq details:last-child { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.4rem 0.25rem; cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 700; font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  transition: color 0.3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--sans); font-weight: 300; font-size: 1.6rem; color: #9aa4ff; transition: transform 0.45s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: #9aa4ff; }
.faq .faq-a { padding: 0 0.25rem 1.5rem; color: var(--txt-soft); max-width: 60ch; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-panel {
  border-radius: var(--r-card); border: 1px solid var(--line-soft);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: clamp(1.6rem, 3.2vw, 2.8rem);
}
.field { display: grid; gap: 0.5rem; margin-bottom: 1.4rem; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(5, 6, 12, 0.6);
  padding: 0.9rem 1.05rem; font: inherit; color: var(--txt);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field select { appearance: none; }
.field textarea { min-height: 9.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(77, 93, 255, 0.22);
}
.field .hint { font-size: 0.82rem; color: var(--txt-dim); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { display: none; padding: 1rem 1.25rem; margin-bottom: 1.5rem; font-weight: 540; border-radius: 14px; border: 1px solid; }
.form-note.show { display: block; }
.form-note.ok { border-color: rgba(74, 222, 128, 0.35); color: #86efac; background: rgba(74, 222, 128, 0.08); }
.form-note.err { border-color: rgba(248, 113, 113, 0.35); color: #fca5a5; background: rgba(248, 113, 113, 0.08); }
.contact-aside h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
.contact-aside p { color: var(--txt-soft); font-size: 0.95rem; margin-bottom: 1.4rem; }
.contact-aside .mail {
  font-family: var(--display); font-weight: 740; font-size: clamp(1.3rem, 2vw, 1.7rem);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.contact-aside ul { margin-top: 1.8rem; }
.contact-aside ul li { padding-block: 0.85rem; border-top: 1px solid var(--line-soft); font-size: 0.94rem; display: flex; justify-content: space-between; gap: 1rem; }
.contact-aside ul span { color: var(--txt-dim); }
.contact-aside ul a:hover { color: #9aa4ff; }

/* ---------- 404 ---------- */
.nf { min-height: 100dvh; display: grid; place-content: center; text-align: center; padding: var(--gutter); position: relative; z-index: 1; }
.nf b {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: clamp(6rem, 20vw, 13rem); line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nf p { margin: 1rem auto 2rem; color: var(--txt-soft); }
.nf .btn { justify-self: center; margin-inline: auto; }

/* ---------- Motion accessibility ---------- */
html.reduce [data-reveal], html.reduce [data-hero-fade], html.reduce [data-split] { opacity: 1 !important; transform: none !important; visibility: visible !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1160px) {
  .nav-links { display: none; }
  .burger { display: block; margin-left: auto; }
  .nav { padding-inline: 1.4rem 0.6rem; }
  .brand { margin-right: 0; }
}
@media (max-width: 900px) {
  .svcx, .split, .contact-grid { grid-template-columns: 1fr; }
  .split.rev figure { order: -1; }
  .svcx-intro { position: static; }
  .brands { grid-template-columns: 1fr; }
  .bcard img { height: clamp(18rem, 60vw, 24rem); }
  .bento { grid-template-columns: 1fr; }
  .cell-media, .cell-media.tall, .cell-stat { grid-column: auto; grid-row: auto; min-height: 20rem; }
  .cell-stat { min-height: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .svc-grid, .included, .values { grid-template-columns: 1fr; }
  .stack-card { grid-template-columns: 1fr; gap: 0.8rem; }
  .step { grid-template-columns: minmax(0, 1fr) minmax(0, 5fr); }
  .step p { grid-column: 2; }
}
@media (max-width: 700px) {
  .footer-top { grid-template-columns: 1fr; }
  .hero { padding-top: 7rem; }
}
