/* Duit website: the content sections (SPEC 7.2, 7.4, 7.7-7.12). Owner: sections.
   Needs site.css (tokens, .wrap .sec .sec-head .eyebrow .lede, buttons, .g glyphs). Every rule here is scoped
   to one section's own class prefix, and styled by token only (grounds nest).

   hero-*  hero copy, a fragment inside the shell's .hero: .hero-copy > .hero-eyebrow, h1 (.hero-l lines),
           .hero-side > .hero-sub + .hero-cta. Two columns from 1200px (headline left, sub and buttons right).
   say-*   #about: big statement lines (.say-line, trailing .say-soft clause). Optional scroll fade, CSS only.
   uc-*    #why: three use cases split by 1px rules; each ends in a text illustration (.uc-ill, glyph rows).
   tr-*    #trades: eight trades in a ruled grid (.tr-grid > .tr-cell), a darker cream band.
   ag-*    #any-agent (sky): the round table (.ag-table: rim + spokes svg, .ag-board, .ag-seat .ag-s1-5)
           and the four layers (.ag-stack > .ag-layer, .ag-what role line, .is-duit .is-top/.is-bottom joined,
           .ag-tag legend).
   da-*    #data: h2 in two set lines (.da-l), platform chips in four groups (.da-groups), then the two
           storage cards (.da-store).
   co-*    #consulting: copy + CTA left, "What we handle" glyph list right, a darker cream band.
   ct-*    #contact (sky): copy and next steps left, the form right.
   cf-*    the contact form (js/contact.js): .cf-field .cf-pair .cf-select .cf-err .cf-trap .cf-send
           .cf-status (.is-ok / .is-bad) .cf-note. */

/* ---------- Hero copy ---------- */
.hero-copy { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-eyebrow { margin-bottom: clamp(14px, 1.6vw, 20px); }
.hero-l { display: block; }
.hero-side { max-width: 40rem; margin-top: clamp(18px, 2.2vw, 26px); }
.hero-sub { max-width: 56ch; font-size: clamp(17px, .3vw + 15.5px, 19px); line-height: 1.6; color: var(--soft); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 2.6vw, 32px); }
@media (min-width: 1200px) {
  /* headline left, sub and buttons right: the right column spans the eyebrow's row too, so both columns
     start on the eyebrow line and end together */
  .hero-copy {
    grid-template-columns: max-content minmax(0, 1fr); grid-template-areas: "eyebrow side" "title side";
    column-gap: clamp(56px, 6vw, 112px);
  }
  .hero-eyebrow { grid-area: eyebrow; }
  .hero-copy h1 { grid-area: title; align-self: end; font-size: clamp(56px, 2vw + 34px, 64px); }
  .hero-side { grid-area: side; align-self: end; justify-self: end; max-width: 30rem; margin-top: 0; }
  .hero-sub { font-size: 17px; }
}
@media (max-width: 479px) {
  .hero-cta > * { flex: 1 1 auto; }
}

/* ---------- Say ---------- */
.say { padding-block: clamp(88px, 12vw, 176px); }
.say .wrap { display: grid; row-gap: clamp(40px, 6.5vw, 96px); }
.say-line {
  max-width: 21ch;
  font-family: var(--mono); font-size: clamp(26px, 3.6vw + 10px, 58px); font-weight: 700;
  line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; color: var(--text);
}
.say-soft { font-weight: 400; color: var(--soft); }
@media (min-width: 900px) {
  /* a slow stagger: every other line steps in, so the four read as a sequence, not a block */
  .say-line:nth-child(odd) { margin-left: clamp(0px, 9vw, 140px); }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .say-line { animation: say-in linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    .say-soft { animation: say-soft linear both; animation-timeline: view(); animation-range: entry 40% cover 36%; }
  }
}
@keyframes say-in { from { opacity: .12; transform: translateY(18px); } }
@keyframes say-soft { from { opacity: 0; } }

