/* =========================================================
   DigiMatePro - New Site (2026)
   Theme: INK & EMBER  •  Warm bone/cream + near-black + coral-ember accent
   Type: Teko (condensed display, uppercase) + Kanit (body)
   Standalone. Does not affect the existing website.
========================================================= */

/* Teko + Kanit are now loaded via <link> tags in each page's <head> (with preconnect)
   instead of @import, so the browser can fetch fonts in parallel with this stylesheet
   rather than waiting for it to finish downloading first. */

/* ---------- Tokens ---------- */
:root {
  --paper: #f4f1ea;      /* warm bone */
  --paper-2: #eae5d8;    /* deeper bone for alt sections */
  --ink: #14130f;        /* warm near-black */
  --ink-2: #56534b;      /* muted warm gray */
  --line: rgba(20, 19, 15, 0.13);
  --line-strong: rgba(20, 19, 15, 0.24);

  --ember: #ff5e3a;       /* signature accent - coral/ember */
  --ember-2: #e2451f;
  --ember-soft: #ffe3d6;
  --ember-text: #bd2200;  /* darker, WCAG-AA-safe variant of --ember for text/icons/borders on light backgrounds (raw --ember is for buttons/dark backgrounds only) */
  --terracotta: #ce8f63;  /* secondary warm accent, used sparingly */

  --display: "Teko", sans-serif;
  --body: "Kanit", sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1240px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-weight: 300;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5 { font-family: var(--display); font-weight: 700; line-height: 0.98; letter-spacing: 0; text-transform: uppercase; }
section { position: relative; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.section-pad { padding: 120px 0; }
.section-pad-sm { padding: 80px 0; }
.text-center { text-align: center; }
.alt-bg { background: var(--paper-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-size: 14px; font-weight: 400;
  letter-spacing: 3px; text-transform: uppercase; color: var(--ink);
  margin-bottom: 24px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--ember); display: inline-block; }
.eyebrow.center { justify-content: center; }

.section-title { font-size: clamp(38px, 6.5vw, 76px); font-weight: 700; letter-spacing: 0; margin-bottom: 22px; }
.section-title em { font-style: normal; color: var(--ember-text); }
.section-title .u { position: relative; white-space: nowrap; }
.section-title .u::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.1em; height: 0.24em; background: var(--ember-soft); z-index: -1; }
.section-sub { color: var(--ink-2); font-size: 18px; font-weight: 300; max-width: 640px; text-transform: none; }
.center-head { max-width: 780px; margin: 0 auto 66px; }
.center-head .section-sub { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 18px; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 13px 30px; border-radius: 100px; cursor: pointer;
  border: 2px solid var(--ink); transition: var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ember); border-color: var(--ember); color: var(--ink); transform: translateY(-3px); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--ember); border-color: var(--ember); color: var(--ink); transform: translateY(-3px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-3px); }
.btn-gold { background: var(--ember); border-color: var(--ember); color: var(--ink); }
.btn-gold:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: translateY(-3px); }
.btn-lg { padding: 16px 40px; font-size: 19px; }

