/* ==========================================================================
   DSL Systems and Solutions — site stylesheet
   Palette derived from the DSL logo:
     orange  #F25824   ink  #262223   deep  #171516
   ========================================================================== */

:root {
  --orange: #f25824;
  --orange-600: #d8450f;
  --orange-050: #fdece5;
  --ink: #262223;
  --ink-900: #171516;
  --ink-700: #3b3839;
  --paper: #ffffff;
  --mist: #f6f5f3;
  --line: #e8e5e2;
  --muted: #6e6a6b;
  --gold: #f2b705;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -22px rgba(23, 21, 22, 0.45);
  --shadow-sm: 0 8px 24px -14px rgba(23, 21, 22, 0.4);
  --maxw: 1320px;
  --display: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.1; margin: 0 0 .45em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.05rem, 4.4vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 2.9vw, 2.3rem); font-weight: 600; }
h3 { font-size: 1.16rem; font-weight: 600; }
p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: clamp(46px, 5.5vw, 82px) 0; }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink-900); color: #d9d5d3; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--tight { padding: clamp(34px, 4vw, 54px) 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.lead { font-size: clamp(.98rem, 1.3vw, 1.1rem); color: var(--muted); max-width: 64ch; }
.section--ink .lead { color: #b7b2b0; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--body); font-weight: 600; font-size: .92rem;
  padding: 11px 20px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-600); }
.btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-900); }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--ink); }
.btn--lg { padding: 12px 24px; font-size: .96rem; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: 62px;
}
.site-header.is-scrolled { background: rgba(255, 255, 255, .94); backdrop-filter: saturate(160%) blur(12px); box-shadow: 0 1px 0 var(--line), 0 10px 30px -24px rgba(0,0,0,.5); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 28px; width: auto; }
.brand .brand-fallback { font-family: var(--display); font-weight: 800; font-size: 1.25rem; color: #fff; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 7px 12px; border-radius: 8px; font-weight: 500; font-size: .9rem; color: rgba(255,255,255,.88); transition: color .2s, background .2s; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
.site-header.is-scrolled .nav a { color: var(--ink-700); }
.site-header.is-scrolled .nav a:hover { color: var(--orange); background: var(--mist); }
.site-header.is-scrolled .brand .brand-fallback { color: var(--ink); }
.header-cta { display: flex; align-items: center; gap: 8px; }
.brand .logo-on-light { display: none; }
.site-header.is-scrolled .brand .logo-on-dark { display: none; }
.site-header.is-scrolled .brand .logo-on-light { display: block; }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 86vh; display: flex; align-items: center;
  color: #fff; padding: 108px 0 64px; overflow: hidden;
  background: radial-gradient(1200px 600px at 78% -10%, #3a2a24 0%, var(--ink-900) 55%, #0f0e0e 100%);
}
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 150px; background: linear-gradient(180deg, rgba(12,11,11,.72), rgba(12,11,11,0)); z-index: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(12, 11, 11, .92) 0%, rgba(12, 11, 11, .66) 40%, rgba(12, 11, 11, .18) 76%, rgba(12, 11, 11, .02) 100%),
    linear-gradient(0deg, rgba(12, 11, 11, .55), rgba(12, 11, 11, 0) 34%);
}
.hero .hero-media { position: absolute; inset: 0; z-index: 0; }
.hero .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero .container { position: relative; z-index: 2; }
/* Content side is heavily darkened; the empty side of the image stays clear. */
.hero-panel { position: relative; max-width: 700px; }
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero .eyebrow { color: #ffb08e; }
.hero .lead { color: #dcd7d5; font-size: clamp(1rem, 1.5vw, 1.2rem); margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; color: #b8b3b1; font-size: .88rem; }
.hero-partner {
  display: inline-flex; align-items: center;
  background: #fff; border-radius: 10px; padding: 7px 13px;
  box-shadow: 0 10px 28px -16px rgba(0, 0, 0, .65);
}
.hero-partner img { height: 26px; width: auto; display: block; }
.hero-scroll { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,.6); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; writing-mode: horizontal-tb; }

/* ---------- trust bar / logo marquee ---------- */
.trust { border-bottom: 1px solid var(--line); padding: 24px 0 28px; }
.trust .label {
  display: block; text-align: center;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 18px;
}
.logo-marquee {
  overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.logo-marquee-track { display: flex; width: max-content; animation: logo-marquee 70s linear infinite; }
.logo-marquee:hover .logo-marquee-track { animation-play-state: paused; }
.logo-marquee-group { display: flex; align-items: center; gap: 54px; padding-right: 54px; }
.logo-marquee-item { display: inline-flex; align-items: center; flex: 0 0 auto; }
.logo-marquee-item img { height: 32px; width: auto; max-width: 168px; object-fit: contain; filter: grayscale(1); opacity: .6; transition: filter .25s ease, opacity .25s ease; }
.logo-marquee-item:hover img { filter: none; opacity: 1; }
@keyframes logo-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
  .logo-marquee-group[aria-hidden="true"] { display: none; }
}
.logo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 26px 54px; }
.logo-row-item { display: inline-flex; align-items: center; }
.logo-row-item img { height: 40px; width: auto; filter: grayscale(1); opacity: .6; transition: filter .25s ease, opacity .25s ease; }
.logo-row-item img:hover { filter: none; opacity: 1; }

