/* TLCM AGENCY — Light theme */
:root {
  /* canvas */
  --bg: #FAFBFD;
  --bg-2: #F2F5FA;
  --bg-elev: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-dark: #06122A; /* for CTA bands */

  /* type */
  --ink: #0A1628;
  --ink-2: #3D4D6B;
  --ink-3: #6B7A95;
  --ink-4: #9BA8BD;

  /* lines */
  --line: rgba(10,22,40,0.07);
  --line-2: rgba(10,22,40,0.12);

  /* brand */
  --blue-0: #E6F2FE;
  --blue-1: #5BC4F5;
  --blue-2: #38B6FF;
  --blue-3: #1A7FD4;
  --blue-4: #0A4DB8;
  --blue-5: #062E70;

  --grad: linear-gradient(135deg, #5BC4F5 0%, #1A7FD4 50%, #0A4DB8 100%);
  --grad-dark: linear-gradient(135deg, #1A7FD4 0%, #0A4DB8 60%, #06122A 100%);
  --grad-soft: linear-gradient(135deg, rgba(91,196,245,0.12), rgba(10,77,184,0.04));

  --shadow-sm: 0 4px 16px -8px rgba(10,77,184,0.12), 0 1px 2px rgba(10,22,40,0.04);
  --shadow: 0 16px 40px -20px rgba(10,77,184,0.18), 0 4px 12px -4px rgba(10,22,40,0.06);
  --shadow-lg: 0 32px 64px -24px rgba(10,77,184,0.25), 0 8px 24px -8px rgba(10,22,40,0.08);
  --shadow-blue: 0 18px 60px -20px rgba(56,182,255,0.5), 0 4px 16px -4px rgba(26,127,212,0.18);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --container: 1240px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--blue-2); color: #FFFFFF; }

/* ===== Background field ===== */
.bg-field {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(91,196,245,0.22), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(56,182,255,0.14), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(91,196,245,0.10), transparent 60%),
    var(--bg);
}
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(10,77,184,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,77,184,0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
}
#three-canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.85;
}

main, header.nav, footer.foot { position: relative; z-index: 2; }

.wrap { max-width: var(--container); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ===== Typography ===== */
h1, h2, h3, h4 { font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif; font-weight: 600; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(44px, 6.8vw, 92px); line-height: 0.98; letter-spacing: -0.035em; }
h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -0.028em; }
h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; }
p { margin: 0; color: var(--ink-2); }
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--blue-3);
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; background: var(--blue-2); border-radius: 50%;
  box-shadow: 0 0 12px rgba(56,182,255,0.6);
}
.lead { font-size: clamp(17px, 1.5vw, 21px); color: var(--ink-2); line-height: 1.55; max-width: 60ch; }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.blue-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 15px;
  cursor: pointer; border: none; transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn .arr { transition: transform .3s ease; display: inline-block; }
.btn:hover .arr { transform: translateX(4px); }

