/* ============================================================
   techtice — direction 55 (sowieso wero warm pop-brand)
   Every value below is from design.md ## Active card.
   No colour, size or radius may appear here that is not on the card.
   ============================================================ */

:root{
  --ink:#1D1C1C;
  --ink-alt:#141414;
  --paper:#FFFFFF;
  --pink:#FF638B;
  --pink-hot:#FF5A8A;
  --peach:#FFC28C;
  --yellow:#FFF48D;

  --edge:1px solid var(--ink);
  --hard:0 6px 0 0 var(--ink);
  --pill:40px;
  --inset:clamp(18px,4vw,68.9px);
}

*,*::before,*::after{box-sizing:border-box}

html{-webkit-text-size-adjust:100%}

body{
  margin:0;
  color:var(--ink);
  font-family:Figtree,system-ui,sans-serif;
  font-weight:500;
  font-size:18.76px;
  line-height:25.32px;
  background:var(--pink);
  overflow-x:clip;
}

/* ---------- ground: one fixed gradient field, warms across the page ---------- */

.ground{
  position:fixed;inset:0;z-index:0;
  background:linear-gradient(112deg,
    var(--pink-hot) 0%,
    var(--pink) 26%,
    var(--peach) 62%,
    var(--yellow) 100%);
  pointer-events:none;
}

/* warmth is an opacity crossfade, never a repaint: animating background-position
   on a full-screen fixed gradient cost 33.5ms/frame median here (16.7 baseline). */