/* ---------- client logo wall ---------- */
.logo-wall { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.logo-wall-item {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  height: 138px; padding: 22px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.logo-wall-item img { max-height: 74px; max-width: 100%; width: auto; filter: grayscale(1); opacity: .72; transition: filter .25s ease, opacity .25s ease; }
.logo-wall-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: #ddd8d4; }
.logo-wall-item:hover img { filter: none; opacity: 1; }

/* ---------- clients (grouped by sector) ---------- */
.client-group { margin-top: 46px; }
.client-group:first-of-type { margin-top: 0; }
.client-group-title {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display); font-size: 1.02rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; color: var(--ink-700);
  margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.client-group-count {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em;
  color: var(--muted); background: var(--mist); border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 10px;
}
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(126px, 1fr)); gap: 12px; }
.client-tile {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1; padding: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.client-tile img {
  max-width: 86%; max-height: 52%; width: auto; height: auto; object-fit: contain;
  filter: grayscale(1); opacity: .74; transition: filter .25s ease, opacity .25s ease;
}
.client-tile:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-sm);
  border-color: color-mix(in srgb, var(--accent, var(--orange)) 42%, var(--line));
  background: color-mix(in srgb, var(--accent, var(--orange)) 4%, #fff);
}
.client-tile:hover img { filter: none; opacity: 1; }
.client-tile--name {
  background: color-mix(in srgb, var(--accent, var(--orange)) 6%, #fff);
  border-color: color-mix(in srgb, var(--accent, var(--orange)) 20%, var(--line));
}
.client-tile--name span {
  font-weight: 600; color: var(--ink-700); text-align: center; line-height: 1.25; font-size: .8rem;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.client-tile-name {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 8px 7px;
  font-size: .7rem; font-weight: 600; line-height: 1.2; text-align: center; color: #fff;
  background: linear-gradient(180deg, rgba(23,21,22,0), rgba(23,21,22,.88));
  transform: translateY(101%); opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  pointer-events: none;
}
.client-tile:hover .client-tile-name,
.client-tile:focus-within .client-tile-name { transform: translateY(0); opacity: 1; }
.client-note { margin: 30px 0 0; font-size: .88rem; color: var(--muted); text-align: center; }

/* ---------- clients carousel ---------- */
.clients-carousel { position: relative; }
.client-dots { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 0 0 22px; }
.client-dot {
  display: inline-flex; align-items: center; padding: 9px 14px;
  background: transparent; border: 1px solid transparent; border-radius: 999px;
  font: inherit; color: var(--muted); cursor: pointer;
  transition: background .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.client-dot:hover { color: var(--ink); }
.client-dot:hover .client-dot-mark { opacity: .7; }
.client-dot-mark { width: 10px; height: 10px; border-radius: 50%; background: currentColor; opacity: .38; flex: 0 0 auto; transition: opacity .25s ease, transform .25s ease, background .25s ease; }
.client-dot.is-active {
  background: color-mix(in srgb, var(--accent, var(--orange)) 8%, #fff);
  border-color: color-mix(in srgb, var(--accent, var(--orange)) 34%, var(--line));
  color: var(--ink); box-shadow: var(--shadow-sm);
}
.client-dot.is-active .client-dot-mark { background: var(--accent, var(--orange)); opacity: 1; transform: scale(1.2); }
.client-dot:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.client-dot-text { max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; font-weight: 600; font-size: .95rem; transition: max-width .4s ease, opacity .3s ease, margin-left .4s ease; }
.client-dot.is-active .client-dot-text { max-width: 340px; opacity: 1; margin-left: 10px; }

.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; transition: transform .55s cubic-bezier(.45, 0, .2, 1); }
.carousel-slide { position: relative; flex: 0 0 100%; min-width: 100%; padding-top: 16px; }
.carousel-slide::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent, var(--orange)), color-mix(in srgb, var(--accent, var(--orange)) 0%, transparent) 70%);
}

