/* XDC Tech — v3
   Rule 1: Body text is #000 on #FFF. No exceptions.
   Rule 2: Mono labels are #000 at full opacity, small but readable.
   Rule 3: No decorative hero graphics. Type does the work.
   Rule 4: Big scale. If a bank exec can't read it at arm's length, it's too small. */

:root {
  --black: #000000;
  --white: #FFFFFF;
  --line: #e6e6e6;
  --line-strong: #1a1a1a;
  --wash: #f5f4f0;
  --accent: #1E477F;

  --f-sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --gutter: clamp(28px, 5vw, 72px);
  --max-w: 1520px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--f-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--black);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--black); color: var(--white); }

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ——— Type ——— */

h1,h2,h3,h4 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
  color: var(--black);
  text-wrap: balance;
}

.h-display {
  font-size: clamp(56px, 8.5vw, 120px);
  line-height: 0.96;
  letter-spacing: -0.055em;
  font-weight: 500;
}
.h-xl {
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.h-lg {
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.h-md {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.022em;
  font-weight: 500;
}

/* Lede — large, true black, serves as the real intro sentence */
.lede {
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.3;
  color: var(--black);
  letter-spacing: -0.022em;
  max-width: 22ch;
  text-wrap: pretty;
  font-weight: 400;
}
.lede-wide { max-width: 32ch; }

.p-body {
  font-size: 20px;
  line-height: 1.55;
  color: var(--black);
  max-width: 58ch;
  text-wrap: pretty;
}

.label {
  font-family: var(--f-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
}

/* ——— Top nav ——— */

.topnav {
  position: relative;
  z-index: 40;
  background: transparent;
}
.topnav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 96px;
  padding-top: 12px;
}
.brand-mark img { height: 44px; width: auto; display: block; }
.topnav-links { display: flex; gap: 36px; align-items: center; }
.topnav-link {
  font-size: 17px;
  font-weight: 500;
  color: var(--black);
  letter-spacing: -0.01em;
}
.topnav-link:hover { color: var(--accent); }

/* ——— Mobile nav (≤820px) ——— */
.topnav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--black);
  border-radius: 999px;
  align-items: center; justify-content: center;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.topnav-toggle-bars {
  position: relative;
  width: 16px; height: 12px;
  display: inline-block;
}
.topnav-toggle-bars span {
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.28s var(--ease), top 0.28s var(--ease), opacity 0.18s var(--ease);
}
.topnav-toggle-bars span:nth-child(1) { top: 2px; }
.topnav-toggle-bars span:nth-child(2) { top: 8px; }
.topnav-toggle-bars.is-x span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.topnav-toggle-bars.is-x span:nth-child(2) { top: 5px; transform: rotate(-45deg); }

.mobile-drawer {
  display: none;
  position: fixed;
  left: 0; right: 0;
  top: 96px;
  bottom: 0;
  background: var(--white);
  z-index: 39;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}
.mobile-drawer.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-drawer-links {
  display: flex; flex-direction: column;
  padding: clamp(20px, 4vw, 32px) var(--gutter) 48px;
  gap: 4px;
}
.mobile-drawer-link {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.022em;
  color: var(--black);
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.mobile-drawer-link:active { color: var(--accent); }
.mobile-drawer-cta {
  margin-top: 28px;
  align-self: flex-start;
}

@media (max-width: 820px) {
  .topnav-links { display: none; }
  .topnav-toggle { display: inline-flex; }
  .mobile-drawer { display: block; }
  .topnav.menu-open { background: var(--white); }
}

/* ——— Buttons ——— */

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 20px 30px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: all .2s var(--ease);
  line-height: 1;
  white-space: nowrap;
}
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { background: transparent; color: var(--black); border-color: var(--black); }
.btn-ghost:hover { background: var(--black); color: var(--white); }

.btn-inline {
  padding: 0;
  background: transparent;
  border: 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--black);
  display: inline-flex; align-items: center; gap: 12px;
  border-bottom: 2px solid var(--black);
  border-radius: 0;
  padding-bottom: 6px;
  line-height: 1.2;
}
.btn-inline:hover { color: var(--accent); border-bottom-color: var(--accent); }

