/* Conistra, third direction: the page is a film.
   Six scenes in six colours, headlines set like the subtitles of our films (one box per word),
   a playhead at the bottom that follows the scroll. */
:root { --ink: #101014; --paper: #f4f1ea; --sun: #ffd23f; --blue: #2433e0; --green: #0c6b4a; --hot: #ff4326; --pad: clamp(18px, 5vw, 80px); }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font: 400 18px/1.5 'Archivo', system-ui, sans-serif; color: var(--ink); background: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
video { display: block; width: 100%; height: 100%; object-fit: cover; }
ul, ol { list-style: none; }

/* top bar and player */
.bar, .player { position: fixed; left: 0; right: 0; z-index: 40; display: flex; align-items: center; gap: 18px; padding: 0 var(--pad); background: var(--ink); color: var(--paper); font: 500 12.5px 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .05em; }
.bar { top: 0; height: 50px; justify-content: space-between; }
.logo { font: 900 21px 'Archivo', sans-serif; font-stretch: 118%; letter-spacing: -.03em; text-transform: none; }
.rec { display: flex; align-items: center; gap: 9px; color: #a9a59c; }
.rec i { width: 9px; height: 9px; border-radius: 50%; background: var(--hot); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.go { padding: 7px 14px; border-radius: 999px; background: var(--sun); color: var(--ink); font-weight: 500; }
.go:hover { background: var(--paper); }
.player { bottom: 0; height: 54px; }
.tc { font-variant-numeric: tabular-nums; color: #a9a59c; }
.scrub { position: relative; flex: 1; height: 4px; margin: 0 14px; background: #ffffff2e; border-radius: 4px; }
.fill { position: absolute; inset: 0 auto 0 0; background: var(--hot); border-radius: 4px; }
.fill::after { content: ''; position: absolute; right: -7px; top: -5px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); }
.scrub a { position: absolute; top: -22px; transform: translateX(-50%); font-size: 10.5px; color: #a9a59c; white-space: nowrap; }
.scrub a:first-of-type { transform: none; } .scrub a:last-of-type { transform: translateX(-100%); }
.scrub a:hover { color: var(--paper); }

/* scenes */
.scene { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 104px var(--pad) 118px; }
.slate { position: absolute; left: var(--pad); top: 70px; font: 500 12.5px 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.s1 { background: var(--sun); } .s2 { background: var(--paper); } .s3 { background: var(--blue); color: #fff; }
.s4 { background: var(--paper); } .s5 { background: var(--green); color: #fff; } .s6 { background: var(--hot); }

/* headlines set like subtitles */
.subs { display: flex; flex-direction: column; align-items: flex-start; gap: .08em; font-weight: 900; font-stretch: 112%; letter-spacing: -.035em; line-height: 1; }
h1.subs { font-size: clamp(42px, 7.4vw, 124px); }
h2.subs { font-size: clamp(36px, 6.2vw, 104px); }
.line { display: flex; flex-wrap: wrap; }
.w { display: inline-block; padding: .09em .2em .13em; margin-right: -1px; background: var(--ink); color: #fff; opacity: 0; transform: translateY(.35em) scale(.96); transition: opacity .35s, transform .45s cubic-bezier(.2,.9,.2,1.2); }
.in .w { opacity: 1; transform: none; }
.w.em { background: var(--hot); }
.s3 .w { background: #fff; color: var(--ink); } .s3 .w.em { background: var(--sun); }
.s5 .w { background: var(--sun); color: var(--ink); }
.s6 .w { background: var(--ink); } .s6 .w.em { background: var(--paper); color: var(--ink); }
.lede { max-width: 31em; margin-top: 30px; font-size: clamp(18px, 1.55vw, 23px); line-height: 1.42; }
.foot { margin-top: 34px; max-width: 60em; font: 400 13px/1.6 'DM Mono', monospace; opacity: .75; }

/* scene 1 */
.s1-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(24px, 5vw, 90px); align-items: center; }
.cta { display: inline-flex; align-items: center; gap: 16px; margin-top: 34px; padding: 6px 6px 6px 26px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 19px; transition: transform .2s; }
.cta b { padding: 12px 20px; border-radius: 999px; background: var(--hot); font: 900 21px 'Archivo', sans-serif; }
.cta:hover { transform: translateX(6px); }
.frame { aspect-ratio: 9/16; border-radius: 22px; overflow: hidden; background: #000; border: 5px solid var(--ink); cursor: pointer; }
.anatomy { position: relative; width: min(100%, 360px); justify-self: center; }
.anatomy .frame { box-shadow: 14px 14px 0 var(--ink); }
.tag { position: absolute; padding: 7px 12px; background: #fff; border: 2px solid var(--ink); border-radius: 999px; font: 500 12px 'DM Mono', monospace; white-space: nowrap; box-shadow: 3px 3px 0 var(--ink); animation: bob 5s ease-in-out infinite; }
.t1 { left: -46%; top: 44%; } .t2 { right: -34%; top: 14%; animation-delay: -1.2s; } .t3 { right: -30%; top: 66%; animation-delay: -2.4s; } .t4 { left: -38%; top: 84%; animation-delay: -3.6s; }
@keyframes bob { 50% { transform: translateY(-7px); } }

/* scene 2: a strip of film */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.6vw, 40px); margin-top: 46px; padding: 34px clamp(14px, 2.6vw, 40px); background: var(--ink); border-radius: 10px; color: var(--paper);
  background-image: radial-gradient(circle, var(--paper) 5px, transparent 5.5px), radial-gradient(circle, var(--paper) 5px, transparent 5.5px); background-size: 34px 20px; background-repeat: repeat-x; background-position: 8px 6px, 8px calc(100% - 6px); }
.strip .frame { border: 0; border-radius: 8px; transition: transform .3s; }
.strip figure:hover .frame { transform: scale(1.025); }
.strip figcaption { margin-top: 14px; font: 400 12.5px/1.5 'DM Mono', monospace; color: #bdb8ad; }
.strip b { display: block; margin-bottom: 4px; font: 800 19px/1.15 'Archivo', sans-serif; color: var(--paper); }

/* scene 3: the run from brief to film */
.s3-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 100px); align-items: start; margin-top: 16px; }
.s3-grid .lede { margin-top: 30px; }
.run { margin-top: 30px; }
.bubble { padding: 22px 24px; border-radius: 22px 22px 22px 4px; background: #fff; color: var(--ink); font-weight: 600; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.35; }
.track { position: relative; height: 6px; margin: 44px 6px 0; border-radius: 6px; background: #ffffff40; }
.track::before { content: ''; position: absolute; inset: 0; border-radius: 6px; background: var(--sun); transform-origin: left; transform: scaleX(0); transition: transform 2.2s .4s cubic-bezier(.3,.7,.2,1); }
.in .track::before { transform: none; }
.track i { position: absolute; left: var(--at); top: -5px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.run ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; font-size: 15px; line-height: 1.3; }
.run b { display: block; font: 500 13px 'DM Mono', monospace; color: var(--sun); margin-bottom: 4px; }

/* scene 4: stamps */
.stamps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 60px); margin-top: 60px; }
.stamp { display: inline-block; padding: 8px 18px; border: 4px solid var(--hot); border-radius: 8px; color: var(--hot); font: 900 clamp(20px, 2.3vw, 34px) 'Archivo', sans-serif; font-stretch: 120%; text-transform: uppercase; letter-spacing: .02em; transform: rotate(-7deg) scale(1.6); opacity: 0; transition: transform .35s cubic-bezier(.2,1.5,.4,1), opacity .2s; }
.stamp.r2 { color: var(--blue); border-color: var(--blue); transition-delay: .25s; }
.stamp.r3 { color: var(--green); border-color: var(--green); transition-delay: .5s; }
.in .stamp { transform: rotate(-7deg); opacity: 1; } .in .stamp.r2 { transform: rotate(4deg); } .in .stamp.r3 { transform: rotate(-3deg); }
.stamps h3 { margin-top: 30px; font-size: clamp(22px, 2.1vw, 30px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stamps p { margin-top: 10px; color: #55524b; }

/* scene 5: tickets */
.tickets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
.ticket { position: relative; display: flex; flex-direction: column; padding: 28px 28px 24px; color: var(--ink); background: var(--paper);
  -webkit-mask: radial-gradient(circle 14px at 0 68%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 14px at 100% 68%, #0000 97%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 14px at 0 68%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 14px at 100% 68%, #0000 97%, #000) right / 51% 100% no-repeat; transition: transform .25s; }
.ticket:hover { transform: rotate(-1.5deg) translateY(-6px); }
.ticket.hot { background: var(--sun); }
.ticket small { font: 500 12px 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.ticket h3 { margin-top: 6px; font-size: clamp(28px, 3vw, 44px); font-weight: 900; font-stretch: 112%; letter-spacing: -.035em; line-height: 1; }
.ticket p { margin: 12px 0 0; min-height: 4.4em; font-size: 16px; }
.ticket b { margin-top: 30px; padding-top: 18px; border-top: 2px dashed #10101455; font-size: clamp(30px, 3.4vw, 50px); font-weight: 900; letter-spacing: -.03em; line-height: 1; }

/* scene 6 */
.mail { display: inline-block; margin-top: 34px; font-size: clamp(26px, 5.4vw, 88px); font-weight: 900; font-stretch: 112%; letter-spacing: -.04em; line-height: 1; border-bottom: clamp(3px, .45vw, 6px) solid var(--ink); }
.mail:hover { background: var(--ink); color: var(--hot); }

@media (max-width: 860px) {
  .rec { display: none; }
  .scene { padding-top: 96px; }
  .s1-grid, .s3-grid, .stamps, .tickets { grid-template-columns: 1fr; }
  .anatomy { width: min(74%, 300px); margin-top: 20px; }
  .tag { font-size: 10.5px; padding: 5px 9px; }
  .t1 { left: -16%; } .t2 { right: -16%; } .t3 { right: -14%; } .t4 { left: -12%; }
  .strip { grid-template-columns: repeat(3, 68vw); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--pad)); border-radius: 0; }
  .strip figure { scroll-snap-align: center; }
  .run ol { grid-template-columns: 1fr 1fr; }
  .scrub a { display: none; }
  .ticket p { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .w, .stamp, .track::before { transition: none; } .tag, .rec i { animation: none; } }
