/* ══════════════════════════════════════════════════════════════
   QHIRA INTELLIGENCE — CORE
   Design System v2.0 · Editorial Corporate Minimalism
   ══════════════════════════════════════════════════════════════ */

/* ── TOKENS ───────────────────────────────────────────────────── */
:root {
  --bg:           #0A0A0B;
  --bg-raise:     #111113;
  --bg-elevated:  #17171A;
  --bg-inverse:   #F5F2ED;
  --line:         #1E1E22;
  --line-strong:  #2A2A30;
  --ink:          #F3EFE8;
  --ink-soft:     #9A968E;
  --ink-mute:     #5A5650;

  --accent:       #A0252E;
  --accent-deep:  #6E1620;
  --accent-bright:#C42D38;
  --accent-wash:  rgba(160,37,46,0.14);
  --accent-line:  rgba(160,37,46,0.28);

  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:  'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --fs-mega:    clamp(48px, 11vw, 168px);
  --fs-hero:    clamp(40px, 7.5vw, 112px);
  --fs-h1:      clamp(32px, 5.5vw, 80px);
  --fs-h2:      clamp(28px, 3.8vw, 56px);
  --fs-h3:      clamp(22px, 2.4vw, 28px);
  --fs-h4:      clamp(18px, 1.8vw, 20px);
  --fs-body-lg: clamp(16px, 1.4vw, 18px);
  --fs-body:    15px;
  --fs-small:   13px;
  --fs-mono:    11px;

  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  16px;
  --sp-4:  24px;
  --sp-5:  40px;
  --sp-6:  64px;
  --sp-7:  96px;
  --sp-8:  128px;

  --easing: cubic-bezier(0.2, 0.0, 0.0, 1.0);
  --nav-h: 72px;
  --topbar-h: 40px;
  --container: 1440px;
}

[data-theme="light"] {
  --bg:           #F5F2ED;
  --bg-raise:     #FFFFFF;
  --bg-elevated:  #EBE7DF;
  --bg-inverse:   #0A0A0B;
  --line:         #DDD8CF;
  --line-strong:  #C4BFB5;
  --ink:          #0A0A0B;
  --ink-soft:     #5A5650;
  --ink-mute:     #9A968E;

  --accent:       #8E1B2E;
  --accent-deep:  #6E1620;
  --accent-bright:#A0252E;
  --accent-wash:  rgba(142,27,46,0.10);
  --accent-line:  rgba(142,27,46,0.25);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

html, body { overflow-x: hidden; max-width: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 280ms var(--easing), color 280ms var(--easing);
  position: relative;
  min-height: 100vh;
}

/* Grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0, 0 0 0 0 0, 0 0 0 0 0, 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
svg { display: block; max-width: 100%; }
img { max-width: 100%; display: block; height: auto; }
input, textarea, select { font: inherit; color: inherit; }

/* Long-word safety on display headlines */
.h-mega, .h-hero, .h-1, .h-2,
.hero-title, .section-title,
[class*="-hero-title"], [class*="-card-title"], [class*="-cell-title"],
.cta-strip-title { overflow-wrap: anywhere; word-break: break-word; hyphens: auto; }

::selection { background: var(--accent); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-strong); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-mute); }

/* ── LAYOUT ───────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
}

.section {
  padding-top: var(--sp-8);
  padding-bottom: var(--sp-8);
  position: relative;
}
.section-sm { padding-top: var(--sp-7); padding-bottom: var(--sp-7); }

.section-head {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 64px;
  align-items: end;
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--sp-7);
}

.section-num {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 100px;
  line-height: 0.85;
  letter-spacing: -0.05em;
  font-variation-settings: "opsz" 144;
  color: var(--ink);
}
.section-num em { font-style: normal; color: var(--accent); }

.section-meta { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }

.section-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: var(--fs-h2);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}
.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-variation-settings: "opsz" 144;
}

.section-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 560px;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); }

/* ── TYPOGRAPHY ──────────────────────────────────────────────── */
.h-mega {
  font-family: var(--serif);
  font-weight: 900;
  font-size: var(--fs-mega);
  line-height: 0.82;
  letter-spacing: -0.055em;
  font-variation-settings: "opsz" 144;
  color: var(--ink);
}
.h-mega em { font-style: italic; font-weight: 400; color: var(--accent); font-variation-settings: "opsz" 144; }