.btn-primary {
  background: var(--grad);
  color: #FFFFFF;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 60px -18px rgba(56,182,255,0.7), 0 6px 18px -4px rgba(26,127,212,0.25); }

.btn-ghost {
  background: #FFFFFF;
  color: var(--ink);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { background: var(--blue-0); border-color: rgba(56,182,255,0.45); color: var(--blue-4); }

.btn-dark {
  background: var(--bg-dark);
  color: #FFFFFF;
}
.btn-dark:hover { transform: translateY(-2px); background: #0A1F44; }

.btn-sm { padding: 10px 16px; font-size: 13px; }

/* ===== Nav ===== */
header.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 16px 0;
  backdrop-filter: blur(18px);
  background: rgba(250,251,253,0.82);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: flex; align-items: center; }
.tlcm-logo-img {
  height: 36px;
  width: auto;
  display: block;
}
.foot-logo { height: 42px; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14px; color: var(--ink-2); transition: color .2s; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active { position: relative; }
.nav-links a.active::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 4px; height: 4px; border-radius: 50%; background: var(--blue-2); transform: translateX(-50%); box-shadow: 0 0 10px rgba(56,182,255,0.7); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
@media (max-width: 880px) { .nav-links { display: none; } }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: clamp(60px, 11vh, 120px) 0 clamp(80px, 16vh, 180px);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero h1 .nl { display: block; }
.hero-meta { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.hero-meta .stat { display: flex; flex-direction: column; }
.hero-meta .stat b { font-family: 'Space Grotesk', sans-serif; font-size: 30px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.hero-meta .stat span { font-size: 12px; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; }

.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

/* hero visual orb container */
.orb-stage {
  position: relative; aspect-ratio: 1 / 1; max-width: 560px; margin-left: auto;
}
.orb-stage::before {
  content: ""; position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(91,196,245,0.45), rgba(10,77,184,0.04) 60%, transparent 80%);
  filter: blur(20px);
}
.orb-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 80px rgba(26,127,212,0.35)) drop-shadow(0 10px 40px rgba(56,182,255,0.25));
  animation: float 8s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }

/* floating chips around orb */
.float-chip {
  position: absolute; padding: 12px 16px; border-radius: 14px;
  background: #FFFFFF; border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2);
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow);
  animation: chipFloat 7s ease-in-out infinite;
}
.float-chip b { color: var(--ink); font-weight: 600; }
.float-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: #22D27E; box-shadow: 0 0 10px rgba(34,210,126,0.7); }
.float-chip .dot.b { background: var(--blue-2); box-shadow: 0 0 10px rgba(56,182,255,0.7); }
.float-chip.fc-1 { top: 10%; left: -8%; animation-delay: 0s; }
.float-chip.fc-2 { top: 50%; right: -10%; animation-delay: -2s; }
.float-chip.fc-3 { bottom: 8%; left: 6%; animation-delay: -4s; }
@keyframes chipFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.fc-meta { display: flex; flex-direction: column; line-height: 1.2; }
.fc-meta .fc-label { font-size: 10px; color: var(--ink-4); font-family: 'JetBrains Mono', monospace; letter-spacing: 0.1em; }

/* ===== Section base ===== */
section.s { padding: clamp(80px, 12vh, 140px) 0; position: relative; }
.s-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 56px; }
.s-head .left { max-width: 760px; }
.s-head h2 { margin-top: 14px; }
.s-head .lead { margin-top: 18px; }
@media (max-width: 800px) { .s-head { flex-direction: column; align-items: flex-start; } }

/* Alt section (light blue tint) */
.s-tint {
  background: linear-gradient(180deg, var(--bg-2), rgba(242,245,250,0.4));
}

/* ===== Cards ===== */
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--r-lg);
  background: radial-gradient(400px 220px at var(--mx,50%) var(--my,0%), rgba(56,182,255,0.10), transparent 60%);
  opacity: 0; transition: opacity .4s ease; pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: rgba(56,182,255,0.35); box-shadow: var(--shadow-lg); }
.card:hover::before { opacity: 1; }
.card .ic {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-0), rgba(91,196,245,0.18));
  border: 1px solid rgba(91,196,245,0.25);
  display: grid; place-items: center; margin-bottom: 20px;
  color: var(--blue-3);
}
.card .ic svg { width: 22px; height: 22px; }

/* Pain card variant */
.pain-card {
  position: relative; padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.pain-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pain-card .x {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,80,80,0.08);
  border: 1px solid rgba(255,80,80,0.18);
  color: #E55555; display: grid; place-items: center;
  margin-bottom: 18px;
  font-family: 'JetBrains Mono', monospace; font-weight: 600;
}
.pain-card p { color: var(--ink-2); font-size: 16px; }

