/* ============================================================
   KODA — Design System v3
   Apple-inspired: extreme restraint, huge whitespace, big
   confident type, one quiet accent colour, real photography
   placeholders instead of icons/emoji/gradients.
   ============================================================ */

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

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-soft-2: #ebebee;
  --ink: #1d1d1f;
  --dark: #000000;
  --muted: #6e6e73;
  --muted-2: #86868b;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --accent: #045fea;
  --accent-2: #09c4f9;
  --card: #ffffff;
  --shadow: 0 30px 60px rgba(0,0,0,0.08);
  --radius-lg: 22px;
  --radius: 14px;
  --radius-sm: 8px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Consolas, monospace;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(2.1rem, 3.6vw, 3rem); font-weight: 700; }
h3 { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; }
h4 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }

p, ul, ol { font-size: 1.0625rem; color: var(--ink); }
a { color: var(--accent); text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

/* ── HEADER / NAV ─────────────────────────────────────────── */
header.site-header {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand .brand-mark {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 0.7rem;
}
.brand small { display: none; }

nav.main-nav { display: flex; align-items: center; gap: 30px; }
nav.main-nav a.nav-link {
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0;
  color: var(--muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
nav.main-nav a.nav-link:hover { color: var(--ink); }
nav.main-nav a.nav-link.active { color: var(--ink); }

.nav-btn {
  background: var(--ink) !important;
  color: #fff !important;
  font-weight: 500 !important;
  padding: 8px 18px;
  border-radius: 980px;
  transition: background 0.2s;
}
.nav-btn:hover { background: var(--accent) !important; color: #fff !important; }

/* ── PAGE HERO BANNER (sub-pages) ───────────────────────── */
.page-hero {
  background: var(--bg) url("page-hero-texture.jpg") center / cover no-repeat;
  color: var(--ink);
  padding: 100px 32px 64px;
  text-align: center;
  position: relative;
}
.page-hero .crumb {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 18px;
  text-transform: uppercase;
}
.page-hero h1 { max-width: 780px; margin: 0 auto; }
.page-hero p {
  max-width: 620px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.5;
}

/* ── HOME HERO — full-bleed photo background ───────────────── */
#hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 120px 32px 80px;
  background: #070b16;
  color: #fff;
  text-align: left;
  overflow: hidden;
}
#hero .hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 70% at 78% 50%, rgba(4,95,234,0.28), transparent 70%),
    radial-gradient(40% 50% at 10% 100%, rgba(9,196,249,0.12), transparent 70%),
    linear-gradient(180deg, #070b16, #0a1124);
}
#hero .hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 80% at 70% 50%, #000, transparent 85%);
  mask-image: radial-gradient(70% 80% at 70% 50%, #000, transparent 85%);
}
.hero-inner {
  position: relative; z-index: 1; width: 100%; max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center;
}
.hero-grid { max-width: 560px; margin: 0; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent-2);
  margin-bottom: 22px;
}
.hero-eyebrow span { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-2); display: inline-block; }
h1.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 22px;
}
.hero-title em { font-style: normal; color: var(--accent-2); }
.hero-sub {
  font-size: 1.15rem;
  font-weight: 400;
  color: rgba(255,255,255,0.82);
  max-width: 480px;
  margin: 0 0 40px;
  line-height: 1.65;
  letter-spacing: -0.005em;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-start; }
#hero .btn-primary { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff; }
#hero .btn-primary:hover { filter: brightness(1.08); }
#hero .btn-outline { color: #fff; border-color: rgba(255,255,255,0.4); }
#hero .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* stats strip: moved out of the photo hero so it keeps its light, readable styling */
.stats-strip { background: var(--bg); padding: 0 32px 64px; border-bottom: 1px solid var(--line-soft); }

.btn-primary, .btn-outline, .submit-btn {
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0;
  padding: 13px 26px;
  border-radius: 980px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }

/* hero visual — a large photo frame, not a gradient blob */
.hero-visual {
  max-width: 1120px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/8;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
}
.photo-frame {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  gap: 6px;
  color: var(--muted-2);
  font-size: 0.85rem;
  text-align: center;
  padding: 30px;
  background: var(--bg-soft);
}
.photo-frame .pf-label { font-weight: 600; color: var(--muted); }
.photo-frame .pf-spec { font-family: var(--font-mono); font-size: 0.78rem; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }

/* spec panel (used sparingly, e.g. footer stats) kept minimal */
.spec-row { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.spec-row:last-child { border-bottom: none; }
.spec-row .k { font-size: 0.85rem; color: var(--muted); }
.spec-row .v { font-size: 1rem; color: var(--ink); font-weight: 600; }

/* stats bar */
.stats-bar {
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item { padding: 20px 24px; text-align: center; border-left: 1px solid var(--line-soft); }
.stat-item:first-child { border-left: none; }
.stat-num { font-size: 2.2rem; font-weight: 700; color: var(--ink); line-height: 1; letter-spacing: -0.02em; }
.stat-label { font-size: 0.85rem; color: var(--muted); letter-spacing: 0; margin-top: 8px; }

/* ── SECTION BASE ─────────────────────────────────────────── */
.section { padding: 130px 32px; max-width: 1120px; margin: 0 auto; }
.section.tight-top { padding-top: 90px; }
.section-alt { background: var(--bg-soft); }
section.section-alt { max-width: none; padding-left: 0; padding-right: 0; }
section.section-alt > * { max-width: 1120px; margin-left: auto; margin-right: auto; padding-left: 32px; padding-right: 32px; }

.section-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-title {
  font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.section-sub { font-size: 1.08rem; color: var(--muted); max-width: 600px; margin-top: 16px; line-height: 1.6; }
.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin: 16px auto 0; max-width: 480px; }

/* ── VALUES / PILLARS ─────────────────────────────────────── */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 48px; }
.value-card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 32px 28px; transition: box-shadow 0.25s, transform 0.25s; }
.value-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.value-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 22px;
}
.value-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.value-card p { font-size: 0.94rem; color: var(--muted); }

/* ── BUSINESS VERTICALS / SERVICES ───────────────────────── */
.verticals-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 48px; }
/* solutions.html detail rows: icon column beside heading, stacks on small screens */
.solution-row { grid-template-columns: 90px 1fr; align-items: start; }
@media (max-width: 640px) {
  .solution-row { grid-template-columns: 1fr; gap: 20px; }
}

/* solutions.html feature layout: text beside a supporting photo, alternating sides */
.solution-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-top: 48px; }
.solution-feature-media { order: 2; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; background: var(--bg-soft); border: 1px solid var(--line-soft); box-shadow: var(--shadow); }
.solution-feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s cubic-bezier(0.16,1,0.3,1); }
.solution-feature-media:hover img { transform: scale(1.04); }
.solution-feature.reverse .solution-feature-media { order: -1; }
/* solution heading: icon sits inline with the solution name, name reads bigger than the tagline */
.solution-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.solution-heading-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s cubic-bezier(0.16,1,0.3,1), background 0.3s ease, border-color 0.3s ease;
}
.solution-heading-icon img { width: 28px; height: 28px; display: block; }
.solution-heading:hover .solution-heading-icon { transform: scale(1.08) rotate(-4deg); background: #fff; border-color: var(--accent); box-shadow: 0 8px 20px rgba(4,95,234,0.18); }
.solution-name {
  font-weight: 700;
  font-size: clamp(1.7rem, 2.8vw, 2.25rem);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.solution-tagline {
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.005em;
  line-height: 1.4;
  margin-bottom: 4px;
}
@media (max-width: 860px) {
  .solution-feature { grid-template-columns: 1fr; gap: 32px; }
  .solution-feature.reverse .solution-feature-media { order: 2; }
}
@media (max-width: 480px) {
  .solution-name { font-size: 1.5rem; }
}
.vertical-card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 34px; position: relative; transition: box-shadow 0.25s, transform 0.25s; }
.vertical-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.vertical-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.vertical-icon img { width: 30px; height: 30px; display: block; }
.vertical-card h3 { font-size: 1.16rem; margin-bottom: 10px; }
.vertical-card p { font-size: 0.95rem; color: var(--muted); margin-bottom: 18px; }
.vertical-link { font-weight: 500; font-size: 0.9rem; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; transition: gap 0.2s; }
.vertical-link:hover { gap: 10px; }
.vertical-card .service-tag { display: block; margin-top: 16px; font-size: 0.78rem; font-weight: 400; color: var(--muted-2); }

/* ── INDUSTRIES GRID ──────────────────────────────────────── */
.industries-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 48px; }
.industry-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 24px 22px;
  min-height: 100px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: box-shadow 0.25s, transform 0.25s;
}
.industry-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.industry-card .ind-icon { font-size: 0.78rem; color: var(--muted-2); }
.industry-card .ind-name { font-weight: 600; font-size: 1.02rem; color: var(--ink); }