.btn-sm { padding: 12px 22px; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }

/* ——— Sections ——— */

section { padding: clamp(80px, 9vw, 128px) 0; position: relative; }

/* ——— HERO — pure typography, no decoration ——— */

.hero {
  padding-top: clamp(140px, 12vw, 200px);
  padding-bottom: clamp(96px, 10vw, 148px);
  margin-top: -108px;
  position: relative;
  overflow: hidden;
}
/* Subtle paper-grain texture — adds visual "tooth" to the otherwise flat
   white background. SVG fractal noise tiled, very low opacity. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  background-size: 220px 220px;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-datum {
  position: absolute;
  top: clamp(160px, 16vw, 220px);
  right: clamp(40px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 180px;
  z-index: 1;
  pointer-events: none;
}
.hero-datum-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--black);
  text-transform: uppercase;
}
.hero-datum-key {
  font-weight: 600;
  opacity: 0.5;
  min-width: 28px;
}
.hero-datum-val {
  font-weight: 600;
}
.hero-datum-rule {
  height: 1px;
  width: 100%;
  background: var(--line);
  margin: 4px 0;
}
@media (max-width: 900px) {
  .hero-datum { display: none; }
}
.hero .label {
  display: inline-block;
  margin-bottom: 40px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--black);
}
.hero-headline {
  max-width: none;
}
.hero-line { display: block; }
.hero-headline .accent-word {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.04em;
}
.hero-sub {
  margin-top: 40px;
  max-width: 90ch;
  font-size: clamp(20px, 1.75vw, 26px);
  line-height: 1.45;
  color: var(--black);
  letter-spacing: -0.016em;
  font-weight: 400;
  text-wrap: balance;
}
.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 64px;
  flex-wrap: wrap;
}

.hero-continue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 24px;
  margin: clamp(56px, 6vw, 96px) auto 0;
  color: var(--black);
  opacity: 0.32;
  transition: opacity 0.2s var(--ease);
  text-decoration: none;
}
.hero-continue:hover { opacity: 0.7; }
.hero-continue-stem {
  display: block;
  width: 1px;
  height: 36px;
  background: currentColor;
}
.hero-continue-chevron {
  display: block;
  width: 14px;
  height: auto;
}
@media (max-width: 820px) {
  .hero-continue { display: none; }
}

.hero-mark {
  margin-top: clamp(88px, 10vw, 128px);
  padding-top: 40px;
  border-top: 1px solid var(--black);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
@media (max-width: 820px) { .hero-mark { grid-template-columns: repeat(2, 1fr); } }
.hero-mark-item .k {
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 16px;
  font-weight: 600;
}
.hero-mark-item .v {
  font-size: 22px;
  color: var(--black);
  letter-spacing: -0.018em;
  font-weight: 500;
  line-height: 1.25;
}

/* ——— Partner marquee ——— */

.marquee {
  padding: clamp(56px, 6.5vw, 96px) 0;
  background: var(--black);
  color: var(--white);
}
.marquee .marquee-head {
  color: var(--white);
}
.marquee-cell .partner-logo {
  width: auto;
  max-width: none;
  object-fit: contain;
  /* Logos are pre-baked white-on-transparent PNGs (see PARTNERS in
     xdc-site.jsx). The previous `filter: brightness(0) invert(1);` rule
     forced the browser to re-rasterize each of the 28 animating images
     every frame, which on real mobile devices caused the marquee layer
     to be evicted and re-rasterized intermittently — visible as "blank
     then restart" flashes. Pre-baking the white pixels lets the
     compositor reuse cached image tiles across frames. */
  opacity: 0.92;
  transition: opacity .2s var(--ease);
}
.marquee-cell:hover .partner-logo { opacity: 1; }
/* Stacked marks (bird/swoosh above wordmark) need a small upward shift so
   the wordmark baseline aligns with the text-only logos around them. */