/* ===== Service big blocks ===== */
.service-block {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 56px);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.service-block.b-2 {
  background: linear-gradient(135deg, #06122A 0%, #0A4DB8 100%);
  color: #FFFFFF;
  border-color: rgba(56,182,255,0.25);
  box-shadow: var(--shadow-blue);
}
.service-block.b-2 h3, .service-block.b-2 .b-desc { color: #FFFFFF; }
.service-block.b-2 .b-desc { color: rgba(255,255,255,0.78); }
.service-block .tag-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap;
}
.service-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--blue-3); font-weight: 500;
  padding: 6px 12px; border: 1px solid rgba(56,182,255,0.3); border-radius: 999px;
  background: rgba(91,196,245,0.06);
}
.service-block.b-2 .service-tag { color: #9CD8FF; border-color: rgba(156,216,255,0.3); background: rgba(255,255,255,0.05); }
.service-block h3 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 14px; }
.service-block .b-desc { color: var(--ink-2); max-width: 56ch; margin-bottom: 28px; font-size: 17px; line-height: 1.55; }
.b-icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }
@media (max-width: 720px) { .b-icons { grid-template-columns: 1fr; } }
.b-icon {
  padding: 18px; border-radius: var(--r);
  background: var(--bg-2); border: 1px solid var(--line);
  display: flex; gap: 14px; align-items: flex-start;
}
.service-block.b-2 .b-icon { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); }
.b-icon .glyph { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue-0), rgba(91,196,245,0.2)); color: var(--blue-3); flex-shrink: 0; }
.service-block.b-2 .b-icon .glyph { background: rgba(91,196,245,0.18); color: #9CD8FF; }
.b-icon .glyph svg { width: 18px; height: 18px; }
.b-icon .b-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.b-icon b { color: var(--ink); font-weight: 600; font-size: 14px; }
.service-block.b-2 .b-icon b { color: #FFFFFF; }
.b-icon .b-sub { font-size: 12px; color: var(--ink-3); }
.service-block.b-2 .b-icon .b-sub { color: rgba(255,255,255,0.6); }

/* pills for AURIEL block */
.auriel-feature-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.auriel-feature-row .pill {
  padding: 10px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  font-size: 13px; color: rgba(255,255,255,0.9);
  display: flex; align-items: center; gap: 8px;
}
.auriel-feature-row .pill .d { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-2); }

.service-block .visual {
  position: absolute; right: -8%; top: 50%; transform: translateY(-50%);
  width: 38%; aspect-ratio: 1;
  background: radial-gradient(circle at 40% 40%, rgba(56,182,255,0.25), transparent 70%);
  border-radius: 50%; filter: blur(20px); opacity: 0.7; pointer-events: none;
}
.service-block.b-2 .visual { background: radial-gradient(circle at 40% 40%, rgba(91,196,245,0.5), transparent 70%); opacity: 0.8; }
@media (max-width: 880px) { .service-block .visual { display: none; } }

/* ===== Why TLCM grid ===== */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .why-grid { grid-template-columns: 1fr; } }
.why-card { padding: 28px 24px; }
.why-card h4 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.why-card p { font-size: 14px; color: var(--ink-3); }