/* ---------- Use cases ---------- */
.uc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--faint); }
.uc-card { display: flex; flex-direction: column; min-width: 0; padding: clamp(24px, 2.6vw, 36px) clamp(20px, 2.4vw, 36px) 4px; }
.uc-card:first-child { padding-left: 0; }
.uc-card:last-child { padding-right: 0; }
.uc-card + .uc-card { border-left: 1px solid var(--faint); }
.uc-num { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--soft); }
.uc-card h3 { margin-top: 14px; font-size: clamp(18px, .5vw + 15px, 21px); }
.uc-card > p { margin-top: 12px; max-width: 46ch; font-size: 16px; line-height: 1.6; color: var(--soft); }
.uc-ill {
  margin-top: auto; padding: 0 16px 14px;
  background: var(--surface); border: 1px solid var(--faint); border-radius: 8px;
  font-family: var(--mono); font-size: 13px; line-height: 1.5;
}
.uc-card > p { margin-bottom: 28px; } /* the gap above the illustration; margin-top: auto then aligns all three */
.uc-ill-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 -16px 12px; padding: 9px 12px 9px 16px; border-bottom: 1px solid var(--faint);
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft);
}
.uc-tag { padding: 1px 6px; border: 1px solid var(--line-strong); border-radius: 4px; font-size: 10px; }
.uc-ask { margin-bottom: 10px; color: var(--text); }
.uc-row { display: grid; grid-template-columns: 1.1ch minmax(0, 1fr) auto; align-items: baseline; column-gap: 10px; padding: 3px 0; color: var(--text); }
.uc-row .g { line-height: 1.5; }
.uc-st { color: var(--soft); }
.uc-row.is-off > span:nth-child(2) { color: var(--soft); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.uc-move { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--text); }
.uc-arrow { position: relative; flex: 1 1 auto; min-width: 24px; height: 1px; border-top: 1px dashed var(--line-strong); }
.uc-arrow::after {
  content: ""; position: absolute; right: 0; top: -4px; width: 7px; height: 7px;
  border-top: 1px solid var(--soft); border-right: 1px solid var(--soft); transform: rotate(45deg);
}
.uc-nb { white-space: nowrap; } /* keeps "front-office" whole (the font has no U+2011 glyph) */
.uc-pairs { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: 24px; }
/* three columns only from 1200px: narrower, the headings and the mono rows break mid-phrase */
@media (max-width: 1199px) {
  .uc-grid { grid-template-columns: minmax(0, 1fr); }
  .uc-card, .uc-card:first-child, .uc-card:last-child { padding: 28px 0 32px; }
  .uc-card + .uc-card { border-left: 0; border-top: 1px solid var(--faint); }
}
@media (min-width: 640px) and (max-width: 1199px) {
  .uc-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 32px; }
  .uc-num, .uc-card h3, .uc-card > p { grid-column: 1; }
  .uc-card > p { margin-bottom: 0; }
  .uc-ill { grid-column: 2; grid-row: 1 / -1; align-self: start; margin-top: 0; }
}

/* ---------- Trades ---------- */
.tr { background: var(--surface); }
.tr-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  background: var(--faint); border: 1px solid var(--faint); border-radius: 10px; overflow: hidden;
}
.tr-cell { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 22px 22px 28px; background: var(--bg); }
.tr-cell h3 {
  font-size: 12px; font-weight: 400; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; color: var(--soft);
}
.tr-ask { font-family: var(--mono); font-size: 15px; line-height: 1.55; color: var(--text); text-wrap: pretty; }
.tr-ask::before { content: "\201C"; content: "\201C" / ""; }
.tr-ask::after { content: "\201D"; content: "\201D" / ""; }
.tr-more { max-width: 62ch; margin-top: 24px; font-size: 16px; line-height: 1.6; color: var(--soft); }
.tr-more b { font-weight: 600; color: var(--text); }
@media (max-width: 1023px) { .tr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) {
  .tr-grid { grid-template-columns: minmax(0, 1fr); }
  .tr-cell { gap: 8px; padding: 18px 18px 20px; }
  .tr-ask { font-size: 14.5px; }
}

