/* Data Driven Labs — shared site styles: fonts, tokens, design-system components, page chrome.
   Each page also loads one template stylesheet (home.css, services.css, …). */

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Data Driven Labs design system — tokens (light theme). */
:root {
  /* Color */
  --canvas: #faf8f6;
  --surface: #ffffff;
  --surface-muted: #f1edea;
  --surface-inverse: #1a1a1a;
  --ink: #1a1a1a;
  --ink-soft: #353535;
  --ink-muted: #6b6664;
  --ink-inverse: #f4f1ee;
  --line: #e5dfdb;
  --line-strong: #8f8884;
  --brand-red: #db3e4d;
  --brand-red-deep: #9b2d37;
  --brand-charcoal: #353535;
  --accent-text: #b52d3a;
  --action: #b52d3a;
  --action-hover: #9b2d37;
  --on-action: #ffffff;
  --focus: #1a1a1a;
  --chart-1: #db3e4d;
  --chart-2: #353535;
  --chart-3: #a39d99;
  --chart-grid: #e5dfdb;

  /* Type */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 144px;

  /* Radius & shadow */
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-full: 999px;
  --shadow-card: 0 1px 2px rgba(26, 26, 26, 0.04), 0 8px 24px rgba(26, 26, 26, 0.06);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Data Driven Labs design system — component styles. Every value comes from tokens.css. */

.ddl-root, .ddl-root * { box-sizing: border-box; }
.ddl-root { font-family: var(--font-sans); color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; }

/* Button */
.ddl-btn { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-5); border-radius: var(--radius-sm); border: 1px solid transparent; font-family: var(--font-sans); font-size: 14px; font-weight: 600; line-height: 1; letter-spacing: 0.2px; text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.ddl-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ddl-btn--primary { background: var(--action); color: var(--on-action); }
.ddl-btn--primary:hover { background: var(--action-hover); }
.ddl-btn--secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.ddl-btn--secondary:hover { border-color: var(--ink); }
.ddl-btn--link { padding: var(--space-3) 0; background: none; color: var(--accent-text); }
.ddl-btn--link:hover { text-decoration: underline; text-underline-offset: 4px; }
.ddl-btn--lg { padding: 16px var(--space-6); font-size: 16px; }
.ddl-btn .ddl-arrow { transition: transform .15s ease; }
.ddl-btn:hover .ddl-arrow { transform: translateX(3px); }

/* Eyebrow + SectionHeader */
.ddl-eyebrow { font-family: var(--font-mono); font-size: 12px; line-height: 1.4; font-weight: 500; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink-muted); margin: 0; }
.ddl-eyebrow b { color: var(--accent-text); font-weight: 500; }
.ddl-section-header { max-width: 640px; }
.ddl-section-header--center { margin-inline: auto; text-align: center; }
.ddl-section-header h2 { font-family: var(--font-display); font-size: 36px; line-height: 1.1; font-weight: 600; color: var(--ink); margin: var(--space-2) 0 0; }
.ddl-section-header .ddl-rule { display: block; width: 32px; height: 2px; background: var(--brand-red); margin-top: var(--space-4); }
.ddl-section-header--center .ddl-rule { margin-inline: auto; }
.ddl-section-header p { font-size: 20px; line-height: 1.55; color: var(--ink-soft); margin: var(--space-4) 0 0; }

/* DataLine — the motif */
.ddl-dataline { display: block; width: 100%; height: auto; overflow: visible; }
.ddl-dataline path { fill: none; stroke: var(--brand-red); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.ddl-dataline circle { fill: var(--canvas); stroke: var(--brand-red); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.ddl-dataline--quiet path, .ddl-dataline--quiet circle { stroke: var(--line-strong); }
.ddl-dataline--on-red path, .ddl-dataline--on-red circle { stroke: #ffffff; }
.ddl-dataline--on-red circle { fill: var(--brand-red-deep); }

/* ServiceCard */
.ddl-service { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); transition: box-shadow .2s ease, border-color .2s ease; }
.ddl-service:hover { box-shadow: var(--shadow-card); border-color: transparent; }
.ddl-service h3 { font-family: var(--font-display); font-size: 26px; line-height: 1.15; font-weight: 600; margin: 0; color: var(--ink); }
.ddl-service p { font-size: 15px; line-height: 1.6; color: var(--ink-soft); margin: 0; flex: 1; }

/* FeatureList */
.ddl-features { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5) var(--space-6); }
.ddl-features--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ddl-features--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ddl-feature { padding-top: var(--space-4); border-top: 1px solid var(--line); }
.ddl-feature .ddl-eyebrow { margin-bottom: var(--space-2); }
.ddl-feature h4 { font-family: var(--font-display); font-size: 22px; line-height: 1.15; font-weight: 600; margin: 0 0 var(--space-2); color: var(--ink); }
.ddl-feature p { font-size: 14px; line-height: 1.55; color: var(--ink-soft); margin: 0; }

/* PriceCard */
.ddl-price { padding: var(--space-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); display: flex; flex-direction: column; gap: var(--space-5); }
.ddl-price--featured { border-color: var(--ink); }
.ddl-price .ddl-amount { display: flex; align-items: baseline; gap: var(--space-2); }
.ddl-price .ddl-amount strong { font-family: var(--font-display); font-size: 56px; line-height: 1; font-weight: 600; color: var(--ink); }
.ddl-price .ddl-amount span { font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); }
.ddl-price h3 { font-family: var(--font-display); font-size: 26px; font-weight: 600; margin: 0; color: var(--ink); }
.ddl-price ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.ddl-price li { font-size: 14px; line-height: 1.5; color: var(--ink-soft); padding-left: 20px; position: relative; }
.ddl-price li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 999px; border: 1.5px solid var(--brand-red); }
.ddl-price small { font-size: 13px; color: var(--ink-muted); }