.h-hero {
  font-family: var(--serif);
  font-weight: 900;
  font-size: var(--fs-hero);
  line-height: 0.85;
  letter-spacing: -0.05em;
  font-variation-settings: "opsz" 144;
  color: var(--ink);
}
.h-hero em { font-style: italic; font-weight: 400; color: var(--accent); font-variation-settings: "opsz" 144; }

.h-1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 144;
}
.h-1 em { font-style: italic; font-weight: 400; color: var(--accent); font-variation-settings: "opsz" 144; }

.h-2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 1.0;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144;
}
.h-2 em { font-style: italic; font-weight: 400; color: var(--accent); font-variation-settings: "opsz" 144; }

.h-3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: var(--fs-h3);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 72;
}

.h-4 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: var(--fs-h4);
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 72;
}

.text-body-lg {
  font-size: var(--fs-body-lg);
  line-height: 1.65;
  color: var(--ink-soft);
}

.text-body {
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink-soft);
}

.text-small {
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--ink-soft);
}

.text-mono {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.lbl {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
}

.lbl-accent { color: var(--accent); }

/* ══════════════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════════════ */
/* ── TOPBAR ──────────────────────────────────────────────── */
.nav-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 101;
  height: var(--topbar-h);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--line);
}

.nav-topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.nav-topbar-link {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: opacity 200ms;
  white-space: nowrap;
}
.nav-topbar-link:hover { opacity: 0.7; }

.nav-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.nav-topbar-item {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.nav-topbar-vsep {
  width: 1px;
  height: 14px;
  background: var(--line-strong);
}

.nav-topbar-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-topbar-socials a {
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  transition: color 200ms;
}
.nav-topbar-socials a:hover { color: var(--accent); }

/* ── NAV ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: var(--topbar-h); left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background 280ms var(--easing);
}

[data-theme="light"] .nav {
  background: rgba(245, 242, 237, 0.72);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 48px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  transition: opacity 200ms;
}
.nav-logo:hover { opacity: 0.8; }

.nav-logo svg { color: var(--ink); flex-shrink: 0; }

.nav-logo-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-logo-text {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variation-settings: "opsz" 72;
  line-height: 1;
}
.nav-logo-text em { color: var(--accent); font-style: italic; font-weight: 400; font-variation-settings: "opsz" 72; }

.nav-logo-sub {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.015em;
  color: var(--accent);
  line-height: 1;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.nav-link {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
  padding: 8px 14px;
  position: relative;
  transition: color 200ms;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px;
  bottom: 2px;
  height: 1px;
  background: var(--accent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-lang {
  display: inline-flex;
  gap: 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  align-items: center;
}
.nav-lang button {
  padding: 4px 6px;
  font-family: inherit;
  font-size: inherit;
  color: var(--ink-mute);
  transition: color 200ms;
}
.nav-lang button.active { color: var(--ink); }
.nav-lang button:hover { color: var(--ink); }
.nav-lang-sep { color: var(--line-strong); }

.nav-theme {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  transition: all 200ms;
}
.nav-theme:hover { border-color: var(--line-strong); color: var(--ink); }
.nav-theme svg { width: 15px; height: 15px; }

.nav-sep {
  width: 1px;
  height: 20px;
  background: var(--line);
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-phone-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  transition: border-color 200ms;
}
.nav-phone:hover .nav-phone-icon { border-color: var(--accent-line); }

.nav-phone-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-phone-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  text-transform: uppercase;
  line-height: 1;
}

.nav-phone-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1;
  transition: color 200ms;
}
.nav-phone-num:hover { color: var(--accent); }

.nav-cta {
  background: var(--ink);
  color: var(--bg);
  padding: 10px 22px;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 200ms var(--easing);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent); color: #fff; }

.nav-burger {
  display: none;
  width: 34px; height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
}

@media (max-width: 960px) {
  .nav-topbar { display: none; }
  .nav { top: 0; }
  main { padding-top: var(--nav-h); }
  .nav-links, .nav-right > *:not(.nav-theme):not(.nav-burger) { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-inner { grid-template-columns: 1fr auto; gap: 16px; }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE NAV OVERLAY
   ══════════════════════════════════════════════════════════════ */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms var(--easing);
  overflow-y: auto;
}
.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.nav-overlay-q {
  position: absolute;
  right: -20vw; top: 10%;
  color: var(--ink);
  opacity: 0.05;
  pointer-events: none;
}