.partner-logo.logo-archax { transform: translateY(-12px); }
.partner-logo.logo-sbi { transform: translateY(-8px); }
.marquee-head {
  font-family: var(--f-mono);
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 48px;
  font-weight: 600;
}
.marquee-row {
  display: none;
}
.marquee-cell {
  display: flex; align-items: center; justify-content: center;
  min-height: 72px;
  flex: 0 0 auto;
}

/* ——— Auto-scrolling marquee (all viewports) ——— */
.marquee-scroll {
  display: block;
  overflow: hidden;
  position: relative;
  /* Lock height so iOS Safari's URL-bar collapse/expand can't cascade a
     relayout into the animating track. Do NOT add `contain: paint` here —
     it forces a stacking/paint context that compounds the GPU layer-size
     issue on real mobile devices (see .marquee-track note below). */
  height: 72px;
}
/* Edge fade overlays — replace mask-image to avoid iOS Safari compositing-layer
   bugs where the masked content disappears after off-screen scroll. */
.marquee-scroll::before,
.marquee-scroll::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8%;
  z-index: 2;
  pointer-events: none;
}
.marquee-scroll::before {
  left: 0;
  background: linear-gradient(to right, var(--black), rgba(0,0,0,0));
}
.marquee-scroll::after {
  right: 0;
  background: linear-gradient(to left, var(--black), rgba(0,0,0,0));
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 104px;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
  /* IMPORTANT: do NOT add `transform: translate3d(0,0,0)`,
     `backface-visibility: hidden`, `will-change: transform`, or
     `contain: paint` here. Any of those force the track onto a single
     GPU layer. With ~14 logos × 2 sets the track is ~8000 CSS pixels
     wide, which on a 3x-DPR phone is ~24000 device pixels — well past
     the 4096/8192 max-texture-size limit that real mobile GPUs enforce
     (Chrome and Safari both). When that limit is exceeded for an
     animating layer the browser periodically drops and re-rasterizes
     it, producing visible "blank then restart" flashes. Without those
     hints the browser tile-rasterizes the wide track naturally and the
     animation runs cleanly. (The original layer-pinning was guarding
     against an iOS mask-image bug; we no longer use mask-image — the
     edge fades are overlay pseudo-elements — so the pinning is
     obsolete.) */
}
.marquee-track .marquee-cell { padding: 0 4px; }
@keyframes marquee-scroll {
  /* Plain 2D translateX — translate3d would re-promote the track to its
     own oversized GPU layer, which is the failure mode documented above. */
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}
.marquee-cell .logo-txt {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--black);
}

/* ——— Solutions ——— */

.solutions { padding: clamp(80px, 9vw, 128px) 0; }

.section-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
  margin-bottom: clamp(48px, 5vw, 72px);
}
.section-head .label { padding-top: 16px; }
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; gap: 20px; }
}

.sol-tabs-wrap {
  position: relative;
  z-index: 20;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(56px, 6vw, 88px);
}
.sol-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  /* iOS Safari: promote the scroll container to its own GPU layer so text
     doesn't jitter vertically when momentum-scrolling lands on subpixel
     positions. Without this the row visibly wobbles on horizontal flick. */
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.sol-tabs::-webkit-scrollbar { display: none; }

.sol-tabs-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 56px;
  pointer-events: none;
  background: linear-gradient(to right, rgba(255,255,255,0), var(--white));
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.sol-tabs-wrap[data-scroll="start"]::after,
.sol-tabs-wrap[data-scroll="middle"]::after { opacity: 1; }

