/* Titan Digital — jack.tm-inspired theme
   Light, bold, conversion-focused. Sans-serif throughout, strong weight hierarchy,
   results-forward, generous whitespace, restrained emerald accent, subtle motion. */

:root {
  --ink:        #0d1117;
  --ink-soft:   #1c2330;
  --paper:      #ffffff;
  --bg:         #f4f6f8;
  --bg-2:       #eceff3;
  --line:       #e2e6ec;
  --line-soft:  #eef1f5;
  --muted:      #5a6573;
  --muted-2:    #8a93a1;
  --accent:     #0f9d63;
  --accent-2:   #12b873;
  --accent-ink: #0a6b43;
  --accent-soft:#e7f7ef;
  --max:        1200px;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(13,17,23,.04), 0 2px 10px -4px rgba(13,17,23,.08);
  --shadow:    0 14px 34px -18px rgba(13,17,23,.22);
  --shadow-lg: 0 36px 80px -36px rgba(13,17,23,.4);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.container.narrow { max-width: 760px; }

.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 700; font-size: 15px; letter-spacing: -0.01em;
  padding: 15px 28px; border-radius: var(--r-pill);
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
  cursor: pointer; border: 1.5px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 26px -12px rgba(15,157,99,.8); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 16px 32px -14px rgba(15,157,99,.9); }
.btn-primary.btn-light { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.btn-primary.btn-light:hover { transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--accent); transform: translateY(-2px); }
.btn-lg { padding: 17px 34px; font-size: 16px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.8);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,.92); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { display: block; height: 23px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { font-size: 15px; font-weight: 600; color: var(--ink-soft); transition: color .15s; }
.site-nav a:not(.nav-cta):hover { color: var(--accent); }
.nav-cta { background: var(--accent); color: #fff !important; padding: 11px 20px; border-radius: var(--r-pill); transition: background .2s, transform .2s; box-shadow: 0 8px 20px -10px rgba(15,157,99,.8); }
.nav-cta:hover { background: var(--accent-2); transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: 0; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); display: block; transition: .2s; }

/* ---------- Hero ---------- */
.hero { background: var(--paper); padding: 80px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(680px 360px at 88% 0%, rgba(18,184,115,.10), transparent 65%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-copy { max-width: 36rem; }
.hero-title { font-size: clamp(2.6rem, 5.4vw, 4.4rem); margin: 0 0 22px; color: var(--ink); }
.hero-title .hl { color: var(--accent); }
.hero-sub { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: var(--muted); margin: 0 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { margin: 18px 0 0; font-size: 13.5px; color: var(--muted-2); font-family: var(--mono); }
.hero-note b { color: var(--accent); font-weight: 600; }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.hero-badge {
  position: absolute; left: -22px; bottom: 26px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px 20px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center;
}
.hero-badge .hb-num { font-size: 1.8rem; font-weight: 800; color: var(--accent); letter-spacing: -.03em; }
.hero-badge .hb-lbl { font-size: 12px; color: var(--muted); max-width: 12ch; line-height: 1.3; }

/* ---------- Trust strip ---------- */
.trust { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust .container { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; padding-top: 26px; padding-bottom: 26px; }
.trust-label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); }
.trust-item { font-weight: 700; font-size: 1.05rem; color: var(--ink-soft); opacity: .85; }
.trust-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .6; }

/* ---------- Stats / results ---------- */
.stats { background: var(--bg); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 64px 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 34px 26px; text-align: center; transition: transform .2s, box-shadow .2s; }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat-value { display: block; font-size: 2.8rem; font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -.03em; }
.stat-label { display: block; margin-top: 12px; font-size: 13px; letter-spacing: .02em; color: var(--muted); }

/* ---------- Section heads ---------- */
.section-head { max-width: 720px; margin-bottom: 50px; }
.section-head h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
.section-foot { margin-top: 48px; }

/* ---------- Services ---------- */
.services-section { padding: 110px 0; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.service { background: var(--bg); padding: 40px; border-radius: var(--r); transition: transform .22s, box-shadow .22s, background .22s; border: 1px solid transparent; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); background: #fff; border-color: var(--line); }
.service-num { font-family: var(--mono); color: var(--accent); font-size: .95rem; font-weight: 600; }
.service h3 { font-size: 1.5rem; margin: 14px 0 12px; }
.service p { color: var(--muted); margin: 0; }

.mini-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.mini-service { background: #fff; border: 1px solid var(--line); padding: 22px 24px; border-radius: var(--r); display: flex; flex-direction: column; gap: 5px; transition: transform .2s, border-color .2s, box-shadow .2s; }
.mini-service:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); }
.mini-icon { color: var(--accent); font-size: 1.2rem; }
.mini-title { font-weight: 700; font-size: 1.08rem; }
.mini-cat { font-family: var(--mono); font-size: 11px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Approach ---------- */
.approach { padding: 0 0 110px; }
.approach-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.approach-media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.approach-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 5/4; }
.approach-text h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 0 0 20px; }
.approach-text p { color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 24px 0 30px; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 13px; color: var(--ink); font-weight: 500; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230f9d63' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 13px;
}

/* ---------- Cases ---------- */
.featured-cases { padding: 110px 0; background: var(--bg); }
.cases-listing { padding: 80px 0 110px; }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.case-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .22s, box-shadow .22s; }
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.case-thumb { display: block; overflow: hidden; aspect-ratio: 16/10; background: var(--bg-2); }
.case-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.case-card:hover .case-thumb img { transform: scale(1.06); }
.case-body { display: flex; flex-direction: column; flex: 1; padding: 28px 26px; }
.case-industry { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 600; }
.case-card h3 { font-size: 1.32rem; margin: 12px 0 12px; }
.case-card p { color: var(--muted); flex: 1; margin: 0 0 20px; font-size: .98rem; }
.case-metric { display: flex; align-items: baseline; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); margin-bottom: 16px; }
.metric-value { font-size: 1.9rem; font-weight: 800; color: var(--accent); letter-spacing: -.03em; }
.metric-label { font-size: 13px; color: var(--muted); }
.case-link { font-weight: 700; font-size: 14px; color: var(--accent); }

