/* Home hero: "Ideas, built properly." */


.hx {
  --g: #2FB06C; --g-soft: #DDF4E6;
  --y: #F4C542; --y-soft: #FFF3C9;
  --b: #3E7BF2; --b-soft: #E2EBFF;
  background: #F1F1EF;
}
.hx-inner { position: relative; width: 100%; max-width: 1200px; margin: 0 auto; padding: 128px var(--gutter) 56px; display: flex; flex-direction: column; align-items: center; }

.hx-title { margin: 0; width: 100%; font-family: "Archivo Hero", var(--sans); font-weight: 900; font-stretch: 62%; font-size: clamp(64px, 9.6vw, 148px); line-height: .84; letter-spacing: -.012em; color: var(--ink); position: relative; z-index: 2; }
.hx-line { display: flex; align-items: center; gap: .14em; white-space: nowrap; }
.hx-mask { display: inline-block; flex-shrink: 0; overflow: hidden; padding: .04em .02em .06em; margin: -.04em -.02em -.06em; }
.hx-word { display: inline-block; }
.hx-l1 { margin-left: 36%; }
.hx-l2 { margin-left: 30%; }
.hx-l3 { margin-left: 15%; }
.hx-o { color: var(--orange); }

/* Switch next to "built": grey when off, green when the work is built */
.hx-switch { position: relative; width: .98em; height: .5em; border-radius: 1em; flex-shrink: 0; background: linear-gradient(180deg, #D9D9D6, #ECECEA); box-shadow: inset 0 .03em .06em rgba(0,0,0,.25), 0 .05em .12em rgba(255,255,255,.9), 0 .12em .24em -.06em rgba(10,10,10,.25); transition: background .45s var(--ease), box-shadow .45s var(--ease); }
.hx-switch i { position: absolute; top: .05em; left: .05em; width: .4em; height: .4em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #E9E9E7 70%); box-shadow: 0 .04em .1em rgba(10,10,10,.35); transition: transform .45s var(--ease); }
.hx.built .hx-switch { background: linear-gradient(180deg, #4CCB86, var(--g)); box-shadow: inset 0 .03em .06em rgba(0,80,40,.45), 0 .12em .3em -.04em rgba(47,176,108,.55); }
.hx.built .hx-switch i { transform: translateX(.48em); }

/* ---------- Left: what the client brings ---------- */
.hx-in { position: absolute; left: max(1%, calc(50% - 600px)); top: 150px; width: 300px; height: 70px; z-index: 1; font-family: var(--sans); }
.hx-in > div { position: absolute; box-shadow: 0 18px 30px -18px rgba(10,10,10,.45); }
.hx-in small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .55; margin-bottom: 6px; }
.i-note { left: 18px; top: 8px; width: 150px; height: 132px; padding: 14px 14px; background: linear-gradient(170deg, #FFE48A, var(--y)); border-radius: 6px 6px 18px 6px; transform: rotate(-7deg); color: #3A2E05; font-weight: 700; font-size: 17px; line-height: 1.2; letter-spacing: -.01em; }
.i-note::after { content: ""; position: absolute; top: -9px; left: 50%; width: 54px; height: 18px; margin-left: -27px; background: rgba(255,255,255,.55); border-radius: 3px; transform: rotate(3deg); }
.i-sketch { left: 170px; top: 40px; width: 150px; height: 112px; padding: 12px; background: #fff; border-radius: 14px; transform: rotate(6deg); color: var(--b); }
.i-sketch i { position: absolute; border: 1.5px dashed var(--b); border-radius: 4px; opacity: .8; }
.i-sketch .s1 { left: 12px; right: 12px; top: 32px; height: 26px; }
.i-sketch .s2 { left: 12px; top: 66px; width: 54px; height: 34px; }
.i-sketch .s3 { left: 74px; top: 66px; width: 64px; height: 14px; }
.i-sketch .s4 { left: 74px; top: 86px; width: 40px; height: 14px; }
.i-chat { left: 30px; top: 0; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; background: var(--g-soft); border: 1px solid rgba(47,176,108,.25); border-radius: 20px 20px 20px 6px; transform: rotate(-3deg); font-weight: 600; font-size: 15px; color: #11512F; white-space: nowrap; }
.i-chat .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--g); color: #fff; font-size: 13px; font-weight: 800; }

/* ---------- Right: what we deliver ---------- */
.hx-out { position: absolute; right: max(1%, calc(50% - 600px)); top: 150px; width: 400px; height: 360px; z-index: 1; font-family: var(--sans); }
.o { position: absolute; border-radius: 16px; transition: background-color .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease); }
.o .tag { position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); padding: 4px 10px; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 700; color: var(--ink); white-space: nowrap; box-shadow: 0 6px 14px -8px rgba(10,10,10,.4); z-index: 3; }
.o-body { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background: #fff; }
.o-body img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }

.o-web { left: 10px; top: 20px; width: 210px; height: 135px; background: #fff; box-shadow: 0 22px 36px -22px rgba(10,10,10,.5); border-radius: 14px; }

.o-app { left: 300px; top: 0; width: 92px; height: 176px; border-radius: 20px; background: #0A0A0A; padding: 3px; box-shadow: 0 24px 36px -20px rgba(10,10,10,.6); }
.o-app .o-body { inset: 3px; border-radius: 17px; background: #fff; }

.o-data { left: 45px; top: 185px; width: 175px; height: 114px; background: #0A0A0A; border-radius: 14px; box-shadow: 0 22px 36px -22px rgba(10,10,10,.5); }
.o-data .o-body { inset: 0; border-radius: 14px; background: #0A0A0A; }

.o-brand { left: 275px; top: 210px; width: 100px; height: 100px; border-radius: 18px; background: #F5F3EF; box-shadow: 0 22px 36px -18px rgba(242,78,16,.4); }
.o-brand .o-body { inset: 0; border-radius: 18px; }


.o-live { left: 150px; top: 322px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 14px 24px -12px rgba(10,10,10,.5); z-index: 2; }
.o-live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--g); box-shadow: 0 0 0 4px rgba(47,176,108,.25); }

/* Before the switch: outputs are grey outlines waiting to be built */
.hx:not(.built) .o { background: #E8E8E5 !important; box-shadow: inset 0 0 0 1.5px #D2D2CE !important; }
.hx:not(.built) .o > *:not(.tag) { opacity: 0; }
.hx:not(.built) .o .tag { background: #F1F1EF; color: #A2A29E; box-shadow: none; }
.hx:not(.built) .o-live { opacity: 0; }
.o > *, .o .tag { transition: opacity .4s var(--ease), background-color .4s var(--ease), color .4s var(--ease); }

/* Cursor that clicks the switch */
.hx-cursor { position: absolute; width: 46px; height: 46px; left: 0; top: 0; z-index: 4; filter: drop-shadow(0 8px 10px rgba(10,10,10,.35)); pointer-events: none; opacity: 0; }

/* Supporting line + button */
.hx-sub { margin: 34px 0 0; max-width: 46ch; text-align: center; color: var(--ink-2); font-size: clamp(15px, 1.15vw, 17px); line-height: 1.6; position: relative; z-index: 2; }
.hx-cta { position: relative; margin-top: 26px; display: inline-flex; align-items: center; justify-content: center; width: min(340px, 100%); height: 62px; border-radius: 18px; background: linear-gradient(180deg, #2A2A28, #0A0A0A); color: #fff; font-weight: 600; font-size: 17px; letter-spacing: -.01em; box-shadow: 0 0 0 5px rgba(10,10,10,.07), 0 18px 30px -16px rgba(10,10,10,.6), inset 0 1px 0 rgba(255,255,255,.14); overflow: hidden; transition: box-shadow .3s var(--ease); z-index: 2; }
.hx-cta:hover { box-shadow: 0 0 0 5px rgba(242,78,16,.18), 0 22px 34px -16px rgba(10,10,10,.6), inset 0 1px 0 rgba(255,255,255,.14); }
.hx-dot { position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FF9A6B, var(--orange) 60%, #C93A05); box-shadow: 0 6px 12px -4px rgba(242,78,16,.7); transition: transform .45s var(--ease); }
.hx-cta:hover .hx-dot { transform: scale(1.12); }
.hx-cta::after { content: ""; position: absolute; right: 31px; top: 31px; width: 10px; height: 10px; margin: -5px -5px 0 0; border-radius: 50%; background: rgba(242,78,16,.45); opacity: 0; pointer-events: none; }
.hx-cta.ping::after { animation: ctaPing .7s var(--ease); }
@keyframes ctaPing { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(40); opacity: 0; } }
.hx .marquee { background: #F1F1EF; }

@media (max-width: 1080px) {
  .hx-in { transform: scale(.72); transform-origin: left top; top: 100px; }
  .hx-out { transform: scale(.75); transform-origin: right top; top: 120px; }
  .hx-l1 { margin-left: 38%; }
  .hx-l2 { margin-left: 30%; }
  .hx-l3 { margin-left: 16%; }
}
/* Phones: ideas on top, headline, finished work below. --si / --so are set by main.js to fit the screen width */
@media (max-width: 900px) {
  .hx-inner { padding-top: 96px; padding-bottom: 40px; align-items: stretch; }
  .hx-in, .hx-out { position: relative; left: auto; right: auto; top: auto; flex-shrink: 0; transform-origin: left top; }
  .hx-in { order: 0; width: 300px; height: 64px; transform: scale(var(--si, .9)); margin: 0 0 calc(64px * (var(--si, .9) - 1)) calc((100% - 300px * var(--si, .9)) / 2); }
  .i-chat { left: 30px; top: 6px; }
  .hx-title { order: 1; margin-top: 10px; font-size: clamp(50px, 15.5vw, 84px); }
  .hx-line { justify-content: center; }
  .hx-l1, .hx-l2, .hx-l3 { margin-left: 0; }
  .hx-out { order: 2; width: 400px; height: 340px; margin: 20px 0 calc(340px * (var(--so, .72) - 1)) calc((100% - 400px * var(--so, .72)) / 2); transform: scale(var(--so, .72)); }
  .o-data { top: 178px; }
  .o-brand { top: 186px; }
  .o-live { top: 300px; }
  .hx-sub { order: 3; margin-top: 26px; text-align: center; align-self: center; }
  .hx-cta { order: 4; width: 100%; align-self: center; }
}