.sol-tab {
  appearance: none;
  background: none;
  border: 0;
  padding: 32px 0;
  margin-right: clamp(40px, 4.5vw, 80px);
  display: flex;
  align-items: baseline;
  color: var(--black);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.022em;
  white-space: nowrap;
  position: relative;
  transition: color .2s var(--ease);
  cursor: pointer;
}
.sol-tab:not(.active) { color: rgba(0,0,0,0.55); }
.sol-tab:hover { color: var(--black); }
.sol-tab.active { color: var(--black); }
.sol-tab.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--accent);
}
/* === Solutions v2 — Ripple-grade === */
.sol-panel-v2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(48px, 5vw, 72px);
}
@media (min-width: 1080px) {
  .sol-panel-v2 {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-areas:
      "intro media"
      "cards cards"
      "uses  uses";
    column-gap: clamp(64px, 7vw, 112px);
    row-gap: clamp(72px, 8vw, 120px);
    align-items: start;
  }
  .sol-intro { grid-area: intro; }
  .sol-media { grid-area: media; }
  .sol-cards { grid-area: cards; }
  .sol-uses  { grid-area: uses; }
}

.sol-headline {
  font-size: clamp(44px, 5.2vw, 76px);
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--black);
  font-weight: 500;
  text-wrap: balance;
}
.sol-purpose {
  margin-top: 32px;
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.45;
  color: var(--black);
  font-weight: 400;
  letter-spacing: -0.012em;
  max-width: 56ch;
}
.sol-intro-cta { margin-top: 40px; display: inline-flex; }

.sol-media {
  position: relative;
}

/* ============================================
   Universal media-card treatment
   Used by Solutions tabs and About section.
   Posture: editorial photograph in a paper frame,
   subtle split-tone (cool slate highlights / warm
   paper shadows), corner mark, light grain.
   ============================================ */
.media-card {
  position: relative;
  width: 100%;
  background: var(--wash);
  padding: 14px;
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 24px 48px -28px rgba(0,0,0,0.14);
}
.media-card-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  /* No background here: the loaded <img> covers the frame, and during a
     tab swap we want the parent .media-card's wash color showing through
     rather than a hard black flash. The placeholder/is-empty state below
     supplies its own dark background when no image is provided. */
  border-radius: 2px;
  isolation: isolate;
}
.media-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* gentle desaturation, retain skin/architecture */
  filter: saturate(0.55) contrast(1.06) brightness(0.96);
}
/* Cool slate highlights */
.media-card-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(58,74,106,0.18) 0%, rgba(58,74,106,0.06) 45%, rgba(20,17,13,0.04) 100%);
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 2;
}
/* Warm paper shadows */
.media-card-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(219,207,180,0.04) 0%, rgba(219,207,180,0.10) 60%, rgba(219,207,180,0.18) 100%);
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 3;
}
.media-card-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0.16;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.08  0 0 0 0 0.07  0 0 0 0 0.05  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}
.media-card-mark {
  position: absolute;
  top: 28px;
  left: 30px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244,236,218,0.92);
  font-weight: 600;
}
.media-card-mark::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.media-card-credit {
  position: absolute;
  right: 30px;
  bottom: 70px;
  z-index: 5;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244,236,218,0.62);
  font-weight: 600;
  padding: 6px 10px;
  background: rgba(20,17,13,0.32);
  backdrop-filter: blur(6px);
}
.media-card-caption {
  position: absolute;
  left: 30px;
  bottom: 22px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.62);
  font-weight: 500;
}
/* Empty/placeholder state — when no <img> is supplied */
.media-card.is-empty .media-card-frame {
  background: #1c2330;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.media-card.is-empty .media-card-frame::before,
.media-card.is-empty .media-card-frame::after {
  opacity: 0.6;
}
.media-card-placeholder {
  position: relative;
  z-index: 5;
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: rgba(244,236,218,0.78);
  text-align: left;
  max-width: 36ch;
}
.media-card-placeholder strong {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244,236,218,0.52);
  font-weight: 600;
  margin-bottom: 12px;
}