/* ===== CTA banner ===== */
.cta-banner {
  position: relative;
  margin: 0 auto;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid rgba(56,182,255,0.2);
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(91,196,245,0.45), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(10,77,184,0.7), transparent 60%),
    linear-gradient(135deg, #0A4DB8, #06122A 70%);
  padding: clamp(48px, 7vw, 88px);
  text-align: center;
  color: #FFFFFF;
  box-shadow: 0 40px 100px -40px rgba(10,77,184,0.5);
}
.cta-banner h2 { font-size: clamp(34px, 5vw, 64px); max-width: 22ch; margin: 0 auto 18px; color: #FFFFFF; }
.cta-banner .lead { margin: 0 auto 32px; color: rgba(255,255,255,0.78); }
.cta-banner .eyebrow { color: #9CD8FF; }
.cta-banner .eyebrow::before { background: #9CD8FF; box-shadow: 0 0 14px rgba(156,216,255,0.7); }

/* Footer */
footer.foot {
  border-top: 1px solid var(--line);
  padding: 64px 0 28px;
  margin-top: 80px;
  background: var(--bg-2);
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-col h5 { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); font-family: 'JetBrains Mono', monospace; font-weight: 500; margin: 0 0 16px; }
.foot-col a { display: block; padding: 6px 0; color: var(--ink-2); font-size: 14px; transition: color .2s; }
.foot-col a:hover { color: var(--blue-3); }
.foot-tag { color: var(--ink-2); max-width: 38ch; font-size: 14px; margin-top: 14px; }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-3);
  flex-wrap: wrap; gap: 16px;
}
.powered { display: flex; align-items: center; gap: 8px; }
.powered img { width: auto; height: 18px; opacity: 0.9; object-fit: contain; }
.socials { display: flex; gap: 10px; margin-top: 8px; }
.socials a {
  width: 36px; height: 36px; border-radius: 10px;
  background: #FFFFFF; border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: all .2s;
  color: var(--ink-2);
}
.socials a:hover { background: var(--blue-0); border-color: rgba(56,182,255,0.35); color: var(--blue-3); }

/* ===== AURIEL badge ===== */
.auriel-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: #FFFFFF; border: 1px solid rgba(56,182,255,0.25);
  font-size: 13px; color: var(--blue-4);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.auriel-badge img { height: 22px; width: 22px; object-fit: contain; }
.auriel-badge.on-dark { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.18); color: #FFFFFF; backdrop-filter: blur(10px); }

/* ===== Subpage hero ===== */
.subhero { padding: clamp(80px, 12vh, 140px) 0 clamp(40px, 6vh, 80px); }
.crumbs { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 24px; font-weight: 500; }
.crumbs a { color: var(--ink-3); transition: color .2s; }
.crumbs a:hover { color: var(--blue-3); }
.crumbs span { margin: 0 10px; color: var(--ink-4); }

/* AURIEL page hero video */
.auriel-stage {
  position: relative; aspect-ratio: 1/1; width: 100%; max-width: 540px; margin-left: auto;
}
.auriel-stage video {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 30px 80px rgba(26,127,212,0.4));
}

/* ===== Form ===== */
.form-card {
  padding: clamp(28px,4vw,48px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); font-weight: 500;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 14px;
  padding: 14px 16px;
  color: var(--ink); font-family: inherit; font-size: 15px;
  transition: border .2s, background .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-2); background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(56,182,255,0.12);
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%231A7FD4' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 38px; }

/* Values list */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .values-grid { grid-template-columns: 1fr; } }
.value-card { padding: 24px; }
.value-card .n { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.2em; color: var(--ink-4); font-weight: 500; }
.value-card h4 { font-size: 18px; margin: 10px 0 6px; }
.value-card p { font-size: 13px; color: var(--ink-3); }

/* AURIEL feature grid */
.afeat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 880px) { .afeat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .afeat-grid { grid-template-columns: 1fr; } }

/* Service detail layout */
.detail {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px;
  padding: clamp(40px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.detail + .detail { margin-top: 24px; }
@media (max-width: 880px) { .detail { grid-template-columns: 1fr; gap: 24px; } }
.detail .num { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.24em; color: var(--blue-3); margin-bottom: 16px; font-weight: 600; }
.detail h3 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 14px; }
.detail .desc { color: var(--ink-2); max-width: 56ch; margin-bottom: 22px; font-size: 16px; line-height: 1.55; }
.detail .desc + .desc { margin-top: 14px; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 15px; }
.checks li .ck {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px;
  background: linear-gradient(135deg, var(--blue-1), var(--blue-3));
  color: #FFFFFF;
  display: grid; place-items: center; margin-top: 2px;
  box-shadow: 0 4px 12px -4px rgba(26,127,212,0.4);
}
.checks li .ck svg { width: 12px; height: 12px; }

/* mock UI for service details */
.mock {
  border-radius: var(--r-lg); overflow: hidden;
  background: #FFFFFF;
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -30px rgba(10,77,184,0.25), 0 4px 12px -4px rgba(10,22,40,0.06);
  font-size: 13px;
}
.mock-head { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; background: var(--bg-2); }
.mock-head .dots { display: flex; gap: 6px; }
.mock-head .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(10,22,40,0.14); }
.mock-head .title { color: var(--ink-3); font-family: 'JetBrains Mono', monospace; font-size: 11px; margin-left: 8px; letter-spacing: 0.1em; font-weight: 500; }
.mock-body { padding: 18px; }