/* ---------- Navbar ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: var(--transition); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 20px 28px; max-width: var(--container); margin: 0 auto; }
.nav.scrolled { background: rgba(244, 241, 234, 0.88); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav-logo { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 27px; letter-spacing: 0; text-transform: uppercase; }
.nav-logo .mark { height: 42px; width: auto; }
.nav-logo .mark img { height: 42px; width: auto; object-fit: contain; }
.nav-logo em { font-style: normal; color: var(--ember-text); }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { font-family: var(--display); font-size: 17px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--ink); transition: var(--transition); position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--ember); transition: var(--transition); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: #cc2200; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; color: var(--ink); font-size: 24px; cursor: pointer; }

/* mobile menu - left slide-in drawer, dim backdrop (matches reference nav pattern) */
.mobile-backdrop { position: fixed; inset: 0; z-index: 98; background: rgba(20,19,15,0.45); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity 0.35s ease; }
.mobile-backdrop.open { opacity: 1; pointer-events: all; }
.mobile-menu {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 99; width: min(360px, 86vw);
  background: var(--paper); box-shadow: 30px 0 60px rgba(20,19,15,0.18);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 22px;
  padding: 40px; transform: translateX(-100%); transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { font-family: var(--display); font-size: 30px; font-weight: 700; text-transform: uppercase; color: var(--ink); }
.mobile-menu a.active { color: #cc2200; }
.mobile-menu .btn { margin-top: 10px; }
.mobile-close { position: absolute; top: 24px; right: 24px; background: none; border: none; color: var(--ink); font-size: 26px; cursor: pointer; }
.mobile-menu .theme-toggle { position: absolute; top: 20px; right: 68px; }

/* ---------- Curtain split-reveal intro ---------- */
.curtain { position: fixed; inset: 0; z-index: 1000; pointer-events: none; }
.curtain-panel {
  position: fixed; left: 0; right: 0; height: 50vh; background: var(--ink);
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}
.curtain-panel.top { top: 0; transform: translateY(0); }
.curtain-panel.bottom { bottom: 0; transform: translateY(0); }
.curtain-logo {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1001;
  width: 74px; height: 74px; opacity: 1; transition: opacity 0.4s ease 0.15s;
}
.curtain-logo img { width: 100%; height: 100%; object-fit: contain; }
.curtain.is-open .curtain-panel.top { transform: translateY(-100%); }
.curtain.is-open .curtain-panel.bottom { transform: translateY(100%); }
.curtain.is-open .curtain-logo { opacity: 0; }
.curtain.is-done { display: none; }
@media (prefers-reduced-motion: reduce) {
  .curtain { display: none; }
}

/* ---------- Borderless home hero: floating logo + menu button (no nav bar) ---------- */
.floating-logo {
  position: fixed; top: 28px; left: 28px; z-index: 100;
  display: flex; align-items: center; gap: 10px; font-family: var(--display);
  font-weight: 700; font-size: 24px; text-transform: uppercase; color: var(--ink);
}
.floating-logo .mark { height: 40px; width: auto; }
.floating-logo .mark img { height: 40px; width: auto; object-fit: contain; }
.floating-logo em { font-style: normal; color: var(--ember-text); }

.menu-fab {
  position: fixed; top: 28px; right: 28px; z-index: 100; width: 58px; height: 58px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center;
  cursor: pointer; box-shadow: 0 10px 26px rgba(20,19,15,0.10); transition: var(--transition);
}
.menu-fab i { font-size: 18px; color: var(--ink); transition: var(--transition); }
.menu-fab:hover { background: var(--ink); border-color: var(--ink); transform: rotate(90deg); }
.menu-fab:hover i { color: var(--ember); }
@media (max-width: 600px) {
  .floating-logo { top: 20px; left: 20px; font-size: 20px; }
  .floating-logo .mark, .floating-logo .mark img { height: 32px; }
  .menu-fab { top: 20px; right: 20px; width: 50px; height: 50px; }
}

/* ---------- Device mockup stack (laptop + phone) ---------- */
.device-stack { position: relative; height: 300px; margin-bottom: 30px; }
.device-laptop {
  position: absolute; left: 0; top: 10px; width: 340px; max-width: 82vw;
  background: var(--ink); border-radius: 14px 14px 4px 4px; padding: 10px 10px 0;
  box-shadow: 0 30px 60px rgba(20,19,15,0.22); transform: rotate(-4deg);
}
.device-laptop::after { content: ""; display: block; height: 12px; background: var(--ink); border-radius: 0 0 6px 6px; margin: 0 -10px; position: relative; }
.device-laptop::before { content: ""; position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%); width: 40px; height: 3px; border-radius: 2px; background: rgba(244,241,234,0.3); z-index: 2; }
.device-screen { background: var(--paper); border-radius: 6px; padding: 14px 16px; height: 190px; overflow: hidden; }
.ds-dots { display: flex; gap: 5px; margin-bottom: 12px; }
.ds-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.ds-bar { height: 10px; border-radius: 4px; background: var(--line); margin-bottom: 8px; }
.ds-bar.w60 { width: 60%; } .ds-bar.w80 { width: 80%; } .ds-bar.w40 { width: 40%; }
.ds-cta { margin-top: 14px; display: inline-block; padding: 8px 18px; border-radius: 100px; background: var(--ember); font-family: var(--display); font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--ink); }
.ds-chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--ink-2); background: var(--paper-2); padding: 5px 10px; border-radius: 100px; margin-top: 10px; }
.ds-chip i { color: var(--ember-text); font-size: 11px; }