.warm{
  position:fixed;inset:0;z-index:0;
  background:linear-gradient(112deg,var(--peach) 0%,#FFE08C 46%,var(--yellow) 100%);
  opacity:0;will-change:opacity;
  pointer-events:none;
}

.ground::after,.warm::after{
  content:"";position:absolute;inset:0;
  background:url(grain.png) repeat;
  background-size:180px 180px;
  opacity:.18;
}

main{position:relative;z-index:2}

/* ---------- type ---------- */

h1,h2,h3,p{margin:0}

h1{
  font-weight:800;
  font-size:clamp(46px,10.76vw,155px);
  line-height:.85;
  letter-spacing:-.0237em;
  text-transform:uppercase;
}

h2{
  font-weight:800;
  font-size:clamp(31px,3.5vw,50.37px);
  line-height:.85;
  letter-spacing:-.028em;
  text-transform:uppercase;
}

.support{max-width:44ch;font-size:18.76px;line-height:25.32px}

.kicker{
  font-size:18px;line-height:23.4px;
  text-transform:uppercase;letter-spacing:.02em;
  margin-bottom:clamp(14px,2vw,24px);
}

/* ---------- top bar ---------- */

.topbar{
  position:fixed;top:0;left:0;right:0;z-index:20;
  display:flex;align-items:center;justify-content:space-between;
  padding:18px var(--inset);
  pointer-events:none;
}
.topbar > *{pointer-events:auto}
.brand{
  font-weight:800;
  font-size:clamp(24px,2.1vw,32px);
  line-height:1;
  letter-spacing:-.02em;
  text-decoration:none;color:var(--ink);
}

/* ---------- floor pill navigation ---------- */

.floor{
  position:fixed;bottom:clamp(14px,2.4vw,26px);left:50%;z-index:30;
  transform:translateX(-50%);
  display:flex;align-items:center;gap:2px;
  padding:6px;
  background:var(--paper);
  border:var(--edge);
  border-radius:var(--pill);
  box-shadow:var(--hard);
  max-width:calc(100vw - 24px);
}
.floor a{
  display:block;
  padding:10px 20px;
  font-size:18px;line-height:23.4px;
  text-transform:uppercase;letter-spacing:.01em;
  color:var(--ink);text-decoration:none;
  border-radius:var(--pill);
  white-space:nowrap;
  transition:background .18s linear,color .18s linear;
}
.floor a:hover{background:var(--yellow)}
.floor a.cta{
  background:var(--ink);color:var(--paper);
  padding:10px 24px;
}
.floor a.cta:hover{background:var(--ink-alt)}

/* header + nav invert while the ink flood owns the screen */
.brand{transition:color .25s linear}
.floor{transition:background .25s linear,border-color .25s linear,box-shadow .25s linear}
.floor a{transition:background .18s linear,color .18s linear}
body.on-dark .brand{color:var(--paper)}
body.on-dark .floor{background:var(--ink-alt);border-color:var(--paper);box-shadow:0 6px 0 0 var(--paper)}
body.on-dark .floor a{color:var(--paper)}
body.on-dark .floor a:hover{background:var(--paper);color:var(--ink)}
body.on-dark .floor a.cta{background:var(--paper);color:var(--ink-alt)}

/* ---------- act scaffolding ---------- */

.act{position:relative}
.act[style*="--h"]{height:calc(var(--h) * 1vh)}

.stage{
  position:sticky;top:0;
  height:100vh;
  display:grid;
  place-items:center;
  overflow:clip;
  padding:clamp(66px,8vw,88px) var(--inset) clamp(96px,11vw,116px);
}

.act-head{
  position:relative;z-index:3;
  width:100%;max-width:1120px;
  text-align:center;
  pointer-events:none;
}
.act-head.left{text-align:left;max-width:760px}
.act-head .support{margin-top:clamp(18px,2.4vw,30px)}
.act-head.left .support{margin-left:0}
.act-head:not(.left) .support{margin-inline:auto}

/* ---------- ACT 0 hero ---------- */

.hero-act{height:100vh}
.hero{
  position:relative;z-index:3;
  width:100%;
  height:100%;
  display:flex;flex-direction:column;justify-content:center;
}
.hero-main{
  display:flex;flex-direction:column;align-items:flex-start;
  gap:clamp(18px,3vw,34px);
  min-width:0;
}
.hero h1{flex:0 0 auto}

.hero-foot{
  position:absolute;left:0;right:0;bottom:0;
  display:flex;align-items:flex-end;justify-content:space-between;gap:32px;
}
.hero-foot .support{max-width:44ch}

.btn{
  display:inline-block;
  padding:18px 38px;
  background:var(--ink);color:var(--paper);
  border:var(--edge);border-radius:var(--pill);
  box-shadow:var(--hard);
  font-size:18px;line-height:23.4px;font-weight:800;
  text-transform:uppercase;letter-spacing:.01em;text-decoration:none;
  transition:transform .16s cubic-bezier(.22,1,.36,1),box-shadow .16s linear,background .16s linear;
}
.btn:hover{transform:translateY(-3px);box-shadow:0 9px 0 0 var(--ink);background:var(--yellow);color:var(--ink)}
.btn.big{padding:22px 46px;font-size:18.76px}

.chip{
  padding:10px 16px;
  background:var(--paper);
  border:var(--edge);
  box-shadow:var(--hard);
  font-size:18px;line-height:23.4px;
  text-transform:uppercase;letter-spacing:.02em;
  white-space:nowrap;
}

/* ---------- ACT 1 field: scatter -> shortlist ---------- */

.field{
  position:relative;z-index:2;
  width:min(980px,88vw);
  height:min(452px,46vh);
  flex:0 0 auto;
  padding:1px;
}

#sort .stage,#send .stage{
  display:flex;flex-direction:column;justify-content:center;align-items:center;
  gap:clamp(22px,3vw,36px);
}

.cell{
  position:absolute;
  border:var(--edge);
  background:var(--paper);
  margin-left:-1px;margin-top:-1px;
  display:flex;align-items:flex-start;justify-content:space-between;
  padding:8px 10px;
  font-size:18px;line-height:23.4px;
  overflow:hidden;
  will-change:transform;
}
.cell .n{opacity:.55}
.cell.on{background:var(--pink)}
.cell.on .n{opacity:1}

.field .cell{box-shadow:none}
.field .cell span{text-transform:uppercase;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}

/* ---------- ACT 2 lanes ---------- */

