/* Dexilion — site-level styles.
   Design tokens live in ds/; this file holds only what the pages add on top:
   the placeholder treatment, image slots, and the responsive rules. */

body { margin: 0; background: var(--white); }

/* The sticky header is a 72px row plus its hairline border. The home hero
   subtracts this from the viewport so it fills the first screen exactly. */
:root { --header-h: 73px; }

/* The hero field fades in once the first noise tile is composited. */
@keyframes dxFadeIn { to { opacity: 1 } }
@media (prefers-reduced-motion: reduce) {
  [style*="dxFadeIn"] { animation: none !important; opacity: 1 !important; }
}

/* -- Unwritten copy --------------------------------------------------------
   Placeholder text is mono, muted and dashed so an unfinished claim can never
   be mistaken for a finished one. Delete nothing: replace the string in
   content.js and the treatment disappears with it. */

.dx-todo {
  font-family: var(--font-mono);
  font-size: .88em;
  color: var(--neutral-500);
  border-bottom: 1px dashed var(--neutral-300);
  letter-spacing: 0;
  text-wrap: pretty;
}
.dx-dark .dx-todo,
section[style*="ink-900"] .dx-todo,
section[style*="gradient-brand"] .dx-todo,
footer .dx-todo {
  color: var(--powder-300);
  border-bottom-color: rgba(255, 255, 255, .3);
}

/* -- Image placeholders ----------------------------------------------------
   The design system ships labelled slots rather than decorative stand-ins. */

.dx-slot {
  position: relative;
  display: flex;
  align-items: flex-end;
  border-radius: var(--radius-surface);
  border: 1px solid var(--border-subtle);
  background:
    repeating-linear-gradient(135deg, rgba(14, 19, 48, .035) 0 1px, transparent 1px 9px),
    var(--paper-100);
  overflow: hidden;
}
.dx-slot > img {
  position: absolute;
  inset: 0;
}
.dx-slot-dark {
  border-color: rgba(255, 255, 255, .14);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 9px),
    rgba(255, 255, 255, .03);
}
.dx-slot-label {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .02em;
  color: var(--text-muted);
  padding: 12px 14px;
}
.dx-slot-dark .dx-slot-label { color: var(--powder-300); }

/* -- Hero art — the 4:5 portrait window beside the headline ---------------- */

/* The hero is a fixed screen-height box, so the art tracks the row rather than
   forcing a height of its own — otherwise it overflows on short viewports. */
.dx-hero-art { position: relative; align-self: stretch; min-height: 0; }
.dx-hero-art > .dx-slot { height: 100%; }

/* -- Ruled rows ------------------------------------------------------------
   The editorial list stripped to its bones: a mono number, a serif line, a
   hairline under each row and the gold wash on hover. Used where the rows are
   single statements and carry no body copy of their own. */

.dx-rule-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 22px 20px;
  border-bottom: 1px solid var(--paper-200);
  transition: background var(--dur-base) var(--ease-standard);
}
.dx-rule-row:hover { background: linear-gradient(90deg, rgba(253, 225, 45, .10), transparent 60%); }
.dx-rule-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--neutral-400);
  transition: color var(--dur-base) var(--ease-standard);
}
.dx-rule-row:hover .dx-rule-num { color: var(--gold-600); }

/* -- Body column -----------------------------------------------------------
   Prose that stands alone in a section but must line up with the body column
   of the ruled sections around it: the 340px heading column plus its gutter. */

.dx-indent { margin-left: 396px; }

/* -- Responsive ------------------------------------------------------------ */

@media (max-width: 1040px) {
  .dx-nav-cta { display: none; }
}

@media (max-width: 860px) {
  .dx-shell { padding: 0 20px !important; }
  .dx-nav { display: none !important; }
  .dx-nav-cta { display: none !important; }
  .dx-nav-toggle { display: inline-flex !important; }
  .dx-nav-mobile { display: flex !important; }
  /* On phones the commitments stack, so the hero is content-height again. */
  .dx-hero { padding-top: 72px !important; height: auto !important; }
  .dx-hero-grid { grid-template-columns: 1fr !important; padding-bottom: 52px !important; gap: 32px !important; }
  .dx-hero-art { display: none !important; }
  .dx-page-hero { padding: 60px 0 52px !important; }
  h1 { font-size: clamp(34px, 9.5vw, 46px) !important; line-height: 1.08 !important; }
  h2 { font-size: clamp(27px, 7vw, 36px) !important; line-height: 1.15 !important; }
  .dx-hero-ctas { flex-wrap: wrap; }
  .dx-services-grid,
  .dx-case-grid,
  .dx-approach-grid,
  .dx-contact-grid,
  .dx-prose-grid,
  .dx-split { grid-template-columns: 1fr !important; gap: 36px !important; }
  .dx-services-side { position: static !important; }
  .dx-indent { margin-left: 0 !important; }
  .dx-service-row { grid-template-columns: 32px 1fr auto !important; gap: 14px !important; padding: 22px 6px !important; }
  .dx-cards-3, .dx-cards-4 { grid-template-columns: 1fr 1fr !important; }
  .dx-footer-grid { grid-template-columns: 1fr 1fr !important; gap: 32px !important; }
  /* The case-study particulars drop their dividers and stack two-up. */
  .dx-case-facts { grid-template-columns: 1fr 1fr !important; gap: 24px 32px !important; }
  .dx-case-fact { padding-left: 0 !important; border-left: none !important; }
  .dx-rule-row { grid-template-columns: 32px 1fr !important; gap: 14px !important; padding: 18px 6px !important; }
}

@media (max-width: 560px) {
  .dx-commit-grid { grid-template-columns: 1fr !important; }
  .dx-commit-item { border-left: none !important; border-top: 1px solid rgba(255, 255, 255, .12); padding: 22px 0 !important; }
  .dx-commit-item:first-child { border-top: none; }
  .dx-cards-3, .dx-cards-4 { grid-template-columns: 1fr !important; }
  .dx-facts { grid-template-columns: 1fr 1fr !important; }
}