.device-phone {
  position: absolute; right: 10px; bottom: -10px; width: 126px; height: 254px;
  background: var(--ink); border-radius: 26px; padding: 8px; box-shadow: 0 26px 50px rgba(20,19,15,0.26);
  transform: rotate(6deg);
}
.device-phone .ps { background: linear-gradient(160deg, var(--ember) 0%, var(--terracotta) 100%); border-radius: 18px; height: 100%; padding: 16px 12px; display: flex; flex-direction: column; justify-content: flex-end; }
.device-phone .ps-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 46px; height: 14px; background: var(--ink); border-radius: 8px; }
.device-phone .ps-metric { font-family: var(--display); font-size: 30px; font-weight: 700; color: var(--ink); line-height: 1; }
.device-phone .ps-label { font-family: var(--body); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: rgba(20,19,15,0.65); margin-top: 4px; }

@media (max-width: 600px) {
  .device-stack { height: 260px; }
  .device-laptop { width: 260px; }
  .device-screen { height: 140px; }
  .device-phone { width: 96px; height: 194px; right: 0; }
  .device-phone .ps-metric { font-size: 22px; }
}

/* ---------- Hero v2 (editorial split hero, sunburst + stacked cards) ---------- */
.hero2 { padding: 170px 0 0; overflow: hidden; min-height: 92vh; display: flex; align-items: center; }
.hero2.no-nav { padding-top: 140px; }
.hero2-rays {
  position: absolute; inset: -10% -10% -10% 30%; z-index: 0; pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 70% 45%, rgba(20,19,15,0.05) 0deg 4deg, transparent 4deg 12deg);
  -webkit-mask-image: radial-gradient(circle at 70% 45%, #000 55%, transparent 78%);
  mask-image: radial-gradient(circle at 70% 45%, #000 55%, transparent 78%);
}
.hero2-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero2-left { position: relative; padding-bottom: 90px; }
.hero2-title { font-size: clamp(56px, 9vw, 128px); font-weight: 700; line-height: 0.86; letter-spacing: 0; }
.hero2-arrow-btn {
  position: absolute; left: 0; bottom: 0; width: 84px; height: 84px; border-radius: 50%;
  background: var(--ember); color: var(--ink); display: grid; place-items: center; font-size: 26px;
  transition: var(--transition);
}
.hero2-arrow-btn:hover { background: var(--ink); color: var(--ember); transform: rotate(45deg); }

.hero2-right { position: relative; padding-left: 20px; }
.hero2-badge {
  width: 76px; height: 76px; border-radius: 20px; background: var(--terracotta); color: var(--ink);
  display: grid; place-items: center; font-size: 30px; margin-bottom: 26px;
  box-shadow: 0 14px 30px rgba(206,143,99,0.4);
}
.hero2-sub { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; text-transform: uppercase; margin-bottom: 14px; }
.hero2-text { color: var(--ink-2); font-weight: 300; font-size: 16px; max-width: 380px; text-transform: none; }

@media (max-width: 991px) {
  .hero2 { padding-top: 150px; min-height: auto; }
  .hero2-grid { grid-template-columns: 1fr; }
  .hero2-left { padding-bottom: 110px; }
  .hero2-rays { inset: -10%; }
}

@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- Opposite-direction marquee rows ---------- */
.marquee-rows { padding: 30px 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: var(--paper); overflow: hidden; display: flex; flex-direction: column; gap: 16px; }
.mrow { display: flex; gap: 16px; width: max-content; }
.mrow.left { animation: scroll-x 40s linear infinite; }
.mrow.right { animation: scroll-x-rev 40s linear infinite; }
@keyframes scroll-x-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.mpill { display: inline-flex; align-items: center; gap: 12px; padding: 13px 24px; border: 1px solid var(--line); border-radius: 100px; font-family: var(--display); font-weight: 600; font-size: 20px; text-transform: uppercase; background: var(--paper); color: var(--ink); white-space: nowrap; transition: var(--transition); }
.mpill i { color: var(--ember-text); font-size: 17px; }
.mpill:hover { transform: translateY(-3px); }
.mpill.dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.mpill.gold { background: var(--ember); color: var(--ink); border-color: var(--ember); }
.mpill.gold i { color: var(--ink); }

@media (max-width: 700px) {
  .mpill { font-size: 16px; padding: 11px 18px; }
}

/* ---------- Big statement ---------- */
.statement { font-family: var(--display); font-weight: 600; text-transform: none; font-size: clamp(26px, 4.4vw, 52px); line-height: 1.18; letter-spacing: 0; max-width: 1000px; }
.statement em { font-style: normal; color: var(--ember-text); }
.statement .muted { color: var(--line-strong); }

/* ---------- Service accordion (click-to-expand, reference pattern) ---------- */
.srv-list { border-top: 1px solid var(--line); }
.srv-item { border-bottom: 1px solid var(--line); }
.srv-row {
  display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center;
  padding: 30px 10px; cursor: pointer; background: var(--paper); transition: var(--transition); position: relative;
}
.srv-row:has(.num) { grid-template-columns: 56px 1fr auto; }
.srv-row .num { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--line-strong); transition: var(--transition); }
.srv-row .srv-main h3 { font-size: clamp(20px, 3.2vw, 38px); font-weight: 600; letter-spacing: 0; line-height: 1.15; transition: var(--transition); }
.srv-row .srv-cta { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; font-size: 16px; color: var(--ink); transition: var(--transition); flex-shrink: 0; }
.srv-item:hover .srv-row { background: var(--ink); padding-left: 24px; padding-right: 24px; }
.srv-item:hover .srv-row .num { color: var(--ember); }
.srv-item:hover .srv-row .srv-main h3 { color: var(--paper); }
.srv-item:hover .srv-row .srv-cta { border-color: var(--ember); color: var(--ember); }
.srv-item.is-open .srv-row { background: var(--ember); padding-left: 24px; padding-right: 24px; }
.srv-item.is-open .srv-row .num { color: var(--ink); }
.srv-item.is-open .srv-row .srv-main h3 { color: var(--ink); }
.srv-item.is-open .srv-row .srv-cta { background: var(--ink); border-color: var(--ink); color: var(--ember); transform: rotate(45deg); }
.srv-panel { max-height: 0; overflow: hidden; transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1); background: var(--ember-soft); }
.srv-item.is-open .srv-panel { max-height: 240px; }
.srv-panel-inner { padding: 26px 10px 34px; }
.srv-panel-inner p { color: var(--ink); font-size: 16px; font-weight: 300; max-width: 720px; text-transform: none; }

