/*
 * Daqeeq design system — v2 "lab notebook"
 * Warm paper surfaces, ink typography, a highlighter for the words that matter,
 * monospace numerals for the evidence. Light by default.
 */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500;600&display=swap");

:root {
  --ink:        #15181D;
  --paper:      #FAF7F1;
  --surface:    #FFFFFF;
  --surface-2:  #F4F0E7;
  --surface-3:  #ECE6DA;
  --line:       rgba(21, 24, 29, 0.10);
  --line-2:     rgba(21, 24, 29, 0.20);

  --text:       #15181D;
  --muted:      #4A4E57;
  --muted-2:    #7C808A;

  --accent:     #0E7C74;   /* petrol teal: links, tags, marks */
  --accent-2:   #0B5F9E;   /* deep blue: secondary */
  --accent-3:   #C2410C;   /* burnt orange: warm emphasis */
  --warm:       #B45309;
  --mark:       #FFE27A;   /* the highlighter */
  --mark-2:     #FFF3B8;

  --grad:       linear-gradient(120deg, #0E7C74 0%, #0B5F9E 100%);
  --grad-soft:  linear-gradient(120deg, rgba(14,124,116,.10), rgba(11,95,158,.08));

  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body:    'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;

  --shadow:    0 24px 60px rgba(21, 24, 29, .10);
  --shadow-sm: 0 10px 28px rgba(21, 24, 29, .07);

  --maxw: 1180px;
}

/* ---------- base ---------- */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* faint paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
body > * { position: relative; z-index: 1; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0;
}

h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); font-weight: 600; }
h3 { font-size: 1.22rem; font-weight: 600; font-variation-settings: "opsz" 40; }

p { margin: 0 0 1rem; color: var(--muted); }

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-2); text-decoration: none; }

img { max-width: 100%; }

::selection { background: var(--mark); color: var(--ink); }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- utilities ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.eyebrow.center { justify-content: center; }

/* the highlighter: replaces the old gradient text */
.grad-text {
  color: var(--ink);
  background: linear-gradient(to top, var(--mark) 0 42%, transparent 42%);
  padding: 0 .12em;
  margin: 0 -.12em;
  border-radius: 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 62ch;
}

.section {
  padding: 96px 0;
  position: relative;
}
.section.tight { padding: 70px 0; }
.section-head { margin-bottom: 48px; max-width: 70ch; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- buttons ---------- */

.btn-d {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn-d:hover { transform: translateY(-2px); text-decoration: none; }

.btn-primary-d {
  background: var(--ink);
  color: var(--paper) !important;
  box-shadow: 0 10px 24px rgba(21, 24, 29, .18);
}
.btn-primary-d:hover { background: #000; box-shadow: 0 16px 34px rgba(21, 24, 29, .24); color: #fff !important; }

.btn-ghost-d {
  background: transparent;
  border-color: var(--line-2);
  color: var(--ink) !important;
}
.btn-ghost-d:hover { border-color: var(--ink); background: rgba(21, 24, 29, .04); color: var(--ink) !important; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.arrow-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .92rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.arrow-link i { transition: transform .2s; }
.arrow-link:hover i { transform: translateX(4px); }

/* ---------- header ---------- */

#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 997;
  padding: 16px 0;
  background: rgba(250, 247, 241, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: padding .3s, background .3s, border-color .3s;
}
#header.scrolled {
  padding: 10px 0;
  background: rgba(250, 247, 241, .94);
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-brand img { width: 132px; }
.nav-links {
  display: flex;
  gap: 30px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: width .25s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.nav-ai {
  color: var(--ink);
  font-weight: 600;
  background: linear-gradient(to top, var(--mark) 0 40%, transparent 40%);
  padding: 4px 4px;
}

.nav-cta { flex-shrink: 0; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  color: var(--ink);
  width: 42px; height: 42px;
  margin-left: auto;
  cursor: pointer;
}

@media (max-width: 991px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(250, 247, 241, .98);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 18px;
    margin: 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; display: block; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-cta { display: none; }
}

/* ---------- hero ---------- */

#hero {
  position: relative;
  padding: 190px 0 110px;
  overflow: hidden;
}
#hero::before {
  content: "";
  position: absolute;
  top: -320px; right: -180px;
  width: 900px; height: 900px;
  background: radial-gradient(circle at center, rgba(255, 226, 122, .55), rgba(14, 124, 116, .10) 45%, transparent 68%);
  pointer-events: none;
}
#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(21, 24, 29, .18) 1px, transparent 1.2px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 70%);
  opacity: .55;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 900px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .6);
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 26px;
}
.hero-badge b { color: var(--ink); font-weight: 600; }
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(14, 124, 116, .5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(14, 124, 116, .45); }
  70%  { box-shadow: 0 0 0 12px rgba(14, 124, 116, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 124, 116, 0); }
}