/* Email-mock specific */
.email-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px dashed var(--line); }
.email-row:last-child { border-bottom: none; }
.email-row .prio {
  font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.1em; padding: 4px 8px; border-radius: 6px; text-transform: uppercase; flex-shrink: 0; font-weight: 600;
}
.prio.urgent { background: rgba(229,85,85,0.1); color: #C13E3E; border: 1px solid rgba(229,85,85,0.25); }
.prio.todo { background: rgba(255,165,0,0.1); color: #B07300; border: 1px solid rgba(255,165,0,0.25); }
.prio.fyi { background: var(--bg-2); color: var(--ink-3); border: 1px solid var(--line); }
.email-row .sub { flex: 1; color: var(--ink); font-size: 13px; }
.email-row .t { color: var(--ink-4); font-size: 11px; font-family: 'JetBrains Mono', monospace; }

/* Prospects mock */
.prospect-row {
  display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line);
}
.prospect-row:last-child { border-bottom: none; }
.prospect-row .who { display: flex; align-items: center; gap: 12px; }
.prospect-row .av {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--grad);
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 12px; display: grid; place-items: center;
  color: #fff;
}
.prospect-row .ns { display: flex; flex-direction: column; line-height: 1.3; }
.prospect-row .ns b { font-size: 13px; font-weight: 600; color: var(--ink); }
.prospect-row .ns span { font-size: 11px; color: var(--ink-3); }
.prospect-row .status {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; padding: 4px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
}
.s-hot { background: rgba(56,182,255,0.1); color: var(--blue-3); border: 1px solid rgba(56,182,255,0.3); }
.s-replied { background: rgba(34,180,100,0.1); color: #1E8E50; border: 1px solid rgba(34,180,100,0.3); }
.s-sent { background: var(--bg-2); color: var(--ink-3); border: 1px solid var(--line); }

/* Review mock */
.review-stars { color: #F0A000; font-size: 16px; letter-spacing: 2px; }
.review-card {
  padding: 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 10px;
}
.review-card .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.review-card .top b { font-size: 13px; font-weight: 600; color: var(--ink); }
.review-card .top span { font-size: 11px; color: var(--ink-3); font-family: 'JetBrains Mono', monospace; }
.review-card p { font-size: 12px; color: var(--ink-2); }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; position: relative; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 28px 24px; position: relative; }
.step .num { font-family: 'Space Grotesk', sans-serif; font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -0.04em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h4 { font-size: 17px; margin: 14px 0 8px; }
.step p { font-size: 13px; color: var(--ink-3); }

/* === Automation strip / capabilities === */
.auto-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: 32px;
}
@media (max-width: 900px) { .auto-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .auto-strip { grid-template-columns: 1fr; } }

.auto-stat-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px; box-shadow: var(--shadow-sm);
}
.auto-stat-card .v {
  font-family: 'Space Grotesk', sans-serif; font-size: 38px; font-weight: 600; letter-spacing: -0.025em; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auto-stat-card .l { font-size: 12px; color: var(--ink-3); margin-top: 8px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.08em; }

/* "7 jours" badge */
.deploy-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-0), #FFFFFF);
  border: 1px solid rgba(56,182,255,0.3);
  color: var(--blue-4);
  font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.deploy-badge .ico { width: 18px; height: 18px; display: grid; place-items: center; color: var(--blue-3); }
.deploy-badge b { color: var(--blue-4); font-weight: 700; }

/* Big "7 jours" promise band */
.promise-band {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding: clamp(28px, 4vw, 44px) clamp(28px, 4vw, 56px);
  border-radius: var(--r-xl);
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.promise-band::before {
  content: ""; position: absolute; right: -10%; top: -50%; width: 50%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(56,182,255,0.18), transparent 60%);
  border-radius: 50%; pointer-events: none;
}
.promise-band .big {
  font-family: 'Space Grotesk', sans-serif; font-size: clamp(56px, 10vw, 120px);
  font-weight: 600; line-height: 0.9; letter-spacing: -0.04em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  flex-shrink: 0;
}
.promise-band .big small { font-size: 0.35em; letter-spacing: 0; color: var(--ink-2); -webkit-text-fill-color: var(--ink-2); display: block; font-weight: 500; margin-top: 4px; font-family: 'Inter', sans-serif; }
.promise-band .txt { flex: 1; }
.promise-band .txt h3 { font-size: clamp(22px, 2.4vw, 32px); margin-bottom: 10px; }
.promise-band .txt p { color: var(--ink-2); font-size: 16px; max-width: 50ch; }
@media (max-width: 720px) {
  .promise-band { flex-direction: column; align-items: flex-start; gap: 16px; text-align: left; }
}