/* ---------- Values grid ---------- */
.val-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.val { padding: 40px 32px; border-right: 1px solid var(--line); transition: var(--transition); position: relative; }
.val:last-child { border-right: none; }
.val:hover { background: var(--paper-2); }
.val .vn { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--ember-text); margin-bottom: 26px; }
.val h4 { font-size: 22px; font-weight: 600; margin-bottom: 12px; text-transform: uppercase; }
.val p { color: var(--ink-2); font-size: 15px; font-weight: 300; text-transform: none; }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat .num { font-family: var(--display); font-weight: 700; font-size: clamp(46px, 6vw, 78px); letter-spacing: 0; line-height: 1; }
.stat .num em { font-style: normal; color: var(--ember-text); }
.stat .lbl { font-family: var(--display); font-weight: 600; font-size: 18px; margin: 12px 0 8px; text-transform: uppercase; }
.stat p { color: var(--ink-2); font-size: 14px; font-weight: 300; text-transform: none; }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.feature-list { display: flex; flex-direction: column; margin-top: 24px; }
.feature-item { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.feature-item:first-child { border-top: 1px solid var(--line); }
.feature-item .fi-n { font-family: var(--display); font-weight: 700; color: var(--ember-text); font-size: 18px; padding-top: 3px; }
.feature-item h4 { font-size: 20px; margin-bottom: 5px; }
.feature-item p { color: var(--ink-2); font-size: 15px; font-weight: 300; text-transform: none; }
.media-block { border-radius: 22px; overflow: hidden; height: 460px; background: linear-gradient(135deg, var(--paper-2), #ded6c1); border: 1px solid var(--line); display: grid; place-items: center; text-align: center; padding: 40px; }
.media-block .mb-num { font-family: var(--display); font-weight: 700; font-size: clamp(60px,9vw,120px); color: var(--ink); line-height: 1; }
.media-block .mb-num em { color: var(--ember-text); font-style: normal; }
.media-block .mb-lbl { font-family: var(--display); font-weight: 600; margin-top: 10px; letter-spacing: 1px; text-transform: uppercase; }

/* ---------- Founders ---------- */
.founders-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.founder { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.founder:hover { border-color: var(--ink); transform: translateY(-6px); box-shadow: 0 24px 50px rgba(20,19,15,0.10); }
.founder .photo { aspect-ratio: 4 / 5; height: auto; background: var(--paper-2); display: grid; place-items: center; position: relative; overflow: hidden; }
.founder .photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: grayscale(100%); }
.founder .photo i { font-size: 70px; color: var(--line-strong); }
.founder .photo .num { position: absolute; top: 20px; left: 20px; font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--ember-text); }
.founder .fbody { padding: 30px; }
.founder h3 { font-size: 26px; font-weight: 700; }
.founder .role { font-family: var(--body); font-weight: 500; color: var(--ember-2); font-size: 14px; letter-spacing: 1px; text-transform: uppercase; margin: 6px 0 16px; display: block; }
.founder .bio { color: var(--ink-2); font-size: 15px; font-weight: 300; text-transform: none; }
.founder .bio p { margin: 0 0 14px; }
.founder .bio p:last-child { margin-bottom: 0; }
.founder .socials { display: flex; gap: 10px; margin-top: 20px; }
.founder .socials a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); transition: var(--transition); }
.founder .socials a:hover { background: var(--ink); color: var(--ember); border-color: var(--ink); }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.testi-carousel { position: relative; padding: 0 60px; }
.testi-track {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth;
  -ms-overflow-style: none; scrollbar-width: none; padding: 4px 0 14px;
}
.testi-track::-webkit-scrollbar { display: none; }
.testi-track .testi { flex: 0 0 380px; scroll-snap-align: start; }
.testi-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 48px; height: 48px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line);
  display: grid; place-items: center; cursor: pointer; color: var(--ink); font-size: 16px;
  box-shadow: 0 10px 26px rgba(20,19,15,0.10); transition: var(--transition);
}
.testi-nav:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.testi-nav.prev { left: 0; }
.testi-nav.next { right: 0; }
@media (max-width: 700px) {
  .testi-carousel { padding: 0 46px; }
  .testi-track .testi { flex-basis: 84vw; }
  .testi-nav { width: 40px; height: 40px; font-size: 14px; }
}
.testi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; transition: var(--transition); }
.testi:hover { border-color: var(--ink); transform: translateY(-5px); }
.testi .stars { color: var(--ember-text); margin-bottom: 16px; font-size: 15px; }
.testi p { color: var(--ink); font-size: 15px; font-weight: 300; margin-bottom: 22px; text-transform: none; }
.testi .who { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line); padding-top: 18px; }
.testi .who .av { width: 46px; height: 46px; border-radius: 50%; background: var(--ember-soft); color: var(--ember-2); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 18px; overflow: hidden; }
.testi .who .av.av-img { background: var(--paper); border: 1px solid var(--line); padding: 4px; }
.testi .who .av.av-img img { width: 100%; height: 100%; object-fit: contain; }
.testi .who h5 { font-size: 15px; font-weight: 700; text-transform: none; }
.testi .who span { font-size: 13px; color: var(--ink-2); font-family: var(--body); }