/* ---------- Testimonials ---------- */
.testimonials { padding: 110px 0; }
.tm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tm-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 32px 30px; display: flex; flex-direction: column; }
.tm-quote { font-size: 1.08rem; color: var(--ink); line-height: 1.6; margin: 0 0 22px; flex: 1; }
.tm-quote::before { content: "“"; font-size: 2.4rem; color: var(--accent); line-height: 0; vertical-align: -0.4em; margin-right: 4px; }
.tm-meta { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 18px; }
.tm-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .9rem; }
.tm-name { font-weight: 700; font-size: .95rem; }
.tm-role { font-size: 12.5px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { position: relative; color: #fff; padding: 104px 0; text-align: center; overflow: hidden; isolation: isolate; }
.cta-media { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13,17,23,.9), rgba(10,107,67,.92)); }
.cta-inner { max-width: 700px; margin: 0 auto; }
.cta h2 { font-size: clamp(2rem, 4vw, 3rem); color: #fff; margin: 0 0 16px; }
.cta p { color: rgba(255,255,255,.85); font-size: 1.12rem; margin: 0 0 30px; }
.cta-note { margin-top: 18px !important; font-size: 13px !important; color: rgba(255,255,255,.6) !important; font-family: var(--mono); }

/* ---------- Founder band ---------- */
.founder-band { padding: 0 0 110px; }
.founder-grid { display: grid; grid-template-columns: 180px 1fr; gap: 44px; align-items: center; background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 52px; position: relative; overflow: hidden; isolation: isolate; }
.founder-band .founder-grid::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(560px 280px at 12% 20%, rgba(18,184,115,.22), transparent 60%); }
.founder-photo { width: 180px; height: 180px; border-radius: var(--r); object-fit: cover; box-shadow: var(--shadow-lg); }
.founder-avatar { width: 168px; height: 168px; border-radius: var(--r); background: linear-gradient(135deg, var(--accent-2), var(--accent-ink)); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 3.6rem; color: #fff; }
.founder-text .eyebrow { color: #5fe6b3; }
.founder-text h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: #fff; margin: 0 0 6px; }
.founder-role { color: #5fe6b3; font-weight: 600; margin: 0 0 14px; font-family: var(--mono); font-size: 13px; }
.founder-text p { color: rgba(255,255,255,.8); margin: 0 0 22px; max-width: 54ch; }

/* ---------- Page hero (interior, light) ---------- */
.page-hero { position: relative; background: var(--bg); padding: 88px 0 72px; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 85% -20%, rgba(18,184,115,.1), transparent 65%); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); color: var(--ink); margin: 0; max-width: 20ch; }
.page-hero .hero-sub { margin-top: 20px; color: var(--muted); font-size: 1.15rem; max-width: 60ch; }
.page-hero.has-media .page-hero-media { display: none; }
.page-hero.error-hero { padding: 130px 0; }

/* ---------- Generic page body ---------- */
.prose-section { padding: 86px 0 30px; }
.prose-section .lead { font-size: 1.3rem; color: var(--ink); margin: 0 0 24px; line-height: 1.5; font-weight: 500; }
.prose-section h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: 0 0 22px; }
.prose-section p { color: var(--muted); }
.page-body h3 { font-size: 1.5rem; margin: 36px 0 12px; }
.page-body p { color: var(--muted); }
.page-body img { border-radius: var(--r); margin: 28px 0; box-shadow: var(--shadow); }