.lanes{
  position:relative;z-index:2;
  width:100%;height:min(400px,44vh);flex:0 0 auto;
  pointer-events:none;
}
.msg{
  position:absolute;left:0;top:0;
  width:clamp(220px,22vw,300px);
  padding:14px 16px;
  background:var(--paper);
  border:var(--edge);
  box-shadow:var(--hard);
  will-change:transform;
}
.msg .who{font-weight:800;font-size:18px;line-height:23.4px;text-transform:uppercase}
.msg .why{font-size:18px;line-height:23.4px;opacity:.7;margin-top:2px}
.msg.sent{background:var(--yellow)}

/* ---------- ACT 3 flood ---------- */

.flood-act{height:240vh}
.flood-act .stage{place-items:center}
.flood{
  position:absolute;inset:0;z-index:2;
  background:var(--ink-alt);
  transform:scaleY(0);transform-origin:50% 50%;
  will-change:transform;
}
.takeover{
  position:relative;z-index:3;
  display:flex;flex-direction:column;align-items:center;
  text-align:center;
  color:var(--paper);
  font-weight:800;
  font-size:clamp(40px,10.4vw,150px);
  line-height:.85;
  letter-spacing:-.0237em;
  text-transform:uppercase;
  will-change:transform;
}
.takeover .t-line{display:block;white-space:nowrap}
.flood-note{
  position:absolute;z-index:3;bottom:14%;
  color:var(--paper);opacity:0;
  font-size:18.76px;line-height:25.32px;
  text-align:center;max-width:38ch;
}

/* ---------- ACT 4 the week ---------- */

.week-wrap{
  position:relative;z-index:3;
  width:100%;max-width:1140px;
  display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);
  gap:clamp(24px,4vw,56px);align-items:center;
}
.week-head h2{margin-top:6px}

.plate{
  background:var(--paper);
  border:var(--edge);
  box-shadow:var(--hard);
  padding:0;
}
.plate-top,.plate-foot{
  display:flex;justify-content:space-between;gap:12px;
  padding:12px 16px;
  font-size:18px;line-height:23.4px;text-transform:uppercase;letter-spacing:.02em;
  border-bottom:var(--edge);
}
.plate-foot{border-bottom:0;border-top:var(--edge);opacity:.55}

.grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  grid-auto-rows:1fr;
}
.day{
  position:relative;
  border-right:var(--edge);border-bottom:var(--edge);
  padding:8px 10px;
  min-height:clamp(52px,7.4vh,74px);
  display:flex;flex-direction:column;justify-content:space-between;
  background:var(--paper);
  transition:background .2s linear;
  cursor:default;
}
.day:nth-child(5n){border-right:0}
.day:nth-last-child(-n+5){border-bottom:0}
.day .d{font-size:18px;line-height:23.4px;opacity:.5}
.day .s{font-size:18px;line-height:23.4px;opacity:.5}
.day .mark{
  width:14px;height:14px;border:var(--edge);
  opacity:0;transform:scale(.4);
  transition:opacity .2s linear,transform .2s cubic-bezier(.22,1,.36,1);
  align-self:flex-start;
}
.day.booked{background:var(--pink)}
.day.booked .d,.day.booked .s{opacity:1}
.day.booked .mark{opacity:1;transform:scale(1);background:var(--ink)}
.day:hover{background:var(--yellow)}

.pop{
  position:absolute;z-index:20;
  width:250px;padding:12px 14px;
  background:var(--paper);
  border:var(--edge);
  box-shadow:var(--hard);
  pointer-events:none;
  opacity:0;transform:translateY(6px);
  transition:opacity .16s linear,transform .16s cubic-bezier(.22,1,.36,1);
}
.pop.show{opacity:1;transform:translateY(0)}
.pop .co{font-weight:800;font-size:18px;line-height:23.4px;text-transform:uppercase}
.pop .ro,.pop .sl{font-size:18px;line-height:23.4px;opacity:.7}

/* ---------- ACT 5 sources ---------- */