#hero h1 { margin-bottom: 22px; }
#hero .lead { font-size: 1.18rem; margin-bottom: 34px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 70px;
  padding-top: 40px;
  border-top: 1px solid var(--line-2);
  position: relative;
  z-index: 2;
}
.hero-stats .num {
  font-family: var(--font-mono);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}
.hero-stats .num .grad-text { background: none; color: var(--accent); padding: 0; margin: 0; }
.hero-stats .lbl {
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0;
}
@media (max-width: 767px) {
  #hero { padding: 150px 0 70px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
}

/* ---------- proof strip ---------- */

.proof {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  padding: 26px 0;
}
.proof-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 40px;
}
.proof-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0;
}
.proof-item {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 40;
  font-weight: 600;
  font-size: 1.05rem;
  color: rgba(21, 24, 29, .55);
  transition: color .2s;
}
.proof-item:hover { color: var(--ink); }

/* ---------- cards ---------- */

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 991px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card-d {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  height: 100%;
}
.card-d::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity .25s;
}
.card-d:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
}
.card-d:hover::before { opacity: 1; }

.card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 18px;
}
.card-d h3 { margin-bottom: 10px; }
.card-d p { font-size: .95rem; margin: 0; }

.card-d ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}
.card-d ul li {
  font-size: .89rem;
  color: var(--muted);
  padding-left: 20px;
  position: relative;
  margin-bottom: 7px;
}
.card-d ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .8;
}

/* AI section band */
#ai { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#ai::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--mark) 0 18px, transparent 18px 26px);
  opacity: .9;
}
.ai-proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0 0 44px;
}
.ai-proof a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-sm);
  padding: 18px 20px;
  color: var(--ink);
  transition: transform .2s, box-shadow .2s;
}
.ai-proof a:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.ai-proof .n {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}
.ai-proof .n small { font-size: .9rem; color: var(--accent); font-weight: 500; }
.ai-proof .l { font-size: .84rem; color: var(--muted); margin: 6px 0 0; }
.ai-proof .l b { color: var(--ink); font-weight: 600; }
@media (max-width: 991px) { .ai-proof { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ai-proof { grid-template-columns: 1fr; } }

/* ---------- case studies ---------- */

.case {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 32px;
  position: relative;
  overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.case:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.case::after {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255, 226, 122, .35), transparent 68%);
  pointer-events: none;
}
.case.is-ai { border-color: rgba(14, 124, 116, .35); }
.case.is-ai::before {
  content: "AI";
  position: absolute;
  top: 18px; right: 18px;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--paper);
  background: var(--accent);
  padding: 4px 9px;
  border-radius: 4px;
}
.case-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(14, 124, 116, .08);
  border: 1px solid rgba(14, 124, 116, .25);
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 18px;
  align-self: flex-start;
}
.case h3 { font-size: 1.36rem; margin-bottom: 12px; }
.case > p { font-size: .95rem; }
.case-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px dashed var(--line-2);
}
.case-metrics .m-num {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}
.case-metrics .m-num small { font-size: .82rem; color: var(--accent); font-weight: 500; }
.case-metrics .m-lbl {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 4px 0 0;
}
.case .case-link { margin-top: 20px; color: var(--accent); font-weight: 600; text-decoration: none; font-size: .95rem; }
.case .case-link:hover { text-decoration: underline; }

/* ---------- engagement / offers ---------- */

