/* UDIX Tech — design system v5
   Apple-minimal · blue accent · near-black footer/CTA
   System (SF) typography */

:root {
  --white: #ffffff;
  --slate: #f5f5f7;        /* apple light gray */
  --slate-2: #e8e8ed;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --muted-2: #86868b;
  --line: #e3e3e6;
  --line-strong: #d2d2d7;

  --accent: #0071e3;       /* apple blue */
  --accent-hover: #0077ed;
  --accent-soft: #e8f1fd;
  --accent-tint: #f2f8ff;

  --ink: #1d1d1f;          /* near-black */
  --ink-2: #2a2a2c;
  --ink-line: rgba(255,255,255,0.12);
  --ink-text: #a1a1a6;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --shadow-sm: 0 1px 2px rgba(16,24,40,0.05);
  --shadow: 0 12px 32px rgba(16,24,40,0.08);
  --shadow-lg: 0 28px 64px rgba(16,24,40,0.12);

  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 9px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--white);
  color: var(--text);
  line-height: 1.55;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font);
  letter-spacing: -0.025em;
  line-height: 1.06;
  font-weight: 600;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p { margin: 0; }

.container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.accent { color: var(--accent); }
.spark { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.navbar { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--font); font-weight: 700; font-size: 22px; line-height: 1; }
.brand-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); flex: 0 0 auto; }
.brand .sep { color: var(--muted-2); font-weight: 400; }
.nav-links { display: flex; gap: 30px; font-size: 15px; font-weight: 500; color: var(--muted); }
.nav-links a { transition: color 150ms ease; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 24px; border-radius: 980px;
  font-family: var(--font); font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: all 160ms ease;
  white-space: nowrap;
}
.button.primary { background: var(--accent); color: #fff; }
.button.primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.button.dark { background: var(--ink); color: #fff; }
.button.dark:hover { background: #060b16; transform: translateY(-1px); }
.button.ghost { background: var(--white); color: var(--text); border-color: var(--line-strong); }
.button.ghost:hover { background: var(--slate); }
.button.on-dark { background: #fff; color: var(--ink); }
.button.on-dark:hover { background: var(--accent); color: #fff; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--accent); transition: gap 150ms ease; }
.link-arrow:hover { gap: 10px; }
.link-arrow.on-dark { color: #fff; }

/* ---------- Pills / labels ---------- */
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; }
.eyebrow { color: var(--accent); font-size: 14px; font-weight: 600; margin-bottom: 14px; letter-spacing: 0.02em; }
.kicker { display: inline-block; margin-bottom: 12px; color: var(--muted-2); font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 66px); margin: 18px 0 20px; }
.hero p.sub { max-width: 520px; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); }
.hero p.sub-minor { margin-top: 12px; color: var(--muted-2); font-size: 15px; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; align-items: center; }

/* Hero visual: dashboard card */
.viz-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); padding: 22px; position: relative; overflow: hidden;
}
.viz-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 80% -10%, rgba(0,113,227,0.07), transparent 60%); pointer-events: none; }
.viz-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.viz-head .t { font-size: 13px; color: var(--muted); font-weight: 600; }
.viz-head .delta { font-family: var(--font); font-weight: 700; font-size: 15px; color: var(--accent); display: inline-flex; align-items: center; gap: 5px; }
.viz-chart { width: 100%; height: auto; display: block; }
.viz-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.viz-stat { background: var(--slate); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px 14px; }
.viz-stat b { font-family: var(--font); font-size: 22px; display: block; }
.viz-stat span { font-size: 12px; color: var(--muted); }
.viz-progress { height: 7px; border-radius: 999px; background: var(--slate-2); overflow: hidden; margin-top: 8px; }
.viz-progress > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

/* ---------- Sections ---------- */
.page-section { padding: 64px 0; }
.page-section.tight { padding: 44px 0; }
.section-alt { background: var(--slate); }
.section-heading { max-width: 720px; margin-bottom: 36px; }
.section-heading.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-heading h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 14px; }
.section-heading p { font-size: 19px; color: var(--muted); }
.section-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.section-row h2 { font-size: clamp(26px, 3.6vw, 40px); }