/* Solutions adapter — keeps existing grid plumbing */
.sol-media-slot { all: unset; display: block; }

.sol-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--black);
}
@media (min-width: 760px) {
  .sol-cards { grid-template-columns: 1fr 1fr; }
}
.sol-reason {
  padding: 36px 0 40px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 759px) {
  .sol-cards .sol-reason:last-child { border-bottom: 0; padding-bottom: 24px; }
}
@media (min-width: 760px) {
  .sol-reason {
    padding: 40px 40px 48px 0;
  }
  .sol-cards .sol-reason:nth-last-child(-n+2) { border-bottom: 0; }
  .sol-reason:nth-child(even) {
    padding-left: 40px;
    padding-right: 0;
    border-left: 1px solid var(--line);
  }
}
.sol-reason-marker {
  margin-bottom: 20px;
}
.sol-reason-num {
  font-family: var(--f-mono);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 600;
}
.sol-reason-title {
  font-size: clamp(24px, 2.1vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.024em;
  color: var(--black);
  font-weight: 500;
  margin: 0 0 16px;
  text-wrap: balance;
  max-width: 22ch;
}
.sol-reason-body {
  font-size: 17px;
  line-height: 1.5;
  color: var(--black);
  margin: 0;
  max-width: 44ch;
}

.sol-uses {
  padding-top: clamp(48px, 5vw, 72px);
  border-top: 1px solid var(--line);
}
.sol-uses-title {
  font-size: clamp(28px, 2.4vw, 36px);
  letter-spacing: -0.028em;
  color: var(--black);
  font-weight: 500;
  margin: 0 0 40px;
}
.sol-uses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 760px) {
  .sol-uses-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1080px) {
  .sol-uses-grid { grid-template-columns: repeat(4, 1fr); }
}
.sol-use {
  padding: 32px 28px 32px 0;
  border-top: 1px solid var(--black);
}
.sol-use + .sol-use {
  padding-left: 28px;
}
@media (min-width: 760px) {
  .sol-uses-grid .sol-use:nth-child(1) { padding-left: 0; }
  .sol-uses-grid .sol-use:nth-child(2) { border-left: 1px solid var(--line); padding-left: 28px; }
}
@media (min-width: 1080px) {
  .sol-uses-grid .sol-use { border-left: 1px solid var(--line); padding-left: 28px; }
  .sol-uses-grid .sol-use:nth-child(1) { border-left: 0; padding-left: 0; }
}
.sol-use-title {
  font-size: 22px;
  letter-spacing: -0.018em;
  color: var(--black);
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 14px;
}
.sol-use-desc {
  font-size: 17px;
  line-height: 1.5;
  color: var(--black);
}
/* === end Solutions v2 === */

.sol-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(56px, 7vw, 104px);
}
@media (min-width: 980px) {
  .sol-panel {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(64px, 8vw, 128px);
    align-items: start;
  }
}