.offer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px 26px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.offer:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.offer .dur {
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-3);
  margin-bottom: 12px;
}
.offer h3 { margin-bottom: 10px; }
.offer p { font-size: .93rem; flex-grow: 1; }
.offer .who {
  font-size: .85rem;
  color: var(--muted-2);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin: 14px 0 0;
}
.offer .who b { color: var(--ink); font-weight: 600; }

/* ---------- principles (split) ---------- */

.principle {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.principle:last-child { border-bottom: 0; }
.principle .p-num {
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
  padding-top: 5px;
}
.principle h3 { margin-bottom: 8px; }
.principle p { margin: 0; font-size: .96rem; }

/* ---------- tech stack ---------- */

.tech-group { margin-bottom: 34px; }
.tech-group h4 {
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 16px;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  transition: border-color .2s, background .2s, transform .2s;
}
.chip:hover {
  border-color: var(--accent);
  background: rgba(14, 124, 116, .06);
  transform: translateY(-2px);
}

/* ---------- team ---------- */

.member { text-align: center; }
.member-photo {
  width: 128px; height: 128px;
  margin: 0 auto 18px;
  border-radius: 50%;
  position: relative;
  padding: 3px;
  background: var(--ink);
}
.member-photo img,
.member-initials {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  display: block;
  background: var(--surface-2);
  border: 3px solid var(--paper);
}
.member-initials {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .02em;
}
.member h3 { font-size: 1.06rem; margin-bottom: 4px; }
.member .role { font-size: .89rem; color: var(--accent); margin: 0 0 6px; }
.member .yrs {
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--muted-2);
  margin: 0;
  letter-spacing: .03em;
}

/* ---------- testimonials ---------- */

.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.quote:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.quote .mark {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--accent-3);
  opacity: .5;
  margin-bottom: 6px;
}
.quote p {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 20;
  font-size: 1.04rem;
  color: var(--ink);
  font-style: italic;
  flex-grow: 1;
}
.quote footer {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 18px;
}
.quote .who {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ink);
  font-size: .95rem;
  margin: 0;
  letter-spacing: .01em;
}
.quote .org { font-size: .82rem; color: var(--muted-2); margin: 2px 0 0; }

/* ---------- portfolio (earlier work) ---------- */

.pf {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.pf:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.pf-img {
  height: 168px;
  overflow: hidden;
  background: var(--surface-3);
  border-bottom: 1px solid var(--line);
}
.pf-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .4s;
}
.pf:hover .pf-img img { transform: scale(1.05); }
.pf-body { padding: 22px; }
.pf-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.pf-body p { font-size: .88rem; margin: 0; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 54px 44px;
  text-align: center;
}
.cta-band h2 { margin-bottom: 14px; color: var(--paper); }
.cta-band .lead { margin: 0 auto 28px; color: rgba(250, 247, 241, .75); }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn-primary-d { background: var(--mark); color: var(--ink) !important; box-shadow: none; }
.cta-band .btn-ghost-d { border-color: rgba(250, 247, 241, .4); color: var(--paper) !important; }

/* ---------- contact ---------- */

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 24px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}
.contact-card .ci {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--accent);
}
.contact-card h4 {
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
}
.contact-card p { font-size: .92rem; margin: 0; }
.contact-card a { color: var(--muted); }
.contact-card a:hover { color: var(--accent); }

/* form */
.form-control {
  background: var(--surface) !important;
  border: 1px solid var(--line-2) !important;
  border-radius: var(--r-sm) !important;
  color: var(--ink) !important;
  padding: 13px 16px !important;
  height: auto !important;
  font-size: .95rem !important;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(14, 124, 116, .15) !important;
  background: var(--surface) !important;
  color: var(--ink) !important;
}
.form-control::placeholder { color: var(--muted-2) !important; }
select.form-control option { background: var(--surface); color: var(--ink); }
.form-group { margin-bottom: 16px; }