.page-hero { padding: 64px 0 18px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 60px); margin-bottom: 16px; }
.page-hero p { max-width: 660px; font-size: 20px; color: var(--muted); }

/* ---------- Grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }

/* ---------- Metrics ---------- */
.metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.metric { padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); }
.metric.soft { background: var(--slate); box-shadow: none; }
.metric strong { display: block; font-family: var(--font); font-size: clamp(34px, 4vw, 46px); font-weight: 600; letter-spacing: -0.04em; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.metric span { color: var(--muted); font-size: 15px; }

/* ---------- Cards ---------- */
.card { padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); transition: box-shadow 200ms ease, transform 200ms ease; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; }
.card.is-ai { border-color: rgba(0,113,227,0.28); background: var(--accent-tint); }

.icon, .svc-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.icon svg, .svc-icon svg { width: 22px; height: 22px; }

/* ---------- Service sections ---------- */
.svc { padding: 38px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.svc h2 { font-size: clamp(24px, 3.2vw, 34px); margin-bottom: 12px; }
.svc p { color: var(--muted); font-size: 18px; max-width: 720px; }
.svc.is-ai { border-color: rgba(0,113,227,0.25); border-left: 4px solid var(--accent); background: linear-gradient(180deg, var(--accent-tint) 0%, var(--white) 55%); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.chip { padding: 8px 14px; border-radius: 999px; background: var(--slate); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }

/* ---------- Case cards (listing) ---------- */
.case { display: flex; flex-direction: column; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); transition: box-shadow 200ms ease, transform 200ms ease; }
.case:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.case .sector { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 12px; }
.case h3 { font-size: 20px; margin-bottom: 14px; }
.case .case-metrics { display: flex; gap: 20px; margin: 4px 0 18px; }
.case .case-metrics div b { font-family: var(--font); font-size: 24px; color: var(--text); display: block; }
.case .case-metrics div span { font-size: 12px; color: var(--muted); }
.case .link-arrow { margin-top: auto; }

/* Filter tabs */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--white); font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all 140ms ease; }
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Case detail ---------- */
.cd-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 22px; }
.cd-back:hover { color: var(--accent); }
.cd-hero h1 { font-size: clamp(34px, 4.6vw, 54px); margin: 12px 0 16px; }
.cd-hero p.intro { max-width: 680px; font-size: 20px; color: var(--muted); }
.cd-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; align-items: start; }
.cd-main h2 { font-size: 24px; margin: 30px 0 12px; }
.cd-main h2:first-child { margin-top: 0; }
.cd-main p { color: var(--muted); font-size: 17px; margin-bottom: 14px; }
.cd-list { list-style: none; padding: 0; margin: 6px 0 8px; }
.cd-list li { position: relative; padding: 9px 0 9px 30px; color: var(--muted); border-top: 1px solid var(--line); font-size: 16px; }
.cd-list li:first-child { border-top: none; }
.cd-list li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.cd-side { position: sticky; top: 92px; background: var(--ink); color: #fff; border-radius: var(--radius-xl); padding: 30px; }
.cd-side h3 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 20px; font-family: "Inter", sans-serif; font-weight: 700; }
.cd-result { padding: 16px 0; border-top: 1px solid var(--ink-line); }
.cd-result:first-of-type { border-top: none; padding-top: 0; }
.cd-result b { display: block; font-family: var(--font); font-size: 34px; color: #fff; line-height: 1; }
.cd-result b .unitless { color: #a5b4fc; }
.cd-result span { font-size: 14px; color: var(--ink-text); }

.tech-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.tech { padding: 8px 14px; border-radius: var(--radius-sm); background: var(--slate); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }

/* Improvement chart */
.impr { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; margin: 20px 0; box-shadow: var(--shadow-sm); }
.impr h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); font-family: "Inter", sans-serif; font-weight: 700; margin-bottom: 18px; }
.impr-row { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 14px; margin-bottom: 14px; }
.impr-row:last-child { margin-bottom: 0; }
.impr-row .lab { font-size: 14px; color: var(--muted); font-weight: 500; }
.impr-bars { display: grid; gap: 10px; }
/* before/after bar: proportional fill + label beside it (never wraps) */
.mb { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.mb-track { height: 24px; background: #eef0f4; border-radius: 6px; overflow: hidden; }
.mb-track > i { display: block; height: 100%; border-radius: 6px; min-width: 4px; }
.mb-track > i.before { background: #c4c7cf; }
.mb-track > i.after { background: var(--accent); }
.mb-val { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
@media (max-width: 560px) { .mb { grid-template-columns: 1fr; gap: 5px; } }

/* ---------- Offices ---------- */
.office { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-sm); }
.office-photo { aspect-ratio: 4 / 3; position: relative; background: linear-gradient(135deg, #e8e8ed 0%, #d2d2d7 60%, #a1a1a6 120%); display: flex; align-items: flex-end; }
.office-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.office-photo .pin { position: absolute; top: 12px; left: 12px; width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,0.92); display: flex; align-items: center; justify-content: center; color: var(--accent); z-index: 2; }
.office-body { padding: 20px 22px; }
.office-body strong { font-family: var(--font); font-size: 19px; display: block; margin-bottom: 2px; }
.office-body .role { color: var(--accent); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.office-body address { font-style: normal; color: var(--muted); font-size: 14px; margin-top: 8px; line-height: 1.5; }

/* ---------- Prose ---------- */
.prose { max-width: 720px; }
.prose p { color: var(--muted); font-size: 18px; margin-bottom: 18px; }
.prose p.lead { color: var(--text); font-size: 21px; }
.prose h3 { font-size: 22px; }

/* ---------- CTA band (dark) ---------- */
.cta-band { text-align: center; padding: 62px 40px; background: var(--ink); border-radius: var(--radius-xl); color: #fff; }
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 12px; }
.cta-band p { color: var(--ink-text); font-size: 18px; margin-bottom: 26px; }
.cta-band .contacts { margin-top: 22px; color: var(--ink-text); font-size: 15px; }
.cta-band .contacts a { color: #fff; font-weight: 600; }

/* ---------- Notice ---------- */
.notice { display: flex; gap: 10px; padding: 14px 18px; margin-bottom: 28px; background: #fff8eb; border: 1px solid #f4d58a; border-radius: var(--radius-md); color: #8a6212; font-size: 14px; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 22px; }
.contact-card { padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); }
.contact-card.dark { background: var(--ink); color: #fff; }
.contact-card.dark h3 { color: #fff; }
.contact-form { display: grid; gap: 16px; margin-top: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
input, textarea, select { width: 100%; padding: 13px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--white); color: var(--text); font: inherit; font-size: 15px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,113,227,0.14); }
textarea { min-height: 130px; resize: vertical; }
.info-list { list-style: none; padding: 0; margin: 18px 0 0; }
.info-list li { padding: 14px 0; border-top: 1px solid var(--ink-line); }
.info-list li:first-child { border-top: none; padding-top: 0; }
.info-list .lab { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: #8b93a3; font-weight: 700; }
.info-list a, .info-list .val { color: #fff; font-weight: 500; display: block; margin-top: 3px; }
.detail-list { list-style: none; padding: 0; margin: 16px 0 0; }
.detail-list li { padding: 11px 0; border-top: 1px solid var(--line); color: var(--muted); }

/* ---------- Footer (dark) ---------- */
.site-footer { background: var(--ink); color: var(--ink-text); padding: 56px 0 28px; margin-top: 24px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 0.8fr; gap: 30px; }
.footer-brand p { color: var(--ink-text); font-size: 15px; max-width: 260px; }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: #8b93a3; font-family: "Inter", sans-serif; font-weight: 700; margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; color: var(--ink-text); font-size: 15px; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--ink-line); color: #8b93a3; font-size: 13px; }
.footer-bottom nav { display: flex; gap: 18px; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding-top: 52px; }
  .grid-3, .grid-4, .metrics, .contact-layout, .footer-grid, .cd-layout { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2,1fr); }
  .cd-side { position: static; }
  .nav-links { display: none; }
  .navbar { min-height: 60px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .container { width: min(var(--max), calc(100% - 32px)); }
  .metrics { grid-template-columns: 1fr; }
  .card, .svc, .case, .contact-card, .metric, .cd-side { padding: 22px; }
  .cta-band { padding: 40px 22px; }
  .hero-actions .button { width: 100%; }
  .impr-row { grid-template-columns: 1fr; gap: 6px; }
  .case .case-metrics { gap: 14px; }
}

/* ===========================================================
   AI-native Home additions (v3)
   =========================================================== */

/* Hero: animated figure on the left, copy on the right */
.hero-grid { grid-template-columns: 0.92fr 1.08fr; }
.hero-figure { order: 0; }
.hero-copy { order: 1; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-tag { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: var(--accent-soft); border: 1px solid rgba(0,113,227,0.16); color: var(--accent); font-size: 13px; font-weight: 600; }
.hero-tag svg { width: 14px; height: 14px; }

/* WebGL 3D AI core (with SVG fallback) */
.ai-3d { display: none; max-width: 460px; margin: 0 auto; aspect-ratio: 1 / 1; }
.ai-3d canvas { display: block; width: 100% !important; height: 100% !important; }
.hero-figure.has-3d .ai-3d { display: block; }
.hero-figure.has-3d .ai-core--fallback { display: none; }

/* Animated AI core (SVG fallback) */
.ai-core { max-width: 460px; margin: 0 auto; }
.ai-core svg { width: 100%; height: auto; display: block; overflow: visible; }
.ai-core .rotor { transform-box: fill-box; transform-origin: center; animation: ai-spin 34s linear infinite; }
.ai-core .core { transform-box: fill-box; transform-origin: center; animation: ai-breathe 4s ease-in-out infinite; }
.ai-core .ping { transform-box: fill-box; transform-origin: center; animation: ai-ping 3.4s ease-out infinite; }
.ai-core .sat { animation: ai-twinkle 3s ease-in-out infinite; }
.ai-core .sat:nth-of-type(2) { animation-delay: .4s; }
.ai-core .sat:nth-of-type(3) { animation-delay: .8s; }
.ai-core .sat:nth-of-type(4) { animation-delay: 1.2s; }
.ai-core .sat:nth-of-type(5) { animation-delay: 1.6s; }
.ai-core .sat:nth-of-type(6) { animation-delay: 2s; }
@keyframes ai-spin { to { transform: rotate(360deg); } }
@keyframes ai-breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes ai-ping { 0% { transform: scale(1); opacity: .55; } 80%,100% { transform: scale(2.5); opacity: 0; } }
@keyframes ai-twinkle { 0%,100% { opacity: .5; } 50% { opacity: 1; } }

/* Live AI Proof */
.proof-card { position: relative; background: linear-gradient(180deg, #fbfbff 0%, #f4f5fd 100%); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow); padding: 30px 34px 34px; overflow: hidden; }
.proof-title { text-align: center; font-family: var(--font); font-weight: 700; font-size: 14px; letter-spacing: 0.22em; color: var(--ink); margin-bottom: 8px; }
.proof-wrap { display: grid; grid-template-columns: 160px 1fr 160px; gap: 16px; align-items: center; }
.proof-stat { text-align: center; }
.proof-stat b { display: block; font-family: var(--font); font-size: clamp(40px, 5vw, 58px); font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.proof-stat span { display: block; margin-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.proof-stat.right b { color: var(--accent); }
.proof-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.udix-line { stroke-dasharray: 760; stroke-dashoffset: 760; animation: proof-draw 2.2s ease-out .2s forwards; }
.proof-label { opacity: 0; animation: proof-fade .6s ease forwards 1.9s; }
@keyframes proof-draw { to { stroke-dashoffset: 0; } }
@keyframes proof-fade { to { opacity: 1; } }

/* Card highlight line (AI-augmented style) */
.card .hl { display: block; font-family: var(--font); font-weight: 700; font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); margin: 16px 0 8px; }

/* Proof legend */
.proof-sub { text-align: center; color: var(--muted); font-size: 13px; margin: 2px 0 14px; }
.proof-legend { display: flex; justify-content: center; gap: 22px; margin-top: 14px; flex-wrap: wrap; }
.proof-legend span { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 500; }
.proof-legend i { width: 22px; height: 0; border-top: 3px solid var(--accent); border-radius: 2px; }
.proof-legend i.trad { border-top: 3px dashed #bcc2d2; }

/* AI services: neutral by default, highlight on hover only */
.card.is-ai { border-color: var(--line); background: var(--white); }
.card.is-ai:hover { border-color: rgba(0,113,227,0.30); background: var(--accent-tint); }
.card.is-ai .spark, .svc.is-ai h2 .spark { color: var(--muted-2); transition: color .2s ease; }
.card.is-ai:hover .spark, .svc.is-ai:hover h2 .spark { color: var(--accent); }
.svc.is-ai { border-color: var(--line); border-left: 1px solid var(--line); background: var(--white); transition: border-color .2s ease, background .2s ease; }
.svc.is-ai:hover { border-color: rgba(0,113,227,0.28); border-left: 4px solid var(--accent); background: linear-gradient(180deg, var(--accent-tint) 0%, var(--white) 55%); }

/* Horizontal timeline */
.timeline-h { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 8px; }
.timeline-h::before { content: ""; position: absolute; left: 4px; right: 4px; top: 8px; height: 2px; background: var(--line); }
.th-item { position: relative; padding-top: 30px; }
.th-item::before { content: ""; position: absolute; left: 0; top: 1px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid var(--accent); }
.th-year { font-weight: 700; color: var(--accent); font-size: 14px; }
.th-item h3 { font-size: 17px; margin: 5px 0 6px; }
.th-item p { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) {
  .timeline-h { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 18px; padding-bottom: 10px; -webkit-overflow-scrolling: touch; }
  .timeline-h::before { display: none; }
  .th-item { min-width: 240px; scroll-snap-align: start; border-top: 2px solid var(--line); padding-top: 22px; }
  .th-item::before { top: -8px; }
}

/* About hero abstract visual */
.about-figure { border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; background: linear-gradient(160deg, #f4f9ff 0%, #ffffff 60%, #f7f9fc 100%); }
.about-figure svg, .about-figure canvas { width: 100%; height: 100%; display: block; }
.about-figure .fl { transform-box: fill-box; transform-origin: center; animation: aboutFloat 6.5s ease-in-out infinite; }
.about-figure .glow { transform-box: fill-box; transform-origin: center; animation: aboutGlow 4.5s ease-in-out infinite; }
@keyframes aboutFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes aboutGlow { 0%,100% { opacity: .55; transform: scale(1); } 50% { opacity: .9; transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .about-figure .fl, .about-figure .glow { animation: none; } }

/* Service / link cards (clickable) */
a.card { display: flex; flex-direction: column; color: inherit; }
a.card .link-arrow { margin-top: auto; padding-top: 14px; }
a.card .icon { margin-bottom: 16px; }

/* Detail page: process steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.step .n { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--muted); font-size: 16px; margin-top: 12px; max-width: 720px; }

@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

@media (max-width: 960px) {
  .hero-figure { order: 1; }
  .hero-copy { order: 0; }
  .ai-core, .ai-3d { max-width: 320px; }
}
@media (max-width: 760px) {
  .proof-wrap { grid-template-columns: 1fr 1fr; gap: 18px; }
  .proof-chart { grid-column: 1 / -1; order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  .ai-core .rotor, .ai-core .core, .ai-core .ping, .ai-core .sat { animation: none; }
  .udix-line { animation: none; stroke-dashoffset: 0; }
  .proof-label { animation: none; opacity: 1; }
}

/* ===========================================================
   Mobile navigation (v4)
   =========================================================== */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 0; border: 1px solid var(--line-strong); border-radius: 10px;
  background: #fff; cursor: pointer;
}
.nav-toggle-bar { width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .22s ease, opacity .22s ease; }
body.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 8px 24px 22px;
  background: rgba(255,255,255,0.98);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}
body.nav-open .mobile-menu { display: flex; }
.mobile-menu a:not(.mobile-cta) {
  padding: 14px 4px; font-size: 17px; font-weight: 500; color: var(--text);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a.active { color: var(--accent); }
.mobile-menu .mobile-cta { margin-top: 16px; width: 100%; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .navbar > .button.primary { display: none; }
}

/* ===========================================================
   Office building illustrations
   =========================================================== */
.office-photo .office-illus { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.office-photo img { z-index: 1; }
.office-photo .pin { z-index: 2; }

/* ===========================================================
   About page (v5)
   =========================================================== */
.about-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.about-media { border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; background: linear-gradient(135deg, #e8e8ed, #d2d2d7); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; background: var(--white); box-shadow: var(--shadow-sm); }
.stat-strip > div { padding: 28px 26px; border-left: 1px solid var(--line); }
.stat-strip > div:first-child { border-left: none; }
.stat-strip b { display: block; font-size: clamp(30px, 4vw, 44px); font-weight: 600; letter-spacing: -0.035em; color: var(--text); line-height: 1; }
.stat-strip span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }

.timeline { position: relative; max-width: 760px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 8px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 32px 42px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: 1px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid var(--accent); }
.tl-year { font-weight: 700; color: var(--accent); font-size: 15px; letter-spacing: 0.01em; }
.tl-item h3 { font-size: 20px; margin: 5px 0 6px; }
.tl-item p { color: var(--muted); font-size: 16px; max-width: 560px; }

.pull-quote { max-width: 860px; margin: 0 auto; text-align: center; }
.pull-quote blockquote { margin: 0; font-size: clamp(24px, 3.2vw, 38px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
.pull-quote cite { display: block; margin-top: 18px; font-style: normal; color: var(--muted); font-size: 15px; }

@media (max-width: 960px) {
  .about-hero { grid-template-columns: 1fr; gap: 32px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip > div:nth-child(3) { border-left: none; }
  .stat-strip > div:nth-child(odd) { border-left: none; }
}
@media (max-width: 560px) {
  .stat-strip { grid-template-columns: 1fr; }
  .stat-strip > div { border-left: none; border-top: 1px solid var(--line); }
  .stat-strip > div:first-child { border-top: none; }
}


/* ===== Cookie consent (PECR) ===== */
.cc-banner{position:fixed;left:16px;right:16px;bottom:16px;z-index:200;max-width:600px;margin:0 auto;background:var(--ink);color:#fff;border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);padding:18px 20px;display:flex;gap:14px;align-items:center;flex-wrap:wrap;}
.cc-banner p{color:var(--ink-text);font-size:14px;flex:1;min-width:240px;margin:0;}
.cc-banner a{color:#fff;text-decoration:underline;}
.cc-actions{display:flex;gap:8px;}
.cc-actions button{border:none;cursor:pointer;font:inherit;font-weight:600;font-size:14px;border-radius:999px;padding:10px 18px;}
.cc-accept{background:var(--accent);color:#fff;}
.cc-reject{background:#2a2a2c;color:#fff;}
@media(max-width:520px){.cc-banner{flex-direction:column;align-items:stretch;}.cc-actions button{width:100%;}}
