/* =====================================================================
   SECTIONS (services, works, pricing, footer)
   ===================================================================== */
:root { --paper: #dcdcd7; --teal-dk: #1f3134; --shadow: 6px 6px 0 var(--brown); }

.sec { position: relative; padding: 130px max(24px, calc((100% - 1180px) / 2)) 120px; }
.sec-paper { background: var(--paper); color: var(--teal-dk); }
.sec-teal { background: var(--teal-dk); color: var(--cream); }
.sec-clay {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, var(--terra-hi), transparent 70%),
    linear-gradient(180deg, var(--terra), var(--terra-lo));
}
.sec-head { margin-bottom: 56px; max-width: 760px; }
.sec-head .eyebrow { opacity: .8; }
.sec-head .num { display: inline-grid; place-items: center; min-width: 28px; height: 20px; padding: 0 5px; border-radius: 5px; font-weight: 700; }
.sec-paper .num { background: var(--teal); color: var(--paper); }
.sec-teal .num, .sec-clay .num { background: var(--cream); color: var(--teal-dk); }
.sec-head h2 { font-size: clamp(42px, 6.4vw, 96px); font-weight: 900; font-stretch: 66%; line-height: .95; letter-spacing: .005em; }
.sec-head h2 em { color: var(--lime); text-shadow: 4px 4px 0 var(--brown); }
.sec-paper .sec-head h2 em { color: var(--teal); text-shadow: 4px 4px 0 rgba(74, 59, 46, .3); }
.sec-lead { margin-top: 18px; font-size: 17px; line-height: 1.6; opacity: .78; max-width: 52ch; }