.nav-overlay-top {
  height: var(--nav-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.nav-overlay-close {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: all 200ms;
}
.nav-overlay-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-overlay-body {
  flex: 1;
  padding: 48px 24px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.nav-overlay-links {
  display: flex;
  flex-direction: column;
}

.nav-overlay-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
  transition: padding-left 200ms var(--easing), color 200ms;
}
.nav-overlay-link:hover,
.nav-overlay-link.active {
  padding-left: 12px;
  color: var(--accent);
}

.nav-overlay-link-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-mute);
  letter-spacing: 0.15em;
}

.nav-overlay-link.active .nav-overlay-link-num {
  color: var(--accent);
}

.nav-overlay-foot {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.nav-overlay-foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-overlay-foot-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav-overlay-cta {
  background: var(--accent);
  color: #fff;
  padding: 16px 28px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: center;
}
.nav-overlay-cta:hover { background: var(--accent-deep); }

.nav-overlay-social {
  display: flex;
  gap: 4px;
}
.nav-overlay-social a {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  transition: all 200ms;
}
.nav-overlay-social a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

@media (min-width: 961px) {
  .nav-overlay { display: none !important; }
}

@media (max-width: 480px) {
  .nav-overlay-link { font-size: 28px; padding: 14px 0; }
}

main { padding-top: calc(var(--topbar-h) + var(--nav-h)); }

/* ══════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: all 200ms var(--easing);
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 14px 24px;
  border-radius: 2px;
}
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }

.btn-pill {
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
}
.btn-pill:hover { background: var(--accent-deep); }

.btn-outline {
  color: var(--ink);
  padding: 13px 24px;
  border-radius: 2px;
  border: 1px solid var(--line-strong);
}
.btn-outline:hover { border-color: var(--ink); }

.btn-ink {
  background: var(--ink);
  color: var(--bg);
  padding: 14px 24px;
  border-radius: 999px;
}
.btn-ink:hover { background: var(--accent); color: #fff; }

.btn-ghost {
  color: var(--ink-soft);
  padding: 13px 20px;
}
.btn-ghost:hover { color: var(--accent); }

.btn-large { padding: 18px 36px; font-size: 15px; }
.btn-sm { padding: 9px 16px; font-size: 13px; }

.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  transition: gap 220ms var(--easing);
  background: none; border: none;
}
.btn-arrow:hover { gap: 22px; color: var(--accent); }

.btn-arrow-dot {
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 220ms var(--easing);
}
.btn-arrow:hover .btn-arrow-dot { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ══════════════════════════════════════════════════════════════
   BADGES
   ══════════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--ink-soft);
}

.badge-beta {
  color: var(--accent);
  background: var(--accent-wash);
  border-color: var(--accent-line);
}

.badge-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* ══════════════════════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════════════════════ */

/* Service Grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}

.service-cell {
  padding: 40px 32px 36px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-height: 400px;
  transition: background 240ms var(--easing);
  position: relative;
  cursor: pointer;
}
.service-cell:last-child { border-right: none; }
.service-cell:hover { background: var(--bg-raise); }

.service-cell-top {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-cell-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.2em;
}

.service-cell-icon {
  width: 48px; height: 48px;
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
}

.service-cell-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
}

.service-cell-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variation-settings: "opsz" 72;
}

.service-cell-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.service-cell-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 200ms, gap 200ms;
}
.service-cell:hover .service-cell-link { color: var(--accent); gap: 12px; }

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  border: 1px solid var(--line);
}

.blog-cell {
  padding: 40px 36px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background 240ms;
  min-height: 380px;
  cursor: pointer;
}
.blog-cell:last-child { border-right: none; }
.blog-cell:hover { background: var(--bg-raise); }
.blog-cell.feat { background: var(--bg-raise); }

.blog-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.blog-meta-cat { color: var(--accent); }
.blog-meta-dot { width: 3px; height: 3px; background: currentColor; border-radius: 50%; }

.blog-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variation-settings: "opsz" 72;
  flex: 1;
}
.blog-cell.feat .blog-title {
  font-size: 40px;
  font-weight: 700;
  font-variation-settings: "opsz" 144;
}

.blog-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.blog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
}

/* Project Editorial */
.project-editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-top: none;
  background: var(--bg-raise);
}
.project-editorial:first-of-type { border-top: 1px solid var(--line); }