.tiles{
  position:relative;z-index:2;
  width:100%;max-width:1180px;
  margin-top:clamp(26px,4vw,46px);
  display:grid;grid-template-columns:repeat(7,1fr);
  border:var(--edge);
  background:var(--paper);
}
.tile{
  border-right:var(--edge);border-bottom:var(--edge);
  padding:16px 14px 18px;
  min-height:132px;
  display:flex;flex-direction:column;justify-content:space-between;
  background:var(--paper);
  transition:background .18s linear;
}
.tile:nth-child(7n){border-right:0}
.tile:nth-last-child(-n+7){border-bottom:0}
.tile:hover{background:var(--yellow)}
.tile .idx{font-size:18px;line-height:23.4px;opacity:.45}
.tile .nm{font-weight:800;font-size:18px;line-height:23.4px;text-transform:uppercase;margin-top:auto}
.tile .chk{font-size:18px;line-height:23.4px;opacity:.6}

/* ---------- ACT 6 faq ---------- */

.faq-wrap{
  position:relative;z-index:3;
  width:100%;max-width:1140px;
  display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);
  gap:clamp(24px,4vw,56px);align-items:start;
}
.faq{display:flex;flex-direction:column}
.qa{border:var(--edge);border-bottom:0;background:var(--paper)}
.qa:last-child{border-bottom:var(--edge)}
.qa button{
  width:100%;
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  padding:20px 22px;
  background:none;border:0;
  font-family:inherit;font-weight:800;
  font-size:18.76px;line-height:25.32px;
  color:var(--ink);text-align:left;cursor:pointer;
}
.qa button:hover{background:var(--yellow)}
.qa i{
  position:relative;flex:0 0 auto;
  width:22px;height:22px;
  border:var(--edge);border-radius:50%;
}
.qa i::before,.qa i::after{
  content:"";position:absolute;left:50%;top:50%;
  background:var(--ink);transform:translate(-50%,-50%);
}
.qa i::before{width:10px;height:1px}
.qa i::after{width:1px;height:10px;transition:transform .2s cubic-bezier(.22,1,.36,1)}
.qa[open-state="1"] i::after{transform:translate(-50%,-50%) scaleY(0)}
.answer{overflow:hidden;max-height:0;transition:max-height .3s cubic-bezier(.22,1,.36,1)}
.answer p{padding:0 22px 22px;max-width:52ch;opacity:.78}

/* ---------- ACT 7 close ---------- */

.close{
  position:relative;z-index:3;
  width:100%;height:100%;
  display:flex;flex-direction:column;justify-content:flex-end;
  gap:clamp(16px,2.4vw,26px);
}
.close-line{
  font-size:clamp(40px,9vw,132px);
  line-height:.85;letter-spacing:-.0237em;
}
.close .btn{margin-top:clamp(4px,1.4vw,12px);align-self:flex-start}
.contact{display:flex;gap:12px;margin-top:2px}
.ic{
  display:grid;place-items:center;
  width:52px;height:52px;
  background:var(--paper);border:var(--edge);border-radius:50%;
  box-shadow:var(--hard);
  transition:background .18s linear,transform .18s cubic-bezier(.22,1,.36,1);
}
.ic:hover{background:var(--yellow);transform:translateY(-3px)}
.ic svg{width:22px;height:22px;fill:var(--ink)}

.wordmark{
  font-weight:800;
  font-size:clamp(52px,17.2vw,248px);
  line-height:.78;letter-spacing:-.03em;
  color:transparent;
  -webkit-text-stroke:1px var(--ink);
  white-space:nowrap;
  margin-bottom:-.04em;
  pointer-events:none;
}
.legal{
  display:flex;justify-content:space-between;gap:16px;
  font-size:18px;line-height:23.4px;text-transform:uppercase;letter-spacing:.03em;
}

/* ---------- reveal (non-scrub sections) ---------- */

.rv{opacity:0;transform:translateY(26px)}

/* ---------- responsive ---------- */