/* ── CASE STUDIES / PROJECTS ─────────────────────────────── */
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin-top: 48px; }
.case-card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case-thumb { aspect-ratio: 3/2; background: var(--bg-soft); display: flex; align-items: center; justify-content: space-between; position: relative; padding: 16px 18px; }
.case-thumb .case-index { color: var(--muted-2); font-size: 0.82rem; align-self: flex-start; }
.case-thumb .thumb-note { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); font-size: 0.7rem; color: var(--muted-2); text-align: center; line-height: 1.4; white-space: nowrap; }
.case-badge { background: #fff; border: 1px solid var(--line-soft); color: var(--muted); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; padding: 4px 10px; border-radius: 100px; align-self: flex-start; }
.case-body { padding: 26px 28px 30px; }
.case-tag { font-size: 0.78rem; font-weight: 600; color: var(--accent); margin-bottom: 10px; display: block; }
.case-body h3 { font-size: 1.12rem; margin-bottom: 10px; }
.case-body p { font-size: 0.94rem; color: var(--muted); margin-bottom: 14px; }
.case-link { font-weight: 500; font-size: 0.88rem; color: var(--accent); }
.case-meta { font-size: 0.85rem; color: var(--muted-2); border-top: 1px solid var(--line-soft); padding-top: 14px; margin-top: 4px; }

.project-stack { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.stack-tag { font-size: 0.76rem; color: var(--ink); background: var(--bg-soft); border: 1px solid var(--line-soft); padding: 4px 10px; border-radius: 100px; }
.project-links { display: flex; gap: 18px; margin-top: 16px; }
.project-links a { font-size: 0.88rem; font-weight: 500; color: var(--accent); }

/* ── TECH / ARTICLES ──────────────────────────────────────── */
.article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin-top: 48px; }
.article-card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 30px 28px; transition: transform 0.25s, box-shadow 0.25s; display: flex; flex-direction: column; }
.article-thumb { aspect-ratio: 16/9; margin: -30px -28px 22px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: var(--bg-soft); }
.article-thumb .photo-frame { border-radius: var(--radius) var(--radius) 0 0; font-size: 0.72rem; padding: 16px; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.article-meta { display: flex; align-items: center; gap: 12px; font-size: 0.82rem; color: var(--muted-2); margin-bottom: 16px; }
.article-meta .cat { color: var(--accent); font-weight: 600; }
.article-card h3 { font-size: 1.14rem; margin-bottom: 10px; }
.article-card p { font-size: 0.94rem; color: var(--muted); margin-bottom: 18px; flex-grow: 1; }
.article-read { font-size: 0.88rem; font-weight: 500; color: var(--accent); }
.article-featured {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  background: var(--bg-soft); color: var(--ink); border-radius: var(--radius-lg); padding: 46px; margin-top: 48px;
}
.article-featured .article-meta .cat { color: var(--accent); }
.article-featured h3 { font-size: 1.6rem; margin-bottom: 14px; }
.article-featured p { color: var(--muted); margin-bottom: 20px; }
.tag-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.tag-pill { font-size: 0.85rem; color: var(--muted); border: 1px solid var(--line); padding: 7px 16px; border-radius: 100px; transition: border-color 0.2s, color 0.2s, background 0.2s; }
.tag-pill:hover, .tag-pill.active { border-color: var(--ink); color: #fff; background: var(--ink); }

/* ── CLIENT LOGOS ─────────────────────────────────────────── */
.logo-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin-top: 48px; }
.logo-box { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); height: 76px; display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: 0.8rem; letter-spacing: 0; color: var(--muted-2); text-align: center; padding: 8px; }

/* ── TESTIMONIALS ─────────────────────────────────────────── */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 48px; }
.testimonial-card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 32px; }
.testimonial-card .quote-mark { font-size: 2rem; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.testimonial-card p.quote { font-size: 0.98rem; color: var(--ink); margin-bottom: 22px; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--bg-soft); border: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--accent); font-size: 0.85rem; }
.testimonial-person strong { font-size: 0.94rem; color: var(--ink); display: block; }
.testimonial-person span { font-size: 0.85rem; color: var(--muted); }
.placeholder-note { margin-top: 34px; font-size: 0.88rem; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 16px 20px; background: var(--bg-soft); }
section.section-alt .placeholder-note { background: #fff; }

/* ── WHY / DIFFERENTIATORS GRID ──────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 48px; }
.why-cell { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 34px 30px; transition: box-shadow 0.25s, transform 0.25s; }
.why-cell:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.why-num { margin-bottom: 16px; }
.why-num img { width: 44px; height: 44px; display: block; border-radius: 10px; transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s ease; }
.why-cell:hover .why-num img { transform: scale(1.08) rotate(-4deg); box-shadow: 0 8px 20px rgba(4,95,234,0.22); }
.why-cell h3 { font-size: 1.05rem; margin-bottom: 8px; }
.why-cell p { font-size: 0.92rem; color: var(--muted); }

/* ── KODA PILLARS + BIO (about page) ─────────────────────── */
.pillars-card { background: var(--bg-soft); color: var(--ink); border-radius: var(--radius-lg); padding: 44px; }
.pillars-grid { display: grid; gap: 24px; margin-top: 26px; }
.pillar-row { display: flex; gap: 18px; align-items: flex-start; }
.pillar-letter { font-weight: 700; font-size: 1.4rem; color: var(--accent); line-height: 1; min-width: 32px; }
.pillar-row strong { font-size: 1.02rem; color: var(--ink); display: block; margin-bottom: 4px; }
.pillar-row p { font-size: 0.92rem; color: var(--muted); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.pillar-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pillar-tag { background: var(--bg-soft); border: 1px solid var(--line-soft); color: var(--muted); font-size: 0.85rem; font-weight: 400; padding: 8px 16px; border-radius: 100px; display: inline-block; transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), background 0.25s ease, border-color 0.25s ease, color 0.25s ease; }
.pillar-tag:hover { transform: translateY(-2px); background: #fff; border-color: var(--accent); color: var(--accent); }

.bio-card { display: grid; grid-template-columns: 220px 1fr; gap: 44px; align-items: center; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 44px; margin-top: 48px; }
.bio-photo { width: 220px; height: 220px; border-radius: 50%; background: var(--bg-soft); border: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: center; color: var(--muted-2); font-size: 0.78rem; text-align: center; letter-spacing: 0; padding: 16px; }
.bio-name { font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.bio-role { font-size: 0.92rem; color: var(--accent); margin: 6px 0 16px; font-weight: 500; }
.bio-links { display: flex; gap: 20px; margin-top: 18px; }
.bio-links a { font-size: 0.9rem; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.bio-links a:hover { color: var(--accent); border-color: var(--accent); }

/* ── CONTACT SECTION ──────────────────────────────────────── */
.contact-cta { background: var(--bg-soft); color: var(--ink); position: relative; overflow: hidden; }
.contact-cta::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 800px; height: 800px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 50% 50%, rgba(9,196,249,0.12), rgba(4,95,234,0.05) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: heroDrift 16s ease-in-out infinite alternate;
}
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: start; }
.contact-cta .section-label { color: var(--accent); }
.benefits-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0 36px; }
.benefits-list li { font-size: 0.95rem; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.benefits-list li::before { content: '›'; color: var(--accent); font-weight: 700; }
.steps { display: flex; flex-direction: column; gap: 20px; }
.step-row { display: flex; gap: 16px; align-items: flex-start; }
.step-num { flex-shrink: 0; }
.step-num img { width: 34px; height: 34px; display: block; border-radius: 9px; transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s ease; }
.step-row:hover .step-num img { transform: scale(1.1); box-shadow: 0 6px 16px rgba(4,95,234,0.22); }
.step-row p { font-size: 0.92rem; color: var(--muted); padding-top: 4px; }
.step-row strong { color: var(--ink); }

/* contact form card */
.contact-form-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 44px 40px 40px;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  box-shadow: 0 50px 90px -20px rgba(4,95,234,0.22), 0 10px 30px rgba(4,95,234,0.08);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s cubic-bezier(0.16,1,0.3,1);
}
.contact-form-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.contact-form-card:hover { transform: translateY(-6px); box-shadow: 0 60px 100px -18px rgba(4,95,234,0.28), 0 14px 34px rgba(4,95,234,0.1); }
.contact-form-card .form-title { font-weight: 700; font-size: 1.2rem; color: var(--ink); margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.01em; color: var(--muted); margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 15px;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23045fea'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(4,95,234,0.12); background: #fff; }
.form-group textarea { resize: vertical; min-height: 110px; }
.submit-btn { width: 100%; justify-content: center; background: var(--ink); color: #fff; margin-top: 6px; }
.submit-btn:hover { background: var(--accent); }
.submit-btn svg { width: 18px; height: 18px; }
.consent-note { font-size: 0.8rem; color: var(--muted); margin-top: 14px; }

/* contact page detail rows */
.contact-detail { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; padding: 20px 24px; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.contact-detail .ico { font-size: 0.8rem; color: var(--accent); width: 32px; font-weight: 600; }
.contact-detail strong { display: block; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 3px; }
.contact-detail a, .contact-detail span.value { font-size: 0.98rem; color: var(--ink); font-weight: 600; }

/* ── FOOTER ───────────────────────────────────────────────── */
footer.site-footer { background: var(--bg-soft) url("pattern-tech-grid.svg") repeat; background-size: 200px 200px; color: var(--muted); padding: 64px 32px 24px; border-top: 1px solid var(--line-soft); }
.footer-inner { max-width: 1120px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 50px; padding-bottom: 40px; border-bottom: 1px solid var(--line-soft); }
.footer-brand .brand { color: var(--ink); margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; color: var(--muted); max-width: 280px; }
.footer-col h4 { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.01em; color: var(--ink); margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul li a { font-size: 0.9rem; color: var(--muted); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--ink); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 0.75rem; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.footer-social a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 0.82rem; color: var(--muted-2); }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--ink); }

/* ── LIVE CONTENT SYNC (Medium / YouTube embeds) ─────────── */
.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 50px 32px;
  text-align: center;
  color: var(--muted);
  background: var(--bg-soft);
  margin-top: 20px;
}
.empty-state strong { display: block; color: var(--ink); font-size: 1.02rem; margin-bottom: 10px; }
.empty-state p { color: var(--muted); font-size: 0.92rem; max-width: 480px; margin: 0 auto 6px; }
.empty-state code {
  background: var(--bg-soft-2);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink);
}
.loading-row { color: var(--muted); font-size: 0.92rem; padding: 30px 0; text-align: center; }
.sync-source {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--muted); margin-top: 4px;
}
.sync-source a { color: var(--accent); font-weight: 500; }

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
}
.video-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* single-project spotlight (reuses article-featured pattern) */
.project-spotlight {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
  background: var(--bg-soft); border-radius: var(--radius-lg); padding: 48px; margin-top: 48px;
}
.project-spotlight .badge-row { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.project-spotlight .badge-row span {
  font-size: 0.76rem; font-weight: 600; color: var(--accent);
  border: 1px solid var(--line); background: #fff; padding: 5px 12px; border-radius: 100px;
}
.project-spotlight h3 { font-size: 1.6rem; margin-bottom: 12px; }
.project-spotlight p { color: var(--muted); margin-bottom: 18px; }

.coming-soon-block {
  text-align: center;
  padding: 56px 32px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--card);
  margin-top: 48px;
}
.coming-soon-block h3 { margin-bottom: 10px; }
.coming-soon-block p { color: var(--muted); max-width: 480px; margin: 0 auto 22px; }
.coming-soon-pill {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent);
  background: rgba(4,95,234,0.08);
  border: 1px solid rgba(4,95,234,0.18);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

