/* ==========================================================================
   Elora Digital Solutions — "Kigali Modern" site styles
   Ink navy + warm cream + terracotta, Instrument Serif + Manrope,
   Imigongo-inspired zig-zag motif.
   ========================================================================== */

:root {
  --ink: #0B1220;
  --ink-2: #141C2E;
  --ink-line: #263046;
  --ink-line-2: #3A4458;
  --cream: #F5F1EA;
  --paper: #FFFDF9;
  --sand: #E2D9C9;
  --sand-2: #E6DCCB;
  --accent: #B4471F;       /* terracotta — buttons, text accents on light */
  --accent-dark: #8A3416;
  --accent-light: #E8875C; /* ochre — accents on dark */
  --text: #0B1220;
  --muted: #4A4F5C;
  --muted-2: #5C6170;
  --on-dark: #F5F1EA;
  --on-dark-muted: #B7BDCB;
  --on-dark-quiet: #A9B0BF;
  --radius: 24px;
  --radius-sm: 14px;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --shadow: 0 18px 40px rgba(11, 18, 32, .10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
.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; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--cream); color: var(--ink); padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip-link:focus { top: 16px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.serif em, h1 em, h2 em { font-style: italic; }

/* ---------- Motifs ---------- */
.zig {
  background-color: var(--ink);
  background-image:
    linear-gradient(135deg, var(--accent) 25%, transparent 25%),
    linear-gradient(225deg, var(--accent) 25%, transparent 25%),
    linear-gradient(315deg, var(--accent) 25%, transparent 25%),
    linear-gradient(45deg,  var(--accent) 25%, transparent 25%);
  background-size: 28px 28px;
  background-position: -14px 0, -14px 0, 0 0, 0 0;
}
.zig-band { height: 10px; width: 100%; }
.zig-light {
  background-color: var(--cream);
  background-image:
    linear-gradient(135deg, var(--sand-2) 25%, transparent 25%),
    linear-gradient(225deg, var(--sand-2) 25%, transparent 25%),
    linear-gradient(315deg, var(--sand-2) 25%, transparent 25%),
    linear-gradient(45deg,  var(--sand-2) 25%, transparent 25%);
  background-size: 22px 22px;
  background-position: -11px 0, -11px 0, 0 0, 0 0;
}
.rings { position: absolute; pointer-events: none; opacity: .08; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--accent);
}
.eyebrow.on-dark { color: var(--accent-light); }
.eyebrow .dash { width: 36px; height: 2px; background: currentColor; display: inline-block; }
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 6.2vw, 90px); line-height: .98; letter-spacing: -0.01em; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -0.01em; }
.h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.08; }
.lead { font-size: 19px; line-height: 1.6; color: var(--muted); }
.on-dark .lead, .lead.on-dark { color: var(--on-dark-muted); }
.muted { color: var(--muted); }
.accent-text { color: var(--accent); }
.on-dark .accent-text, .accent-light { color: var(--accent-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 26px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-ghost { border-color: #5A6478; color: var(--on-dark); background: transparent; }
.btn-ghost:hover { border-color: var(--cream); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }
.link-arrow { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Header / nav ---------- */
.site-header { background: var(--ink); color: var(--on-dark); position: relative; }
.nav { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; position: relative; z-index: 5; }
.nav-logo img { height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--on-dark); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="page"] { border-bottom-color: var(--accent-light); color: #fff; }
.nav-links .btn { padding: 11px 20px; min-height: 44px; border-bottom: 0; }
.nav-links a.btn-light, .nav-links a.btn-light:hover { color: var(--ink); background: var(--cream); }
.nav-links a.btn-light:hover { background: #fff; }
.nav-links .btn:hover { border-bottom: 0; }
.menu-toggle {
  display: none; background: transparent; border: 1px solid var(--ink-line-2); color: var(--on-dark);
  width: 48px; height: 48px; border-radius: 12px; align-items: center; justify-content: center; cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 110px; position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; position: relative; z-index: 2; }
.hero-copy .display { color: var(--on-dark); }
.hero-copy .display em { color: var(--accent-light); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 6px; }
.hero-note { font-size: 14px; color: var(--on-dark-quiet); }
.hero-media { position: relative; padding: 0 28px 28px 0; }
.hero-media .zig { position: absolute; right: 0; bottom: 0; width: 78%; height: 78%; border-radius: 22px; opacity: .9; }
.hero-media img { position: relative; width: 100%; height: 440px; object-fit: cover; border-radius: 22px; }
.hero-badge {
  position: absolute; left: -24px; bottom: 56px; background: var(--cream); color: var(--ink);
  border-radius: 16px; padding: 16px 20px; display: flex; align-items: center; gap: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .35); max-width: 320px;
}
.hero-badge strong { display: block; font-size: 15px; }
.hero-badge span { font-size: 13px; color: var(--muted); }

.page-hero { padding: 48px 0 96px; position: relative; overflow: hidden; }
.page-hero .wrap { display: flex; flex-direction: column; gap: 22px; max-width: 1240px; position: relative; z-index: 2; }
.page-hero .display { font-size: clamp(42px, 5.4vw, 76px); color: var(--on-dark); max-width: 900px; }
.page-hero .display em { color: var(--accent-light); }
.page-hero .lead { max-width: 640px; }
.breadcrumb { font-size: 14px; color: var(--on-dark-quiet); }
.breadcrumb a { color: var(--on-dark-quiet); }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-tight { padding: 64px 0; }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 52px; }
.section-head .titles { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-dark .h2 em { color: var(--accent-light); }

/* ---------- Grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.align-center { align-items: center; }

/* ---------- Clients strip ---------- */
.clients { padding: 56px 0; border-bottom: 1px solid var(--sand); }
.clients p { text-align: center; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; margin-bottom: 28px; }
.logos { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px 40px; list-style: none; margin: 0; padding: 0; }
.logos img { height: 46px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .25s, opacity .25s; }
.logos img:hover { filter: none; opacity: 1; }

/* ---------- Cards ---------- */
.card {
  border-radius: var(--radius); padding: 34px; display: flex; flex-direction: column; gap: 18px;
  text-decoration: none; color: inherit; position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.card-paper { background: var(--paper); border: 1px solid var(--sand); color: var(--text); }
.card-ink { background: var(--ink); color: var(--on-dark); }
.card-ink2 { background: var(--ink-2); border: 1px solid var(--ink-line); color: var(--on-dark); }
.card-accent { background: var(--accent); color: #fff; }
.card p { font-size: 15px; line-height: 1.65; }
.card-paper p { color: var(--muted); }
.card-ink p, .card-ink2 p { color: var(--on-dark-muted); }
.card-accent p { color: #FFEDE4; }
.card .card-foot { margin-top: auto; font-size: 14px; font-weight: 700; }
.card-paper .card-foot { color: var(--accent); }
.card-ink .card-foot, .card-ink2 .card-foot { color: var(--accent-light); }
.card .icon { width: 40px; height: 40px; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.card-num { font-family: var(--serif); font-size: 26px; color: #7D8597; }
.card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.card ul li { display: flex; gap: 10px; align-items: flex-start; }
.card ul li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; }

.chips { border-top: 1px solid var(--ink-line); margin-top: 28px; padding-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.chips strong { font-size: 14px; margin-right: 10px; }
.chip { font-size: 14px; color: var(--on-dark-quiet); border: 1px solid var(--ink-line-2); border-radius: 999px; padding: 8px 14px; }


/* split service cards */
.card.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-paper ul li svg { color: var(--accent); }
.card-ink ul li svg, .card-ink2 ul li svg { color: var(--accent-light); }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { border-top: 3px solid var(--ink); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.steps li:first-child { border-top-color: var(--accent); }
.steps .num { font-family: var(--serif); font-size: 44px; line-height: 1; }
.steps li:first-child .num { color: var(--accent); }
.steps h3 { font-size: 19px; font-weight: 700; font-family: var(--sans); }
.steps p { font-size: 15px; color: var(--muted); }

/* ---------- Case studies ---------- */
.case { padding: 0; gap: 0; }
.case-media { height: 220px; display: flex; align-items: center; justify-content: center; }
.case-media img { max-height: 100px; max-width: 75%; width: auto; background: var(--paper); border-radius: 14px; padding: 14px 20px; }
.case-body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 10px; }
.case-tag { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.case-body .h3 { font-size: 28px; }

/* ---------- Pricing ---------- */
.pricing-head { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; background: var(--cream); padding: 14px 28px; border-radius: 20px; margin: 0 auto 44px; max-width: 760px; }
.tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; background: var(--ink); border-radius: 28px; padding: 5px; gap: 4px; }
.tab {
  font: inherit; font-size: 15px; font-weight: 600; border: 0; border-radius: 999px; padding: 12px 22px; min-height: 44px;
  cursor: pointer; background: transparent; color: #C9CED9;
}
.tab[aria-selected="true"] { background: var(--cream); color: var(--ink); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.plan { border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 22px; background: var(--paper); border: 1px solid var(--sand); }
.plan.popular { background: var(--ink); color: var(--on-dark); border-color: var(--ink); box-shadow: 0 24px 50px rgba(11, 18, 32, .25); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 30px; }
.plan-name { font-family: var(--serif); font-size: 30px; line-height: 1.1; font-weight: 400; }
.badge-popular { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--accent-light); color: var(--ink); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.plan-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan-price .amount { font-family: var(--serif); font-size: 48px; line-height: 1; }
.plan-sub { font-size: 14px; color: var(--muted-2); }
.plan.popular .plan-sub { color: var(--on-dark-quiet); }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.plan li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--accent-light); }
.plan .btn-outline { width: 100%; }
.plan.popular .btn { width: 100%; }
.pricing-foot { text-align: center; margin-top: 32px; }
.pricing-foot span { display: inline-block; font-size: 15px; background: var(--cream); padding: 10px 20px; border-radius: 999px; }
[role="tabpanel"][hidden] { display: none; }

/* ---------- Promises ---------- */
.promise strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; margin-bottom: 6px; }
.promise span { font-size: 15px; color: var(--on-dark-quiet); }

/* ---------- Testimonial ---------- */
.quote { display: flex; flex-direction: column; align-items: center; gap: 30px; text-align: center; max-width: 960px; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(28px, 3.4vw, 46px); line-height: 1.2; }
.quote cite { font-style: normal; display: flex; flex-direction: column; gap: 4px; }
.quote cite span { font-size: 14px; color: var(--muted-2); }

/* ---------- About ---------- */
.photo-pair { display: flex; gap: 16px; }
.photo-pair img { height: 340px; object-fit: cover; border-radius: 20px; }
.photo-pair img:first-child { width: 55%; }
.photo-pair img:last-child { width: 45%; margin-top: 48px; }
.prose { display: flex; flex-direction: column; gap: 20px; }
.prose p { font-size: 17px; line-height: 1.75; color: var(--muted); }
.section-dark .prose p { color: var(--on-dark-muted); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--sand); max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--sand); padding: 22px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 12px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-box { background: var(--ink); color: var(--on-dark); border-radius: 32px; overflow: hidden; }
.contact-inner { padding: 64px; gap: 56px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; font-size: 16px; }
.contact-list li { display: flex; gap: 12px; align-items: center; }
.contact-list svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent-light); }
.contact-list a { color: var(--on-dark); }

.form { background: var(--cream); color: var(--ink); border-radius: 22px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.field label .req { color: var(--accent); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 15px; padding: 13px 14px; border: 1px solid #BDB3A1; border-radius: 10px;
  background: var(--paper); color: var(--ink); width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field .error-text { font-size: 13px; color: #A12A12; display: none; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #A12A12; }
.field.invalid .error-text { display: block; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--muted); }
.form-status { border-radius: 12px; padding: 14px 16px; font-size: 15px; font-weight: 600; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #E3F1E6; color: #1E5A2C; }
.form-status.err { background: #FBE4DC; color: #8A2A10; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-quiet); padding: 72px 0 32px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-grid h2 { color: var(--on-dark); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; font-family: var(--sans); font-weight: 700; margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.foot-grid a { color: var(--on-dark-quiet); text-decoration: none; }
.foot-grid a:hover { color: var(--on-dark); text-decoration: underline; }
.foot-brand img { height: 46px; width: auto; margin-bottom: 18px; }
.foot-brand p { font-size: 15px; line-height: 1.7; max-width: 340px; }
.foot-bottom { border-top: 1px solid var(--ink-line); margin-top: 56px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }
.foot-bottom a { color: var(--on-dark-quiet); }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 58px; height: 58px; border-radius: 50%;
  background: #1F8F4E; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.wa-float:hover { background: #18733E; color: #fff; }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { gap: 20px; }
}
@media (max-width: 960px) {
  .wrap { padding: 0 20px; }
  .menu-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 20px; right: 20px; flex-direction: column; align-items: stretch;
    gap: 4px; background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 16px; padding: 14px; font-size: 17px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .4);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; border-bottom: 0; border-radius: 10px; }
  .nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--ink-line); border-bottom: 0; }
  .nav-links .btn { margin-top: 8px; }
  .hero-grid, .grid-2 { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .card.split { grid-template-columns: minmax(0, 1fr); padding: 30px !important; gap: 28px !important; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 80px 0; }
  .hero { padding: 32px 0 80px; }
  .hero-media img { height: 320px; }
  .hero-badge { left: 12px; bottom: 40px; }
  .contact-inner { padding: 32px 22px; }
  .logos { justify-content: center; }
  .logos img { height: 38px; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 26px; }
  .form { padding: 22px; }
  .photo-pair img { height: 240px; }
  .hero-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn, .logos img { transition: none; }
}

/* ---------- CMS-driven additions ---------- */
.case-media img.case-photo { max-height: none; max-width: none; width: 100%; height: 100%; object-fit: cover; padding: 0; border-radius: 0; background: none; }
.case-client { font-family: var(--serif); font-size: 34px; color: var(--cream); background: rgba(11,18,32,.55); padding: 8px 18px; border-radius: 12px; }
.case-points { margin: 4px 0 0; display: flex; flex-direction: column; gap: 8px; }
.case-points dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--ink); }
.case-points dd { margin: 2px 0 0; font-size: 15px; color: var(--muted); line-height: 1.55; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.quote-card blockquote { margin: 0; font-family: var(--serif); font-size: 26px; line-height: 1.25; }
.quote-card cite { font-style: normal; font-size: 14px; color: var(--muted); }
.quote-card cite strong { color: var(--ink); display: block; font-size: 15px; }
.foot-social a { margin-right: 2px; }

/* ---------- Case study cards (link to project page) ---------- */
a.case-link { text-decoration: none; color: var(--text); }
a.case-link:hover .h3 { color: var(--accent); }
.case-media { height: 230px; overflow: hidden; }
.case-media img.case-logo { max-height: 110px; max-width: 72%; width: auto; background: var(--paper); border-radius: 14px; padding: 14px 20px; }
.case-media img.case-photo { width: 100%; height: 100%; object-fit: cover; padding: 0; border-radius: 0; max-width: none; max-height: none; background: none; transition: transform .5s ease; }
a.case-link:hover .case-photo { transform: scale(1.04); }
.case-body { flex-grow: 1; }
.case-body .h3 { font-size: 26px; transition: color .2s; }
.case-summary { font-size: 15px; color: var(--muted); line-height: 1.6; }
.case-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--sand); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.case-meta { font-size: 13px; color: var(--muted-2); }
.case-more { font-size: 14px; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.case-more svg { width: 16px; height: 16px; transition: transform .2s; }
a.case-link:hover .case-more svg { transform: translateX(4px); }

/* ---------- Project detail page ---------- */
.project-hero { padding-bottom: 170px; }
.project-hero .display { font-size: clamp(38px, 5vw, 70px); max-width: 980px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.project-cover-wrap { margin-top: -120px; position: relative; z-index: 3; }
.project-cover { height: clamp(260px, 42vw, 520px); border-radius: 28px; box-shadow: 0 30px 60px rgba(11, 18, 32, .18); }
.project-cover img.case-logo { max-height: 180px; max-width: 60%; padding: 26px 36px; border-radius: 20px; }
.project-body { padding-top: 80px; }
.project-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 64px; align-items: start; }
.project-facts { position: sticky; top: 24px; background: var(--paper); border: 1px solid var(--sand); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.facts-title { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.project-facts dl { margin: 0 0 8px; display: flex; flex-direction: column; }
.project-facts dl > div { padding: 12px 0; border-bottom: 1px solid var(--sand); }
.project-facts dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
.project-facts dd { margin: 4px 0 0; font-weight: 600; font-size: 15.5px; }
.project-facts dd ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.project-facts dd li::before { content: '— '; color: var(--accent); }
.project-story { display: flex; flex-direction: column; gap: 56px; }
.story-block { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; }
.story-num { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--accent); border-top: 3px solid var(--accent); padding-top: 12px; }
.story-block .h3 { font-size: clamp(30px, 3vw, 40px); margin-bottom: 16px; border-top: 1px solid var(--sand); padding-top: 14px; }
.rich { display: flex; flex-direction: column; gap: 16px; font-size: 17.5px; line-height: 1.75; color: var(--muted); max-width: 720px; }
.rich ul { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.rich li { padding-left: 28px; position: relative; }
.rich li::before { content: ''; position: absolute; left: 4px; top: 12px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent); }
.project-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.project-gallery figure { margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--sand); background: var(--paper); }
.project-gallery img { width: 100%; height: auto; }
.project-quote { margin: 0; background: var(--ink); color: var(--on-dark); border-radius: 24px; padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.project-quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.25; }
.project-quote figcaption { color: var(--on-dark-quiet); font-size: 15px; }
.project-nav { border-top: 1px solid var(--sand); border-bottom: 1px solid var(--sand); }
.project-nav-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 24px; align-items: center; }
.pn { text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 4px; }
.pn span { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.pn strong { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.15; }
.pn em { font-style: normal; font-size: 14px; color: var(--muted-2); }
.pn:hover strong { color: var(--accent); }
.pn-next { text-align: right; align-items: flex-end; }
.pn-all { border: 1.5px solid var(--ink); border-radius: 999px; padding: 12px 20px; }
.pn-all span { color: var(--ink); }
@media (max-width: 960px) {
  .project-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .project-facts { position: static; order: 2; }
  .project-hero { padding-bottom: 140px; }
  .story-block { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .story-num { border-top: 0; padding-top: 0; font-size: 34px; }
  .project-nav-grid { grid-template-columns: minmax(0, 1fr); }
  .pn-next { text-align: left; align-items: flex-start; }
  .pn-all { justify-self: start; }
}
.preview-flag { background: var(--accent-light); color: var(--ink); font-weight: 700; padding: 10px 16px; border-radius: 10px; font-size: 14px; align-self: flex-start; }

/* ---------- Featured project card ---------- */
.case-featured { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: var(--paper); border: 1px solid var(--sand); border-radius: 28px; overflow: hidden; text-decoration: none; color: var(--text); transition: box-shadow .25s, transform .25s; }
.case-featured:hover { box-shadow: var(--shadow); transform: translateY(-3px); color: var(--text); }
.case-featured-media { height: 100%; min-height: 380px; }
.case-featured-media img.case-logo { max-height: 150px; max-width: 60%; }
.case-featured-body { padding: 48px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.case-featured-body .h2 { font-size: clamp(30px, 3vw, 44px); }
.case-featured-body .lead { font-size: 17px; }
.case-featured-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.case-featured-tags span { font-size: 13px; border: 1px solid var(--sand); border-radius: 999px; padding: 6px 12px; color: var(--muted); }
.case-featured .btn { margin-top: 8px; }
.case-featured:hover .btn { background: var(--accent-dark); }

/* ---------- Result highlight + browser frames ---------- */
.story-result > div { background: var(--ink); color: var(--on-dark); border-radius: 22px; padding: 30px 32px; }
.story-result .h3 { border-top: 0; padding-top: 0; color: var(--on-dark); }
.story-result .rich { color: var(--on-dark-muted); }
.story-result .rich li::before { border-color: var(--accent-light); }
.project-gallery { display: flex; flex-direction: column; gap: 28px; }
.browser-frame { margin: 0; border-radius: 16px; overflow: hidden; background: var(--paper); border: 1px solid var(--sand); box-shadow: 0 24px 50px rgba(11, 18, 32, .12); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #ECE5D8; border-bottom: 1px solid var(--sand); }
.browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: #CFC4B1; }
.browser-bar span:first-child { background: #E07B5F; }
.browser-bar em { font-style: normal; font-size: 12px; color: var(--muted-2); margin-left: 12px; background: var(--paper); border-radius: 6px; padding: 3px 12px; flex: 1; max-width: 340px; }
.browser-frame img { width: 100%; height: auto; display: block; }
@media (max-width: 960px) {
  .case-featured { grid-template-columns: minmax(0, 1fr); }
  .case-featured-media { min-height: 240px; }
  .case-featured-body { padding: 28px; }
}

/* ---------- Client logo showcase (v2) ---------- */
.clients { padding: 72px 0 80px; border-bottom: 0; background: linear-gradient(var(--cream), #EFE8DC); overflow: hidden; }
.clients p { display: none; }
.clients-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; margin-bottom: 40px; }
.clients-head .h3 { font-size: clamp(28px, 3vw, 40px); }
.clients-head .h3 em { color: var(--accent); }
.logo-marquee { position: relative; }
.logo-marquee.is-moving { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-track { list-style: none; margin: 0 auto; padding: 8px 0; display: flex; gap: 22px; width: max-content; }
.logo-marquee:not(.is-moving) .logo-track { flex-wrap: wrap; justify-content: center; max-width: 1240px; width: auto; padding: 8px 32px; }
.is-moving .logo-track { animation: logo-scroll 42s linear infinite; }
.logo-marquee.is-moving:hover .logo-track, .logo-marquee.is-moving:focus-within .logo-track { animation-play-state: paused; }
@keyframes logo-scroll { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 11px)); } }
.logo-tile { flex: 0 0 auto; width: 220px; height: 128px; background: #FFFFFF; border: 1px solid var(--sand); border-radius: 20px; display: flex; align-items: center; justify-content: center; padding: 18px 26px; box-shadow: 0 6px 18px rgba(11, 18, 32, .05); transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.logo-tile:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(11, 18, 32, .12); border-color: #D6CCBA; }
.logo-tile a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.logo-tile img { max-height: 84px; max-width: 100%; width: auto; height: auto; object-fit: contain; filter: none; opacity: 1; }
@media (max-width: 960px) {
  .logo-tile { width: 170px; height: 104px; padding: 14px 18px; border-radius: 16px; }
  .logo-tile img { max-height: 68px; }
  .logo-track { gap: 14px; }
  @keyframes logo-scroll { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 7px)); } }
}
@media (prefers-reduced-motion: reduce) {
  .is-moving .logo-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; max-width: 1240px; padding: 8px 20px; }
  .is-moving .logo-track [aria-hidden="true"] { display: none; }
  .logo-marquee.is-moving { -webkit-mask-image: none; mask-image: none; }
}

/* ---------- Homepage polish ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-in { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-in-late { animation-delay: .18s; }
.hero-badge { animation: floaty 6s ease-in-out 1.2s infinite; }
.hero-media img { box-shadow: 0 40px 80px rgba(0, 0, 0, .45); }
.hero .btn-accent { box-shadow: 0 12px 30px rgba(180, 71, 31, .35); }

.word-band { background: var(--accent); color: #fff; overflow: hidden; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.15); }
.word-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: word-scroll 38s linear infinite; }
@keyframes word-scroll { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 17px)); } }
.word-track span { font-family: var(--serif); font-style: italic; font-size: clamp(30px, 3.6vw, 52px); line-height: 1; white-space: nowrap; }
.word-track i { font-style: normal; font-size: 22px; color: #FFD9C7; }

.card-ink, .card-paper, .card-accent { box-shadow: 0 1px 0 rgba(11,18,32,.02); }
#who .card { min-height: 330px; }
#who .card .h3 { font-size: clamp(28px, 2.4vw, 34px); }
#who a.card:hover { transform: translateY(-6px); }
.section-dark .card-ink2:hover { border-color: var(--accent-light); }
.steps li { transition: transform .25s; }
.steps li:hover { transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
  .hero-in, .hero-badge, .word-track { animation: none; }
}


/* ==========================================================================
   Technology background system (replaces the chevron pattern)
   ========================================================================== */
:root {
  --tech-blue: #1292EE;
  --circuit-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%23E2D9CA' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round' opacity='1'%3E%3Cpath d='M0 30h46l18 18h52l18-18h26'/%3E%3Cpath d='M30 0v14l16 16'/%3E%3Cpath d='M116 48v40l-18 18H62l-18 18v36'/%3E%3Cpath d='M0 104h22l18-18v-20'/%3E%3Cpath d='M180 96h-28l-16 16v30l-18 18h-8'/%3E%3Cpath d='M90 0v24'/%3E%3Cpath d='M150 180v-22l14-14h16'/%3E%3Cpath d='M64 48v22'/%3E%3Cpath d='M0 158h40'/%3E%3C/g%3E%3Cg fill='%23D8CCB8' opacity='1'%3E%3Ccircle cx='64' cy='48' r='3.2'/%3E%3Ccircle cx='116' cy='48' r='3.2'/%3E%3Ccircle cx='46' cy='30' r='3.2'/%3E%3Ccircle cx='98' cy='106' r='3.2'/%3E%3Ccircle cx='62' cy='106' r='3.2'/%3E%3Ccircle cx='40' cy='66' r='3.2'/%3E%3Ccircle cx='136' cy='112' r='3.2'/%3E%3Ccircle cx='90' cy='24' r='3.2'/%3E%3Ccircle cx='64' cy='70' r='3.2'/%3E%3Ccircle cx='44' cy='124' r='3.2'/%3E%3Ccircle cx='40' cy='158' r='3.2'/%3E%3Ccircle cx='118' cy='160' r='3.2'/%3E%3Ccircle cx='164' cy='144' r='3.2'/%3E%3C/g%3E%3Cg fill='none' stroke='%23E2D9CA' stroke-width='1.3' opacity='1'%3E%3Crect x='82' y='60' width='22' height='22' rx='3'/%3E%3Crect x='140' y='20' width='16' height='16' rx='3'/%3E%3C/g%3E%3C/svg%3E");
  --circuit-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round' opacity='0.07'%3E%3Cpath d='M0 30h46l18 18h52l18-18h26'/%3E%3Cpath d='M30 0v14l16 16'/%3E%3Cpath d='M116 48v40l-18 18H62l-18 18v36'/%3E%3Cpath d='M0 104h22l18-18v-20'/%3E%3Cpath d='M180 96h-28l-16 16v30l-18 18h-8'/%3E%3Cpath d='M90 0v24'/%3E%3Cpath d='M150 180v-22l14-14h16'/%3E%3Cpath d='M64 48v22'/%3E%3Cpath d='M0 158h40'/%3E%3C/g%3E%3Cg fill='%23E8875C' opacity='0.07'%3E%3Ccircle cx='64' cy='48' r='3.2'/%3E%3Ccircle cx='116' cy='48' r='3.2'/%3E%3Ccircle cx='46' cy='30' r='3.2'/%3E%3Ccircle cx='98' cy='106' r='3.2'/%3E%3Ccircle cx='62' cy='106' r='3.2'/%3E%3Ccircle cx='40' cy='66' r='3.2'/%3E%3Ccircle cx='136' cy='112' r='3.2'/%3E%3Ccircle cx='90' cy='24' r='3.2'/%3E%3Ccircle cx='64' cy='70' r='3.2'/%3E%3Ccircle cx='44' cy='124' r='3.2'/%3E%3Ccircle cx='40' cy='158' r='3.2'/%3E%3Ccircle cx='118' cy='160' r='3.2'/%3E%3Ccircle cx='164' cy='144' r='3.2'/%3E%3C/g%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-width='1.3' opacity='0.07'%3E%3Crect x='82' y='60' width='22' height='22' rx='3'/%3E%3Crect x='140' y='20' width='16' height='16' rx='3'/%3E%3C/g%3E%3C/svg%3E");
  --circuit-warm: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round' opacity='0.22'%3E%3Cpath d='M0 30h46l18 18h52l18-18h26'/%3E%3Cpath d='M30 0v14l16 16'/%3E%3Cpath d='M116 48v40l-18 18H62l-18 18v36'/%3E%3Cpath d='M0 104h22l18-18v-20'/%3E%3Cpath d='M180 96h-28l-16 16v30l-18 18h-8'/%3E%3Cpath d='M90 0v24'/%3E%3Cpath d='M150 180v-22l14-14h16'/%3E%3Cpath d='M64 48v22'/%3E%3Cpath d='M0 158h40'/%3E%3C/g%3E%3Cg fill='%23FFFFFF' opacity='0.22'%3E%3Ccircle cx='64' cy='48' r='3.2'/%3E%3Ccircle cx='116' cy='48' r='3.2'/%3E%3Ccircle cx='46' cy='30' r='3.2'/%3E%3Ccircle cx='98' cy='106' r='3.2'/%3E%3Ccircle cx='62' cy='106' r='3.2'/%3E%3Ccircle cx='40' cy='66' r='3.2'/%3E%3Ccircle cx='136' cy='112' r='3.2'/%3E%3Ccircle cx='90' cy='24' r='3.2'/%3E%3Ccircle cx='64' cy='70' r='3.2'/%3E%3Ccircle cx='44' cy='124' r='3.2'/%3E%3Ccircle cx='40' cy='158' r='3.2'/%3E%3Ccircle cx='118' cy='160' r='3.2'/%3E%3Ccircle cx='164' cy='144' r='3.2'/%3E%3C/g%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-width='1.3' opacity='0.22'%3E%3Crect x='82' y='60' width='22' height='22' rx='3'/%3E%3Crect x='140' y='20' width='16' height='16' rx='3'/%3E%3C/g%3E%3C/svg%3E");
  --dot-grid-light: radial-gradient(circle at 1px 1px, rgba(11, 18, 32, .09) 1.2px, transparent 1.6px);
  --grid-dark: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
}

/* Light areas: soft glow + circuit traces + dot grid */
.zig-light {
  background-color: var(--cream);
  background-image:
    radial-gradient(60% 50% at 85% 10%, rgba(232, 135, 92, .16), transparent 70%),
    radial-gradient(50% 45% at 10% 90%, rgba(18, 146, 238, .10), transparent 70%),
    var(--circuit-light),
    var(--dot-grid-light);
  background-size: 100% 100%, 100% 100%, 180px 180px, 22px 22px;
  background-position: 0 0, 0 0, 0 0, 0 0;
}

/* Dark sections: blueprint grid + circuit traces + coloured glows */
.hero.section-dark, .page-hero.section-dark, .section.section-dark, .section-tight.section-dark, .contact-box, .site-footer {
  background-color: var(--ink);
  background-image:
    radial-gradient(45% 60% at 92% 0%, rgba(232, 135, 92, .22), transparent 70%),
    radial-gradient(40% 55% at 0% 100%, rgba(18, 146, 238, .16), transparent 70%),
    var(--circuit-dark),
    var(--grid-dark);
  background-size: 100% 100%, 100% 100%, 180px 180px, 48px 48px, 48px 48px;
}
.site-footer { background-image: radial-gradient(40% 70% at 100% 0%, rgba(232, 135, 92, .12), transparent 70%), var(--grid-dark); background-size: 100% 100%, 48px 48px, 48px 48px; }
.contact-box { background-size: 100% 100%, 100% 100%, 180px 180px, 40px 40px, 40px 40px; }

/* Hero photo backing block: warm gradient with circuit traces */
.hero-media .zig {
  background: var(--circuit-warm), linear-gradient(135deg, #B4471F 0%, #E8875C 55%, #F0A57E 100%);
  background-size: 180px 180px, 100% 100%;
  opacity: 1;
}
.hero-media::before {
  content: ''; position: absolute; left: -18px; top: -18px; width: 120px; height: 120px; z-index: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(232, 135, 92, .7) 1.6px, transparent 2px);
  background-size: 14px 14px; border-radius: 6px;
}

/* Thin accent bands: a sleek gradient line instead of the zig-zag */
.zig.zig-band { height: 4px; background: linear-gradient(90deg, #B4471F, #E8875C 45%, #1292EE); }
.zig-band + .nav { border-bottom: 1px solid rgba(255, 255, 255, .06); }

/* Section separators & extra polish */
.eyebrow .dash { background: linear-gradient(90deg, var(--accent), var(--tech-blue)); height: 2px; }
.eyebrow.on-dark .dash { background: linear-gradient(90deg, var(--accent-light), #6CC0FF); }
.card-paper { background: linear-gradient(180deg, #FFFFFF, var(--paper)); }
.card-ink2 { background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); backdrop-filter: blur(2px); }
.card-ink { background-color: var(--ink); background-image: var(--circuit-dark), radial-gradient(70% 60% at 100% 0%, rgba(232,135,92,.2), transparent 70%); background-size: 180px 180px, 100% 100%; }
.card-accent { background-image: var(--circuit-warm), linear-gradient(135deg, #B4471F, #C9582C); background-size: 180px 180px, 100% 100%; }
.word-band { background-image: var(--circuit-warm), linear-gradient(90deg, #A63F1A, #C9582C 50%, #A63F1A); background-size: 180px 180px, 100% 100%; }

/* Case media panels */
.case-media[style*="--ink"] { background-image: var(--circuit-dark), radial-gradient(70% 70% at 80% 10%, rgba(232,135,92,.25), transparent 70%) !important; background-size: 180px 180px, 100% 100% !important; }
.case-media[style*="--accent"] { background-image: var(--circuit-warm), linear-gradient(135deg, #B4471F, #E8875C) !important; background-size: 180px 180px, 100% 100% !important; }
.case-media img.case-logo { box-shadow: 0 14px 30px rgba(11, 18, 32, .12); }

/* Clients band: matching tech backdrop */
.clients { background-color: #EFE8DC; background-image: radial-gradient(50% 80% at 50% 0%, rgba(255,255,255,.7), transparent 70%), var(--dot-grid-light); background-size: 100% 100%, 22px 22px; }

/* Pricing head card sits on the pattern */
.pricing-head { background: rgba(245, 241, 234, .92); backdrop-filter: blur(4px); border: 1px solid var(--sand); }
.pricing-foot span { border: 1px solid var(--sand); }

/* Plans & steps */
.plan { background: linear-gradient(180deg, #FFFFFF, var(--paper)); }
.plan.popular { background-color: var(--ink); background-image: var(--circuit-dark), radial-gradient(80% 60% at 100% 0%, rgba(232,135,92,.25), transparent 70%); background-size: 180px 180px, 100% 100%; }
.steps li { border-top-color: var(--sand); }
.steps li:first-child { border-top-color: var(--accent); }
.steps li:hover { border-top-color: var(--accent); }
.steps .num { color: var(--accent); }

/* Project page */
.project-facts { background: linear-gradient(180deg, #FFFFFF, var(--paper)); box-shadow: 0 18px 40px rgba(11,18,32,.06); }
.story-result > div { background-color: var(--ink); background-image: var(--circuit-dark), radial-gradient(70% 80% at 100% 0%, rgba(232,135,92,.25), transparent 70%); background-size: 180px 180px, 100% 100%; }
.project-quote { background-image: var(--circuit-dark), radial-gradient(70% 80% at 100% 0%, rgba(18,146,238,.18), transparent 70%); background-size: 180px 180px, 100% 100%; }
.browser-bar { background: #E9E3D7; }

/* Rings on dark heroes */
.rings { opacity: .1; }

@media (prefers-reduced-motion: no-preference) {
  .hero.section-dark, .page-hero.section-dark { animation: glow-shift 18s ease-in-out infinite alternate; }
  @keyframes glow-shift { from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; } to { background-position: -40px 20px, 30px -20px, 90px 45px, 0 0, 0 0; } }
}

/* ==========================================================================
   Animated circuit layer + Elora mark (dark sections)
   ========================================================================== */
.hero, .page-hero, #services { position: relative; overflow: hidden; }
.hero > .wrap, .page-hero > .wrap, #services > .wrap { position: relative; z-index: 2; }
.tech-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.rings { opacity: 1; }
.tech-layer .traces { fill: none; stroke: rgba(255, 255, 255, .075); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.tech-layer .traces rect { stroke: rgba(255, 255, 255, .1); }
.tech-layer .pulses path { fill: none; stroke: #E8875C; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 34 966; stroke-dashoffset: 1000; filter: drop-shadow(0 0 4px rgba(232, 135, 92, .9)); opacity: .9; }
.tech-layer .pulses path.blue { stroke: #4FB3FF; filter: drop-shadow(0 0 4px rgba(79, 179, 255, .9)); }
.tech-layer .nodes circle { fill: #0B1220; stroke: rgba(232, 135, 92, .55); stroke-width: 1.6; }
.tech-layer .mark path { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 9; stroke-linecap: square; }
.tech-layer .mark .mk1, .tech-layer .mark .mk3 { stroke: rgba(232, 135, 92, .10); }
.tech-layer .mark { transform-box: fill-box; transform-origin: center; }
/* Page heroes: mark a little lower-right; services: mark on the left */
.page-hero .tech-layer .mark { transform: translate(40px, -20px) scale(.9); }
#services .tech-layer .mark path { stroke: rgba(255, 255, 255, .045); }
#services .tech-layer { opacity: .8; }

@media (prefers-reduced-motion: no-preference) {
  .tech-layer .pulses path { animation: signal 7s linear infinite; }
  .tech-layer .pulses .p1 { animation-duration: 9s;  animation-delay: -2s; }
  .tech-layer .pulses .p2 { animation-duration: 6s;  animation-delay: -4s; }
  .tech-layer .pulses .p3 { animation-duration: 11s; animation-delay: -1s; }
  .tech-layer .pulses .p4 { animation-duration: 8s;  animation-delay: -6s; }
  .tech-layer .pulses .p5 { animation-duration: 10s; animation-delay: -3s; }
  .tech-layer .nodes circle { animation: node-blink 4s ease-in-out infinite; }
  .tech-layer .nodes .n1 { animation-delay: -1s; } .tech-layer .nodes .n2 { animation-delay: -2s; } .tech-layer .nodes .n3 { animation-delay: -3s; }
  .tech-layer .mark { animation: mark-spin 90s linear infinite; }
  .tech-layer .mark .mk1, .tech-layer .mark .mk3 { animation: mark-glow 6s ease-in-out infinite; }
  .page-hero .tech-layer .mark { animation: mark-spin-page 90s linear infinite; }
}
@keyframes signal { to { stroke-dashoffset: 0; } }
@keyframes node-blink { 0%, 100% { stroke: rgba(232, 135, 92, .35); } 50% { stroke: rgba(232, 135, 92, 1); fill: rgba(232, 135, 92, .25); } }
@keyframes mark-spin { to { transform: rotate(360deg); } }
@keyframes mark-spin-page { from { transform: translate(40px, -20px) scale(.9) rotate(0); } to { transform: translate(40px, -20px) scale(.9) rotate(360deg); } }
@keyframes mark-glow { 0%, 100% { stroke: rgba(232, 135, 92, .08); } 50% { stroke: rgba(232, 135, 92, .2); } }
@media (max-width: 960px) {
  .tech-layer .mark { opacity: .6; }
  .tech-layer .pulses path { stroke-width: 2.6; }
}

/* Keep text readable: animation is faint behind the copy, vivid on the right */
.tech-layer { -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.28) 42%, #000 68%); mask-image: linear-gradient(90deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.28) 42%, #000 68%); }
#services .tech-layer { -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.25) 35%, rgba(0,0,0,.25) 100%); mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.25) 35%, rgba(0,0,0,.25) 100%); }
/* The animated layer replaces the static circuit tile on these sections */
.hero.section-dark, .page-hero.section-dark, #services.section-dark {
  background-image:
    radial-gradient(45% 60% at 92% 0%, rgba(232, 135, 92, .22), transparent 70%),
    radial-gradient(40% 55% at 0% 100%, rgba(18, 146, 238, .16), transparent 70%),
    var(--grid-dark);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
}
@media (max-width: 960px) {
  .tech-layer { -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.45)); mask-image: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.45)); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero.section-dark, .page-hero.section-dark { animation: none; }
}
