/* #offer "What we do" (G6): the plain offer right after the hero, a flow section on ink. No track, no pin, no paper.
   Headline, one lede, then the BRING band: the same six tools the hero shows straighten into one column, converge on one seal, and the
   seal's two cuts carry the work to the two labelled doors (short cut to Line 1 in --signal, deep cut to Line 2 in --line2). Then the
   doors, then the proof strip. The band's drawing is svg/bring.mjs (live: scenes/offer.mjs, static: composed/offer-bring*.svg); every
   word on it is DOM. The blue comets (offer.mjs rail) run down the right margin and along the door tops, as before.
   Hero carry (D11): #offer::before is the ink body that starts flush at the top edge, so the dark hero flows into the headline.
   Class contract with the hero packet: hero.css owns --carry and .hero__carry; this file owns #offer::before. */

#offer { --offer-carry: clamp(56px, 6.5vw, 96px); --offer-gap: clamp(1.4rem, 3vw, 2.4rem); position: relative; background: none; display: grid; gap: var(--offer-gap); align-content: start; padding-top: calc(var(--offer-carry) + 1.25rem); }
#offer > * { margin: 0; }
#offer h2 { max-width: 24ch; font-size: clamp(1.9rem, 3.8vw, 3.7rem); }
.offer__lede { max-width: 52ch; font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.45; font-weight: 500; }