.project-editorial-visual {
  padding: 80px 56px;
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  min-height: 480px;
}

.project-editorial-visual-q {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  opacity: 0.12;
  z-index: 0;
}

.project-editorial-visual.right .project-editorial-visual-q {
  right: auto; left: -100px;
}

.project-editorial-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  z-index: 2;
}

.project-editorial-visual-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 88px;
  line-height: 0.85;
  letter-spacing: -0.045em;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
  z-index: 2;
  position: relative;
}
.project-editorial-visual-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-variation-settings: "opsz" 144;
}

.project-editorial-body {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.project-editorial-category {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.project-editorial-subtitle {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.2;
  font-variation-settings: "opsz" 72;
  margin-bottom: 16px;
}

.project-editorial-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 480px;
}

.project-editorial-specs {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.project-editorial-spec {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.project-editorial-spec:last-child { border-bottom: none; }

.project-editorial-spec-k {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-editorial-spec-v {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}

.project-editorial-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════════
   PROCESS STEPS
   ══════════════════════════════════════════════════════════════ */
.process-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: var(--bg-raise);
}

.process-cell {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.process-cell:last-child { border-right: none; }

.process-cell-num {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 56px;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--accent);
  font-variation-settings: "opsz" 144;
}

.process-cell-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-variation-settings: "opsz" 72;
}

.process-cell-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ══════════════════════════════════════════════════════════════
   CTA STRIP
   ══════════════════════════════════════════════════════════════ */
.cta-strip {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  padding: 48px 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.cta-strip-q {
  position: absolute;
  right: -80px; top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  opacity: 0.08;
  pointer-events: none;
}

.cta-strip-content { position: relative; z-index: 2; }

.cta-strip-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cta-strip-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}
.cta-strip-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-variation-settings: "opsz" 144;
}

.cta-strip-actions {
  display: flex;
  gap: 16px;
  position: relative;
  z-index: 2;
}

/* ══════════════════════════════════════════════════════════════
   STATS
   ══════════════════════════════════════════════════════════════ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-top: none;
}

.stats-cell {
  padding: 32px 36px;
  border-right: 1px solid var(--line);
}
.stats-cell:last-child { border-right: none; }

.stats-cell-num {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 56px;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
  margin-bottom: 8px;
}
.stats-cell-num em { font-style: normal; color: var(--accent); }

.stats-cell-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.stats-cell-desc {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--line);
  padding: 80px 0 40px;
  margin-top: var(--sp-8);
  position: relative;
  overflow: hidden;
}

.footer-q {
  position: absolute;
  right: -10vw; bottom: -30vh;
  color: var(--ink);
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
  z-index: 2;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line);
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 420px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-name {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-logo-text {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variation-settings: "opsz" 72;
  line-height: 1;
}
.footer-logo-text em { color: var(--accent); font-style: italic; font-weight: 400; font-variation-settings: "opsz" 72; }

.footer-logo-sub {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.20em;
  color: var(--accent);
  line-height: 1;
}

.footer-tagline {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-variation-settings: "opsz" 72;
}
.footer-tagline em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-variation-settings: "opsz" 72;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.footer-col-title {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.footer-col-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.footer-col-list a {
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 200ms;
}
.footer-col-list a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 40px;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-social {
  display: flex;
  gap: 4px;
}

.footer-social a {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  transition: all 200ms;
}
.footer-social a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ══════════════════════════════════════════════════════════════
   HERO (Shared)
   ══════════════════════════════════════════════════════════════ */
.hero {
  padding-top: 80px;
  padding-bottom: 120px;
  position: relative;
  overflow: hidden;
}

.hero-bg-q {
  position: absolute;
  right: -8vw;
  top: -5vh;
  opacity: 0.06;
  color: var(--ink);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 40px;
}
.hero-eyebrow::before {
  content: '';
  width: 48px;
  height: 1px;
  background: var(--accent);
}

.hero-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: var(--fs-hero);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
  margin-bottom: 32px;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-variation-settings: "opsz" 144;
}