/* validation errors */
.form-errors {
  background: rgba(194, 65, 12, .06);
  border: 1px solid rgba(194, 65, 12, .35);
  border-radius: var(--r-sm);
  padding: 16px 18px;
  margin-bottom: 18px;
}
.form-errors-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .92rem;
  color: var(--accent-3);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-errors ul { margin: 0; padding-left: 20px; }
.form-errors li { font-size: .89rem; color: var(--ink); margin-bottom: 4px; }

.form-control.is-invalid {
  border-color: rgba(194, 65, 12, .7) !important;
  background: rgba(194, 65, 12, .04) !important;
}
.form-control.is-invalid:focus {
  border-color: var(--accent-3) !important;
  box-shadow: 0 0 0 3px rgba(194, 65, 12, .15) !important;
}

/* Cloudflare Turnstile */
.turnstile-box { margin: 4px 0 18px; min-height: 0; }
.turnstile-box:empty { display: none; }

input[type="submit"] {
  display: inline-flex;
  padding: 14px 30px;
  border-radius: var(--r-sm);
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 10px 24px rgba(21, 24, 29, .18);
}
input[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(21, 24, 29, .24); }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line-2);
  padding: 60px 0 34px;
  background: var(--surface-3);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.3fr 1.2fr;
  gap: 34px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer img { width: 130px; margin-bottom: 14px; }
.footer h5 {
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 14px;
}
.footer p, .footer a { font-size: .9rem; color: var(--muted); margin: 0 0 7px; }
.footer a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line-2);
  margin-top: 42px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-family: var(--font-mono); font-size: .78rem; color: var(--muted-2); margin: 0; }

/* ---------- sub page hero ---------- */

#sub-hero {
  position: relative;
  padding: 175px 0 80px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
#sub-hero::before {
  content: "";
  position: absolute;
  top: -260px; right: -160px;
  width: 760px; height: 760px;
  background: radial-gradient(circle at center, rgba(255, 226, 122, .5), rgba(14, 124, 116, .08) 45%, transparent 68%);
  pointer-events: none;
}
#sub-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(21, 24, 29, .16) 1px, transparent 1.2px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 60% 70% at 80% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 80% 30%, #000 10%, transparent 70%);
  opacity: .5;
  pointer-events: none;
}
#sub-hero .wrap { position: relative; z-index: 2; }

/* ---------- case-study page ---------- */

.cs-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.cs-prose h2 { font-size: 1.55rem; margin: 0 0 16px; }
.cs-prose p { color: var(--muted); font-size: 1.05rem; line-height: 1.75; max-width: 66ch; }
.cs-prose ul { padding-left: 20px; color: var(--muted); font-size: 1.02rem; line-height: 1.75; max-width: 66ch; }
.cs-prose li { margin-bottom: 8px; }
.cs-prose li strong, .cs-prose p strong { color: var(--ink); font-weight: 600; }
.cs-block { padding: 40px 0; border-bottom: 1px solid var(--line); }
.cs-block:last-child { border-bottom: 0; }
.cs-step { font-family: var(--font-mono); font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.cs-aside { position: sticky; top: 110px; }
.cs-facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 26px; }
.cs-facts h4 { font-family: var(--font-mono); font-size: .74rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 18px; }
.cs-facts dl { margin: 0; }
.cs-facts dt { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; color: var(--muted-2); margin-top: 14px; }
.cs-facts dd { margin: 4px 0 0; color: var(--ink); font-size: .98rem; line-height: 1.5; }
.cs-facts dt:first-child { margin-top: 0; }
.cs-quote { margin-top: 24px; background: var(--mark-2); border: 1px solid rgba(21, 24, 29, .12); border-radius: var(--r-lg); padding: 26px; }
.cs-quote p { margin: 0; color: var(--ink); font-size: 1.02rem; line-height: 1.6; font-style: italic; font-family: var(--font-display); font-variation-settings: "opsz" 20; }
.cs-quote small { display: block; margin-top: 12px; color: var(--muted); font-style: normal; font-family: var(--font-mono); font-size: .74rem; }
.cs-metrics { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 36px; }
.cs-metrics .m-num { font-family: var(--font-mono); font-size: 2.4rem; font-weight: 600; color: var(--ink); line-height: 1.1; }
.cs-metrics .m-num small { font-size: 1rem; color: var(--accent); font-weight: 500; }
.cs-metrics .m-lbl { font-family: var(--font-mono); font-size: .72rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; margin: 6px 0 0; }
.cs-next { margin-top: 32px; }
.cs-next a { color: var(--accent); text-decoration: none; font-weight: 600; }
.cs-next a:hover { text-decoration: underline; }
.cs-nav { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.cs-nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.cs-nav a:hover { color: var(--accent); }
.cs-table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: .95rem; max-width: 66ch; }
.cs-table th, .cs-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cs-table th { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); font-weight: 500; }
.cs-table td { color: var(--muted); }
.cs-table td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
.cs-table code { font-family: var(--font-mono); font-size: .84rem; color: var(--ink); background: var(--surface-2); padding: 1px 6px; border-radius: 4px; }
@media (max-width: 900px) { .cs-grid { grid-template-columns: 1fr; gap: 36px; } .cs-aside { position: static; } }

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .pulse-dot { animation: none; }
}

