/* ============================================================
   AltxDesign — the Services page (services.html), from the careers/services handover (20 Nov
   2026, section 5): "What do you need?", the four categories, "Not sure which?" as a message
   thread, three promises, the brief, the questions. Loaded after css/style.css (tokens, nav,
   buttons, the FAQ and .faqs--tone, the chat bubbles, the scroll-in helper, the gradient
   phrase, the night footer) and css/sentence-form.css (the brief, shared with Contact and
   Careers). Behaviour: js/page-services.js, js/sentence-form.js and js/parts.js.
   Buttons are the live "dot to arrow" ones (.cta/.ilink/.go/.dotarrow, .round for the jump
   arrows), never the sample's stand-ins. Every part has a reduced-motion fallback.
   ============================================================ */

@keyframes rise{to{transform:none}}

/* ---------- OPENING: the question, then four large rows that jump to their sections ---------- */
.shero{padding:clamp(140px,19vh,200px) var(--edge) clamp(72px,9vw,128px)}
.shero__in{max-width:var(--wrap);margin-inline:auto}
.shero__top{display:grid;grid-template-columns:minmax(0,8fr) minmax(0,4fr);column-gap:clamp(32px,6vw,112px);align-items:end}
.shero__title{font-size:clamp(44px,8.8vw,144px);font-weight:800;letter-spacing:-.05em;line-height:.9}
/* the masks keep .22em under the line, enough for g, p, q and y tails (20 Nov 2026: .1–.14em cut them) */
.shero__title span{display:block;overflow:hidden;padding-bottom:.22em;margin-bottom:-.22em}
.shero__title span > i{display:inline-block;font-style:normal;transform:translateY(105%);animation:rise 1s var(--ease-out) forwards}
.shero__title span:nth-child(2) > i{animation-delay:.1s}
.shero__title em{font-style:normal}
.shero__lead{font-size:clamp(18px,1.6vw,23px);font-weight:500;line-height:1.4;text-wrap:pretty;padding-bottom:.5em;opacity:0;animation:in .9s var(--ease-out) .5s forwards}
.jumps{list-style:none;margin-top:clamp(48px,6vw,96px);opacity:0;animation:in .9s var(--ease-out) .7s forwards}
.jump{border-top:1px solid rgba(11,11,13,.16)}
.jump:last-child{border-bottom:1px solid rgba(11,11,13,.16)}
.jump a{display:grid;grid-template-columns:minmax(0,6fr) minmax(0,5fr) auto;column-gap:clamp(20px,3vw,48px);align-items:center;padding:clamp(16px,1.9vw,28px) 0;color:inherit;text-decoration:none}
/* the padding takes the hover gradient down past the g and p tails (it only paints inside the
   box); the margin gives the space back */
.jump__name{font-size:clamp(30px,4.8vw,80px);font-weight:800;letter-spacing:-.045em;line-height:1;padding-bottom:.16em;margin-bottom:-.16em;transition:transform .6s var(--ease-out)}
.jump__line{font-size:clamp(16px,1.35vw,20px);line-height:1.4;color:var(--muted);transition:color .3s ease}
/* the arrow is the live round arrow (.round--down), moved by hovering the whole row */
.jump .round{cursor:inherit}
.jump a:focus-visible .jump__name{color:transparent;-webkit-background-clip:text;background-clip:text;background-image:linear-gradient(100deg,var(--gold),var(--orange) 40%,var(--seal));transform:translateX(.18em)}
.jump a:focus-visible .jump__line{color:var(--near)}
.jump a:focus-visible .round{color:var(--orange)}
.jump a:focus-visible .round svg{transform:translateY(2px)}
.jump a:focus-visible{outline:2px solid var(--ring);outline-offset:4px;border-radius:8px}
@media(hover:hover){
  .jump a:hover .jump__name{color:transparent;-webkit-background-clip:text;background-clip:text;background-image:linear-gradient(100deg,var(--gold),var(--orange) 40%,var(--seal));transform:translateX(.18em)}
  .jump a:hover .jump__line{color:var(--near)}
  .jump a:hover .round{color:var(--orange)}
  .jump a:hover .round svg{transform:translateY(2px)}
}