/* ── MOBILE ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .stat-item:nth-child(odd) { border-left: none; }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .article-featured, .project-spotlight { grid-template-columns: 1fr; padding: 32px; }
  .bio-card { grid-template-columns: 1fr; text-align: center; }
  .bio-photo { margin: 0 auto; }
  .bio-links { justify-content: center; }
}
@media (max-width: 760px) {
  header.site-header { padding: 0 20px; height: 62px; }
  .site-header .brand img { height: 30px !important; }
  .section { padding: 90px 20px 70px; }
  section.section-alt > * { padding-left: 20px; padding-right: 20px; }
  #hero { padding: 110px 20px 60px; min-height: 76vh; }
  .page-hero { padding: 70px 20px 50px; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .benefits-list { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  footer.site-footer { padding: 56px 20px 24px; }
  .contact-form-card { padding: 26px 20px; }
}

/* Logo image sizing */
.site-header .brand img { height: 38px !important; max-height: none !important; width: auto !important; }

/* ══════════════════════════════════════════════════════════════
   MOTION & INTERACTION LAYER
   Subtle, premium: reveal-on-scroll, header elevation, hover
   polish, animated counters. No bounce, no gimmicks.
   ══════════════════════════════════════════════════════════════ */

/* respect users who'd rather not see motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.03s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.09s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.21s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.27s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.33s; }

/* header gains a soft shadow once the page scrolls */
header.site-header { transition: box-shadow 0.3s ease, background 0.3s ease; }
header.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line-soft), 0 12px 28px rgba(15,23,42,0.06); }

/* nav underline sweep */
nav.main-nav a.nav-link { overflow: hidden; }
nav.main-nav a.nav-link:not(.nav-btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
  background: var(--accent); transition: right 0.3s cubic-bezier(0.16,1,0.3,1);
}
nav.main-nav a.nav-link:not(.nav-btn):hover::after,
nav.main-nav a.nav-link:not(.nav-btn).active::after { right: 0; }

/* button polish: soft glow + lift instead of flat color swap */
.btn-primary, .btn-outline, .submit-btn { transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(4,95,234,0.25); }
.btn-outline:hover { transform: translateY(-2px); }
.submit-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(4,95,234,0.22); }

/* card hover: icon pops to accent color, not just a lift */
.vertical-card, .value-card, .why-cell, .case-card, .article-card { transition: box-shadow 0.3s cubic-bezier(0.16,1,0.3,1), transform 0.3s cubic-bezier(0.16,1,0.3,1); }
.vertical-card:hover .vertical-icon { background: #fff; border-color: var(--accent); box-shadow: 0 6px 18px rgba(4,95,234,0.18); transform: translateY(-2px) scale(1.04); transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease; }
.vertical-icon { transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease; }
.value-card:hover .value-icon { background: var(--accent); transition: background 0.25s ease; }
.value-icon { transition: background 0.25s ease; }
.case-card:hover .case-thumb { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.case-thumb { transition: background 0.35s ease; }
.case-card:hover .case-index, .case-card:hover .case-badge { color: #fff; border-color: rgba(255,255,255,0.4); }
.case-index, .case-badge { transition: color 0.25s ease, border-color 0.25s ease; }

/* animated stat numbers */
.stat-num { font-variant-numeric: tabular-nums; }

/* heroDrift keyframe is shared by the ambient-glow utility and the CTA strip glow below */
@keyframes heroDrift {
  0%   { transform: translateX(-54%) translateY(0) scale(1); }
  100% { transform: translateX(-46%) translateY(20px) scale(1.06); }
}

/* reusable version of the hero's ambient glow, for other prominent sections */
.ambient-glow { position: relative; overflow: hidden; }
.ambient-glow::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 850px; height: 850px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 50% 50%, rgba(9,196,249,0.13), rgba(4,95,234,0.05) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: heroDrift 15s ease-in-out infinite alternate;
}
.ambient-glow > * { position: relative; z-index: 1; }

/* hero visual: gentle entrance + parallax-y tilt on hover */
.hero-visual { transition: transform 0.5s cubic-bezier(0.16,1,0.3,1); }
.hero-visual:hover { transform: translateY(-4px); }

/* section labels get a tiny animated rule to feel less static */
.section-label { position: relative; padding-left: 18px; }
.section-label::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 11px; height: 1.5px; background: var(--accent);
}
/* centered section heads: the left-only dash pulls text off true center, so drop it there */
.section-head.center .section-label { padding-left: 0; display: inline-block; }
.section-head.center .section-label::before { display: none; }

.footer-brand .brand img { height: 26px !important; width: auto !important; }

/* ── SECTION DIVIDER (homepage, between hero and welcome) ─── */
.section-divider { display: flex; align-items: center; justify-content: center; padding: 56px 32px; }
.section-divider::before, .section-divider::after {
  content: "";
  height: 1px;
  width: 100%;
  max-width: 220px;
  background: linear-gradient(90deg, transparent, var(--line));
}
.section-divider::after { background: linear-gradient(90deg, var(--line), transparent); }
.section-divider span {
  flex-shrink: 0;
  width: 9px; height: 9px;
  margin: 0 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 6px rgba(4,95,234,0.08);
  animation: dividerPulse 3s ease-in-out infinite;
}
@keyframes dividerPulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(4,95,234,0.08); }
  50% { box-shadow: 0 0 0 10px rgba(4,95,234,0.14); }
}
@media (max-width: 720px) { .section-divider { padding: 40px 32px; } }

/* ── SUBTLE TECH-DOODLE TEXTURE ON PLAIN SECTIONS ────────── */
.doodle-bg { position: relative; }
.doodle-bg::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background-image: url("pattern-tech-doodles.png");
  background-repeat: repeat;
  background-size: 300px 300px;
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}
.doodle-bg > * { position: relative; z-index: 1; }

/* ── ABOUT STORY PHOTO ────────────────────────────────────── */
.story-photo { width: 100%; height: 240px; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 24px; display: block; }


/* ══════════════════════════════════════════════════════════════
   ACCESSIBILITY + MOBILE NAVIGATION
   ══════════════════════════════════════════════════════════════ */
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px;
  border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.btn-primary:focus-visible, .btn-outline:focus-visible, .nav-btn:focus-visible, .submit-btn:focus-visible { outline-offset: 3px; border-radius: 980px; }
.form-group input:focus-visible, .form-group textarea:focus-visible, .form-group select:focus-visible { outline: none; }