/* ---------- Logo strip ---------- */
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 54px; }
.logo-strip img { max-height: 46px; width: auto; filter: grayscale(1); opacity: 0.55; transition: var(--transition); }
.logo-strip img:hover { filter: none; opacity: 1; }

/* ---------- CTA ---------- */
.cta-box { background: var(--ink); color: var(--paper); border-radius: 26px; padding: 80px 50px; text-align: center; position: relative; overflow: hidden; }
.cta-box::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(255,94,58,0.35), transparent 70%); top: -160px; right: -80px; }
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { font-size: clamp(32px, 5vw, 60px); font-weight: 700; margin-bottom: 18px; }
.cta-box h2 em { font-style: normal; color: var(--ember); }
.cta-box p { color: rgba(244,241,234,0.7); font-size: 18px; font-weight: 300; margin-bottom: 34px; max-width: 560px; margin-left: auto; margin-right: auto; text-transform: none; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Page banner ---------- */
.page-banner { padding: 180px 0 60px; }
.page-banner h1 { font-size: clamp(44px, 8vw, 110px); font-weight: 700; letter-spacing: 0; line-height: 0.92; }
.page-banner h1 em { font-style: normal; color: var(--ember-text); }
.page-banner p { color: var(--ink-2); font-size: 19px; font-weight: 300; max-width: 620px; margin-top: 24px; text-transform: none; }
.crumb { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: 16px; text-transform: uppercase; color: var(--ink-2); margin-top: 26px; }
.crumb a:hover { color: var(--ember-text); }

/* ---------- Blog cards ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.blog-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; }
.blog-card:hover { border-color: var(--ink); transform: translateY(-6px); box-shadow: 0 24px 50px rgba(20,19,15,0.10); }
.blog-card .bc-thumb { height: 170px; background: linear-gradient(135deg, var(--ink), #2a2820); display: grid; place-items: center; color: var(--ember); font-size: 36px; }
.blog-card .bc-body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card .bc-tag { font-family: var(--body); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ember-2); font-weight: 600; }
.blog-card h3 { font-size: 24px; font-weight: 600; letter-spacing: 0; line-height: 1.1; }
.blog-card p { color: var(--ink-2); font-size: 15px; font-weight: 300; text-transform: none; flex: 1; }
.blog-card .bc-link { font-family: var(--display); font-weight: 600; font-size: 16px; text-transform: uppercase; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.blog-card:hover .bc-link { color: var(--ember-2); }

/* ---------- Article body (blog posts) ---------- */
.article-body { max-width: 740px; margin: 0 auto; font-family: var(--body); font-size: 17px; line-height: 1.8; color: var(--ink); text-transform: none; }
.article-body p { margin-bottom: 22px; }
.article-body h2 { font-size: clamp(24px, 3vw, 34px); margin: 44px 0 18px; text-transform: none; }
.article-body h3 { font-size: clamp(19px, 2.4vw, 24px); margin: 32px 0 14px; text-transform: none; font-weight: 600; }
.article-body ul { margin: 0 0 22px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--ink); }
.article-meta { display: flex; align-items: center; gap: 14px; color: var(--ink-2); font-family: var(--body); font-size: 14px; margin: 0 auto 40px; max-width: 740px; }
.article-meta .am-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-2); }
.article-cta { max-width: 740px; margin: 50px auto 0; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.article-cta p { margin: 0; flex: 1; min-width: 220px; color: var(--ink-2); font-size: 15px; font-weight: 300; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.ci-item { display: flex; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.ci-item:first-child { border-top: 1px solid var(--line); }
.ci-ic { flex-shrink: 0; width: 52px; height: 52px; border-radius: 13px; background: var(--paper-2); display: grid; place-items: center; color: var(--ember-2); font-size: 19px; }
.ci-item h4 { font-size: 17px; margin-bottom: 3px; text-transform: uppercase; }
.ci-item p, .ci-item a { color: var(--ink-2); font-size: 15px; font-weight: 300; }
.ci-item a:hover { color: var(--ember-text); }
.form-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--display); font-weight: 600; font-size: 16px; text-transform: uppercase; margin-bottom: 8px; }
.field input, .field textarea, .field select { width: 100%; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--ink); font-family: var(--body); font-weight: 300; font-size: 15px; transition: var(--transition); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ember-text); box-shadow: 0 0 0 3px rgba(189,34,0,0.16); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 13px; color: var(--ink-2); font-weight: 300; margin-top: 14px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding: 90px 0 34px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 56px; border-bottom: 1px solid rgba(244,241,234,0.12); }
.footer .nav-logo { color: var(--paper); margin-bottom: 20px; }
.footer .nav-logo em { color: var(--ember); }
.footer-brand p { color: rgba(244,241,234,0.6); font-size: 15px; font-weight: 300; max-width: 300px; }
.footer h5 { font-family: var(--display); font-size: 16px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 22px; color: var(--ember); }
.footer ul li { margin-bottom: 12px; }
.footer ul li a { color: rgba(244,241,234,0.7); font-size: 15px; font-weight: 300; transition: var(--transition); }
.footer ul li a:hover { color: var(--ember); }
.footer-social { display: flex; gap: 12px; margin-top: 6px; }
.footer-social a { width: 42px; height: 42px; border-radius: 11px; border: 1px solid rgba(244,241,234,0.2); display: grid; place-items: center; color: var(--paper); transition: var(--transition); }
.footer-social a:hover { background: var(--ember); border-color: var(--ember); color: var(--ink); transform: translateY(-3px); }
.footer-bottom { padding-top: 28px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p, .footer-bottom a { color: rgba(244,241,234,0.5); font-size: 14px; font-weight: 300; }
.footer-bottom a:hover { color: var(--ember); }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; bottom: 28px; right: 28px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; color: #fff; font-size: 28px; box-shadow: 0 8px 26px rgba(37,211,102,0.45); transition: var(--transition); }
.wa-float:hover { transform: translateY(-4px) scale(1.05); }

/* ---------- Scroll-to-top ---------- */
.scroll-top-btn {
  position: fixed; bottom: 28px; right: 96px; z-index: 90; width: 52px; height: 52px; border-radius: 50%;
  background: var(--ember); color: var(--ink); border: none; display: grid; place-items: center; font-size: 18px;
  cursor: pointer; box-shadow: 0 8px 26px rgba(255,94,58,0.4); transition: var(--transition);
  opacity: 0; transform: translateY(16px) scale(0.8); pointer-events: none;
}
.scroll-top-btn.show { opacity: 1; transform: none; pointer-events: all; }
.scroll-top-btn:hover { background: var(--ink); color: var(--ember); transform: translateY(-4px) scale(1.05); }
@media (max-width: 600px) { .scroll-top-btn { right: 24px; bottom: 92px; width: 46px; height: 46px; } }

/* ---------- Hover-expand service rows (services.html + service pages) ---------- */
.hrow-list { display: flex; flex-direction: column; gap: 14px; }
.hrow { display: flex; align-items: center; gap: 22px; padding: 26px 34px; border-radius: 60px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: var(--transition); position: relative; }
.hrow-num { font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--ink-2); flex-shrink: 0; transition: var(--transition); }
.hrow-body { flex: 1; min-width: 0; }
.hrow-title { font-size: clamp(21px, 2.8vw, 32px); font-weight: 600; letter-spacing: 0; transition: var(--transition); margin: 0; }
.hrow-desc { font-family: var(--body); font-weight: 300; font-size: 15px; line-height: 1.55; color: var(--paper); text-transform: none; max-height: 0; opacity: 0; margin-top: 0; overflow: hidden; transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease; max-width: 560px; }
.hrow-media { width: 0; height: 64px; opacity: 0; margin-left: 0; border-radius: 18px; background: linear-gradient(135deg, var(--ember), var(--terracotta)); display: grid; place-items: center; flex-shrink: 0; transition: var(--transition); overflow: hidden; }
.hrow-media i { font-size: 22px; color: var(--ink); }
.hrow-arrow { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; font-size: 16px; color: var(--ink); flex-shrink: 0; transition: var(--transition); }
.hrow:hover, .hrow:focus-visible { background: var(--ink); padding-left: 44px; padding-right: 44px; border-color: var(--ink); }
.hrow:hover .hrow-num, .hrow:focus-visible .hrow-num { color: var(--ember); }
.hrow:hover .hrow-title, .hrow:focus-visible .hrow-title { color: var(--paper); }
.hrow:hover .hrow-desc, .hrow:focus-visible .hrow-desc { max-height: 90px; opacity: 1; margin-top: 8px; }
.hrow:hover .hrow-media, .hrow:focus-visible .hrow-media { width: 64px; opacity: 1; margin-left: 6px; }
.hrow:hover .hrow-arrow, .hrow:focus-visible .hrow-arrow { border-color: var(--ember); color: var(--ember); transform: rotate(45deg); }
@media (max-width: 700px) {
  .hrow { padding: 20px 22px; border-radius: 28px; gap: 14px; }
  .hrow-media { display: none; }
  .hrow:hover, .hrow:focus-visible { padding-left: 22px; padding-right: 22px; }
}
@media (max-width: 600px) { .hrow-arrow { display: none; } }