/* ---------- A CATEGORY: what it is on the left (held in place), the proof and the ways in on the right ---------- */
.cat{padding:0 var(--edge) clamp(96px,12vw,170px);scroll-margin-top:90px}
.cat__in{max-width:var(--wrap);margin-inline:auto;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);column-gap:clamp(32px,6vw,112px);align-items:start;padding-top:clamp(40px,5vw,72px);border-top:1px solid rgba(11,11,13,.16)}
.cat__side{position:sticky;top:120px;display:flex;flex-direction:column;align-items:flex-start;gap:clamp(18px,2vw,28px)}
.cat__title{font-size:clamp(44px,6vw,96px);font-weight:800;letter-spacing:-.045em;line-height:.92;text-wrap:balance}
.cat__intro{max-width:44ch;font-size:clamp(18px,1.5vw,22px);line-height:1.45;text-wrap:pretty}
.cat__out{max-width:44ch;padding-left:16px;border-left:2px solid var(--orange);font-size:clamp(16px,1.3vw,19px);font-weight:600;line-height:1.4;text-wrap:pretty}
.cat__pic{position:relative;border-radius:var(--r-lg);overflow:hidden;background:#1a1a1d;aspect-ratio:16 / 10.5}
.cat__pic img{display:block;width:100%;height:100%;object-fit:cover;transition:transform 1.6s var(--ease-out)}
@media(prefers-reduced-motion:no-preference){.fx-js:not(.fx-safe) .cat__pic:not(.is-in) img{transform:scale(1.08)}}
.cat__cap{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:10px 32px;margin-top:16px}
.cat__cap p{max-width:52ch;font-size:16px;line-height:1.45;color:var(--muted)}
/* the ways in: a row per page, the live dot that turns into an arrow on the right */
.links{list-style:none;margin-top:clamp(36px,4.4vw,64px)}
.links li{border-top:1px solid rgba(11,11,13,.16)}
.links li:last-child{border-bottom:1px solid rgba(11,11,13,.16)}
.links a{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:24px;align-items:center;padding:clamp(18px,2vw,28px) 0;color:inherit;text-decoration:none}
.links b{display:block;font-size:clamp(22px,2.3vw,34px);font-weight:700;letter-spacing:-.03em;line-height:1.08;transition:transform .5s var(--ease-out)}
.links span.l{display:block;max-width:56ch;margin-top:6px;font-size:16px;line-height:1.45;color:var(--muted)}
.links a:focus-visible b{transform:translateX(10px)}
.links a:focus-visible{outline:2px solid var(--ring);outline-offset:4px;border-radius:8px}
@media(hover:hover){.links a:hover b{transform:translateX(10px)}}
/* web: the platforms as a wall of words; one is lit at a time (js/page-services.js). Without the
   script every word simply shows. */
.wall{display:flex;flex-wrap:wrap;gap:.1em .5em;margin-top:clamp(36px,4.4vw,64px);font-size:clamp(34px,4.6vw,72px);font-weight:800;letter-spacing:-.045em;line-height:1.05}
.wall span{transition:color .5s ease}
.fx-js:not(.fx-safe) .wall span{color:rgba(11,11,13,.2)}
.fx-js:not(.fx-safe) .wall span.is-on{color:var(--near)}
.wall span:hover{color:var(--orange) !important}
.notes{list-style:none;margin-top:clamp(28px,3.4vw,48px)}
.notes li{padding:18px 0;border-top:1px solid rgba(11,11,13,.16);font-size:clamp(16px,1.3vw,19px);line-height:1.5;text-wrap:pretty}
.notes li:last-child{border-bottom:1px solid rgba(11,11,13,.16);font-weight:700}
/* retainer: three plain promises, each marked with the orange logo X */
.terms{list-style:none}
.terms li{position:relative;padding:clamp(22px,2.6vw,36px) 0 clamp(22px,2.6vw,36px) 44px;border-top:1px solid rgba(11,11,13,.16);font-size:clamp(22px,2.3vw,34px);font-weight:700;letter-spacing:-.03em;line-height:1.12;text-wrap:balance}
.terms li:last-child{border-bottom:1px solid rgba(11,11,13,.16)}
.terms li svg{position:absolute;left:0;top:50%;width:20px;height:20px;transform:translateY(-50%)}
.terms li path{fill:var(--orange)}

/* ---------- NOT SURE WHICH? (dark): what people say, and where it leads. The bubbles are the
   shared chat (css/style.css); the requests are not struck through here (on About the strike
   means "no"). The replies are links with the live dot to arrow. ---------- */
.sits{background:var(--near);color:var(--cream);padding:clamp(96px,12vw,170px) var(--edge)}
.sits__in{max-width:var(--wrap);margin-inline:auto;display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);column-gap:clamp(32px,5vw,96px);align-items:start}
.sits__title{position:sticky;top:120px;font-size:clamp(34px,4.1vw,60px);font-weight:700;letter-spacing:-.035em;line-height:1;text-wrap:balance}
.sits .chat{gap:clamp(16px,2vw,26px)}
.sits a.msg--out{text-decoration:none;transition:opacity .45s ease,transform .6s var(--ease-out),background .3s ease}
.sits a.msg--out .dotarrow{margin-left:2px}
.sits a.msg--out:focus-visible{background:#fff;outline:2px solid var(--ring);outline-offset:3px}
@media(hover:hover){.sits a.msg--out:hover{background:#fff}}

/* ---------- THE THREE PROMISES: a ruled strip; a gradient rule draws across each ---------- */
.vows{padding:clamp(96px,12vw,170px) var(--edge) 0}
.vows ul{max-width:var(--wrap);margin-inline:auto;list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:clamp(24px,3.4vw,56px)}
.vows li{position:relative;padding-top:clamp(22px,2.4vw,34px);font-size:clamp(24px,2.6vw,40px);font-weight:700;letter-spacing:-.03em;line-height:1.08;text-wrap:balance}
.vows li::before,.vows li::after{content:"";position:absolute;left:0;top:0;height:2px}
.vows li::before{width:100%;background:rgba(11,11,13,.14)}
.vows li::after{width:100%;background:linear-gradient(90deg,var(--gold),var(--orange) 45%,var(--seal));transition:width 1.4s var(--ease-io) .2s}
@media(prefers-reduced-motion:no-preference){.fx-js:not(.fx-safe) .vows li:not(.is-in)::after{width:0}}
.vows li:nth-child(2),.vows li:nth-child(2)::after{transition-delay:.2s}
.vows li:nth-child(3),.vows li:nth-child(3)::after{transition-delay:.4s}

/* ---------- THE BRIEF: the contact page's sentence form (css/sentence-form.css) with a heading
   block of its own, hidden once a brief is sent ---------- */
.brief--end{padding-top:clamp(96px,12vw,170px)}
.brief--end .brief__in{opacity:1;animation:none}
.end__top{display:grid;grid-template-columns:minmax(0,8fr) minmax(0,4fr);column-gap:clamp(32px,6vw,112px);align-items:end;margin-bottom:clamp(36px,4.6vw,64px)}
.end__top[hidden]{display:none}
.end__title{font-size:clamp(40px,5.6vw,88px);font-weight:700;letter-spacing:-.04em;line-height:.96;text-wrap:balance}
.end__lead{font-size:clamp(17px,1.4vw,20px);line-height:1.5;color:var(--muted);text-wrap:pretty;padding-bottom:.35em}

@media(max-width:900px){
  .shero__top,.end__top{grid-template-columns:1fr;row-gap:20px}
  .jump a{grid-template-columns:minmax(0,1fr) auto;row-gap:6px}
  .jump__line{grid-column:1;grid-row:2}
  .jump .round{grid-row:1 / 3;grid-column:2}
  .cat__in,.sits__in{grid-template-columns:1fr;row-gap:36px}
  .cat__side,.sits__title{position:static}
  .vows ul{grid-template-columns:1fr;row-gap:36px}
}
@media(prefers-reduced-motion:reduce){
  .shero__title span > i,.shero__lead,.jumps{animation:none;opacity:1;transform:none}
  .cat__pic img{transition:none}
  .vows li::after{transition:none}
  .wall span,.jump__name,.links b{transition:none}
}