/* ---------- Any agent ---------- */
.ag-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: clamp(40px, 6vw, 96px); }
.ag-table { position: relative; width: 100%; max-width: 480px; aspect-ratio: 1; margin-inline: auto; container-type: inline-size; }
.ag-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ag-rim { fill: none; stroke: var(--faint); stroke-width: 1; stroke-dasharray: 1 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ag-spoke { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; }
.ag-board {
  position: absolute; left: 27%; top: 27%; width: 46%; height: 46%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3.2cqi;
  border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface);
}
.ag-mark { width: 10.5cqi; height: 10.5cqi; color: var(--accent); }
.ag-word {
  margin-right: -.32em; font-family: var(--mono); font-size: clamp(13px, 3.4cqi, 16px); font-weight: 700;
  line-height: 1; letter-spacing: .32em; text-transform: uppercase;
}
.ag-board-sub { font-family: var(--mono); font-size: clamp(10px, 2.4cqi, 11.5px); line-height: 1.45; letter-spacing: .1em; text-transform: uppercase; text-align: center; color: var(--soft); }
.ag-seat {
  position: absolute; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 8px; height: clamp(30px, 7.6cqi, 36px); padding: 0 clamp(10px, 3cqi, 14px);
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg);
  font-family: var(--mono); font-size: clamp(11.5px, 2.9cqi, 13.5px); line-height: 1; white-space: nowrap; color: var(--text);
}
.ag-seat::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--soft); }
.ag-seat.is-open { border-style: dashed; color: var(--soft); }
.ag-seat.is-open::before { background: transparent; border: 1px solid var(--soft); }
.ag-s1 { left: 50%; top: 11%; }
.ag-s2 { left: 87.1%; top: 37.9%; }
.ag-s3 { left: 72.9%; top: 81.6%; }
.ag-s4 { left: 27.1%; top: 81.6%; }
.ag-s5 { left: 12.9%; top: 37.9%; }

.ag-stack { display: grid; row-gap: 14px; }
.ag-layer {
  position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 16px; row-gap: 4px;
  padding: 18px 20px 20px; border: 1px solid var(--faint); border-radius: 10px;
}
.ag-n {
  grid-row: 1 / span 2; display: grid; place-items: center; width: 28px; height: 28px; margin-top: -2px;
  border: 1px solid var(--line-strong); border-radius: 50%;
  font-family: var(--mono); font-size: 12px; line-height: 1; color: var(--soft);
}
.ag-layer h3 { font-size: clamp(15.5px, .3vw + 14px, 17px); line-height: 1.4; }
.ag-what { display: block; font-size: .88em; font-weight: 400; letter-spacing: 0; color: var(--soft); } /* the layer's role, under its name */
.ag-layer p { font-size: 15.5px; line-height: 1.55; color: var(--soft); }
/* the two Duit layers read as one box, labelled on its top rule */
.ag-layer.is-duit { background: var(--surface); border-color: var(--line-strong); }
.ag-layer.is-top { border-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-top: 22px; }
.ag-layer.is-bottom { margin-top: -14px; border-top: 1px dashed var(--faint); border-top-left-radius: 0; border-top-right-radius: 0; }
/* connectors between the boxes (none inside the joined Duit box) */
.ag-layer + .ag-layer:not(.is-bottom)::before {
  content: ""; position: absolute; left: 34px; top: -15px; height: 14px; border-left: 1px solid var(--line-strong);
}
.ag-tag {
  position: absolute; top: -10px; right: 16px; display: inline-flex; align-items: center; gap: 7px;
  padding: 0 8px; background: var(--bg);
  font-family: var(--mono); font-size: 11px; font-weight: 700; line-height: 18px; letter-spacing: .24em; text-transform: uppercase; color: var(--text);
}
.ag-tag svg { width: 11px; height: 11px; color: var(--accent); }
@media (max-width: 959px) {
  .ag-grid { grid-template-columns: minmax(0, 1fr); }
  .ag-table { max-width: 420px; }
}
@media (max-width: 479px) {
  .ag-layer { grid-template-columns: 24px minmax(0, 1fr); column-gap: 12px; padding: 16px 16px 18px; }
  .ag-n { width: 24px; height: 24px; font-size: 11px; }
  .ag-layer + .ag-layer:not(.is-bottom)::before { left: 28px; }
  .ag-layer p { font-size: 15px; }
}