/* ---------- services bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.card {
  grid-column: span 3; position: relative; overflow: hidden; border-radius: 26px; padding: 28px;
  box-shadow: var(--shadow); border: 2px solid var(--brown);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 300px;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1.4), box-shadow .35s;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--brown); }
.card { min-height: 330px; }
.card.big { grid-column: span 6; min-height: 340px; flex-direction: row; align-items: center; gap: 32px; justify-content: flex-start; }
.card h3 { font-size: 24px; font-weight: 800; font-stretch: 72%; line-height: 1.05; letter-spacing: .01em; }
.card.big h3 { font-size: 32px; }
.card p { font-size: 14.5px; line-height: 1.55; opacity: .8; }
.card-txt { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.chip { align-self: flex-start; font-size: 10px; padding: 4px 9px; border-radius: 999px; border: 1.5px solid currentColor; opacity: .7; }
.c-teal { background: var(--teal); color: var(--cream); }
.c-cream { background: #f1ecd0; color: var(--teal-dk); }
.c-clay { background: var(--terra); color: var(--cream); }
.c-dark { background: var(--teal-dk); color: var(--cream); }

/* widget: phone with word-by-word captions */
.w-phone { flex: none; width: 130px; height: 240px; border-radius: 22px; background: var(--teal-dk); padding: 7px; border: 2px solid var(--brown); transform: rotate(-6deg); box-shadow: 5px 5px 0 rgba(0, 0, 0, .25); }
.ph-screen { position: relative; height: 100%; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #c08a72, #5f4537); display: flex; align-items: center; justify-content: center; }
.ph-screen::before { content: ''; position: absolute; left: 50%; top: 26%; width: 60px; height: 60px; margin-left: -30px; border-radius: 50%; background: rgba(241, 236, 208, .35); box-shadow: 0 66px 0 28px rgba(241, 236, 208, .2); }
.ph-cap { position: relative; z-index: 1; margin-top: 90px; padding: 0 8px; text-align: center; font-size: 13px; font-weight: 800; font-stretch: 75%; line-height: 1.25; }
.ph-cap i { font-style: normal; color: rgba(241, 236, 208, .4); animation: word 3.2s infinite; }
.ph-cap i:nth-child(2) { animation-delay: .4s; } .ph-cap i:nth-child(3) { animation-delay: .8s; } .ph-cap i:nth-child(4) { animation-delay: 1.2s; }
@keyframes word { 0%, 8% { color: rgba(241, 236, 208, .4); } 12%, 70% { color: var(--lime); text-shadow: 2px 2px 0 var(--brown); } 80%, 100% { color: rgba(241, 236, 208, .4); } }
.ph-bar { position: absolute; left: 8px; right: 8px; top: 8px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.ph-bar::after { content: ''; position: absolute; inset: 0; background: var(--lime); transform-origin: left; animation: bar 3.2s linear infinite; }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* widget: timeline */
.w-tl { position: relative; flex: none; width: 46%; max-width: 300px; padding: 16px; border-radius: 16px; background: var(--teal-dk); border: 2px solid var(--brown); display: grid; gap: 7px; box-shadow: 5px 5px 0 rgba(0, 0, 0, .18); }
.tl-row { position: relative; height: 22px; }
.tl-row i { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: var(--terra-hi); border: 1px solid rgba(255, 255, 255, .15); }
.tl-row:first-child i { background: var(--lime); }
.tl-row.wave { background: repeating-linear-gradient(90deg, rgba(226, 223, 174, .6) 0 2px, transparent 2px 5px); border-radius: 4px; -webkit-mask: linear-gradient(0deg, transparent 15%, #000 50%, transparent 85%); mask: linear-gradient(0deg, transparent 15%, #000 50%, transparent 85%); }
.tl-head { position: absolute; top: 8px; bottom: 8px; left: 16px; width: 2px; background: var(--red); box-shadow: 0 0 8px var(--red); animation: tlh 4s linear infinite; }
@keyframes tlh { to { left: calc(100% - 18px); } }

/* widget: REC */
.w-rec { position: absolute; top: 26px; left: 28px; right: 28px; display: flex; align-items: center; gap: 8px; font-size: 11px; }
.rec-tc { margin-left: auto; font-weight: 400; opacity: .85; }
.c-clay::before { content: ''; position: absolute; top: 56px; left: 28px; right: 28px; height: 96px; border: 1.5px solid rgba(241, 236, 208, .4); border-radius: 12px;
  background: linear-gradient(rgba(241, 236, 208, .4), rgba(241, 236, 208, .4)) center / 1.5px 30% no-repeat, linear-gradient(rgba(241, 236, 208, .4), rgba(241, 236, 208, .4)) center / 30px 1.5px no-repeat; }

/* widget: motion shapes */
.w-motion { position: absolute; top: 30px; left: 28px; right: 28px; height: 120px; }
.w-motion i { position: absolute; bottom: 0; width: 44px; height: 44px; background: var(--lime); border: 2px solid var(--brown); animation: hop 1.8s cubic-bezier(.3, 0, .3, 1) infinite; }
.w-motion i:nth-child(1) { left: 0; border-radius: 50%; }
.w-motion i:nth-child(2) { left: 70px; border-radius: 10px; background: var(--terra-hi); animation-delay: .2s; }
.w-motion i:nth-child(3) { left: 140px; border-radius: 50% 50% 0 50%; background: var(--cream); animation-delay: .4s; }
@keyframes hop { 0%, 100% { transform: translateY(0) rotate(0); } 40%, 60% { transform: translateY(-62px) rotate(90deg); } }

/* widget: before/after grade */
.w-grade { position: absolute; top: 26px; left: 28px; right: 28px; height: 130px; border-radius: 14px; overflow: hidden; border: 2px solid var(--brown); background: linear-gradient(120deg, #7f817c, #b7b7b0); }
.w-grade::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, #2c4a4e, #c08a72 60%, #e2dfae); animation: wipe 4s ease-in-out infinite; }
.w-grade i { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: #fff; animation: wipeLine 4s ease-in-out infinite; }
.w-grade span { position: absolute; bottom: 8px; font-size: 9px; color: #fff; z-index: 1; }
.w-grade span:first-child { left: 10px; } .w-grade span:nth-child(2) { right: 10px; }
@keyframes wipe { 0%, 100% { clip-path: inset(0 0 0 70%); } 50% { clip-path: inset(0 0 0 25%); } }
@keyframes wipeLine { 0%, 100% { left: 70%; } 50% { left: 25%; } }

/* widget: waveform */
.w-wave { position: absolute; top: 30px; left: 28px; right: 28px; height: 110px; display: flex; align-items: center; gap: 6px; }
.w-wave i { flex: 1; height: 30%; border-radius: 6px; background: var(--lime); animation: eq 1.1s ease-in-out infinite alternate; }
.w-wave i:nth-child(3n) { background: var(--terra-hi); }
.w-wave i:nth-child(2) { animation-delay: -.2s; } .w-wave i:nth-child(3) { animation-delay: -.5s; } .w-wave i:nth-child(4) { animation-delay: -.8s; }
.w-wave i:nth-child(5) { animation-delay: -.3s; } .w-wave i:nth-child(6) { animation-delay: -.9s; } .w-wave i:nth-child(7) { animation-delay: -.1s; }
.w-wave i:nth-child(8) { animation-delay: -.6s; } .w-wave i:nth-child(9) { animation-delay: -.4s; } .w-wave i:nth-child(10) { animation-delay: -.7s; }
.w-wave i:nth-child(11) { animation-delay: -.25s; } .w-wave i:nth-child(12) { animation-delay: -.55s; }
@keyframes eq { to { height: 95%; } }

/* ---------- works ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.filters button { padding: 9px 18px; border-radius: 999px; font-size: 14px; border: 1.5px solid rgba(241, 236, 208, .25); transition: all .2s; }
.filters button:hover { border-color: var(--cream); }
.filters button.on { background: var(--lime); color: var(--teal-dk); border-color: var(--lime); font-weight: 700; }
.works { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.work { position: relative; cursor: pointer; }
.work.wide { grid-column: span 2; }
.work .frame {
  position: relative; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden;
  background: var(--teal); border: 2px solid var(--brown); box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1.4), box-shadow .35s;
}
.work.wide .frame { aspect-ratio: auto; height: 100%; min-height: 260px; }
.work:hover .frame { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--brown); }
.work video, .work .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work .poster { display: flex; align-items: center; justify-content: center; }
.work .poster b { font-family: var(--script); font-weight: 400; font-size: 34px; color: rgba(241, 236, 208, .18); transform: rotate(-8deg); }
.work .play {
  position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%;
  background: var(--lime); color: var(--teal-dk); display: grid; place-items: center; border: 2px solid var(--brown); box-shadow: 3px 3px 0 var(--brown);
  transition: transform .3s, opacity .3s;
}
.work .play::before { content: ''; margin-left: 4px; border-left: 16px solid currentColor; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.work:hover .play { transform: scale(1.1); }
.work.playing .play { opacity: 0; transform: scale(.6); }
.work .meta { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; pointer-events: none; }
.work .meta h4 { font-size: 15px; font-weight: 700; line-height: 1.2; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.work .meta span { font-size: 9.5px; padding: 3px 8px; border-radius: 999px; background: rgba(31, 49, 52, .85); white-space: nowrap; }
.work .scan2 { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px); pointer-events: none; }
.work.hide { display: none; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 34px 30px 30px; border-radius: 26px;
  background: #f1ecd0; color: var(--teal-dk); border: 2px solid var(--brown); box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1.4), box-shadow .35s;
}
.plan:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--brown); }
.plan.hot { background: var(--teal); color: var(--cream); }
.plan-name { font-size: 12px; opacity: .7; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; min-height: 56px; }
.price b { font-family: var(--display); font-weight: 700; font-size: 52px; letter-spacing: -.03em; line-height: 1; }
.price b[data-caps] { font-family: var(--geo); font-weight: 900; font-stretch: 62.5%; font-size: clamp(28px, 7.5vw, 40px); letter-spacing: 0; }
.plan { min-width: 0; }
.price span { font-size: 15px; opacity: .65; }
.plan-sub { font-size: 14px; opacity: .72; margin-bottom: 14px; }
.plan ul { list-style: none; display: grid; gap: 10px; padding: 18px 0 24px; border-top: 1.5px dashed rgba(74, 59, 46, .3); margin-bottom: auto; }
.plan.hot ul { border-top-color: rgba(241, 236, 208, .25); }
.plan li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.4; }
.plan li::before { content: '✓'; flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--teal); color: var(--cream); }
.plan.hot li::before { background: var(--lime); color: var(--teal-dk); }
.plan-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 999px;
  background: var(--teal-dk); color: var(--cream); font-weight: 800; font-stretch: 80%; letter-spacing: .05em; font-size: 14px;
  border: 2px solid var(--brown); box-shadow: 3px 3px 0 var(--brown); transition: transform .2s, box-shadow .2s;
}
.plan-btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--brown); }
.plan-btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--brown); }
.plan.hot .plan-btn { background: var(--lime); color: var(--teal-dk); }
.sticker {
  position: absolute; top: -22px; right: -14px; padding: 10px 14px; border-radius: 14px; transform: rotate(8deg);
  background: var(--lime); color: var(--teal-dk); font-size: 11px; font-weight: 900; font-stretch: 75%; line-height: 1.15; text-align: center; letter-spacing: .04em;
  border: 2px solid var(--brown); box-shadow: 3px 3px 0 var(--brown);
}
.oneoff {
  margin-top: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 22px 26px; border-radius: 22px; border: 2px dashed rgba(241, 236, 208, .5);
}
.oneoff p { font-size: 16px; } .oneoff b { font-weight: 800; font-stretch: 75%; letter-spacing: .03em; } .oneoff span { opacity: .85; }

/* ---------- footer ---------- */
.foot { position: relative; background: var(--teal-dk); color: var(--cream); padding: 90px max(24px, calc((100% - 1180px) / 2)) 40px; overflow: hidden; }
.foot-word { font-family: var(--script); font-size: clamp(56px, 20vw, 320px); line-height: 1.05; color: var(--lime); text-shadow: 6px 6px 0 var(--brown); text-align: center; margin-bottom: 20px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(241, 236, 208, .15); }
.foot-row ul { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; }
.foot-row a { opacity: .75; transition: opacity .2s; } .foot-row a:hover { opacity: 1; }
.foot-row .mono { opacity: .55; font-size: 10.5px; }
.foot-cta { position: absolute; top: 30px; right: max(24px, calc((100% - 1180px) / 2)); background: var(--lime); color: var(--teal-dk); }
.foot-cta .arr { color: var(--teal-dk); }
.foot-cta:hover { background: var(--cream); }

/* reveal: hidden state only when JS runs */
.js .reveal { opacity: 0; transform: translateY(40px); }

@media (max-width: 1100px) {
  .card { grid-column: span 6; }
  .card.big { grid-column: span 12; }
}
@media (max-width: 860px) {
  .sec { padding: 100px 20px 90px; }
  .sec-head { margin-bottom: 40px; }
  .bento { grid-template-columns: 1fr; gap: 18px; }
  .card, .card.big { grid-column: auto; }
  .card.big { flex-direction: column; align-items: flex-start; min-height: 0; }
  .card { min-height: 270px; }
  .w-tl { width: 100%; max-width: none; }
  .works { grid-template-columns: 1fr 1fr; gap: 14px; }
  .work.wide { grid-column: span 2; }
  .work.wide .frame { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
  .work .meta h4 { font-size: 13px; }
  .plans { grid-template-columns: 1fr; gap: 30px; }
  .foot-cta { position: static; margin-top: 26px; }
}
@media (max-width: 520px) { .logo small { display: none; } }
.ph-cap i { display: block; }
.ph-cap { font-size: 14px; }

/* ---------- retro VHS thumbnails ---------- */
.work .poster { filter: sepia(.28) saturate(.9) contrast(1.08) brightness(.95); transition: filter .4s; }
.work video { opacity: 0; transition: opacity .35s; }
.work.playing video { opacity: 1; }
.work .tint { /* duotone wash in logo colours + vignette */
  position: absolute; inset: 0; pointer-events: none; transition: opacity .4s;
  background:
    radial-gradient(ellipse 90% 70% at 50% 45%, transparent 55%, rgba(20, 14, 10, .55) 100%),
    linear-gradient(180deg, rgba(44, 74, 78, .35), transparent 35%, transparent 60%, rgba(168, 112, 90, .4));
  mix-blend-mode: multiply;
}
.work.playing .tint { opacity: .35; }
.work .track { /* VHS tracking line that rolls on hover */
  position: absolute; left: 0; right: 0; top: -12%; height: 10%; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .14) 40%, rgba(255, 255, 255, .28) 50%, rgba(255, 255, 255, .14) 60%, transparent);
  mix-blend-mode: screen;
}
.work:hover .track { opacity: 1; animation: track 2.4s linear infinite; }
@keyframes track { to { top: 105%; } }
.work .no {
  position: absolute; top: 10px; left: 14px; font-family: var(--script); font-size: 42px; line-height: 1;
  color: var(--lime); text-shadow: 3px 3px 0 var(--brown); pointer-events: none;
}
.work .osd { position: absolute; top: 16px; right: 14px; display: flex; align-items: center; gap: 6px; font-size: 10px; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); pointer-events: none; }
.work .osd .dot { width: 0; height: 0; border-left: 7px solid var(--lime); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.work.playing .osd .dot { animation: blink 1s steps(2) infinite; }
.work .play { top: 46%; }
.work .snd {
  position: absolute; right: 12px; bottom: 98px; z-index: 2; padding: 5px 9px; border-radius: 999px; font-size: 9px;
  background: rgba(31, 49, 52, .85); color: var(--cream); opacity: 0; transition: opacity .25s;
}
.work.playing .snd { opacity: 1; }
.work.loud .snd { background: var(--lime); color: var(--teal-dk); }
.work .label { /* the cassette sticker */
  position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 10px 12px 9px; border-radius: 8px;
  background: #f1ecd0; color: var(--teal-dk); border: 2px solid var(--brown); box-shadow: 3px 3px 0 var(--brown);
  transform: rotate(-1.5deg); transition: transform .35s cubic-bezier(.2, .8, .2, 1.4);
}
.work .label::before { /* two colour stripes like a VHS label */
  content: ''; display: block; height: 5px; margin: -4px -6px 7px; border-radius: 3px;
  background: linear-gradient(90deg, var(--s1) 0 62%, var(--s2) 62% 100%);
}
.work:hover .label { transform: rotate(0) translateY(-2px); }
.work .label h4 { font-size: 15px; font-weight: 800; font-stretch: 78%; line-height: 1.15; text-shadow: none; }
.work .label span { display: block; margin-top: 3px; font-size: 9px; opacity: .6; }
.work .meta { display: none; }
@media (max-width: 860px) {
  .work .no { font-size: 30px; }
  .work .label h4 { font-size: 13px; }
  .work .snd { bottom: 84px; }
}