/* ---------- Service quote CTA chip ---------- */
.quote-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 36px; margin-top: 10px; }
.quote-cta p { margin: 0; color: var(--ink-2); font-size: 15px; font-weight: 300; text-transform: none; flex: 1; min-width: 220px; }
.quote-cta strong { color: var(--ink); }

/* ---------- Accessibility: visible keyboard focus ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 2px;
}

/* ---------- Accessibility: skip-to-content link (hidden until focused) ---------- */
.skip-link {
  position: absolute; top: -60px; left: 12px; z-index: 9999;
  background: var(--ink); color: var(--paper); font-family: var(--body);
  font-size: 14px; font-weight: 600; text-decoration: none;
  padding: 12px 20px; border-radius: var(--radius-sm, 6px);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 12px;
  outline: 2px solid var(--ember); outline-offset: 3px;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* ---------- Respect reduced-motion preference globally ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .mrow { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .split, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .val-grid { grid-template-columns: 1fr 1fr; }
  .val:nth-child(2) { border-right: none; }
  .val:nth-child(1), .val:nth-child(2) { border-bottom: 1px solid var(--line); }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .testi-grid { grid-template-columns: 1fr; }
  .founders-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 34px; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
}
@media (max-width: 600px) {
  .section-pad { padding: 80px 0; }
  .val-grid { grid-template-columns: 1fr; }
  .val { border-right: none; border-bottom: 1px solid var(--line); }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-actions .btn { width: 100%; justify-content: center; }
  .cta-box { padding: 54px 26px; }
  .form-card { padding: 26px; }
}

/* ---------- Dark mode ---------- */
/* Toggle switch (nav) */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--ink); display: grid; place-items: center;
  cursor: pointer; font-size: 16px; transition: var(--transition); flex-shrink: 0;
}
.theme-toggle:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.theme-toggle-float { position: fixed; top: 28px; right: 98px; z-index: 100; background: var(--paper); box-shadow: 0 10px 26px rgba(20,19,15,0.10); }
@media (max-width: 600px) { .theme-toggle-float { top: 20px; right: 78px; width: 36px; height: 36px; } }
.theme-toggle .fa-sun { display: none; }
html[data-theme="dark"] .theme-toggle .fa-sun { display: inline; }
html[data-theme="dark"] .theme-toggle .fa-moon { display: none; }