.sol-num {
  font-family: var(--f-mono);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.sol-num::before {
  content: "";
  width: 32px; height: 2px;
  background: var(--accent);
}

.sol-headline {
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.04;
  font-weight: 500;
  color: var(--black);
  text-wrap: balance;
}

.sol-purpose {
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.35;
  color: var(--black);
  margin-top: 36px;
  max-width: 36ch;
  letter-spacing: -0.018em;
  font-weight: 400;
}

.sol-side { display: flex; flex-direction: column; gap: 56px; }

.sol-block-label {
  font-family: var(--f-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--black);
}

.reason-list { list-style: none; padding: 0; margin: 0; }
.reason {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.reason:last-child { border-bottom: 0; }
.reason .n {
  font-family: var(--f-mono);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--black);
  padding-top: 6px;
  font-weight: 600;
}
.reason .t-main {
  font-size: 22px;
  line-height: 1.3;
  color: var(--black);
  letter-spacing: -0.018em;
  font-weight: 500;
}
.reason .t-desc {
  margin-top: 10px;
  font-size: 18px;
  line-height: 1.45;
  color: var(--black);
  letter-spacing: -0.01em;
  font-weight: 400;
  max-width: 48ch;
}

.use-list {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 0;
}
.use-list li {
  padding: 28px 28px 28px 0;
  border-top: 1px solid var(--line);
  color: var(--black);
  letter-spacing: -0.01em;
}
.use-list li:nth-child(even) { padding-left: 28px; padding-right: 0; border-left: 1px solid var(--line); }
.use-list li:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.use-list li b {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.018em;
  font-size: 19px;
  color: var(--black);
}
.use-list li .u-desc {
  font-size: 16px;
  line-height: 1.45;
  color: var(--black);
  font-weight: 400;
}
@media (max-width: 640px) {
  .use-list { grid-template-columns: 1fr; }
  .use-list li:nth-child(even) { padding-left: 0; border-left: 0; }
}

.sol-cta { margin-top: 48px; }

/* ——— Why XDC — reversed out ——— */

.why { background: var(--black); color: var(--white); }
.why h2, .why .label, .why .lede { color: var(--white); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: clamp(64px, 8vw, 112px);
  border-top: 1px solid rgba(255,255,255,0.2);
}
@media (min-width: 820px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .why-grid { grid-template-columns: repeat(5, 1fr); } }

.why-item {
  padding: 40px clamp(28px, 2.8vw, 40px) 48px 0;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  border-right: 1px solid rgba(255,255,255,0.2);
}
.why-item:last-child { border-right: 0; }
@media (min-width: 820px) and (max-width: 1099px) {
  .why-item:nth-child(2n) { border-right: 0; }
}
@media (min-width: 1100px) {
  .why-item { border-bottom: 0; padding-right: 0; }
  .why-item { padding: 40px clamp(20px, 2vw, 32px) 48px; }
  .why-item:first-child { padding-left: 0; }
  .why-item:last-child { padding-right: 0; }
}

.why-item .n {
  font-family: var(--f-mono);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}
.why-item .t {
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.026em;
  line-height: 1.15;
  font-weight: 500;
  color: var(--white);
  text-wrap: pretty;
  margin: 0 0 16px;
  max-width: 22ch;
}
.why-item .d {
  font-size: 17px;
  line-height: 1.5;
  color: var(--white);
  letter-spacing: -0.008em;
  font-weight: 400;
  margin: 0;
  max-width: 38ch;
}

/* ——— About ——— */

.about { padding: clamp(80px, 9vw, 128px) 0; }
.about-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
}
@media (max-width: 820px) { .about-body { grid-template-columns: 1fr; gap: 20px; } }
.about-body .label { padding-top: 16px; }
.about-body .statement {
  max-width: 56ch;
}
/* About: statement + photo side-by-side at desktop, stack on mobile */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(48px, 5vw, 72px);
  align-items: start;
}
@media (min-width: 1080px) {
  .about-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    column-gap: clamp(64px, 7vw, 112px);
  }
}
.about-statement-col {
  /* statement column */
}
.about-media {
  margin: 0;
  width: 100%;
  max-width: 520px;
  padding: 0;
}
/* About card: portrait 4:5 (matches Solutions cards), no corner mark, no caption strip */
.about-media .media-card {
  padding: 14px;
}
.about-media-figure {
  margin: 0;
  width: 100%;
}

/* ——— Contact ——— */

.contact { background: var(--wash); border-top: 1px solid var(--line); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 96px);
  margin-top: 48px;
}
@media (min-width: 980px) {
  .contact-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(64px, 8vw, 128px);
    margin-top: 96px;
  }
}

