/* Aqhib Ahmed · site styles. Warm & approachable: cream, terracotta, sage; Fraunces + DM Sans. */

:root {
  --bg: #fbf6ef;
  --bg-alt: #f4eadf;
  --surface: #fffdf9;
  --ink: #221c17;
  --ink-2: #4a4037;
  --muted: #776a5e;
  --line: #e7dacb;
  --accent: #b94a2c;
  --accent-ink: #a3401f;
  --accent-soft: #f6dccb;
  --sage: #3e7a68;
  --sage-soft: #dcebe3;
  --gold: #d9a441;
  --gold-soft: #f7e7c4;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(34, 28, 23, 0.05), 0 10px 30px rgba(34, 28, 23, 0.07);
  --shadow-lg: 0 2px 4px rgba(34, 28, 23, 0.06), 0 24px 60px rgba(34, 28, 23, 0.12);
  --container: 1140px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(72px, 10vw, 128px);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); }
p { margin: 0 0 1em; text-wrap: pretty; }
strong, b { color: var(--ink); font-weight: 600; }
code { font-family: var(--font-mono); font-size: 0.88em; background: var(--bg-alt); padding: 0.1em 0.35em; border-radius: 5px; color: var(--ink); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { font-size: 1.15rem; color: var(--muted); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Placeholder content that must be filled in before launch. Search for "todo". */
.todo { background: var(--gold-soft); outline: 1px dashed var(--gold); border-radius: 4px; padding: 0 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 0;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(185, 74, 44, 0.28); }
.btn--primary:hover { background: var(--accent-ink); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(185, 74, 44, 0.32); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--light { background: var(--surface); color: var(--accent-ink); }
.btn--light:hover { background: #fff; color: var(--accent); transform: translateY(-1px); }
.btn--sm { padding: 10px 18px; font-size: 0.95rem; }
.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow:hover span { transform: translateX(3px); }
.link-arrow span { transition: transform 0.15s ease; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 239, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.brand-tag { font-size: 0.8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 999px; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { background: var(--bg-alt); color: var(--ink); }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 12px 14px; }
  .nav .btn { margin: 8px 0 0; }
  .brand-tag { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-lead { font-size: clamp(1.15rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 36em; margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 36px; }
.trust { font-size: 0.95rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; max-width: 36em; }
.trust strong { color: var(--ink); font-weight: 600; }
.trust .names { display: block; margin-top: 4px; }

.portrait { position: relative; justify-self: center; width: min(100%, 320px); }
.portrait-frame {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 999px 999px var(--radius) var(--radius);
  background: linear-gradient(180deg, #f8e3d3 0%, #f3d4bf 100%);
  box-shadow: var(--shadow-lg);
}
/* The photo's white backdrop takes on the peach background. */
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; mix-blend-mode: multiply; filter: saturate(1.05) contrast(1.02); }
.portrait::before {
  content: ""; position: absolute; inset: auto -8% -6% auto; width: 62%; aspect-ratio: 1; border-radius: 50%;
  background: var(--sage-soft); z-index: -1;
}
.stat-chip {
  position: absolute; background: var(--surface); border-radius: 14px; padding: 12px 16px;
  box-shadow: var(--shadow); border: 1px solid var(--line); min-width: 168px;
}
.stat-chip .k { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); display: block; }
.stat-chip .v { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: 1.55rem; color: var(--ink); line-height: 1.2; display: block; }
.stat-chip .s { font-size: 0.8rem; color: var(--muted); display: block; }
.stat-chip--a { left: -18%; bottom: 6%; }
.stat-chip--b { right: -6%; top: 56%; }
.stat-chip .v .down { color: var(--sage); }
.stat-chip .v .acc { color: var(--accent); }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  /* Below tablet width the stat chips sit in a row under the photo instead of on top of it. */
  .portrait { width: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
  .portrait::before { display: none; }
  .stat-chip, .stat-chip--a, .stat-chip--b { position: static; min-width: 0; }
  .portrait-frame { flex-basis: 100%; max-width: 250px; margin: 0 auto 4px; }
}
@media (max-width: 520px) {
  .stat-chip { min-width: 0; padding: 9px 12px; }
  .stat-chip .v { font-size: 1.2rem; }
  .stat-chip .s { display: none; }
}

/* ---------- Problems ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 2.5vw, 30px); box-shadow: var(--shadow);
}
.problem { display: flex; flex-direction: column; gap: 18px; }
.problem-text { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: 1.22rem; line-height: 1.35; color: var(--ink); font-weight: 500; margin: 0; }
.solved { margin-top: auto; font-size: 0.92rem; color: var(--ink-2); padding-top: 16px; border-top: 1px dashed var(--line); }
.solved-label { display: inline-flex; align-items: center; gap: 6px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sage); margin-bottom: 4px; }
.solved-label svg { width: 16px; height: 16px; }
.solved p { margin: 0; }
.problems-close { margin-top: 40px; font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: clamp(1.3rem, 2.2vw, 1.7rem); color: var(--ink); max-width: 760px; line-height: 1.35; }

/* ---------- Path (how it works) ---------- */
.path { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; counter-reset: step; }
.path-step { position: relative; }
.path-step .num {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin-bottom: 18px;
  position: relative; z-index: 1;
}
.path-step:nth-child(2) .num { background: var(--sage); }
.path-step:nth-child(3) .num { background: var(--ink); }
.path-step .when { font-size: 0.85rem; font-weight: 600; color: var(--muted); letter-spacing: 0.03em; }
.path-step h3 { margin: 4px 0 8px; }
.path-step p { margin: 0; }
.path::before {
  content: ""; position: absolute; top: 22px; left: 44px; right: 33%; height: 2px;
  background-image: linear-gradient(90deg, var(--line) 50%, transparent 50%); background-size: 12px 2px;
}
.alongside {
  margin-top: 28px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  background: var(--gold-soft); border-radius: var(--radius); padding: 18px 22px; color: var(--ink);
}
.alongside .pill { background: var(--surface); border-radius: 999px; padding: 4px 12px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent-ink); }
.alongside p { margin: 0; flex: 1 1 320px; }
.callout {
  margin-top: 40px; border-left: 4px solid var(--accent); padding: 6px 0 6px 22px; max-width: 760px;
  font-size: 1.1rem; color: var(--ink-2);
}
.callout strong { display: block; font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: 1.3rem; margin-bottom: 4px; }
@media (max-width: 820px) {
  .path { grid-template-columns: 1fr; gap: 28px; }
  .path::before { top: 22px; bottom: 22px; left: 21px; right: auto; width: 2px; height: auto; background-image: linear-gradient(180deg, var(--line) 50%, transparent 50%); background-size: 2px 12px; }
  .path-step { padding-left: 64px; }
  .path-step .num { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ---------- Services ---------- */
.services-intro { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.service { display: flex; flex-direction: column; position: relative; overflow: hidden; }
.service-art { height: 108px; margin: -4px 0 18px; }
.service-art svg { height: 100%; width: auto; }
.service h3 { margin-bottom: 4px; }
.service .price { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: 1.35rem; font-weight: 600; color: var(--accent-ink); margin: 0; }
.service .price small { font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
.service .promise { font-style: italic; color: var(--ink); margin: 10px 0 14px; font-size: 1.05rem; }
.badge { position: absolute; top: 22px; right: 22px; background: var(--gold-soft); color: #7a5410; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.checklist { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 9px; }
.checklist li { position: relative; padding-left: 28px; font-size: 0.98rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--sage-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%233e7a68' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.service .meta { font-size: 0.92rem; color: var(--muted); margin: 0 0 6px; }
.service .meta strong { color: var(--ink-2); }
.service .cta-row { margin-top: auto; padding-top: 18px; }
.founding {
  margin-top: 28px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  border: 1.5px dashed var(--accent); border-radius: var(--radius); padding: 18px 22px; background: rgba(246, 220, 203, 0.35);
}
.founding p { margin: 0; flex: 1 1 380px; color: var(--ink); }

/* ---------- Illustrations ---------- */
.i-ink { fill: var(--ink); }
.i-accent { fill: var(--accent); }
.i-accent-soft { fill: var(--accent-soft); }
.i-sage { fill: var(--sage); }
.i-sage-soft { fill: var(--sage-soft); }
.i-gold { fill: var(--gold); }
.i-surface { fill: var(--surface); }
.i-bg { fill: var(--bg-alt); }
.i-stroke { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.i-line { fill: none; stroke: var(--line); stroke-width: 2; }
.i-spark { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- AI demo ---------- */
.demo-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 920px) { .demo-grid { grid-template-columns: 1fr; } }
.proof-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.proof-list li { display: flex; gap: 14px; align-items: baseline; }
.proof-list .big { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: 1.9rem; font-weight: 600; color: var(--accent-ink); min-width: 92px; }

.demo { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; width: 100%; max-width: 640px; justify-self: center; }
.demo-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fff; font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.demo-bar .dots { display: flex; gap: 6px; }
.demo-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.demo-bar .dots i:first-child { background: #f2b8a6; }
.demo-bar .dots i:nth-child(2) { background: var(--gold-soft); }
.demo-bar .dots i:nth-child(3) { background: var(--sage-soft); }
.demo-bar .sample { margin-left: auto; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #7a5410; background: var(--gold-soft); padding: 3px 9px; border-radius: 999px; }
.demo-body {
  padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; height: 560px; overflow-y: auto; overflow-x: hidden; align-content: start;
  scroll-behavior: smooth; overscroll-behavior: contain;
  background: linear-gradient(180deg, #fffdf9, #fbf6ef);
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
@media (max-width: 520px) { .demo-body { height: 520px; padding: 14px; } }
.msg { max-width: 92%; padding: 12px 15px; border-radius: 16px; font-size: 0.96rem; line-height: 1.5; }
.msg-user { justify-self: end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.msg-user .caret { display: inline-block; width: 2px; height: 1.05em; background: #fff; vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
.msg-ai { justify-self: start; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); border-bottom-left-radius: 4px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.steps li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--muted); flex-wrap: wrap; }
.steps .tick { width: 18px; height: 18px; flex: none; border-radius: 50%; margin-top: 2px; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
.steps li.done .tick { animation: none; border: 0; background: var(--sage-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%233e7a68' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.steps .label { flex: 1 1 200px; }
.sql { flex: 1 1 100%; min-width: 0; max-width: calc(100% - 28px); margin: 4px 0 2px 28px; background: #2a231d; color: #f3e9dd; border-radius: 10px; padding: 10px 12px; font: 0.78rem/1.55 var(--font-mono); overflow-x: auto; white-space: pre; }
.sql .kw { color: #f0a988; }
.sql .fn { color: #b9dccb; }
.chart { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 10px; }
.chart figcaption { font-size: 0.8rem; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.chart svg { width: 100%; height: auto; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .series { fill: none; stroke: var(--sage); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 400; stroke-dashoffset: 400; }
.chart.on .series { transition: stroke-dashoffset 1.2s ease; stroke-dashoffset: 0; }
.chart .drop { fill: var(--accent); }
.chart text { font: 600 8.5px var(--font-body); fill: var(--muted); }
.mix-title { font-size: 0.78rem; color: var(--muted); margin-top: 6px; }
.chart text.hl { fill: var(--accent-ink); }
.mix { display: grid; gap: 6px; margin-top: 8px; font-size: 0.8rem; color: var(--ink-2); }
.mix-row { display: grid; grid-template-columns: 112px 1fr 64px; gap: 8px; align-items: center; }
.mix-bar { height: 8px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; }
.mix-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--accent); transition: width 1s ease 0.3s; }
.mix-bar.before i { background: var(--line); }
.chart.on .mix-bar i { width: var(--w); }
.slack { display: grid; grid-template-columns: 36px 1fr; gap: 10px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--sage); border-radius: 12px; padding: 12px 14px; font-size: 0.88rem; }
.slack .avatar { width: 36px; height: 36px; border-radius: 9px; background: var(--sage); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 0.8rem; }
.slack .who { font-weight: 700; color: var(--ink); }
.slack .who span { font-weight: 500; color: var(--muted); margin-left: 6px; }
.slack p { margin: 2px 0 0; }
.demo-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); background: #fff; }
.demo-foot button { font: 600 0.85rem var(--font-body); color: var(--accent-ink); background: none; border: 0; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.demo-foot button:hover { background: var(--bg-alt); }

.js [data-step] { opacity: 0; transform: translateY(8px); transition: opacity 0.4s ease, transform 0.4s ease; }
.js [data-step].on { opacity: 1; transform: none; }
.js .steps li[data-step]:not(.on) { display: none; }
.js .demo [data-step]:not(.on):not(li) { display: none; }

/* Steps go from display:none to visible, so give transitions a starting point. */
@starting-style {
  .js [data-step].on { opacity: 0; transform: translateY(8px); }
  .chart.on .series { stroke-dashoffset: 400; }
  .chart.on .mix-bar i { width: 0; }
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Work cards ---------- */
.work-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.work-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: inherit; }
.work-card .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tag { font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--ink-2); }
.tag--client { background: var(--sage-soft); color: #2c5a4c; }
.tag--inhouse { background: var(--accent-soft); color: #8a3418; }
.tag--pkg { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.work-card .metric { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 600; color: var(--accent-ink); line-height: 1.05; }
.work-card .metric-label { color: var(--muted); font-size: 0.95rem; margin: 6px 0 18px; }
.work-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.work-card p { font-size: 0.98rem; }
.work-card .link-arrow { margin-top: auto; padding-top: 8px; }
.more-link { margin-top: 32px; text-align: center; }

/* ---------- Testimonials ---------- */
.quote { display: flex; flex-direction: column; gap: 18px; position: relative; margin: 0; }
.quote::before { content: "\201C"; font-family: var(--font-display); font-size: 5rem; line-height: 0.6; color: var(--accent-soft); height: 30px; }
.quote blockquote { margin: 0; color: var(--ink); font-size: 1rem; }
.quote figcaption { margin-top: auto; font-size: 0.92rem; color: var(--muted); }
.quote figcaption strong { display: block; color: var(--ink); }

/* ---------- Process & timeline ---------- */
.process { counter-reset: p; }
.process .card h3 { display: flex; gap: 12px; align-items: baseline; }
.process .card h3::before { counter-increment: p; content: counter(p); font-size: 0.95rem; color: #fff; background: var(--accent); width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font-family: var(--font-body); font-weight: 700; }
.timeline { margin-top: 48px; }
.timeline h3 { margin-bottom: 18px; }
.tl-bar { display: grid; grid-template-columns: minmax(180px, 2fr) 5fr 4fr minmax(170px, 2.2fr); gap: 6px; }
.tl-seg { border-radius: 12px; padding: 14px 16px; color: #fff; min-height: 112px; }
.tl-seg .wk { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }
.tl-seg strong { display: block; color: inherit; font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: 1.15rem; margin: 2px 0 4px; }
.tl-seg p { margin: 0; font-size: 0.86rem; line-height: 1.45; opacity: 0.95; }
.tl-1 { background: var(--accent); }
.tl-2 { background: var(--sage); }
.tl-3 { background: var(--ink); }
.tl-4 { background: var(--gold-soft); color: var(--ink); }
@media (max-width: 860px) { .tl-bar { grid-template-columns: 1fr; } .tl-seg { min-height: 0; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 220px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.about-photo { border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, #f8e3d3, #f3d4bf); aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; mix-blend-mode: multiply; }
.about-list { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 14px; }
.about-list li { padding-left: 22px; position: relative; }
.about-list li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } .about-photo { max-width: 200px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: 1.2rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -9px;
  border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 0 22px; max-width: 720px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: #fff; border-radius: 28px; padding: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { margin: 0; font-size: 1.15rem; opacity: 0.95; max-width: 34em; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0 56px; color: var(--muted); font-size: 0.95rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 28px; }
.footer-inner a { color: var(--ink-2); text-decoration: none; }
.footer-inner a:hover { color: var(--accent-ink); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Case study pages ---------- */
.case-hero { padding: clamp(40px, 6vw, 72px) 0 32px; }
.back { display: inline-flex; gap: 6px; font-weight: 600; text-decoration: none; margin-bottom: 28px; }
.case-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 18em; }
.case-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0 8px; }
.result { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.result .v { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 600; color: var(--accent-ink); line-height: 1.1; display: block; }
.result .l { font-size: 0.95rem; color: var(--ink-2); }
@media (max-width: 760px) { .results { grid-template-columns: 1fr; } }
.context { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 8px 36px; font-size: 0.92rem; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 28px 0 0; }
.context dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.context dd { margin: 0; color: var(--ink); }
@media (max-width: 760px) { .context { grid-template-columns: 1fr 1fr; } }
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin-top: 1.6em; }
.prose ol { padding-left: 1.3em; display: grid; gap: 12px; }
.prose ol li::marker { color: var(--accent); font-weight: 700; }
.prose .setback { background: var(--gold-soft); border-radius: var(--radius-sm); padding: 14px 18px; }
.pullquote { margin: 40px 0; padding: 26px 28px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pullquote blockquote { margin: 0 0 12px; font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: 1.3rem; line-height: 1.4; color: var(--ink); }
.pullquote figcaption { color: var(--muted); font-size: 0.92rem; }
.for-you { margin: 48px 0 0; background: var(--sage-soft); border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); }
.for-you h2 { font-size: 1.5rem; margin-top: 0; }
.next-case { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }

.page-head { padding: clamp(40px, 6vw, 72px) 0 8px; }
.page-head p { font-size: 1.2rem; color: var(--muted); max-width: 40em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