.values { padding: 70px 0 96px; }
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.value { background: var(--bg); padding: 38px; border-radius: var(--r); transition: transform .22s, box-shadow .22s; }
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-num { font-family: var(--mono); color: var(--accent); font-size: 1rem; font-weight: 600; }
.value h3 { font-size: 1.4rem; margin: 10px 0 10px; }
.value p { color: var(--muted); margin: 0; }

.leadership { padding: 96px 0; background: var(--bg); }
.leadership h2 { font-size: clamp(1.9rem,3.6vw,2.7rem); margin: 0 0 50px; }
.leader-feature { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 44px; box-shadow: var(--shadow); }
.leader-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); }
.leader-mono { width: 100%; aspect-ratio: 1; border-radius: var(--r); background: linear-gradient(135deg, var(--accent-2), var(--accent-ink)); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 5rem; color: #fff; }
.leader-bio h3 { font-size: 1.9rem; margin: 0 0 6px; }
.leader-bio .role { color: var(--accent); font-weight: 600; font-family: var(--mono); font-size: 13px; margin: 0 0 18px; }
.leader-bio p { color: var(--muted); }
.leader-bio .btn { margin-top: 14px; }

/* ---------- Contact ---------- */
.contact-section { padding: 80px 0 110px; }
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; }
.contact-form .field { display: block; margin-bottom: 22px; }
.contact-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field > span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.field em { color: var(--accent); font-style: normal; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-family: var(--sans); font-size: 16px; background: var(--bg); transition: border .15s, background .15s, box-shadow .15s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(15,157,99,.1); }
.field-error { display: block; color: #c0392b; font-size: 13px; margin-top: 6px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { background: var(--accent-soft); border: 1px solid var(--accent-2); padding: 22px; border-radius: var(--r-sm); margin-bottom: 28px; }
.form-success strong { color: var(--accent-ink); font-size: 1.1rem; }
.form-success p { margin: 6px 0 0; color: var(--muted); }
.contact-aside { background: var(--bg); border-radius: var(--r); padding: 36px; height: fit-content; }
.contact-aside h3 { font-size: 1.5rem; margin: 0 0 24px; }
.contact-line { display: block; margin-bottom: 18px; }
.contact-line span { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); margin-bottom: 3px; }
.contact-line a { color: var(--accent); font-weight: 600; }
.contact-note { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }

/* ---------- Case study detail (light) ---------- */
.cs-hero { position: relative; background: var(--bg); padding: 80px 0 64px; border-bottom: 1px solid var(--line); }
.cs-hero.has-media .page-hero-media { display: none; }
.cs-hero .container { position: relative; }
.back-link { color: var(--accent); font-weight: 700; font-size: 14px; display: inline-block; margin-bottom: 22px; }
.cs-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); color: var(--ink); margin: 12px 0 18px; max-width: 22ch; }
.cs-summary { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.cs-client { margin-top: 24px; color: var(--muted-2); }
.cs-client span { font-family: var(--mono); text-transform: uppercase; font-size: 11px; letter-spacing: .1em; margin-right: 8px; }
.cs-metrics-section { background: var(--bg); }
.cs-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: -44px 0 0; position: relative; }
.cs-metric { background: #fff; padding: 36px 30px; text-align: center; border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid var(--line); }
.cs-metric .metric-value { display: block; font-size: 2.6rem; }
.cs-metric .metric-label { display: block; margin-top: 8px; }
.cs-body { padding: 80px 0 90px; }
.cs-body h3 { font-size: 1.6rem; margin: 36px 0 14px; }
.cs-body p { color: var(--muted); font-size: 1.08rem; }
.cs-body p:first-child { font-size: 1.25rem; color: var(--ink); }

/* ---------- Services listing ---------- */
.services-listing { padding: 84px 0 104px; }
.services-listing.alt { background: var(--bg); padding: 84px 0; }
.svc-category { margin-bottom: 64px; }
.svc-category:last-child { margin-bottom: 0; }
.svc-cat-head { margin-bottom: 28px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.svc-cat-cover { display: none; }
.svc-cat-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-card { background: #fff; border: 1px solid var(--line); padding: 32px 28px; border-radius: var(--r); display: flex; flex-direction: column; transition: transform .2s, border-color .2s, box-shadow .2s; }
.svc-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.svc-icon { color: var(--accent); font-size: 1.6rem; margin-bottom: 14px; }
.svc-card h3 { font-size: 1.28rem; margin: 0 0 10px; }
.svc-card p { color: var(--muted); flex: 1; margin: 0 0 18px; font-size: .96rem; }
.svc-badge { display: inline-block; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--accent); color: #fff; padding: 3px 8px; border-radius: var(--r-pill); vertical-align: middle; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 84px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 52px; padding-bottom: 60px; }
.footer-brand .brand-logo { height: 26px; margin-bottom: 20px; }
.footer-brand p { color: var(--muted-2); max-width: 42ch; }
.footer-social { margin-top: 22px; display: flex; gap: 18px; }
.footer-social a { color: var(--accent-2); font-weight: 600; font-size: 14px; }
.footer-col h4 { color: #fff; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin: 0 0 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a:hover, .footer-social a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; padding: 24px 32px; border-top: 1px solid rgba(255,255,255,.09); font-size: 13px; color: var(--muted-2); max-width: var(--max); margin: 0 auto; }
.footer-bottom a:hover { color: #fff; }
.empty { color: var(--muted); }

/* ---------- Portfolio (kept dark for contrast) ---------- */
.pf-page { background: #06070a; color: rgba(255,255,255,.82); }
.pf-page .eyebrow { color: #5fe6b3; }
.pf-page h1, .pf-page h2, .pf-page h3, .pf-page h4 { color: #fff; }
.pf-page .btn-ghost { color: #fff; border-color: rgba(255,255,255,.32); background: transparent; }
.pf-page .btn-ghost:hover { background: #fff; color: #06070a; border-color: #fff; }
.pf-page .section-head { margin-bottom: 44px; }
.pf-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; z-index: 0; pointer-events: none; }
.pf-glow-1 { width: 520px; height: 520px; background: #10b27e; top: -180px; right: -120px; }
.pf-glow-2 { width: 420px; height: 420px; background: #0a6cff; bottom: -160px; left: -120px; opacity: .3; }
.pf-glow-3 { width: 600px; height: 380px; background: #13c98c; left: 50%; top: -120px; transform: translateX(-50%); opacity: .26; }
.pf-hero { position: relative; padding: 120px 0 96px; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, #06070a, #0b0d12); }
.pf-grid-tex { position: absolute; inset: 0; z-index: 0; opacity: .5; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%); }
.pf-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.pf-hero-main h1 { font-size: clamp(2.8rem, 6vw, 5rem); margin: 0 0 14px; }
.pf-role { font-family: var(--mono); color: #5fe6b3; font-size: 14px; margin: 0 0 22px; }
.pf-tagline { font-size: clamp(1.1rem, 2vw, 1.4rem); color: rgba(255,255,255,.78); max-width: 46ch; margin: 0 0 32px; }
.pf-meta { margin-top: 26px; display: flex; gap: 22px; flex-wrap: wrap; font-family: var(--mono); font-size: 13px; color: rgba(255,255,255,.6); }
.pf-meta a { color: #5fe6b3; }
.pf-pin::before { content: "◉ "; color: #5fe6b3; }
.pf-hero-card { position: relative; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg); padding: 44px 36px; text-align: center; backdrop-filter: blur(8px); box-shadow: var(--shadow-lg); }
.pf-avatar { width: 132px; height: 132px; margin: 0 auto 22px; border-radius: 30px; background: linear-gradient(120deg, #0f9466, #18c78c); display: flex; align-items: center; justify-content: center; font-size: 3.2rem; font-weight: 800; color: #04140d; box-shadow: 0 20px 50px -16px rgba(24,199,140,.6); }
.pf-avatar-img { width: 138px; height: 138px; border-radius: 30px; object-fit: cover; margin: 0 auto 22px; display: block; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 22px 54px -16px rgba(24,199,140,.5); }
.pf-card-name { font-size: 1.6rem; font-weight: 800; color: #fff; }
.pf-card-role { font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,.6); margin-top: 6px; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px; }
.pf-chip { font-family: var(--mono); font-size: 11px; color: #bdeedd; background: rgba(24,199,140,.12); border: 1px solid rgba(24,199,140,.28); padding: 6px 11px; border-radius: var(--r-pill); }
.pf-highlights { background: #0b0d12; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
.pf-high-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.pf-high { padding: 44px 22px; text-align: center; border-right: 1px solid rgba(255,255,255,.1); }
.pf-high:last-child { border-right: 0; }
.pf-high-val { display: block; font-size: 2.8rem; font-weight: 800; background: linear-gradient(120deg, #0f9466, #18c78c, #7cf2c2); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.pf-high-lbl { display: block; margin-top: 12px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: rgba(255,255,255,.55); text-transform: uppercase; }
.pf-section { padding: 96px 0; position: relative; }
.pf-section.alt { background: #0b0d12; }
.pf-about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }
.pf-about h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: 0 0 24px; }
.pf-about p { color: rgba(255,255,255,.72); margin: 0 0 18px; }
.pf-focus { background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r); padding: 32px; }
.pf-focus h3 { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.6); margin: 0 0 22px; }
.pf-focus-list { list-style: none; padding: 0; margin: 0; }
.pf-focus-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.pf-focus-list li:last-child { border-bottom: 0; }
.pf-focus-dot { flex: none; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: #18c78c; box-shadow: 0 0 12px rgba(24,199,140,.8); }
.pf-focus-list h4 { font-size: 1.02rem; font-weight: 700; margin: 0 0 4px; color: #fff; }
.pf-focus-list p { margin: 0; font-size: .92rem; color: rgba(255,255,255,.62); }
.pf-timeline { position: relative; max-width: 860px; }
.pf-timeline::before { content: ""; position: absolute; left: 150px; top: 6px; bottom: 6px; width: 1px; background: rgba(255,255,255,.1); }
.pf-tl-item { display: grid; grid-template-columns: 150px 1fr; gap: 36px; padding: 18px 0 30px; position: relative; }
.pf-tl-period { font-family: var(--mono); font-size: 12.5px; color: #5fe6b3; padding-top: 4px; text-align: right; }
.pf-tl-body { position: relative; padding-left: 30px; }
.pf-tl-body::before { content: ""; position: absolute; left: -5px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: #18c78c; box-shadow: 0 0 0 4px #06070a; }
.pf-section.alt .pf-tl-body::before { box-shadow: 0 0 0 4px #0b0d12; }
.pf-tl-body h3 { font-size: 1.25rem; margin: 0 0 6px; }
.pf-tl-org { color: #5fe6b3; font-family: var(--mono); font-size: .85rem; }
.pf-tl-body p { color: rgba(255,255,255,.68); margin: 0; }
.pf-skills { display: flex; flex-wrap: wrap; gap: 12px; }
.pf-skill { font-family: var(--mono); font-size: 13px; color: #d7f5ea; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1); padding: 12px 18px; border-radius: 12px; transition: border-color .2s, transform .2s; }
.pf-skill:hover { border-color: rgba(24,199,140,.5); transform: translateY(-2px); }
.pf-connect { position: relative; padding: 112px 0; text-align: center; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, #0b0d12, #06070a); }
.pf-connect .container { position: relative; z-index: 1; max-width: 680px; }
.pf-connect h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin: 0 0 16px; }
.pf-connect p { color: rgba(255,255,255,.72); font-size: 1.12rem; margin: 0 0 30px; }
.pf-connect .hero-actions { justify-content: center; }
.pf-writing { list-style: none; padding: 0; margin: 0; max-width: 820px; }
.pf-writing li a, .pf-writing li > div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.1); }
.pf-writing li:last-child a, .pf-writing li:last-child > div { border-bottom: 1px solid rgba(255,255,255,.1); }
.pf-write-title { font-size: 1.3rem; font-weight: 700; color: #fff; }
.pf-write-outlet { font-family: var(--mono); font-size: 12px; color: #5fe6b3; white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner, .approach-grid, .contact-grid, .pf-about-grid, .pf-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .cases-grid, .svc-grid, .tm-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav { position: absolute; top: 74px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; gap: 0; padding: 0 32px; border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .3s; }
  .site-nav.open { max-height: 460px; padding: 16px 32px 24px; }
  .site-nav a { padding: 13px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 12px; width: 100%; text-align: center; justify-content: center; }
}
@media (max-width: 640px) {
  .container { padding: 0 22px; }
  .services-grid, .cases-grid, .value-grid, .mini-services, .svc-grid, .cs-metrics, .tm-grid, .footer-grid, .leader-feature, .founder-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .contact-form .field-row { grid-template-columns: 1fr; }
  .founder-photo, .founder-avatar { margin: 0 auto; }
  .pf-high-grid { grid-template-columns: 1fr 1fr; }
  .pf-timeline::before { left: 0; }
  .pf-tl-item { grid-template-columns: 1fr; gap: 4px; }
  .pf-tl-period { text-align: left; padding-left: 30px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ---------- Insights (blog) ---------- */
.insights-section { padding: 110px 0; background: var(--bg); }
.insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.insight-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 30px 28px; transition: transform .22s, box-shadow .22s, border-color .22s; }
.insight-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.insight-cat { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 600; }
.insight-card h3 { font-size: 1.3rem; margin: 12px 0 12px; }
.insight-card p { color: var(--muted); flex: 1; margin: 0 0 16px; font-size: .98rem; }
.insight-meta { font-family: var(--mono); font-size: 12px; color: var(--muted-2); margin-bottom: 14px; }

/* ---------- Post detail ---------- */
.post-meta { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-top: 14px; }
.post-body { padding: 64px 0 90px; }
.post-body p { color: var(--ink-soft); font-size: 1.12rem; line-height: 1.75; margin: 0 0 1.3em; }
.post-body h3 { font-size: 1.5rem; margin: 1.6em 0 .5em; }
.post-cta { margin-top: 56px; padding: 36px; background: var(--bg); border-radius: var(--r); text-align: center; }
.post-cta h3 { font-size: 1.4rem; margin: 0 0 20px; }

/* ---------- Newsletter ---------- */
.footer-newsletter p { color: var(--muted-2); font-size: .92rem; margin: 0 0 14px; }
.news-form { display: flex; gap: 8px; flex-wrap: wrap; }
.news-form input { flex: 1; min-width: 0; padding: 12px 14px; border: 1.5px solid rgba(255,255,255,.18); border-radius: var(--r-pill); background: rgba(255,255,255,.06); color: #fff; font-family: var(--sans); font-size: 14px; }
.news-form input::placeholder { color: rgba(255,255,255,.5); }
.news-form input:focus { outline: none; border-color: var(--accent); }
.news-form .btn { padding: 12px 22px; }
.news-band { background: var(--ink); color: #fff; padding: 80px 0; text-align: center; }
.news-band .container { max-width: 640px; }
.news-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: #fff; margin: 0 0 14px; }
.news-band p { color: rgba(255,255,255,.78); margin: 0 0 26px; }
.news-form-lg { justify-content: center; }
.news-form-lg input { background: rgba(255,255,255,.1); max-width: 360px; }

@media (max-width: 980px) { .insights-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .insights-grid { grid-template-columns: 1fr; } }