/* Page-level surfaces, running text, hairlines re-theme automatically via
   --line/--line-strong below; everything else (buttons, footer, cta-box,
   device mockups, hover-invert states) is intentionally left unchanged
   since those components are already dark-styled and stay legible on a
   dark page. */
html[data-theme="dark"] {
  --line: rgba(244, 241, 234, 0.13);
  --line-strong: rgba(244, 241, 234, 0.24);
}

html[data-theme="dark"] body { background: #1A1914; color: #F4F1EA; }
html[data-theme="dark"] .alt-bg,
html[data-theme="dark"] .ci-ic,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .article-cta,
html[data-theme="dark"] .quote-cta,
html[data-theme="dark"] .val:hover { background: #221F17; }

html[data-theme="dark"] .founder,
html[data-theme="dark"] .blog-card,
html[data-theme="dark"] .testi,
html[data-theme="dark"] .srv-row,
html[data-theme="dark"] .mpill:not(.dark):not(.gold),
html[data-theme="dark"] .hrow,
html[data-theme="dark"] .marquee-rows,
html[data-theme="dark"] .mobile-menu,
html[data-theme="dark"] .menu-fab,
html[data-theme="dark"] .testi-nav,
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .field select { background: #201E17; }
html[data-theme="dark"] .testi-nav { color: #F4F1EA; }

html[data-theme="dark"] .nav.scrolled { background: rgba(26, 25, 20, 0.88); }
html[data-theme="dark"] .marquee-rows { border-color: rgba(244, 241, 234, 0.24); }

html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .nav-links a,
html[data-theme="dark"] .nav-toggle,
html[data-theme="dark"] .mobile-menu a,
html[data-theme="dark"] .mobile-close,
html[data-theme="dark"] .menu-fab i,
html[data-theme="dark"] .btn-ghost,
html[data-theme="dark"] .mpill:not(.dark):not(.gold),
html[data-theme="dark"] .srv-row .srv-cta,
html[data-theme="dark"] .srv-panel-inner p,
html[data-theme="dark"] .founder .socials a,
html[data-theme="dark"] .testi p,
html[data-theme="dark"] .blog-card .bc-link,
html[data-theme="dark"] .article-body,
html[data-theme="dark"] .article-body strong,
html[data-theme="dark"] .quote-cta strong,
html[data-theme="dark"] .hrow-media i,
html[data-theme="dark"] .hrow-arrow,
html[data-theme="dark"] .media-block .mb-num,
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .field select { color: #F4F1EA; }

html[data-theme="dark"] .btn-ghost { border-color: #F4F1EA; }

html[data-theme="dark"] .section-sub,
html[data-theme="dark"] .hero2-text,
html[data-theme="dark"] .val p,
html[data-theme="dark"] .stat p,
html[data-theme="dark"] .feature-item p,
html[data-theme="dark"] .founder .bio,
html[data-theme="dark"] .testi .who span,
html[data-theme="dark"] .page-banner p,
html[data-theme="dark"] .crumb,
html[data-theme="dark"] .blog-card p,
html[data-theme="dark"] .article-meta,
html[data-theme="dark"] .article-cta p,
html[data-theme="dark"] .ci-item p,
html[data-theme="dark"] .ci-item a,
html[data-theme="dark"] .form-note,
html[data-theme="dark"] .hrow-num,
html[data-theme="dark"] .quote-cta p { color: #B8B3A6; }

html[data-theme="dark"] .media-block { background: linear-gradient(135deg, #221F17, #2B2818); }
html[data-theme="dark"] .nav-links a.active,
html[data-theme="dark"] .mobile-menu a.active { color: var(--ember); }
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .theme-toggle-float { border-color: var(--line); color: #F4F1EA; background: #201E17; }
html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .theme-toggle-float:hover { background: var(--ember); color: var(--ink); border-color: var(--ember); }