.contact-list { list-style: none; margin: 0; padding: 0; }
@media (min-width: 980px) { .contact-list { margin-top: 48px; } }
.contact-list li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  font-size: 19px;
  color: var(--black);
  border-top: 1px solid #d3d0c8;
  padding: 22px 0;
  list-style: none;
  letter-spacing: -0.012em;
  font-weight: 400;
}
.contact-list li:last-child { border-bottom: 1px solid #d3d0c8; }
.contact-list li .k {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  padding-top: 0;
  font-weight: 600;
}
@media (min-width: 720px) {
  .contact-list li {
    grid-template-columns: 160px 1fr;
    gap: 24px;
  }
  .contact-list li .k {
    font-size: 15px;
    letter-spacing: 0.06em;
    padding-top: 4px;
  }
}

.form {
  background: var(--white);
  border: 1px solid #d3d0c8;
  padding: clamp(36px, 4.5vw, 60px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.form .full { grid-column: 1 / -1; }
.form label {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  font-weight: 600;
}
.form input,
.form select,
.form textarea {
  appearance: none;
  font: inherit;
  font-family: var(--f-sans);
  font-size: 20px;
  letter-spacing: -0.015em;
  text-transform: none;
  color: var(--black);
  background: var(--white);
  border: 0;
  border-bottom: 2px solid var(--black);
  padding: 12px 0;
  border-radius: 0;
  outline: none;
  transition: border-color .15s var(--ease);
  font-weight: 400;
}
.form input:focus,
.form select:focus,
.form textarea:focus { border-bottom-color: var(--accent); }
.form textarea { min-height: 120px; resize: vertical; }
.form select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'><path d='M1 1l6 6 6-6' stroke='%23000' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 32px;
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.form-fine {
  font-size: 15px;
  color: var(--black);
  max-width: 52ch;
  line-height: 1.5;
  font-weight: 400;
}
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* ——— Footer ——— */

footer.foot { padding: 64px 0 48px; background: var(--white); border-top: 1px solid var(--line); }
.foot-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 32px; flex-wrap: wrap;
}
.foot-brand { display: flex; align-items: center; gap: 24px; }
.foot-brand img { height: 24px; width: auto; }
.foot-copy { font-size: 15px; color: var(--black); font-weight: 400; }
.foot-social { display: flex; gap: 32px; }
.foot-social a {
  font-size: 15px; color: var(--black); font-weight: 500;
}
.foot-social a:hover { color: var(--accent); }

/* Mobile: split into two rows — brand+social on top, copyright on its own
   row beneath a thin divider, all anchored to the page gutter. */
@media (max-width: 640px) {
  .foot-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand social"
      "copy  copy";
    align-items: center;
    gap: 20px 24px;
    row-gap: 20px;
  }
  .foot-brand { grid-area: brand; justify-self: start; }
  .foot-social { grid-area: social; justify-self: end; gap: 24px; }
  .foot-copy {
    grid-area: copy;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    width: 100%;
    text-align: left;
    color: #5a584f;
    font-size: 14px;
  }
}

/* ——— Reveal ——— */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Dark hero tweak */
body.hero-dark .hero { background: var(--black); color: var(--white); }
body.hero-dark .hero .hero-headline,
body.hero-dark .hero h1,
body.hero-dark .hero .hero-sub,
body.hero-dark .hero .hero-mark-item .v,
body.hero-dark .hero .hero-mark-item .k,
body.hero-dark .hero .label { color: var(--white); }
body.hero-dark .hero .label { border-color: var(--white); }
body.hero-dark .hero .hero-mark { border-top-color: var(--white); }
body.hero-dark .hero .btn-primary { background: var(--white); color: var(--black); }
body.hero-dark .hero .btn-primary:hover { background: var(--accent); color: var(--white); }
body.hero-dark .hero .btn-ghost { color: var(--white); border-color: var(--white); }
body.hero-dark .hero .btn-ghost:hover { background: var(--white); color: var(--black); }

.anchor { scroll-margin-top: 120px; }