/* ---------- Data ---------- */
.da .sec-head { max-width: 62rem; }
.da-l { display: block; }
.da-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--faint); }
.da-group { min-width: 0; padding: 24px clamp(16px, 2vw, 28px) 28px; }
.da-group:first-child { padding-left: 0; }
.da-group:last-child { padding-right: 0; }
.da-group + .da-group { border-left: 1px solid var(--faint); }
.da-group h3 { font-size: 15px; line-height: 1.4; letter-spacing: 0; }
.da-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.da-chips li {
  display: inline-flex; align-items: center; min-height: 32px; padding: 4px 10px;
  border: 1px solid var(--faint); border-radius: 6px; background: var(--surface);
  font-family: var(--mono); font-size: 13px; line-height: 1.3; color: var(--text);
}
.da-else { padding-top: 18px; border-top: 1px solid var(--faint); font-size: 15px; color: var(--soft); }
.da-else a { color: var(--text); }
.da-store {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; column-gap: clamp(16px, 2.4vw, 32px);
  margin-top: clamp(56px, 7vw, 96px);
}
.da-card { min-width: 0; padding: clamp(24px, 2.8vw, 36px); border: 1px solid var(--faint); border-radius: 10px; }
.da-kicker { font-family: var(--mono); font-size: 12px; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.da-card h3 { margin-top: 10px; font-size: clamp(20px, .9vw + 15px, 26px); }
.da-card > p:not(.da-kicker) { margin-top: 10px; max-width: 40ch; font-size: 16px; line-height: 1.6; color: var(--soft); }
.da-points { display: grid; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--faint); font-family: var(--mono); font-size: 13.5px; line-height: 1.5; }
.da-points li { display: grid; grid-template-columns: 1.1ch minmax(0, 1fr); column-gap: 12px; align-items: baseline; }
.da-points .g { line-height: 1.5; }
.da-or { position: relative; display: grid; place-items: center; }
.da-or::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px dashed var(--line-strong); }
.da-or span {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--line-strong); border-radius: 50%; background: var(--bg);
  font-family: var(--mono); font-size: 13px; line-height: 1; color: var(--soft);
}
.da-note { max-width: 74ch; margin: 24px auto 0; font-family: var(--mono); font-size: 14px; line-height: 1.6; text-align: center; text-wrap: balance; color: var(--text); }
.da-note-soft { display: block; margin-top: 4px; color: var(--soft); }
/* four columns only from 1200px: narrower, two group names wrap and the chip rows start at different heights */
@media (max-width: 1199px) {
  .da-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .da-group:nth-child(odd) { padding-left: 0; border-left: 0; }
  .da-group:nth-child(even) { padding-right: 0; }
  .da-group:nth-child(n+3) { border-top: 1px solid var(--faint); }
}
@media (max-width: 767px) {
  .da-store { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .da-or { height: 56px; }
}
@media (max-width: 559px) {
  .da-groups { grid-template-columns: minmax(0, 1fr); }
  .da-group, .da-group:nth-child(odd), .da-group:nth-child(even) { padding: 20px 0 24px; border-left: 0; }
  .da-group + .da-group { border-top: 1px solid var(--faint); }
  .da-note { text-align: left; }
}

/* ---------- Consulting ---------- */
.co { background: var(--surface); }
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(40px, 7vw, 120px); }
.co-copy .lede { margin-top: 18px; }
.co-body { max-width: 56ch; margin-top: 16px; font-size: 16px; line-height: 1.65; color: var(--soft); }
.co-copy .btn-primary { margin-top: 32px; }
.co-list { padding: 8px clamp(20px, 2.4vw, 32px) 10px; border: 1px solid var(--faint); border-radius: 10px; background: var(--bg); }
.co-list-head {
  padding: 16px 0 14px; font-size: 12px; font-weight: 400; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; color: var(--soft);
}
.co-list ul { margin: 0; padding: 0; list-style: none; }
.co-list li {
  display: grid; grid-template-columns: 1.1ch minmax(0, 1fr); column-gap: 14px; align-items: baseline;
  padding: 14px 0; border-top: 1px solid var(--faint); font-size: 16.5px; line-height: 1.5;
}
.co-list .g { line-height: 1.5; }
.co-last span:last-child { font-family: var(--mono); font-weight: 700; letter-spacing: -0.01em; }
@media (min-width: 960px) { .co-list { margin-top: 30px; } }
@media (max-width: 959px) { .co-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Contact ---------- */
.ct-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: clamp(40px, 6vw, 96px); }
.ct-copy .lede { margin-top: 18px; }
.ct-steps { display: grid; gap: 14px; margin-top: 32px; max-width: 40ch; }
.ct-steps li { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 14px; align-items: baseline; font-size: 16px; line-height: 1.55; }
.ct-n {
  display: grid; place-items: center; width: 26px; height: 26px; transform: translateY(-1px);
  border: 1px solid var(--line-strong); border-radius: 50%;
  font-family: var(--mono); font-size: 12px; line-height: 1; color: var(--soft);
}
.ct-steps li > span:last-child { align-self: center; }
.ct-mail { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--faint); font-size: 15px; color: var(--soft); }
@media (max-width: 959px) { .ct-grid { grid-template-columns: minmax(0, 1fr); } }