.carousel-controls { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.carousel-arrow {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); color: var(--ink-700);
  font-size: 1.05rem; line-height: 1; cursor: pointer;
  transition: border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.carousel-arrow:hover { border-color: var(--orange); color: var(--orange); box-shadow: var(--shadow-sm); }
.carousel-arrow:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none; }
}

/* ---------- generic two-column ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.split--reverse .split-media { order: 2; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.stat .n { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--orange); line-height: 1; }
.stat .t { font-size: .9rem; color: var(--muted); margin-top: 6px; }

/* ---------- story (editorial, overlapping media) ---------- */
.story { position: relative; overflow: hidden; }
.story::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 560px; height: 560px; right: -240px; top: 8%;
  background: radial-gradient(closest-side, rgba(242, 88, 36, .14), rgba(242, 88, 36, 0));
}
.story-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.18fr 1fr; gap: clamp(34px, 4vw, 62px); align-items: center; }
.story-copy { max-width: 720px; }
.story-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--orange); }
.story-link span { transition: transform .2s ease; }
.story-link:hover span { transform: translateX(4px); }
.story-media { position: relative; }
.story-accent {
  position: absolute; z-index: 0; pointer-events: none;
  width: 56%; height: 72%; top: -30px; right: -30px;
  background: var(--orange); border-radius: 18px;
  clip-path: polygon(0 0, 100% 0, 100% 66%, 0 100%);
}
.story-outline {
  position: absolute; z-index: 0; pointer-events: none;
  left: -20px; bottom: -22px; width: 44%; height: 50%;
  border: 2px solid var(--ink); border-radius: 18px; opacity: .14;
}
.story-frame {
  position: relative; z-index: 1; margin: 0;
  border-radius: 18px; overflow: hidden; background: #fff;
  box-shadow: 0 34px 74px -36px rgba(23, 21, 22, .62);
}
.story-frame img { display: block; width: 100%; height: auto; }
.story-tag {
  position: absolute; left: 16px; top: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 15px; border-radius: 999px;
  background: #fff; border: 1px solid rgba(23, 21, 22, .08);
  color: var(--ink); font-size: .76rem; font-weight: 600; letter-spacing: .02em;
}
.story-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.story-stats {
  position: relative; z-index: 3; margin: -38px 0 0 26px; width: calc(100% - 26px);
  display: flex; justify-content: space-between; gap: 16px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 18px 30px;
  box-shadow: 0 26px 54px -30px rgba(23, 21, 22, .5);
}
.story-stats .stat { min-width: 0; }
.story-stats .stat .n { font-size: clamp(1.5rem, 2.4vw, 2rem); }