.hero-desc {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════════
   UTILITY
   ══════════════════════════════════════════════════════════════ */
.mt-0 { margin-top: 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }

.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-ink { color: var(--ink); }
.text-soft { color: var(--ink-soft); }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-end { align-items: end; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .service-cell:nth-child(2) { border-right: none; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-cell.feat { grid-column: 1 / -1; }
  .stats-row, .process-row { grid-template-columns: repeat(2, 1fr); }
  .stats-cell:nth-child(2), .process-cell:nth-child(2) { border-right: none; }
  .stats-cell:nth-child(-n+2), .process-cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 860px) {
  .container { padding: 0 24px; }
  .section { padding-top: var(--sp-7); padding-bottom: var(--sp-7); }
  .section-head { grid-template-columns: 1fr; gap: 32px; }
  .section-num { font-size: clamp(56px, 16vw, 72px); }
  .project-editorial { grid-template-columns: 1fr; }
  .project-editorial-visual { min-height: 280px; padding: 40px 28px; border-right: none; border-bottom: 1px solid var(--line); }
  .project-editorial-visual-title { font-size: clamp(48px, 12vw, 64px); }
  .project-editorial-body { padding: 32px 28px; }
  .project-editorial-spec { grid-template-columns: 110px 1fr; gap: 16px; }
  .cta-strip { grid-template-columns: 1fr; padding: 32px 28px; gap: 24px; }
  .cta-strip-title { font-size: clamp(22px, 6vw, 28px); }
  .cta-strip-actions { flex-direction: column; align-items: stretch; }
  .cta-strip-actions .btn { justify-content: center; }
  .footer { padding: 56px 0 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; padding-bottom: 40px; }
  .footer-brand-block { grid-column: 1 / -1; }
  .footer-bottom { padding-top: 32px; }
  .nav-inner { padding: 0 20px; }
  main { padding-top: calc(var(--topbar-h) + var(--nav-h)); }
  .hero { padding-top: 56px; padding-bottom: 80px; }
  .hero-eyebrow { margin-bottom: 28px; font-size: 10px; gap: 12px; }
  .hero-eyebrow::before { width: 32px; }
  .hero-title { margin-bottom: 24px; }
  .hero-desc { font-size: 16px; margin-bottom: 32px; }
  .hero-ctas .btn-large { padding: 16px 28px; font-size: 14px; }
}

@media (max-width: 560px) {
  .service-grid, .blog-grid, .stats-row, .process-row { grid-template-columns: 1fr; }
  .service-cell, .blog-cell, .stats-cell, .process-cell {
    border-right: none !important;
    border-bottom: 1px solid var(--line);
  }
  .service-cell:last-child, .blog-cell:last-child, .stats-cell:last-child, .process-cell:last-child { border-bottom: none; }
  .service-cell { min-height: 320px; padding: 32px 24px 28px; }
  .footer-top { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 16px; }
  .nav-cta { padding: 8px 14px; font-size: 12px; }
  .btn-large { padding: 14px 24px; font-size: 14px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .section-num { font-size: 56px; }
  .project-editorial-visual-title { font-size: clamp(44px, 14vw, 56px); }
  .project-editorial-spec { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  .project-editorial-cta { flex-direction: column; align-items: stretch; gap: 16px; }
  .project-editorial-cta .btn { width: 100%; justify-content: center; }
  .stats-cell-num, .process-cell-num { font-size: 40px; }
  .blog-cell.feat .blog-title { font-size: 28px; }
  .blog-title { font-size: 22px; }
  .service-cell-title { font-size: 24px; }
  .footer-tagline { font-size: 18px; }
}

@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .section { padding-top: 48px; padding-bottom: 48px; }
  .hero { padding-top: 40px; padding-bottom: 64px; }
  .footer-top { gap: 24px; }
  .footer-tagline { font-size: 17px; }
  .footer-inner { padding: 0 20px; }
}