/* timeline mini bar */
.timeline-bar {
  margin-top: 24px; display: flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-3); letter-spacing: 0.08em;
}
.timeline-bar .bar { flex: 1; height: 6px; border-radius: 999px; background: var(--bg-2); overflow: hidden; position: relative; }
.timeline-bar .bar .fill { position: absolute; inset: 0; background: var(--grad); border-radius: 999px; width: 100%; transform-origin: left; animation: fillBar 2.6s ease-out forwards; }
@keyframes fillBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ===== SEO / a11y / mobile-first additions ===== */

/* Promise-band & service-block: h2 inherits previous h3 sizing so heading-level rewrites don't break visuals */
.promise-band .txt h2 { font-size: clamp(22px, 2.4vw, 32px); margin-bottom: 10px; line-height: 1.15; }
.service-block h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 14px; line-height: 1.1; }
.service-block.b-2 h2 { color: #FFFFFF; }

/* Legal pages (mentions-legales, politique-confidentialite) — long-form article styling */
article h2 { font-size: clamp(22px, 2vw, 28px); margin-top: 32px; }
article h2:first-child { margin-top: 0; }
article p, article ul, article ol { font-size: 16px; line-height: 1.65; color: var(--ink-2); margin-top: 12px; }
article ul, article ol { padding-left: 20px; }
article ul li, article ol li { margin-top: 6px; }
article a { color: var(--blue-3); text-decoration: underline; text-underline-offset: 3px; }
article a:hover { color: var(--blue-4); }
article strong { color: var(--ink); font-weight: 600; }

/* FAQ <details> on homepage */
details > summary { list-style: none; cursor: pointer; position: relative; padding-right: 28px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: 'Space Grotesk', sans-serif; font-size: 22px; color: var(--blue-3);
  width: 24px; height: 24px; display: grid; place-items: center;
  line-height: 1; transition: transform .25s ease;
}
details[open] > summary::after { transform: translateY(-50%) rotate(45deg); }
details[open] { border-color: rgba(56,182,255,0.35); }
details > summary > h3 { line-height: 1.3; }

/* Breadcrumb nav — ensure it's a proper landmark */
nav.crumbs { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }

/* Mobile-first: 16px+ min font, 48px+ touch targets */
@media (max-width: 720px) {
  html, body { font-size: 16px; }
  p, li, .lead { font-size: max(16px, 1em); }
  .btn { min-height: 48px; padding: 12px 22px; }
  .btn-sm { min-height: 44px; padding: 10px 18px; font-size: 14px; }
  .nav-cta .btn { min-height: 44px; }
  /* Prevent horizontal overflow */
  body { overflow-x: hidden; }
  main, section, .wrap { max-width: 100%; }
}

/* Footer link styling — keep contrast on dark/light footer */
.foot-bottom a { color: var(--ink-3); text-decoration: none; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.foot-bottom a:hover { color: var(--blue-3); border-bottom-color: rgba(56,182,255,0.35); }

/* Visually-hidden but SR-accessible */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Performance: hint browser the heavy 3D canvas isn't critical */
#three-canvas { content-visibility: auto; contain-intrinsic-size: 600px; }

/* ===== CORRECTIONS MOBILE COMPLÈTES ===== */

/* --- 1. Menu hamburger mobile --- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: transparent;
  border-radius: 8px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all .3s ease;
}
body.is-d .nav-hamburger span { background: #FFFFFF; }
body.is-d.nav-scrolled .nav-hamburger span { background: var(--ink); }

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile déroulant */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 69px;
  left: 0; right: 0;
  background: rgba(250,251,253,0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 16px 24px 24px;
  z-index: 49;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 8px 32px -8px rgba(10,22,40,0.12);
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  display: block;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 12px;
  transition: background .2s, color .2s;
  text-decoration: none;
}
.nav-mobile-menu a:hover, .nav-mobile-menu a.active {
  background: var(--blue-0);
  color: var(--blue-4);
}
.nav-mobile-menu .btn {
  margin-top: 8px;
  text-align: center;
  justify-content: center;
  width: 100%;
}

@media (max-width: 880px) {
  .nav-hamburger { display: flex; }
  .nav-links { display: none !important; }
  .nav-cta { display: none; }
}

/* --- 2. Grids → 1 colonne sur mobile --- */
@media (max-width: 600px) {
  /* Toutes les grids 2-3 colonnes passent en 1 colonne */
  .d-auto-grid,
  .afeat-grid,
  .why-grid,
  .values-grid,
  .steps,
  .auto-strip,
  .foot-grid {
    grid-template-columns: 1fr !important;
  }

  /* Detail (service pages) : 1 colonne, ordre naturel */
  .detail {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 24px !important;
  }
  .detail > div[style*="order:2"] { order: 1 !important; }
  .detail > div[style*="order:1"] { order: 2 !important; }

  /* Hero dark homepage */
  .d-hero-inner {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .d-orb-stage { max-width: 280px; margin: 0 auto; }

  /* Hero grids subpages */
  .auto-hero-grid,
  .about-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Hero section auriel */
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .auriel-stage { max-width: 280px; margin: 0 auto; }

  /* FAQ grids */
  div[style*="grid-template-columns:1fr 1fr"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  /* Contact grid */
  .contact-grid {
    grid-template-columns: 1fr !important;
  }

  /* Philo grid */
  .philo-grid {
    grid-template-columns: 1fr !important;
  }

  /* CTA banner padding */
  .cta-banner {
    padding: 36px 24px !important;
    text-align: left !important;
  }
  .cta-banner h2 { font-size: clamp(28px, 6vw, 44px) !important; }
  .cta-banner .btn { width: 100%; justify-content: center; }

  /* Promise band */
  .promise-band {
    flex-direction: column !important;
    padding: 24px !important;
  }

  /* Service block */
  .service-block { padding: 24px !important; }
  .service-block h2 { font-size: clamp(22px, 5vw, 32px) !important; }

  /* Textes tronqués — supprimer overflow hidden sur grids inline */
  [style*="grid-template-columns:repeat(3"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:repeat(2"] {
    grid-template-columns: 1fr !important;
  }

  /* Cards : pas de débordement texte */
  .card, .card * {
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
  }

  /* Chips flottantes sur vidéo 3D : masquer sur mobile */
  .d-chip, .float-chip { display: none !important; }

  /* Vidéo 3D AURIEL : afficher même si webm ne charge pas */
  .d-orb-stage video,
  .auriel-stage video {
    background: linear-gradient(135deg, #06122A, #0A4DB8);
    border-radius: 50%;
    min-height: 200px;
  }

  /* Héro stats bar */
  .d-hero-meta {
    gap: 16px !important;
    flex-wrap: wrap !important;
  }
  .d-hero-meta .stat b { font-size: 22px; }

  /* Formulaire contact */
  .form-grid { grid-template-columns: 1fr !important; }
  .field.full { grid-column: 1 !important; }

  /* About stat cards */
  .auto-strip[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Sections padding */
  section.s { padding: clamp(48px, 8vh, 80px) 0 !important; }
  .subhero { padding: clamp(48px, 8vh, 80px) 0 clamp(24px, 4vh, 48px) !important; }

  /* Wraps padding */
  .wrap { padding-left: 16px !important; padding-right: 16px !important; }

  /* Titres H1 */
  h1 { font-size: clamp(36px, 9vw, 56px) !important; line-height: 1.05 !important; }
  h2 { font-size: clamp(26px, 6vw, 40px) !important; }

  /* CTA buttons full width sur mobile */
  .hero-cta { flex-direction: column !important; }
  .hero-cta .btn { width: 100%; justify-content: center; }

  /* Foot bottom wrap */
  .foot-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .foot-bottom span { text-align: center; }
}