/* ---------- feature / problem cards ---------- */
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: #ddd8d4; }
.card .ico {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: var(--orange-050); color: var(--orange); margin-bottom: 18px;
}
.card .ico svg { width: 22px; height: 22px; }
.card .ico--logo { width: auto; min-width: 52px; padding: 0 12px; background: #fff; border: 1px solid var(--line); }
.card .ico--logo img { max-height: 28px; max-width: 104px; width: auto; object-fit: contain; }
.solutions-brand { height: 30px; width: auto; margin-top: 16px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .9rem; margin: 0; }
.card--ink { background: var(--ink); color: #cfcac8; border-color: transparent; }
.card--ink h3 { color: #fff; }
.card--ink p { color: #b7b2b0; }
.card--ink .ico { background: rgba(242,88,36,.18); color: #ff8a5c; }
.card .tag { display: inline-block; margin-top: 12px; font-size: .8rem; font-weight: 600; color: var(--orange); }

/* number chip for problem list */
.chip-n { font-family: var(--display); font-weight: 800; color: var(--orange); font-size: .95rem; letter-spacing: .05em; }

/* platform mock-up: transparent PNG/WebP floating on the light section */
.platform-media { position: relative; }
.platform-media img { width: 100%; height: auto; filter: drop-shadow(0 34px 46px rgba(23, 21, 22, .34)); }
.platform-media::before {
  content: ""; position: absolute; inset: 6% -4% -10% -4%; z-index: -1;
  background: radial-gradient(closest-side, rgba(242, 88, 36, .10), rgba(242, 88, 36, 0));
}

/* ---------- showcase (platform) ---------- */
.showcase { background: var(--ink); color: #cfcac8; border-radius: 24px; padding: clamp(28px, 4vw, 56px); }
.showcase h2 { color: #fff; }
.showcase .lead { color: #b7b2b0; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding: 0; list-style: none; }
.pill-list li { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font-size: .88rem; color: var(--ink-700); }

/* ---------- industries ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ind {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ind:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: #ddd8d4; }
.ind .ind-media { position: relative; height: 200px; background: var(--mist); border-bottom: 1px solid var(--line); }
.ind .ind-media img { width: 100%; height: 100%; object-fit: contain; padding: 26px; }
.ind .ind-body { padding: 22px 24px 26px; }
.ind h3 { color: var(--ink); margin-bottom: 4px; }
.ind p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- process ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { position: relative; padding-top: 20px; border-top: 2px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--display); font-weight: 800; color: var(--orange); font-size: 1.1rem; }
.step h3 { margin: 10px 0 8px; }
.step p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- impact (background image + frosted glass panel) ---------- */
.impact { position: relative; overflow: hidden; background: #fff; color: var(--ink); }
.impact .impact-bg { position: absolute; inset: 0; z-index: 0; }
.impact .impact-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.impact::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,.2));
}
.impact .container { position: relative; z-index: 2; }
.impact-panel {
  max-width: 820px; margin: 0 auto;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 52px);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 30px 70px -34px rgba(23,21,22,.4);
}
.impact h2 { color: var(--ink); }
.impact .lead { color: var(--ink-700); }
.impact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 36px; margin-top: 32px; }
.impact .n { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 3.2vw, 2.8rem); line-height: 1; color: var(--orange); }
.impact .t { color: var(--muted); font-size: .92rem; margin-top: 8px; }

/* ---------- testimonial ---------- */
.quote { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(30px, 4vw, 60px); align-items: center; }
.quote blockquote { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.35; margin: 0 0 22px; color: var(--ink); letter-spacing: -.01em; }
.quote cite { font-style: normal; font-size: .95rem; color: var(--muted); }
.quote .who { display: flex; align-items: center; gap: 14px; }
.quote .who .avatar { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--mist); flex: none; }
.quote .who .avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- problem (image + cards) ---------- */
.problem-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 4vw, 56px); align-items: center; }
.problem-media,
.solutions-media,
.process-media,
.cta-panel-media {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--mist); box-shadow: var(--shadow-sm);
}
.problem-media { aspect-ratio: 4 / 3; }
.problem-media img,
.solutions-media img,
.process-media img,
.cta-panel-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- solutions intro ---------- */
.solutions-media { aspect-ratio: 16 / 10; }

/* ---------- why DSL ---------- */
.why-media { position: relative; }
.why-frame {
  position: relative; z-index: 1; margin: 0;
  border-radius: var(--radius); overflow: hidden; background: var(--mist);
  aspect-ratio: 16 / 10; box-shadow: var(--shadow-sm);
}
.why-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.why-badge {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center;
  padding: 10px 14px; border-radius: 12px;
  background: #fff; box-shadow: var(--shadow-sm);
}
.why-badge img { height: 40px; width: auto; display: block; }
.why-cards { margin-top: 52px; }

/* ---------- process (framed strip + steps) ---------- */
.process-media { aspect-ratio: 21 / 9; margin-bottom: 48px; }

/* ---------- team ---------- */
.team-media {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--mist); aspect-ratio: 2 / 1; box-shadow: var(--shadow-sm);
}
.team-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-caption {
  position: absolute; left: 18px; bottom: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.95); color: var(--ink);
  font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  box-shadow: var(--shadow-sm);
}
.team-caption::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