#offer::before {
  content: ''; position: absolute; z-index: 0; left: 0; right: 0; top: 0; bottom: 0; pointer-events: none; background-color: var(--ink);
  background-image: radial-gradient(120% 60% at 100% 0, rgb(58 77 255 / .09), transparent 62%), linear-gradient(90deg, rgb(241 236 224 / .015), rgb(241 236 224 / .045));
}
#offer > * { position: relative; z-index: 1; }
#offer > .offer__rail { position: absolute; z-index: 2; left: 0; top: 0; width: 100%; height: 100%; margin: 0; overflow: visible; pointer-events: none; }
.offer__rail path { fill: none; stroke: var(--signal); vector-effect: none; }
.offer__rail .rail-halo { stroke-opacity: .16; }
.offer__rail .rail-rest { stroke-opacity: .2; }
.offer__rail .rail-head { fill: var(--signal); stroke: none; }
.offer__rail .rail-core { fill: #fff; stroke: none; }
.offer__rail .rail-comet { stroke-linecap: round; stroke: var(--line2); stroke-opacity: 0; }
.offer__rail .rail-flash { stroke: #fff; stroke-width: 3; stroke-opacity: 0; stroke-linecap: round; }
.offer__rail .rail-spark { stroke: var(--line2); stroke-width: 1.5; stroke-opacity: 0; stroke-linecap: round; }
.offer__rail .rail-glow { fill: var(--signal); fill-opacity: 0; stroke: none; }
#offer.offer-rail-live .offer__door { border-top-color: var(--line); }

/* ---- the band ------------------------------------------------------------------------------------------------------------
   One unit = 1/1340 of the band's width (wide) or 1/390 (phone). Everything DOM on the band is placed in units, so it stays glued to the drawing. */
#offer > .offer__bring { position: relative; z-index: 3; margin-right: calc(var(--gutter) * -.3); margin-bottom: calc(var(--offer-gap) * -1); padding-top: 2.4rem; }
.bring { --bw: 1340; --u: calc(100cqw / var(--bw)); }
.bring__stage { position: relative; aspect-ratio: 1340 / 420; container-type: inline-size; }
.bring__stage > * { position: absolute; }
.bring__composed { left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.bring__composed--phone { display: none; }
.bring-live .bring__composed { display: none; }
.bring__svg { left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.bring__chips { inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.bring__chip {
  position: absolute; left: calc(var(--u) * var(--x)); top: calc(var(--u) * var(--y)); width: calc(var(--u) * var(--w)); height: calc(var(--u) * var(--h));
  display: flex; align-items: center; font-size: max(11px, calc(var(--u) * 14)); font-weight: 600; line-height: 1.1; white-space: nowrap; color: var(--fg);
  transform-origin: calc(var(--u) * -34) 50%;
}
.bring__zone, .bring__tag {
  left: calc(var(--u) * var(--x)); top: calc(var(--u) * var(--y)); white-space: nowrap; font-family: var(--font-mono); font-size: max(11px, calc(var(--u) * 12)); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--mut); pointer-events: none;
}
.bring__zone[data-anchor="middle"], .bring__tag[data-anchor="middle"] { transform: translateX(-50%); }
.bring__tag[data-anchor="end"] { transform: translateX(-100%); }
.bring__zone[data-anchor="end"] { transform: translateX(-100%); }

@media (min-width: 701px) and (max-width: 900px) { .bring__zone, .bring__tag { letter-spacing: .05em; } }

@media (max-width: 700px) {
  #offer > .offer__bring { margin-inline: calc(var(--gutter) * -1); padding-top: 3rem; }
  .bring { --bw: 390; }
  .bring__stage { aspect-ratio: 390 / 499; }
  .bring__composed { display: none; }
  .bring__composed--phone { display: block; }
  .bring-live .bring__composed--phone { display: none; }
  .bring__chip { left: calc(var(--u) * var(--nx)); top: calc(var(--u) * var(--ny)); width: calc(var(--u) * var(--nw)); font-size: max(12px, calc(var(--u) * 14)); }
  .bring__zone, .bring__tag { left: calc(var(--u) * var(--nx)); top: calc(var(--u) * var(--ny)); }
  .bring__zone { letter-spacing: .1em; max-width: calc(var(--u) * 360); }
  .bring__zone[data-na="start"] { transform: none; }
  .bring__zone[data-na="middle"], .bring__tag[data-na="middle"] { transform: translateX(-50%); }
  .bring__zone[data-na="end"] { transform: translateX(-100%); }
}

/* ---- the two doors, equal standing ------------------------------------------------------------------------------- */
.offer__doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.8rem, 1.6vw, 1.5rem); }
.offer__door {
  display: grid; grid-template-columns: auto 1fr auto; align-items: start; align-content: start; gap: .3rem clamp(.9rem, 2vw, 1.6rem); padding: clamp(1.1rem, 2vw, 1.8rem);
  border: 1px solid var(--line); border-top: 3px solid var(--signal); background: var(--ink-2); color: var(--fg); text-decoration: none;
  transition: background-color .2s linear, border-color .2s linear;
}
.offer__door[data-line="2"] { border-top-color: var(--line2); }
.offer__door:hover { background: #1b1e25; border-color: var(--fg); }
.offer__door[data-line="1"]:hover { border-top-color: var(--signal); }
.offer__door[data-line="2"]:hover { border-top-color: var(--line2); }
.offer__door:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; background: #1b1e25; }
.offer__num { grid-row: 1 / span 4; align-self: center; font-family: var(--font-mono); font-size: clamp(2.2rem, 4vw, 3.6rem); font-weight: 600; line-height: 1; color: var(--signal); }
.offer__door[data-line="2"] .offer__num { color: var(--line2); }
.offer__name { grid-column: 2 / -1; font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.5rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.08; }
.offer__tag { grid-column: 2 / -1; font-family: var(--font-mono); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }
.offer__desc { grid-column: 2; font-size: clamp(1rem, 1.2vw, 1.15rem); line-height: 1.45; color: var(--fg); }
.offer__cta { grid-column: 2; grid-row: 4; margin-top: .5rem; font-family: var(--font-mono); font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--line2); }
.offer__door .offer__arrow { grid-column: 3; grid-row: 4; align-self: end; }
.offer__arrow { display: inline-block; width: 1.6rem; height: 2px; background: var(--signal); position: relative; transition: width .2s ease-out; }
.offer__door[data-line="2"] .offer__arrow { background: var(--line2); }
.offer__arrow::after { content: ''; position: absolute; right: 0; top: -3px; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transform-origin: 100% 0; color: var(--signal); }
.offer__door[data-line="2"] .offer__arrow::after { color: var(--line2); }
.offer__door:hover .offer__arrow { width: 2.4rem; }
/* the doors lead down into #build: the arrow points at what comes next */
.offer__door .offer__arrow { transform: rotate(90deg); }

/* ---- the proof strip ---------------------------------------------------------------------------------------------- */
.offer__proof { max-width: 64ch; display: grid; gap: .5rem; padding: .95rem 1.2rem; border-left: 4px solid var(--signal); background: var(--ink-2); font-size: clamp(1.05rem, 1.35vw, 1.3rem); font-weight: 600; line-height: 1.4; }
.offer__kicker { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--line2); }
.offer__proof .link { justify-self: start; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 2px; white-space: nowrap; }
.offer__ruler { display: flex; gap: 6px; align-items: flex-end; height: 14px; }
.offer__ruler i { display: block; width: 2px; height: 10px; background: var(--fg); opacity: .5; transition: opacity .2s linear; }
.offer__ruler i:last-child { height: 14px; background: var(--signal); opacity: 1; }
.offer-live .offer__ruler i:not(:last-child):not(.is-on) { opacity: .16; }
.offer-live .offer__ruler i.is-on { opacity: .9; }

@media (max-width: 700px) { .offer__doors { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 901px) { #offer > .offer__proof { max-width: none; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; column-gap: 1.6rem; } .offer__proof .link { justify-self: end; } }


/* The streaks that carry on from the hero: ember and grey comets running left to right through the top of the section, dissolving into the
   trunk on the right. Time-based and decorative; only in the cinematic path (reduced motion and no-JS never see them). */
.offer__streaks { display: none; }
html.js:not(.fx-fail):not(.static) #offer > .offer__streaks {
  margin: 0;
  display: block; position: absolute; z-index: 0; left: 0; right: 0; top: 0; width: auto; height: clamp(300px, 36vw, 420px); overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent 97%), linear-gradient(180deg, #000 55%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, #000 78%, transparent 97%), linear-gradient(180deg, #000 55%, transparent); mask-composite: intersect;
}
.offer__streaks i {
  position: absolute; left: 0; top: var(--y); width: var(--w); height: var(--h, 3px); border-radius: 0 var(--h, 3px) var(--h, 3px) 0;
  background: linear-gradient(90deg, transparent, var(--c)); opacity: var(--o, 1); transform: translate3d(-110%, 0, 0);
  animation: offer-streak var(--d) cubic-bezier(.3, .1, .5, 1) var(--delay) infinite;
}
.offer__streaks i::after { content: ''; position: absolute; right: -9px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: radial-gradient(closest-side, var(--c), transparent); opacity: var(--glow, .6); }
.offer__streaks i:nth-child(1) { --y: 14px;  --w: 380px; --d: 5.2s; --delay: -1.1s; --c: rgb(58 77 255); --h: 3px; }
.offer__streaks i:nth-child(2) { --y: 36px;  --w: 200px; --d: 6.4s; --delay: -3.6s; --c: rgb(200 196 186 / .8); --glow: 0; --o: .85; --h: 2.5px; }
.offer__streaks i:nth-child(3) { --y: 58px;  --w: 460px; --d: 4.6s; --delay: -2.2s; --c: rgb(130 144 255); --h: 3.5px; }
.offer__streaks i:nth-child(4) { --y: 79px;  --w: 180px; --d: 7s;   --delay: -.4s;  --c: rgb(200 196 186 / .8); --glow: 0; --o: .8; --h: 2.5px; }
.offer__streaks i:nth-child(5) { --y: 168px; --w: 240px; --d: 5.8s; --delay: -4.4s; --c: rgb(58 77 255); --o: .75; --h: 3px; }
.offer__streaks i:nth-child(6) { --y: 214px; --w: 190px; --d: 6.8s; --delay: -2.8s; --c: rgb(200 196 186 / .7); --glow: 0; --o: .6; --h: 2.5px; }
.offer__streaks i:nth-child(7) { --y: 262px; --w: 400px; --d: 5s;   --delay: -.2s;  --c: rgb(130 144 255); --o: .65; --h: 3px; }
.offer__streaks i:nth-child(8) { --y: 105px; --w: 220px; --d: 6s;   --delay: -5s;   --c: rgb(58 77 255); --o: .85; --h: 2.5px; }
@keyframes offer-streak { to { transform: translate3d(calc(100vw + 110%), 0, 0); } }
@media (max-width: 700px) { .offer__streaks i { --w: 230px; } .offer__streaks i:nth-child(n+6) { display: none; } }