@media (max-width:980px){
  .week-wrap,.faq-wrap{grid-template-columns:1fr;gap:28px;align-items:start}
  .tiles{grid-template-columns:repeat(4,1fr)}
  .tile:nth-child(7n){border-right:var(--edge)}
  .tile:nth-child(4n){border-right:0}
  .tile:nth-last-child(-n+7){border-bottom:var(--edge)}
  .tile:nth-last-child(-n+2){border-bottom:0}
  .hero-foot{position:static;flex-direction:column;align-items:flex-start;gap:22px}
  .hero{justify-content:space-between;padding-block:6px 0}
  .wordmark{bottom:clamp(88px,16vw,110px)}
}

@media (max-width:720px){
  :root{--inset:18px}
  body{font-size:18px;line-height:24px}
  .support{font-size:18px;line-height:24px}
  .chip{display:none}
  .topbar{justify-content:flex-start}
  .floor{gap:0;padding:4px;bottom:12px}
  .floor a{padding:9px 11px;font-size:14px}
  .floor a[data-goto="faq"]{display:none}
  .floor a.cta{padding:9px 14px;font-size:14px}
  .stage{padding:64px var(--inset) 74px}
  .field{width:94vw;height:52vh}
  .cell{font-size:15px;padding:5px 6px}
  .tiles{grid-template-columns:repeat(2,1fr)}
  .tile:nth-child(4n){border-right:var(--edge)}
  .tile:nth-child(2n){border-right:0}
  .tile:nth-last-child(-n+2){border-bottom:0}
  .tile{min-height:112px;padding:12px 12px 14px}
  .tile .nm,.tile .chk,.tile .idx{font-size:15px;line-height:20px}
  .day{min-height:50px;padding:6px 7px}
  .day .d,.day .s{font-size:13px;line-height:17px}
  .day .mark{width:10px;height:10px}
  .plate-top,.plate-foot{font-size:14px;line-height:19px;padding:8px 10px}
  .plate-top span:nth-child(2){display:none}
  .qa button{font-size:18px;line-height:24px;padding:16px 16px;gap:14px}
  .answer p{padding:0 16px 18px}
  .msg{width:200px;padding:10px 12px}
  .msg .who,.msg .why{font-size:15px;line-height:20px}
  .close-line{font-size:clamp(38px,12vw,64px)}
  .contact{margin-top:16px}
  .ic{width:46px;height:46px}
  .legal{font-size:14px;line-height:19px;bottom:-6px}
  .wordmark{bottom:74px}
}

/* ---------- reduced motion: no sticky, no scrub, all readable ---------- */

@media (prefers-reduced-motion:reduce){
  .act[style*="--h"]{height:auto}
  .stage{position:static;height:auto;min-height:auto;padding-block:72px;overflow:visible}
  .hero-act,.flood-act{height:auto;min-height:100vh}
  .field{position:relative;left:auto;top:auto;transform:none;margin:32px auto 0;height:auto;
         display:grid;grid-template-columns:repeat(5,1fr);gap:0}
  .field .cell{position:static!important;transform:none!important;opacity:1!important;
               min-height:74px;margin:0}
  .lanes{position:relative;inset:auto;display:grid;gap:12px;margin-top:28px}
  .lanes .msg{position:static!important;transform:none!important;width:100%}
  .flood{position:relative;inset:auto;transform:none;height:auto;padding:64px 0}
  .takeover{position:static;transform:none!important;color:var(--paper);margin-top:-64px}
  .flood-act .stage{display:flex;flex-direction:column;justify-content:center;background:var(--ink-alt)}
  .flood-note{position:static;opacity:1!important;margin-top:34px;color:var(--paper)}
  .rv{opacity:1!important;transform:none!important}
  .hero-foot{position:static;margin-top:32px}
  .wordmark{position:static;margin-top:56px;font-size:clamp(48px,14vw,140px)}
  .legal{position:static;margin-top:24px}
  .close{height:auto}
  .cue{display:none}
}