/* ---------- CTA panel ---------- */
.cta-panel {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 56px);
  align-items: center; background: var(--mist); border: 1px solid var(--line);
  border-radius: 24px; padding: clamp(30px, 4vw, 56px);
}
.cta-panel-body h2 { margin-bottom: 10px; }
.cta-panel-body p { color: var(--muted); margin: 0; }
.cta-panel-media { aspect-ratio: 16 / 10; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1fr; gap: clamp(32px, 4vw, 64px); align-items: start; }
.contact-intro h2 { margin-bottom: 12px; }
.contact-details { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 22px; }
.contact-details li { display: flex; gap: 14px; }
.contact-details .ci {
  width: 44px; height: 44px; flex: none; border-radius: 12px;
  background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--orange);
}
.contact-details .ci svg { width: 22px; height: 22px; }
.contact-details strong { display: block; font-family: var(--display); font-size: 1rem; color: var(--ink); margin-bottom: 2px; }
.contact-details div { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.contact-details a:hover { color: var(--orange); }

.contact-form-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 38px); box-shadow: var(--shadow-sm);
}
.contact-form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink-700); }
.field label span { color: var(--orange); }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 14px; width: 100%; transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-050);
}
.field-error { color: #c2410c; font-size: .82rem; }
.hp { position: absolute; left: -9999px; }
.form-note { color: var(--muted); font-size: .82rem; margin: 4px 0 0; }
.form-success {
  background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46;
  border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; font-size: .95rem;
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink-900); color: #b7b2b0; padding: 72px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: var(--body); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 18px; }
.site-footer a { color: #b7b2b0; }
.site-footer a:hover { color: var(--orange); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .94rem; }
.footer-brand img { height: 42px; filter: brightness(0) invert(1); margin-bottom: 18px; }
.footer-brand p { font-size: .92rem; max-width: 34ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 52px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #8f8a88; }
.contact-line { display: flex; gap: 10px; margin-bottom: 12px; font-size: .94rem; }
.contact-line svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--orange); }

/* ---------- image slots ---------- */
.img-slot {
  position: relative; width: 100%; border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, #efece9 0 12px, #f6f4f1 12px 24px);
  border: 1.5px dashed #cfc9c4; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 22px; gap: 6px; overflow: hidden;
}
.img-slot .badge {
  font-size: .64rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: #fff; background: var(--orange); padding: 4px 10px; border-radius: 999px;
}
.img-slot .slot-label { font-family: var(--display); font-weight: 700; color: var(--ink-700); font-size: 1rem; }
.img-slot .slot-file { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; color: #9a938e; }
.img-slot .slot-note { font-size: .8rem; max-width: 42ch; }
.img-slot--onDark { background: repeating-linear-gradient(45deg, #2b2829 0 12px, #322f30 12px 24px); border-color: #4a4546; color: #a9a3a1; }
.img-slot--onDark .slot-label { color: #f0eceb; }
.img-slot--onDark .slot-file { color: #8b8583; }

.radius { border-radius: var(--radius); overflow: hidden; }
.frame { box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .split, .quote { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .story-grid { grid-template-columns: 1fr; }
  .story-copy { max-width: none; }
  .story-outline { display: none; }
  .story-accent { width: 44%; height: 58%; top: -18px; right: -16px; }
  .story-stats { margin: -30px 16px 0 16px; }
  .grid--4, .ind-grid, .steps, .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .problem-grid, .cta-panel { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav, .header-cta .btn--primary { display: none; }
  .nav-toggle {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
    background: rgba(255,255,255,.12); border: 0; color: #fff; cursor: pointer;
  }
  .site-header.is-scrolled .nav-toggle { background: var(--mist); color: var(--ink); }
  .grid--3, .grid--2, .grid--4, .ind-grid, .steps, .impact-grid, .stat-row { grid-template-columns: 1fr; }
  .process-media { aspect-ratio: 16 / 10; margin-bottom: 36px; }
  .team-media { aspect-ratio: 16 / 10; }
  .cta-panel { padding: 26px; }
  .field-row { grid-template-columns: 1fr; }
  .why-cards { margin-top: 40px; }
  .why-badge { padding: 8px 10px; }
  .why-badge img { height: 32px; }
  .logo-row { gap: 18px 32px; }
  .logo-row-item img { height: 30px; }
  .hero-partner { padding: 6px 12px; }
  .hero-partner img { height: 28px; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .logo-wall-item { height: 112px; padding: 16px; }
  .logo-wall-item img { max-height: 58px; }
  .client-dot { padding: 8px 10px; }
  .client-dot.is-active .client-dot-text { max-width: 210px; font-size: .86rem; }
  .client-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .client-tile { padding: 10px; border-radius: 12px; }
  .client-tile--name span { font-size: .72rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .mobile-open .nav {
    display: flex; position: absolute; top: 70px; left: 14px; right: 14px;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 14px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  }
  .mobile-open .nav a { color: var(--ink); }
}