/* Testimonial */
.ddl-quote { background: var(--brand-red-deep); color: #ffffff; padding: var(--space-8) var(--space-6); border-radius: var(--radius-md); text-align: center; }
.ddl-quote blockquote { margin: 0 auto; max-width: 620px; font-size: 22px; line-height: 1.5; font-weight: 400; }
.ddl-quote figcaption { margin-top: var(--space-5); display: inline-flex; align-items: center; gap: var(--space-3); text-align: left; }
.ddl-quote img { width: 48px; height: 48px; border-radius: var(--radius-full); object-fit: cover; }
.ddl-quote .ddl-who { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; display: block; }
.ddl-quote .ddl-role { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; color: #f4f1ee; opacity: .85; }

/* DeckFooter */
.ddl-deck-footer { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); padding: 0 var(--space-8); height: 72px; border-top: 1px solid var(--line); background: var(--canvas); }
.ddl-deck-footer img { height: 28px; width: auto; display: block; }
.ddl-deck-footer .ddl-meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-muted); display: flex; gap: var(--space-5); }
.ddl-deck-footer .ddl-meta b { color: var(--accent-text); font-weight: 500; }

/* Logo theme swap: put both <img>s in place; the theme shows the right one. */
.ddl-root .ddl-logo-on-dark { display: none; }
[data-theme="dark"] .ddl-root .ddl-logo-on-light { display: none; }
[data-theme="dark"] .ddl-root .ddl-logo-on-dark { display: block; }

/* ---------- Shared page chrome (identical in every design) ---------- */
body{margin:0;background:var(--canvas)}
a{color:var(--accent-text)}
a:hover{color:var(--action-hover)}
.page{font-family:var(--font-sans);color:var(--ink);background:var(--canvas);-webkit-font-smoothing:antialiased}
.page *{box-sizing:border-box}
.wrap{max-width:1280px;margin:0 auto;padding-inline:var(--space-8)}
.nav{position:sticky;top:0;z-index:20;background:rgba(250,248,246,.86);backdrop-filter:saturate(1.4) blur(12px);-webkit-backdrop-filter:saturate(1.4) blur(12px);border-bottom:1px solid var(--line)}
.nav-links a{color:var(--ink-soft);text-decoration:none;font-size:14px;font-weight:500;padding:12px 0;position:relative}
.nav-links a::after{content:"";position:absolute;left:0;right:0;bottom:6px;height:1px;background:var(--ink);transform:scaleX(0);transform-origin:left;transition:transform .35s var(--ease)}
.red{color:var(--brand-red)}
.foot a{color:#d9d4d0;text-decoration:none;font-size:14px}
.foot a:hover{color:#ffffff}
.in{animation:rise .9s var(--ease) both}
.d1{animation-delay:.05s}
.d2{animation-delay:.15s}
.d3{animation-delay:.28s}
.d4{animation-delay:.42s}
@keyframes rise{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
.skip-link{position:absolute;left:var(--space-4);top:-100px;z-index:50;background:var(--surface);color:var(--ink);padding:var(--space-3) var(--space-4);border-radius:var(--radius-sm)}
.skip-link:focus{top:var(--space-4)}
.nav-logo{display:flex}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.dark a:focus-visible,.redband a:focus-visible,.dark .ddl-btn:focus-visible{outline-color:#f4f1ee}
html{scroll-behavior:smooth;scroll-padding-top:76px}
@media (prefers-reduced-motion: reduce){html{scroll-behavior:auto}}
/* Disabled buttons look disabled (the design system defines no disabled state). */
.ddl-btn:disabled{opacity:.5;cursor:not-allowed}
/* The hidden attribute must win over component display rules (.tool-grid, .fields…). */
[hidden]{display:none !important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ---------- Mobile menu (not in the designs: they hide the nav below 960px) ---------- */
.nav-actions{display:flex;align-items:center;gap:12px}
.nav-toggle{display:none;width:44px;height:44px;place-items:center;padding:0;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:transparent;color:var(--ink);cursor:pointer}
.nav-toggle:hover{border-color:var(--ink)}
.nav-toggle .i-close,.nav.is-open .nav-toggle .i-open{display:none}
.nav.is-open .nav-toggle .i-close{display:block}
@media (max-width: 960px){
.nav-toggle{display:grid}
.nav.is-open .nav-links{display:flex !important;position:absolute;top:76px;left:0;right:0;flex-direction:column;align-items:stretch !important;gap:0 !important;padding:8px var(--space-4) var(--space-5);background:var(--canvas);border-bottom:1px solid var(--line);box-shadow:var(--shadow-card);max-height:calc(100vh - 76px);overflow-y:auto}
.nav.is-open .nav-links a{font-size:18px;padding:16px 0;border-bottom:1px solid var(--line)}
.nav.is-open .nav-links a:last-child{border-bottom:0}
.nav.is-open .nav-links a::after{display:none}
}
@media (max-width: 480px){
.nav-logo img{height:28px !important;width:auto !important}
.nav-actions{gap:8px}
.nav-actions .ddl-btn{padding:var(--space-3) var(--space-4)}
.nav-actions .ddl-btn .ddl-arrow{display:none}
}