/* the form */
.cf {
  position: relative; display: grid; gap: 18px; min-width: 0;
  padding: clamp(20px, 3vw, 32px); border: 1px solid var(--faint); border-radius: 12px; background: var(--surface);
}
.cf-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cf-field { display: grid; gap: 7px; align-content: start; min-width: 0; }
.cf label { font-family: var(--mono); font-size: 12px; font-weight: 700; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.cf-opt { font-weight: 400; letter-spacing: .06em; text-transform: none; color: var(--soft); }
.cf input, .cf select, .cf textarea {
  display: block; width: 100%; min-height: 46px; margin: 0; padding: 10px 12px;
  border: 1px solid var(--line-strong); border-radius: 6px; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.45;
  transition: border-color .15s;
}
.cf textarea { min-height: 7.4em; resize: vertical; }
.cf ::placeholder { color: var(--soft); opacity: .8; }
.cf input:hover, .cf select:hover, .cf textarea:hover { border-color: var(--soft); }
.cf input:focus-visible, .cf select:focus-visible, .cf textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--soft); }
.cf [aria-invalid="true"] { border-color: var(--bad); }
.cf-select { position: relative; display: block; }
.cf-select select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.cf-select::after {
  content: ""; position: absolute; right: 17px; top: 50%; width: 7px; height: 7px; margin-top: -6px; pointer-events: none;
  border-right: 1.5px solid var(--soft); border-bottom: 1.5px solid var(--soft); transform: rotate(45deg);
}
.cf select option { background: var(--bg); color: var(--text); }
.cf-err { font-size: 13px; line-height: 1.5; color: var(--bad); }
.cf-err:empty { display: none; }
.cf-err::before { content: "! "; content: "! " / ""; font-family: var(--mono); font-weight: 700; }
.cf-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 4px; }
.cf-send .btn-primary { border: 0; }
.cf-send .btn-primary[disabled] { opacity: .6; cursor: progress; }
.cf-status { flex: 1 1 14rem; min-height: 1.5em; font-size: 14px; line-height: 1.5; color: var(--soft); }
.cf-status:empty { min-height: 0; }
.cf-status.is-ok { color: var(--text); }
.cf-status.is-ok::before { content: "* "; content: "* " / ""; font-family: var(--mono); color: var(--ok); }
.cf-status.is-bad { color: var(--bad); }
.cf-status.is-bad::before { content: "! "; content: "! " / ""; font-family: var(--mono); font-weight: 700; }
.cf-note a { color: var(--text); }
.cf-note { padding-top: 14px; border-top: 1px solid var(--faint); font-size: 13px; line-height: 1.5; color: var(--soft); }
@media (max-width: 559px) {
  .cf-pair { grid-template-columns: minmax(0, 1fr); }
  .cf-send .btn-primary { flex: 1 1 100%; }
}