/* ---------- modal (contact success) ---------- */

.modal-content {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  color: var(--ink);
}
.modal-confirm .icon-box {
  width: 62px; height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--mark-2);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 1.5rem;
  margin: 8px auto;
}
.modal-content h4 { font-size: 1.3rem; margin-bottom: 10px; }
.modal-header { border-bottom: 0; }
.modal-content .close { color: var(--muted); opacity: 1; text-shadow: none; }
.modal-body { padding-bottom: 30px; }
.modal-content .btn-success {
  background: var(--ink);
  border: 0;
  color: var(--paper);
  border-radius: var(--r-sm);
  padding: 11px 24px;
  font-weight: 600;
}

/* ---------- AI Pilot feature + offer bands ---------- */

.pilot {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-lg);
  padding: 44px 44px;
  margin-bottom: 26px;
  position: relative;
  overflow: hidden;
}
.pilot::after {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(255, 226, 122, .22), transparent 65%);
  pointer-events: none;
}
.pilot .dur { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mark); margin: 0 0 12px; }
.pilot h3 { color: var(--paper); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.pilot p { color: rgba(250, 247, 241, .78); font-size: 1rem; }
.pilot ol { list-style: none; counter-reset: step; margin: 0; padding: 0; position: relative; z-index: 1; }
.pilot ol li { counter-increment: step; position: relative; padding: 0 0 16px 44px; color: rgba(250, 247, 241, .85); font-size: .95rem; line-height: 1.55; }
.pilot ol li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--font-mono); font-size: .8rem; font-weight: 600;
  color: var(--ink); background: var(--mark);
  border-radius: 4px; padding: 2px 6px;
}
.pilot ol li b { color: var(--paper); }
.pilot .btn-primary-d { background: var(--mark); color: var(--ink) !important; box-shadow: none; }
.pilot .btn-ghost-d { border-color: rgba(250, 247, 241, .35); color: var(--paper) !important; }
.pilot .btn-ghost-d:hover { border-color: var(--paper); background: rgba(250, 247, 241, .06); }
@media (max-width: 860px) { .pilot { grid-template-columns: 1fr; padding: 34px 26px; gap: 28px; } }

.offer-band { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.offer-card { background: var(--surface); border: 1px solid var(--line-2); border-top: 4px solid var(--accent); border-radius: var(--r); padding: 26px 26px 22px; }
.offer-card .dur { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-3); margin: 0 0 10px; }
.offer-card h3 { margin-bottom: 10px; }
.offer-card p { font-size: .94rem; }
.offer-card .btn-d { width: 100%; justify-content: center; margin-top: 6px; }
.offer-card .alt { display: block; text-align: center; font-size: .86rem; margin-top: 14px; }
@media (max-width: 900px) { .offer-band { grid-template-columns: 1fr; } }

/* ---------- work filter ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }
.filters button {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  background: var(--surface); color: var(--muted); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 8px 16px; cursor: pointer; transition: all .2s;
}
.filters button:hover { color: var(--ink); border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters button span { opacity: .6; margin-left: 4px; }
.case.is-hidden { display: none; }