.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 11px; margin-right: -11px;
    background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span {
    display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  nav.main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 20px 40px rgba(15,23,42,0.08);
    padding: 8px 20px 20px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }
  nav.main-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  nav.main-nav a.nav-link:not(.nav-btn) {
    font-size: 1.05rem; color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line-soft);
  }
  nav.main-nav a.nav-link:not(.nav-btn)::after { display: none; }
  nav.main-nav a.nav-link.active { color: var(--accent); }
  nav.main-nav a.nav-btn { margin-top: 16px; text-align: center; padding: 13px 18px; }
}


/* ══════════════════════════════════════════════════════════════
   HERO ANIMATION: slow-motion solution card deck
   Card positions are set by JS every frame (continuous drift).
   ══════════════════════════════════════════════════════════════ */
.hero-stage { position: relative; width: 100%; max-width: 600px; margin: 0 auto; justify-self: center; }
.deck { position: relative; height: 460px; perspective: 1400px; }
.deck-card {
  position: absolute; left: 50%; top: 0; width: 300px; height: 430px; margin-left: -150px;
  display: flex; flex-direction: column; padding: 24px; border-radius: 24px;
  background: linear-gradient(160deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 30px 70px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.18);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; will-change: transform, opacity; backface-visibility: hidden;
}
.deck-card:first-child { opacity: 1; }
.deck-card.is-front { box-shadow: 0 40px 90px rgba(4,95,234,0.4), 0 0 0 1px rgba(9,196,249,0.35), inset 0 1px 0 rgba(255,255,255,0.22); }
.deck-num { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em; color: var(--accent-2); margin-bottom: 12px; }
.deck-art {
  height: 138px; border-radius: 16px; margin-bottom: 18px; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(70% 90% at 50% 40%, rgba(9,196,249,0.16), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.1);
}
.deck-art .art { height: 124px; width: auto; overflow: visible; }
.deck-name { font-size: 1.42rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; color: #fff; margin-bottom: 8px; }
.deck-desc { font-size: 0.92rem; line-height: 1.55; color: rgba(255,255,255,0.74); }
.deck-link { margin-top: auto; color: #fff; font-weight: 600; font-size: 0.92rem; display: inline-flex; gap: 8px; align-items: center; }
.deck-link span { transition: transform 0.25s ease; color: var(--accent-2); }
.deck-link:hover span { transform: translateX(4px); }

/* ── illustrated icons (static state = finished picture; animate when card is in front) ── */
.art { --w: #fff; --c: #09c4f9; --b: #4d8dff; }
.art .frame, .art .rule, .art .axis, .art .head, .art .ring, .art .sh, .art .inner, .art .body, .art .orbit { fill: none; stroke-linecap: round; stroke-linejoin: round; }
/* gears */
.art-gears .teeth { fill: none; stroke: var(--w); stroke-width: 6; opacity: 0.9; }
.art-gears .body { fill: rgba(77,141,255,0.35); stroke: var(--w); stroke-width: 2; }
.art-gears .hole { fill: #0a1124; stroke: var(--c); stroke-width: 2; }
.art-gears .g-small .body { fill: rgba(9,196,249,0.3); }
.art .spark { fill: var(--c); transform-box: fill-box; transform-origin: center; }
/* web */
.art-web .frame { stroke: var(--w); stroke-width: 2.5; fill: rgba(255,255,255,0.06); }
.art-web .rule { stroke: rgba(255,255,255,0.4); stroke-width: 1.5; }
.art-web .dot { fill: var(--c); } .art-web .dot.d2 { fill: var(--b); } .art-web .dot.d3 { fill: var(--w); }
.art-web .ln { fill: var(--b); transform-box: fill-box; transform-origin: left center; }
.art-web .l2, .art-web .l4 { fill: var(--c); }
.art-web .cursor { fill: var(--w); }
.art-web .tag { fill: var(--c); transform-box: fill-box; transform-origin: center; }
/* data */
.art-data .axis { stroke: rgba(255,255,255,0.45); stroke-width: 2; }
.art-data .bar { fill: var(--b); opacity: 0.85; transform-box: fill-box; transform-origin: bottom; }
.art-data .bar.b2, .art-data .bar.b4 { fill: var(--c); }
.art-data .trend { fill: none; stroke: var(--w); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; }
.art-data .pt { fill: #0a1124; stroke: var(--w); stroke-width: 2; transform-box: fill-box; transform-origin: center; }
/* contact center */
.art-call .body { fill: rgba(255,255,255,0.12); stroke: var(--w); stroke-width: 2.5; }
.art-call .head { fill: rgba(255,255,255,0.18); stroke: var(--w); stroke-width: 2.5; }
.art-call .band { fill: none; stroke: var(--c); stroke-width: 4; stroke-linecap: round; }
.art-call .cup { fill: var(--c); }
.art-call .mic { fill: none; stroke: var(--c); stroke-width: 3; stroke-linecap: round; }
.art-call .micdot { fill: var(--w); }
.art-call .bub rect, .art-call .bub path { fill: #fff; }
.art-call .bub2 rect:first-child, .art-call .bub2 path { fill: var(--c); }
.art-call .td { fill: var(--b); } .art-call .tx { fill: #0a1124; opacity: 0.7; }
.art-call .bub { transform-box: view-box; }
/* security */
.art-shield .sh { fill: rgba(77,141,255,0.28); stroke: var(--w); stroke-width: 3; }
.art-shield .inner { stroke: rgba(9,196,249,0.55); stroke-width: 1.8; }
.art-shield .check { fill: none; stroke: var(--c); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; }
.art-shield .ring { stroke: var(--c); stroke-width: 2; opacity: 0; transform-origin: 60px 52px; }
/* ai */

/* animations: only the front card plays them */
.deck-card.is-front .g-big { animation: spinCW 14s linear infinite; }
.deck-card.is-front .g-small { animation: spinCCW 10.5s linear infinite; }
.deck-card.is-front .spark.s1 { animation: twinkle 2.6s ease-in-out infinite; }
.deck-card.is-front .spark.s2 { animation: twinkle 2.6s ease-in-out 1.1s infinite; }
.deck-card.is-front .spark.s3 { animation: twinkle 2.6s ease-in-out 1.8s infinite; }
@keyframes spinCW { to { transform: rotate(360deg); } }
@keyframes spinCCW { to { transform: rotate(-360deg); } }
@keyframes twinkle { 0%,100% { transform: scale(0.2); opacity: 0.2; } 50% { transform: scale(1.15); opacity: 1; } }

.deck-card.is-front .art-web .ln { animation: typeLine 5s ease-in-out infinite; }
.deck-card.is-front .art-web .l2 { animation-delay: 0.5s; } .deck-card.is-front .art-web .l3 { animation-delay: 1s; } .deck-card.is-front .art-web .l4 { animation-delay: 1.5s; }
.deck-card.is-front .art-web .cursor { animation: blink 0.9s steps(2) infinite; }
.deck-card.is-front .art-web .tag { animation: popTag 5s ease-in-out infinite; }
@keyframes typeLine { 0% { transform: scaleX(0); } 22%,82% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes popTag { 0%,40% { transform: scale(0); opacity: 0; } 55%,82% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(0); opacity: 0; } }

.deck-card.is-front .art-data .bar { animation: growBar 5s cubic-bezier(0.16,1,0.3,1) infinite; }
.deck-card.is-front .art-data .b2 { animation-delay: 0.2s; } .deck-card.is-front .art-data .b3 { animation-delay: 0.4s; } .deck-card.is-front .art-data .b4 { animation-delay: 0.6s; }
.deck-card.is-front .art-data .trend { animation: drawLine 5s ease-in-out infinite; }
.deck-card.is-front .art-data .pt { animation: popPt 5s ease-in-out infinite; }
.deck-card.is-front .art-data .p2 { animation-delay: 0.3s; } .deck-card.is-front .art-data .p3 { animation-delay: 0.6s; } .deck-card.is-front .art-data .p4 { animation-delay: 0.9s; } .deck-card.is-front .art-data .p5 { animation-delay: 1.2s; }
@keyframes growBar { 0% { transform: scaleY(0); } 25%,85% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
@keyframes drawLine { 0%,10% { stroke-dashoffset: 100; } 45%,85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -100; } }
@keyframes popPt { 0%,25% { transform: scale(0); } 40%,85% { transform: scale(1); } 100% { transform: scale(0); } }

.deck-card.is-front .art-call .bub1 { animation: popBub 5s cubic-bezier(0.34,1.56,0.64,1) infinite; }
.deck-card.is-front .art-call .bub2 { animation: popBub 5s cubic-bezier(0.34,1.56,0.64,1) 1.1s infinite; }
.deck-card.is-front .art-call .td { animation: typing 1.1s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.deck-card.is-front .art-call .t2 { animation-delay: 0.18s; } .deck-card.is-front .art-call .t3 { animation-delay: 0.36s; }
.deck-card.is-front .art-call .band, .deck-card.is-front .art-call .cup { animation: headsetGlow 2.5s ease-in-out infinite; }
@keyframes popBub { 0% { transform: scale(0); opacity: 0; } 10%,70% { transform: scale(1); opacity: 1; } 85%,100% { transform: scale(0); opacity: 0; } }
@keyframes typing { 0%,100% { transform: translateY(0); opacity: 0.5; } 40% { transform: translateY(-2.5px); opacity: 1; } }
@keyframes headsetGlow { 50% { opacity: 0.55; } }

.deck-card.is-front .art-shield .shield { animation: shieldPower 2.4s ease-in-out infinite; transform-origin: 60px 52px; }
.deck-card.is-front .art-shield .ring { animation: ringOut 2.4s ease-out infinite; }
.deck-card.is-front .art-shield .r2 { animation-delay: 1.2s; }
.deck-card.is-front .art-shield .check { animation: drawCheck 2.4s ease-in-out infinite; }
@keyframes shieldPower { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.art-shield .glow { fill: rgba(9,196,249,0.35); opacity: 0; transform-origin: 60px 52px; }
.deck-card.is-front .art-shield .glow { animation: shieldGlow 2.4s ease-in-out infinite; }
@keyframes shieldGlow { 0%,100% { transform: scale(1); opacity: 0.1; } 50% { transform: scale(1.22); opacity: 0.75; } }
@keyframes ringOut { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes drawCheck { 0% { stroke-dashoffset: 100; } 35%,100% { stroke-dashoffset: 0; } }


/* user pressed pause: freeze every illustrated animation too */
.hero-stage.is-user-paused .deck-art * { animation-play-state: paused !important; }

.deck-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 14px; }
.deck-arrow, .deck-pause {
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1rem; color: #fff;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.22); transition: background 0.2s, border-color 0.2s;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.deck-arrow:hover, .deck-pause:hover { background: rgba(255,255,255,0.18); border-color: var(--accent-2); }
.deck-pause { margin-left: 6px; background: rgba(9,196,249,0.16); border-color: rgba(9,196,249,0.5); }
.deck-pause svg { fill: #fff; }
.deck-pause .i-play { display: none; }
.deck-pause[aria-pressed="true"] .i-play { display: block; }
.deck-pause[aria-pressed="true"] .i-pause { display: none; }
.deck-dots { display: flex; gap: 8px; }
.deck-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 8px; background: rgba(255,255,255,0.3); cursor: pointer; transition: width 0.4s cubic-bezier(0.16,1,0.3,1), background 0.3s; }
.deck-dot.is-active { width: 30px; background: var(--accent-2); }

@media (max-width: 960px) {
  #hero { padding: 100px 20px 56px; min-height: 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-grid { max-width: 100%; }
  .deck { height: 420px; }
  .deck-card { width: 256px; height: 396px; margin-left: -128px; padding: 20px; }
  .deck-art { height: 116px; margin-bottom: 14px; }
  .deck-art .art { height: 104px; }
  .deck-name { font-size: 1.28rem; }
}

/* AI & Automation: neural network with a signal travelling left to right */
.art-ai .cx { stroke: rgba(255,255,255,0.4); stroke-width: 1; stroke-opacity: 0.35; }
.art-ai .nd { fill: var(--b); stroke: var(--w); stroke-width: 1.6; transform-box: fill-box; transform-origin: center; }
.art-ai .nd.n4 { fill: var(--c); stroke: var(--w); stroke-width: 2; }
.art-ai .spark { fill: var(--c); transform-box: fill-box; transform-origin: center; }
.deck-card.is-front .art-ai .nd { animation: nodeWave 3.6s ease-in-out infinite; }
.deck-card.is-front .art-ai .n2 { animation-delay: 0.5s; } .deck-card.is-front .art-ai .n3 { animation-delay: 1s; } .deck-card.is-front .art-ai .n4 { animation-delay: 1.5s; }
.deck-card.is-front .art-ai .cx { animation: lineWave 3.6s ease-in-out infinite; }
.deck-card.is-front .art-ai .c2 { animation-delay: 0.5s; } .deck-card.is-front .art-ai .c3 { animation-delay: 1s; }
.deck-card.is-front .art-ai .spark { animation: twinkle 3.6s ease-in-out 1.5s infinite; }
@keyframes nodeWave { 0%,55%,100% { transform: scale(0.85); opacity: 0.6; } 20% { transform: scale(1.22); opacity: 1; } }
@keyframes lineWave { 0%,55%,100% { stroke-opacity: 0.25; } 20% { stroke-opacity: 0.95; } }

/* hero copy: same type system as the cards (mono kicker, bold sans, muted body) */
.hero-eyebrow { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 20px; }
h1.hero-title { font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 20px; }
.hero-sub { font-size: 1.05rem; line-height: 1.6; color: rgba(255,255,255,0.74); max-width: 460px; margin-bottom: 32px; }
#hero .btn-primary, #hero .btn-outline { font-size: 0.92rem; font-weight: 600; padding: 12px 24px; }


/* ══════════════════════════════════════════════════════════════
   DARK HEADER + HERO (one continuous band) AND COMPACT SPACING
   ══════════════════════════════════════════════════════════════ */
header.site-header { height: 64px; background: rgba(7,11,22,0.9); border-bottom: 1px solid rgba(255,255,255,0.06); }
header.site-header.is-scrolled { box-shadow: 0 14px 34px rgba(0,0,0,0.35); border-bottom-color: rgba(255,255,255,0.1); }
.site-header .brand img { height: 32px !important; }
nav.main-nav { gap: 26px; }
nav.main-nav a.nav-link { color: rgba(255,255,255,0.72); font-size: 0.85rem; }
nav.main-nav a.nav-link:hover, nav.main-nav a.nav-link.active { color: #fff; }
nav.main-nav a.nav-link:not(.nav-btn)::after { background: var(--accent-2); }
.nav-btn { background: linear-gradient(90deg, var(--accent), var(--accent-2)) !important; padding: 8px 18px; }
.nav-btn:hover { filter: brightness(1.1); background: linear-gradient(90deg, var(--accent), var(--accent-2)) !important; }
.nav-toggle span { background: #fff; }
:focus-visible { outline-color: var(--accent-2); }
header.site-header :focus-visible { outline-color: #fff; }

.page-hero {
  background:
    radial-gradient(55% 90% at 80% 0%, rgba(4,95,234,0.35), transparent 70%),
    radial-gradient(40% 70% at 5% 100%, rgba(9,196,249,0.14), transparent 70%),
    linear-gradient(180deg, #070b16, #0a1124);
  color: #fff; padding: 56px 32px 52px; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 100% at 50% 0%, #000, transparent 85%); mask-image: radial-gradient(70% 100% at 50% 0%, #000, transparent 85%);
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero .crumb { font-family: var(--font-mono); color: var(--accent-2); letter-spacing: 0.14em; margin-bottom: 14px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3rem); }
.page-hero p { color: rgba(255,255,255,0.74); font-size: 1.08rem; margin-top: 14px; }

#hero { min-height: 0; padding: 72px 32px 72px; }
.stats-strip { padding: 0 32px 40px; }
.stats-bar { padding-top: 32px; }

.section { padding: 84px 32px; }
.section.tight-top { padding-top: 56px; }
.section-head { margin-bottom: 40px; }
.section-title { font-size: clamp(1.7rem, 3vw, 2.25rem); }
.section-sub { font-size: 1.02rem; margin-top: 12px; }
.section-divider { padding: 36px 32px; }
.solution-feature { margin-top: 32px; gap: 48px; }
.contact-cta { padding-top: 64px !important; padding-bottom: 64px !important; }
footer.site-footer { padding: 48px 32px 20px; }
.vertical-card { padding: 28px; } .why-cell { padding: 28px 26px; } .value-card { padding: 28px 24px; }

@media (max-width: 960px) {
  #hero { padding: 48px 20px 44px; }
}
@media (max-width: 760px) {
  header.site-header { height: 58px; }
  nav.main-nav { background: rgba(7,11,22,0.98); border-bottom: 1px solid rgba(255,255,255,0.1); }
  nav.main-nav a.nav-link:not(.nav-btn) { color: #fff; border-bottom-color: rgba(255,255,255,0.1); }
  nav.main-nav a.nav-link.active { color: var(--accent-2); }
  .section { padding: 56px 20px 44px; }
  .page-hero { padding: 40px 20px 36px; }
  footer.site-footer { padding: 40px 20px 20px; }
}

/* ── PROJECT CARDS + DETAIL MODAL ─────────────────────────── */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.project-card {
  display: flex; flex-direction: column; text-align: left; font-family: var(--font); cursor: pointer; padding: 0;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); overflow: hidden; color: var(--ink);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.project-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(4,95,234,0.16); border-color: rgba(4,95,234,0.35); }
.pc-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #070b16; }
.pc-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.project-card:hover .pc-thumb img { transform: scale(1.05); }
.pc-badge { position: absolute; left: 14px; top: 14px; background: rgba(7,11,22,0.8); color: #fff; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 5px 11px; border-radius: 100px; border: 1px solid rgba(255,255,255,0.2); }
.pc-body { display: flex; flex-direction: column; gap: 8px; padding: 24px 26px 26px; }
.pc-name { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.pc-use { color: var(--muted); font-size: 0.98rem; line-height: 1.55; }
.pc-more { margin-top: 6px; color: var(--accent); font-weight: 600; font-size: 0.92rem; }
.pc-more span { display: inline-block; transition: transform 0.25s ease; }
.project-card:hover .pc-more span { transform: translateX(5px); }

.modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5,8,16,0.0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transition: background 0.5s ease, backdrop-filter 0.5s ease, -webkit-backdrop-filter 0.5s ease; }
.modal.is-open .modal-backdrop { background: rgba(5,8,16,0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.modal-panel {
  position: relative; width: 100%; max-width: 1000px; max-height: calc(100vh - 48px); overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border-radius: 26px; box-shadow: 0 50px 120px rgba(0,0,0,0.5);
  opacity: 0; transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(var(--s, 0.9));
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1), opacity 0.35s ease;
}
.modal.is-open .modal-panel { opacity: 1; transform: none; }
.modal-panel:focus { outline: none; }
.modal-close { position: sticky; top: 14px; float: right; margin: 14px 14px -54px 0; z-index: 5; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); background: rgba(7,11,22,0.7); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; transition: transform 0.25s ease, background 0.2s; }
.modal-close:hover { transform: rotate(90deg); background: var(--accent); }
.m-anim { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.modal.is-open .m-anim { opacity: 1; transform: none; }
.m-head { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center; padding: 48px 44px 40px; color: #fff; background: radial-gradient(60% 90% at 85% 0%, rgba(4,95,234,0.45), transparent 70%), linear-gradient(180deg, #070b16, #0a1124); }
.m-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.m-tags span { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-2); border: 1px solid rgba(9,196,249,0.4); padding: 4px 10px; border-radius: 100px; }
.m-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.03em; color: #fff; }
.m-tagline { color: rgba(255,255,255,0.78); font-size: 1.05rem; margin-top: 12px; line-height: 1.55; }
.m-media img { width: 100%; border-radius: 14px; border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 24px 60px rgba(0,0,0,0.5); display: block; }
.m-shots { display: flex; gap: 8px; }
.m-shots img { width: 33.33%; min-width: 0; height: 230px; object-fit: cover; object-position: top center; border-radius: 10px; }
.m-body { padding: 40px 44px 44px; display: grid; gap: 34px; }
.m-body h3 { font-size: 0.8rem; font-family: var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.m-body p { font-size: 1rem; line-height: 1.7; color: var(--ink); }
.m-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.m-steps { list-style: none; display: grid; gap: 14px; counter-reset: s; }
.m-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 16px; padding: 16px 18px; background: var(--bg-soft); border-radius: 14px; border: 1px solid var(--line-soft); }
.step-n { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 700; font-size: 0.9rem; }
.m-steps strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.m-steps p { font-size: 0.93rem; color: var(--muted); line-height: 1.6; }
.m-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.m-list li { position: relative; padding-left: 22px; font-size: 0.95rem; line-height: 1.55; color: var(--ink); }
.m-list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.m-apply { background: linear-gradient(135deg, rgba(4,95,234,0.07), rgba(9,196,249,0.1)); border: 1px solid rgba(4,95,234,0.18); border-radius: 16px; padding: 22px 26px; }
.m-foot { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
body.modal-open { overflow: hidden; }
@media (max-width: 760px) {
  .modal { padding: 0; align-items: flex-end; }
  .modal-panel { max-height: 94vh; border-radius: 22px 22px 0 0; }
  .m-head { grid-template-columns: 1fr; padding: 56px 22px 28px; gap: 22px; }
  .m-body { padding: 28px 22px 32px; }
  .m-cols, .m-list { grid-template-columns: 1fr; }
  .m-shots img { height: 170px; }
}
@media (prefers-reduced-motion: reduce) {
  .modal-panel { transform: none !important; transition: opacity 0.2s ease; }
  .m-anim { transform: none; transition: opacity 0.2s ease; }
}

/* ══════════════════════════════════════════════════════════════
   HOMEPAGE SECTIONS BELOW THE HERO
   ══════════════════════════════════════════════════════════════ */
.home-sec { padding: 64px 32px; background: var(--bg); }
.home-sec-soft { background: var(--bg-soft); }
.home-wrap { max-width: 1120px; margin: 0 auto; }
.home-head { max-width: 640px; margin-bottom: 36px; }
.eyebrow { display: block; font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.home-head h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); line-height: 1.2; letter-spacing: -0.025em; font-weight: 700; color: var(--ink); }
.home-head p { margin-top: 10px; color: var(--muted); font-size: 1rem; line-height: 1.6; }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc { position: relative; display: block; padding: 28px 26px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); transition: background 0.3s ease; }
.svc:hover { background: var(--bg-soft); }
.svc img { margin-bottom: 18px; transition: transform 0.35s cubic-bezier(0.16,1,0.3,1); }
.svc:hover img { transform: translateY(-3px); }
.svc h3 { font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.svc p { font-size: 0.93rem; color: var(--muted); line-height: 1.55; max-width: 30ch; }
.svc-go { position: absolute; right: 22px; top: 26px; color: var(--accent); opacity: 0; transform: translateX(-6px); transition: opacity 0.3s, transform 0.3s; }
.svc:hover .svc-go, .svc:focus-visible .svc-go { opacity: 1; transform: none; }

.proc { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: p; }
.proc li { position: relative; padding: 24px 24px 0 0; border-top: 2px solid var(--line); }
.proc li::before { content: ""; position: absolute; left: 0; top: -2px; width: 36px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.proc-n { display: block; font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent); letter-spacing: 0.08em; margin-bottom: 10px; }
.proc h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.proc p { font-size: 0.93rem; color: var(--muted); line-height: 1.55; max-width: 26ch; }

.home-sec-dark { position: relative; overflow: hidden; background: radial-gradient(50% 120% at 90% 0%, rgba(4,95,234,0.32), transparent 70%), linear-gradient(180deg, #070b16, #0a1124); color: #fff; }
.home-sec-dark .eyebrow { color: var(--accent-2); }
.home-sec-dark .home-head h2 { color: #fff; }
.home-sec-dark .home-head p { color: rgba(255,255,255,0.7); }
.pr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,0.14); }
.pr { padding: 26px 24px 0 0; }
.pr + .pr { padding-left: 24px; border-left: 1px solid rgba(255,255,255,0.1); }
.pr-l { display: block; font-size: 2.6rem; font-weight: 700; line-height: 1; letter-spacing: -0.04em; background: linear-gradient(135deg, var(--accent-2), #6aa6ff); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 14px; }
.pr h3 { font-size: 1.05rem; font-weight: 600; color: #fff; margin-bottom: 6px; }
.pr p { font-size: 0.92rem; color: rgba(255,255,255,0.68); line-height: 1.55; }

.home-cta { padding: 52px 32px; background: var(--bg); border-bottom: 1px solid var(--line-soft); }
.home-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.home-cta h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); letter-spacing: -0.025em; font-weight: 700; }
.home-cta p { margin-top: 6px; color: var(--muted); font-size: 1rem; }
.home-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .proc, .pr-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .pr:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 640px) {
  .home-sec { padding: 48px 20px; }
  .home-cta { padding: 40px 20px; }
  .svc-grid, .proc, .pr-grid { grid-template-columns: 1fr; }
  .proc li { padding-right: 0; }
  .pr, .pr + .pr { padding: 22px 0 0; border-left: 0; }
  .pr + .pr { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 22px; }
  .svc-go { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════════════════════
   TYPE SCALE (headings) + DARK FOOTER
   ══════════════════════════════════════════════════════════════ */
h1.hero-title { font-size: clamp(2.6rem, 5vw, 4rem); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); }
.page-hero p { font-size: 1.15rem; }
.section-title { font-size: clamp(2rem, 3.6vw, 2.7rem); }
.section-sub { font-size: 1.08rem; }
.solution-name { font-size: clamp(1.9rem, 3vw, 2.45rem); }
.solution-tagline { font-size: 1.2rem; }
.project-name, .pc-name { font-size: 1.65rem; }
.deck-name { font-size: 1.5rem; }

.eyebrow { font-size: 0.8rem; }
.home-sec { padding: 72px 32px; }
.home-head { max-width: none; margin-bottom: 40px; }
.home-head h2 { font-size: clamp(2rem, 3.8vw, 2.85rem); }
.home-head p { font-size: 1.1rem; max-width: none; }
.svc h3 { font-size: 1.22rem; } .svc p { font-size: 1rem; max-width: 32ch; }
.proc h3 { font-size: 1.28rem; } .proc p { font-size: 1rem; max-width: 28ch; }
.pr-l { font-size: 3.2rem; } .pr h3 { font-size: 1.22rem; } .pr p { font-size: 0.98rem; }
.home-cta h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); }
.home-cta p { font-size: 1.08rem; }
@media (min-width: 961px) { .home-head h2, .home-head p { white-space: nowrap; } }
@media (max-width: 640px) { .home-sec { padding: 52px 20px; } }

footer.site-footer {
  background: radial-gradient(50% 140% at 90% 0%, rgba(4,95,234,0.22), transparent 70%), linear-gradient(180deg, #0a1124, #070b16);
  border-top: 1px solid rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); padding: 52px 32px 22px;
}
.footer-top { grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand .brand img { height: 30px; width: auto; }
.footer-brand p { color: rgba(255,255,255,0.68); font-size: 0.95rem; max-width: 30ch; line-height: 1.55; }
.footer-mail { display: inline-block; margin-top: 14px; color: #fff; font-size: 0.95rem; font-weight: 500; border-bottom: 1px solid rgba(9,196,249,0.5); transition: border-color 0.2s, color 0.2s; }
.footer-mail:hover { color: var(--accent-2); border-color: var(--accent-2); }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.95rem; color: rgba(255,255,255,0.72); }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { padding-top: 20px; font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.footer-bottom p { font-size: 0.85rem; color: rgba(255,255,255,0.5); }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 760px) { footer.site-footer { padding: 40px 20px 20px; } }

/* ── GUIDES (long-form articles) + HOME TOOLS ROW ───────────── */
.guide-hero h1 { max-width: 860px; }
.guide-body { max-width: 760px; margin: 0 auto; padding: 56px 24px 64px; }
.guide-body p { font-size: 1.08rem; line-height: 1.75; color: var(--ink); margin-bottom: 20px; }
.guide-body h3 { font-size: 1.5rem; letter-spacing: -0.02em; margin: 40px 0 14px; color: var(--ink); }
.guide-body ul, .guide-body ol { margin: 0 0 22px 22px; list-style: revert; }
.guide-body li { font-size: 1.08rem; line-height: 1.7; margin-bottom: 8px; }
.guide-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.guide-card { display: flex; flex-direction: column; gap: 10px; padding: 26px 26px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); transition: background 0.3s ease; }
.guide-card:hover { background: var(--bg-soft); }
.guide-meta { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.guide-card h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.015em; }
.guide-card p { font-size: 0.97rem; color: var(--muted); line-height: 1.55; }
.guide-card .svc-go { position: static; opacity: 1; transform: none; margin-top: auto; font-weight: 600; font-size: 0.92rem; }
.svc-grid-4 { grid-template-columns: repeat(4, 1fr); }
.svc-tag { display: block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
@media (max-width: 960px) { .guide-grid { grid-template-columns: repeat(2, 1fr); } .svc-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .guide-grid, .svc-grid-4 { grid-template-columns: 1fr; } .guide-body { padding: 40px 20px 48px; } }

.home-more { margin-top: 20px; } .home-more a { color: var(--accent); font-weight: 600; font-size: 0.98rem; }

/* ══════════════════════════════════════════════════════════════
   SOLUTIONS PAGE: sticky index rail + editorial panels
   ══════════════════════════════════════════════════════════════ */
.sol-layout { max-width: 1200px; margin: 0 auto; padding: 56px 32px 40px; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; align-items: start; }
.sol-rail { position: sticky; top: 92px; }
.sol-rail-label { display: block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.sol-rail ol { list-style: none; border-left: 1px solid var(--line); }
.sol-rail a { position: relative; display: flex; gap: 12px; align-items: baseline; padding: 10px 0 10px 18px; color: var(--muted); font-size: 0.95rem; line-height: 1.35; transition: color 0.25s ease; }
.sol-rail a span { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted-2); transition: color 0.25s ease; }
.sol-rail a::before { content: ""; position: absolute; left: -1px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); transform: scaleY(0); transition: transform 0.35s cubic-bezier(0.16,1,0.3,1); }
.sol-rail a:hover { color: var(--ink); }
.sol-rail a.is-active { color: var(--ink); font-weight: 600; }
.sol-rail a.is-active span { color: var(--accent); }
.sol-rail a.is-active::before { transform: scaleY(1); }

.sol-panel { padding-bottom: 64px; margin-bottom: 64px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.sol-panel:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.sol-media { position: relative; aspect-ratio: 21 / 9; border-radius: 20px; overflow: hidden; background: #070b16; margin-bottom: 32px; }
.sol-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.sol-panel:hover .sol-media img { transform: scale(1.04); }
.sol-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(7,11,22,0.8)); }
.sol-media figcaption { position: absolute; left: 22px; bottom: 18px; z-index: 1; display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
.sol-chip { font-family: var(--font-mono); font-size: 0.78rem; padding: 4px 10px; border-radius: 100px; background: rgba(9,196,249,0.2); border: 1px solid rgba(9,196,249,0.55); color: var(--accent-2); }
.sol-title { display: flex; align-items: center; gap: 14px; position: relative; }
.sol-title h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); letter-spacing: -0.03em; line-height: 1.12; }
.sol-ghost { margin-left: auto; font-size: 4.6rem; font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px var(--line); user-select: none; }
.sol-tag { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 10px 0 22px; }
.sol-cols { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; }
.sol-body { font-size: 1.05rem; line-height: 1.78; color: #3a3a3f; margin: 0; }
.sol-caps { padding: 22px 24px 24px; background: var(--bg-soft); border-radius: 16px; border: 1px solid var(--line-soft); align-self: start; }
.sol-caps h3 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 8px; font-weight: 500; }
.sol-caps ul { list-style: none; margin-bottom: 18px; }
.sol-caps li { position: relative; padding: 11px 0 11px 22px; border-bottom: 1px solid var(--line); font-size: 0.98rem; font-weight: 500; color: var(--ink); transition: padding-left 0.25s ease, color 0.25s ease; }
.sol-caps li:last-child { border-bottom: 0; }
.sol-caps li::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 2px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); transform: rotate(45deg); }
.sol-caps li:hover { padding-left: 28px; color: var(--accent); }
.sol-cta { font-weight: 600; font-size: 0.95rem; color: var(--accent); }
.sol-cta span { display: inline-block; transition: transform 0.25s ease; }
.sol-cta:hover span { transform: translateX(5px); }

.why-ledger { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.why-row { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.14); }
.why-n { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent-2); padding-top: 4px; }
.why-row h3 { font-size: 1.22rem; color: #fff; margin-bottom: 6px; }
.why-row p { font-size: 0.98rem; line-height: 1.6; color: rgba(255,255,255,0.7); }

@media (max-width: 960px) {
  .sol-layout { grid-template-columns: 1fr; gap: 0; padding: 0 20px 24px; }
  .sol-rail { position: sticky; top: 58px; z-index: 40; margin: 0 -20px 28px; padding: 10px 20px; background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--line-soft); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .sol-rail-label { display: none; }
  .sol-rail ol { display: flex; gap: 8px; overflow-x: auto; border-left: 0; scrollbar-width: none; }
  .sol-rail a { white-space: nowrap; padding: 8px 14px; border: 1px solid var(--line); border-radius: 100px; font-size: 0.88rem; }
  .sol-rail a::before { display: none; }
  .sol-rail a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
  .sol-rail a.is-active span { color: var(--accent-2); }
  .sol-cols { grid-template-columns: 1fr; gap: 24px; }
  .sol-ghost { display: none; }
  .sol-media { aspect-ratio: 16 / 9; }
  .why-ledger { grid-template-columns: 1fr; }
}

/* Solutions: heading above image */
.sol-head { margin-bottom: 26px; }
.sol-kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.sol-head h2 { font-size: clamp(2.2rem, 4vw, 3.1rem); letter-spacing: -0.035em; line-height: 1.08; margin-bottom: 0; }
.sol-head .sol-tag { margin: 14px 0 0; font-size: 0.86rem; }
.sol-media { margin-bottom: 32px; }
.sol-media::after { background: linear-gradient(180deg, transparent 60%, rgba(7,11,22,0.35)); }

/* Contact button in header: beat nav-link padding/colour specificity */
nav.main-nav a.nav-link.nav-btn {
  padding: 9px 20px; border-radius: 980px; color: #fff; font-weight: 600; font-size: 0.85rem;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)) !important;
  box-shadow: 0 4px 16px rgba(4,95,234,0.35); line-height: 1.2;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
nav.main-nav a.nav-link.nav-btn:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(4,95,234,0.45); }
nav.main-nav a.nav-link.nav-btn.active { color: #fff; outline: 2px solid rgba(255,255,255,0.35); outline-offset: 2px; }
@media (max-width: 760px) { nav.main-nav a.nav-link.nav-btn { padding: 13px 18px; font-size: 0.95rem; } }

/* ══ PROJECTS: showcase rows ══ */
.proj-sec .project-grid { display: flex; flex-direction: column; gap: 0; max-width: 1100px; margin: 0 auto; border-top: 1px solid var(--line); }
.proj-sec .project-card { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 36px 0; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; cursor: pointer; transition: background 0.3s ease, padding 0.3s ease; }
.proj-sec .project-card:hover { transform: none; box-shadow: none; border-color: var(--line); background: var(--bg-soft); padding-left: 16px; padding-right: 16px; }
.pc-num { font-family: var(--font-mono); font-size: 0.9rem; color: var(--muted-2); align-self: start; padding-top: 6px; }
.proj-sec .pc-thumb { order: 2; border-radius: 16px; aspect-ratio: 16 / 10; }
.proj-sec .pc-body { order: 3; padding: 0; gap: 10px; }
.proj-sec .pc-name { font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -0.03em; line-height: 1.1; order: 1; }
.proj-sec .case-tag { order: 0; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; }
.proj-sec .pc-use { order: 2; font-size: 1.02rem; }
.proj-sec .pc-more { order: 3; }
.proj-sec .project-card { grid-template-areas: "num body thumb"; }
.proj-sec .pc-num { grid-area: num; } .proj-sec .pc-body { grid-area: body; } .proj-sec .pc-thumb { grid-area: thumb; }
@media (max-width: 860px) {
  .proj-sec .project-card { grid-template-columns: 1fr; grid-template-areas: "thumb" "body"; gap: 18px; padding: 28px 0; }
  .pc-num { display: none; }
}

/* ══ INSIGHTS: guides as ruled index ══ */
.guide-grid { counter-reset: g; grid-template-columns: 1fr 1fr; border-left: 0; border-top: 1px solid var(--line); column-gap: 56px; }
.guide-card { counter-increment: g; position: relative; border-right: 0; padding: 24px 0 24px 52px; gap: 6px; }
.guide-card::before { content: "0" counter(g); position: absolute; left: 0; top: 28px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); }
.guide-card:hover { background: transparent; }
.guide-card:hover h3 { color: var(--accent); }
.guide-card h3 { transition: color 0.2s ease; font-size: 1.15rem; }
.guide-meta { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.guide-card .svc-go { margin-top: 6px; }
@media (max-width: 760px) { .guide-grid { grid-template-columns: 1fr; } }

/* ══ ABOUT ══ */
.about-lead { font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.45; letter-spacing: -0.015em; color: var(--ink); margin: 18px 0 18px; font-weight: 500; }
.about-p { color: #3a3a3f; font-size: 1.02rem; line-height: 1.7; margin-bottom: 14px; }
.about-who { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.about-who-l { display: block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px; }
.about-grid .story-photo { height: auto; aspect-ratio: 4 / 5; border-radius: 20px; margin: 0; position: sticky; top: 100px; }
.about-values { background: #070b16; color: #fff; }
.about-values .section-title { color: #fff; }
.about-values .section-label { color: var(--accent-2); }
.about-values .values-grid { gap: 0; border-top: 1px solid rgba(255,255,255,0.14); max-width: 1100px; margin-left: auto; margin-right: auto; }
.about-values .value-card { background: transparent; border: 0; border-right: 1px solid rgba(255,255,255,0.1); border-radius: 0; padding: 32px 24px; }
.about-values .value-card:last-child { border-right: 0; }
.about-values .value-card:hover { background: rgba(255,255,255,0.04); box-shadow: none; transform: none; }
.about-values .value-icon { background: transparent !important; width: auto; height: auto; color: var(--accent-2); font-family: var(--font-mono); font-size: 0.85rem; margin-bottom: 18px; box-shadow: none; }
.about-values .value-card h3 { color: #fff; font-size: 1.35rem; }
.about-values .value-card p { color: rgba(255,255,255,0.7); }
@media (max-width: 760px) { .about-values .value-card { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.1); } .about-grid .story-photo { position: static; aspect-ratio: 16/10; } }

/* Hero deck: arrows sit at the sides, pause button removed */
.deck-pause { display: none !important; }
.deck-controls { margin-top: 18px; }
.deck-arrow {
  position: absolute; top: calc(50% - 38px); z-index: 40; width: 48px; height: 48px;
  background: rgba(10,17,36,0.55); border: 1px solid rgba(255,255,255,0.28);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.deck-arrow[data-dir="-1"] { left: -18px; }
.deck-arrow[data-dir="1"] { right: -18px; }
.deck-arrow:hover { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; transform: scale(1.08); }
.deck-arrow:active { transform: scale(0.95); }
@media (max-width: 760px) { .deck-arrow { width: 42px; height: 42px; } .deck-arrow[data-dir="-1"] { left: 2px; } .deck-arrow[data-dir="1"] { right: 2px; } }

/* Home: stack row */
.stack-row { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stack-row li { padding: 26px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); transition: background 0.25s ease, color 0.25s ease; }
.stack-row li:hover { background: var(--bg-soft); color: var(--accent); }
.stack-row .stack-more { color: var(--muted-2); font-weight: 500; font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; display: flex; align-items: center; }
.stack-note { margin-top: 16px; font-size: 0.8rem; color: var(--muted-2); }
@media (max-width: 760px) { .stack-row { grid-template-columns: repeat(2, 1fr); } .stack-row li { padding: 20px 16px; font-size: 1rem; } }

.stack-row li img { display: block; max-height: 30px; width: auto; max-width: 100%; filter: grayscale(1); opacity: 0.75; transition: filter 0.25s ease, opacity 0.25s ease; }
.stack-row li:hover img { filter: none; opacity: 1; }

/* Home: stack section (dark, flow + marquee) */
.stack-flow { display: flex; align-items: center; justify-content: center; gap: 0; margin: 8px auto 44px; max-width: 860px; }
.sf-node { flex: 0 0 auto; min-width: 190px; text-align: center; padding: 22px 26px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.05); color: #fff; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.sf-node span { display: block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--accent-2); margin-bottom: 6px; font-weight: 500; }
.sf-core { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; box-shadow: 0 12px 40px rgba(4,95,234,0.45); }
.sf-core span { color: rgba(255,255,255,0.85); }
.sf-line { position: relative; flex: 1 1 60px; height: 2px; background: rgba(255,255,255,0.18); overflow: hidden; }
.sf-line i { position: absolute; top: 0; left: -40%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, var(--accent-2), transparent); animation: sfRun 2.6s linear infinite; }
@keyframes sfRun { to { left: 100%; } }
.stack-marquee { overflow: hidden; border-top: 1px solid rgba(255,255,255,0.14); border-bottom: 1px solid rgba(255,255,255,0.14); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.stack-track { list-style: none; display: flex; width: max-content; animation: sfMarquee 36s linear infinite; }
.stack-marquee:hover .stack-track { animation-play-state: paused; }
.stack-track li { padding: 26px 40px; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; color: rgba(255,255,255,0.72); white-space: nowrap; transition: color 0.25s ease; }
.stack-track li::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 80px; border-radius: 1px; background: var(--accent-2); transform: rotate(45deg); vertical-align: middle; opacity: 0.7; }
.stack-track li:hover { color: #fff; }
@keyframes sfMarquee { to { transform: translateX(-50%); } }
@media (max-width: 760px) {
  .stack-flow { flex-direction: column; margin-bottom: 32px; }
  .sf-node { min-width: 0; width: 100%; max-width: 280px; }
  .sf-line { flex: 0 0 28px; width: 2px; height: 28px; }
  .sf-line i { width: 100%; height: 40%; left: 0; top: -40%; background: linear-gradient(180deg, transparent, var(--accent-2), transparent); animation-name: sfRunV; }
  @keyframes sfRunV { to { top: 100%; } }
  .stack-track li { padding: 20px 28px; font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .stack-track, .sf-line i { animation: none; }
  .stack-marquee { overflow-x: auto; }
}

/* Stack: all names visible at once */
.stack-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sg { padding: 26px 24px 22px; border-radius: 18px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14); transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease; }
.sg:hover { border-color: rgba(9,196,249,0.6); background: rgba(9,196,249,0.07); transform: translateY(-4px); }
.sg h3 { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); font-weight: 500; margin-bottom: 14px; }
.sg ul { list-style: none; }
.sg li { padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.1); color: #fff; font-size: 1.12rem; font-weight: 600; letter-spacing: -0.015em; }
.sg li.is-more { color: rgba(255,255,255,0.5); font-weight: 500; font-size: 0.98rem; }
@media (max-width: 860px) { .stack-groups { grid-template-columns: 1fr; } }

/* Stack: plain editorial list */
.stack-plain-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 72px; align-items: start; }
.stack-plain h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 14px; }
.stack-plain p { color: var(--muted); font-size: 1.05rem; line-height: 1.6; max-width: 380px; }
.stack-list { border-top: 1px solid var(--ink); }
.stack-list > div { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.stack-list dt { color: var(--muted); font-size: 0.95rem; }
.stack-list dd { margin: 0; font-size: 1.15rem; font-weight: 500; line-height: 1.5; color: var(--ink); }
@media (max-width: 860px) { .stack-plain-grid { grid-template-columns: 1fr; gap: 32px; } .stack-list > div { grid-template-columns: 1fr; gap: 6px; } }

/* images with width/height attributes keep their ratio */
:where(img[width][height]) { height: auto; }
