/* Pavan G S portfolio. Direction: the pinned poster. One grey studio ground; colour comes only
   from his video and from the real screens of what he built. */
:root {
  --bg: #a8a8aa;
  --surface: #b4b4b6;
  --ink: #0e0e0e;
  --muted: #3a3a3c;
  --accent: #1f5c49;
  --accent-ink: #ffffff;
  --dark: #1b1b1c;
  --dark-ink: #ffffff;
  --clay: #7a3018;          /* the studio backdrop of his video */
  --clay-ink: #f2f0eb;      /* his sweater */

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);

  --m: clamp(16px, 2.2vw, 32px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --font: "Schibsted Grotesk", "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--step-body)/1.45 var(--font); letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
h1, h2, p, ul, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: var(--m); top: -80px; z-index: 50; background: var(--ink); color: var(--bg); padding: 12px 18px; }
.skip:focus { top: 12px; }
section[id], div[id] { scroll-margin-top: 0; }

/* ---------- shared pieces ---------- */
.h-head { font-size: var(--step-head); font-weight: 800; letter-spacing: -0.05em; line-height: 0.95; text-wrap: balance; }
.lead { font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.02em; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer;
  font: 600 var(--step-body)/1 var(--font); letter-spacing: -0.01em; text-decoration: none;
  padding: 16px 26px; border-radius: 999px; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn--light { background: var(--clay-ink); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2b2b2d; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #17483a; }
.btn__icon { width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.btn[aria-pressed="true"] .btn__icon { width: 11px; height: 13px; border: 0; background: currentColor; }

.link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; transition: text-underline-offset .2s var(--ease), opacity .2s; }
.link:hover { text-underline-offset: 9px; }

/* entrances: content is visible without script; with script it rises once */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; align-items: center; gap: var(--m);
  padding: 14px var(--m); color: var(--clay-ink);
  transition: transform .45s var(--ease), background-color .3s, color .3s;
}
.nav__mark { font-weight: 800; font-size: var(--step-lead); letter-spacing: -0.04em; text-decoration: none; margin-right: auto; }
.nav__links { display: flex; gap: clamp(14px, 2vw, 30px); }
.nav__links a { font-weight: 600; text-decoration: none; padding: 8px 0; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { padding: 12px 20px; }
.nav--solid { background: var(--bg); color: var(--ink); }
.nav--solid .nav__cta { background: var(--ink); color: #fff; }
.nav--away { transform: translateY(-110%); }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 0; height: 100svh; min-height: 540px; overflow: hidden; background: #4d170c; color: var(--clay-ink); }
.hero__stage {
  position: absolute; right: 0; bottom: 0; height: 82svh; aspect-ratio: 16 / 9;
  transform-origin: 78% 60%; will-change: transform;
}
/* the studio backdrop carries on past the frame: its top row stretched upward, its left column stretched left */
.hero__stage::before { content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 2px); height: 40svh; background: url(media/poster.jpg) center top / 100% 6000% no-repeat; }
.hero__stage::after { content: ""; position: absolute; top: -40svh; bottom: 0; right: calc(100% - 2px); width: 100vw; background: url(media/poster.jpg) left bottom / 6000% 67.2% no-repeat, #4d170c; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video--intro { opacity: 0; transition: opacity .25s linear; }
.is-talking .hero__video--intro { opacity: 1; }

.hero__text { position: absolute; left: var(--m); top: clamp(76px, 11svh, 120px); width: calc(100vw - 52svh - var(--m)); max-width: 1100px; }
.hero__title, .hero__say {
  font-weight: 800; letter-spacing: -0.05em; line-height: 0.92; white-space: nowrap;
  font-size: min(calc((100vw - 52svh - 2 * var(--m)) / 12.6), 11.5svh, 132px);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero__title .line > span { display: block; }
.js .hero__title .line > span { transform: translateY(108%); animation: up 1s var(--ease) .15s forwards; }
.hero__say { position: absolute; left: 0; top: 0; display: none; }
.hero__say span { display: inline-block; opacity: 0; transform: translateY(.35em); transition: opacity .18s linear, transform .35s var(--ease); margin-right: .22em; }
.hero__say span.on { opacity: 1; transform: none; }
.is-talking .hero__title { visibility: hidden; }
.is-talking .hero__say { display: block; }
.hero__lead { text-wrap: balance; font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.02em; max-width: 34ch; margin-top: clamp(14px, 2.4svh, 26px); }
.hero__actions { display: flex; align-items: center; gap: 26px; margin-top: clamp(16px, 2.8svh, 30px); flex-wrap: wrap; }
.js .hero__lead, .js .hero__actions { opacity: 0; animation: rise .9s var(--ease) .55s forwards; }
.js .hero__actions { animation-delay: .7s; }
.js .hero__stage { animation: arrive 1.4s var(--ease) both; }
@keyframes up { to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes arrive { from { opacity: 0; scale: 1.05; } to { opacity: 1; scale: 1; } }

/* everything after the first screen slides over it */
.claim, .work, .demos, .method, .lineup, .about, .contact { position: relative; z-index: 1; }
.foot { position: relative; z-index: 1; }

/* ---------- the claim, pinned ---------- */
.claim { background: var(--bg); display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); column-gap: var(--m); padding: 0 var(--m); }
.claim__pin { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; }
.claim__text { font-size: clamp(1.5rem, 1rem + 1.5vw, 2.125rem); font-weight: 600; line-height: 1.16; letter-spacing: -0.035em; max-width: 29ch; }
.claim__reel { padding: 16svh 0 22svh; display: flex; flex-direction: column; gap: 14svh; }
.plate__img { overflow: hidden; }
.plate__img img { width: 100%; height: 100%; object-fit: cover; scale: 1.14; will-change: transform; }
.plate figcaption { margin-top: 14px; max-width: 34ch; font-weight: 600; }
.plate--a { width: 54%; margin-left: 4%; }
.plate--a .plate__img { aspect-ratio: 4 / 5; }
.plate--b { width: 92%; margin-left: auto; }
.plate--b .plate__img { aspect-ratio: 16 / 10; }
.plate--c { width: 50%; margin-left: 18%; }
.plate--c .plate__img { aspect-ratio: 1; }

/* ---------- work plates ---------- */
.panel { position: sticky; top: 0; min-height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); align-items: center; }
.panel--noc { background: #0b0e13; color: #fff; }
.panel--itsm { background: #e21a37; color: #fff; }
.panel--forge { background: #c7d6f0; color: var(--ink); }
.panel--desk { background: var(--dark); color: #fff; }
.panel__text { padding: clamp(84px, 12svh, 120px) var(--m) clamp(28px, 6svh, 60px); display: flex; flex-direction: column; align-items: flex-start; gap: clamp(12px, 2.1svh, 22px); max-width: 620px; }
.panel__row { display: flex; gap: 22px; flex-wrap: wrap; font-weight: 600; font-size: var(--step-small); width: 100%; justify-content: space-between; }
.panel__title { white-space: nowrap; font-size: clamp(2.4rem, 4.6vw, 4.6rem); font-weight: 800; letter-spacing: -0.055em; line-height: 0.9; }
.panel__body strong { font-weight: 800; }
.panel__note { font-weight: 600; }
.panel__links { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.facts { display: grid; gap: 6px; width: 100%; }
.facts li { display: grid; grid-template-columns: minmax(7.2ch, auto) 1fr; column-gap: 16px; align-items: baseline; }
.facts b { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.04em; white-space: nowrap; }
.panel__shot { align-self: stretch; position: relative; }
.panel__shot img { position: absolute; left: 3%; top: 15svh; width: 122%; max-width: none; height: auto; will-change: transform; }
.panel--itsm .panel__shot img { top: 12svh; }
.panel__shot--chat { display: flex; align-items: center; justify-content: center; padding: 12svh var(--m) 6svh; }
.chat { width: min(520px, 100%); display: flex; flex-direction: column; gap: 10px; }
.chat__msg { background: #2c2c2e; color: #fff; padding: 13px 17px; border-radius: 18px 18px 18px 4px; max-width: 86%; }
.chat__msg--user { align-self: flex-end; background: var(--clay-ink); color: var(--ink); border-radius: 18px 18px 4px 18px; }
.chat__cap { font-size: var(--step-small); color: #c9c9cc; margin-top: 10px; }

/* short windows: the plates scroll normally so nothing is cut off */
@media (max-height: 800px) and (min-width: 901px) { .panel__text { padding-top: 72px; gap: 10px; } }
.work.flow .panel { position: relative; }

/* ---------- demos ---------- */
.demos { background: var(--bg); padding: clamp(96px, 16svh, 190px) var(--m) clamp(96px, 14svh, 170px); }
.demos__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--m); align-items: end; margin-bottom: clamp(28px, 5svh, 56px); }
.demos__head .lead { max-width: 36ch; }
.demos__tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.demos__tabs button { border: 0; cursor: pointer; background: var(--surface); color: var(--ink); font: 600 var(--step-body)/1 var(--font); padding: 14px 22px; border-radius: 999px; transition: background-color .2s, color .2s, transform .25s var(--ease); }
.demos__tabs button:hover { transform: translateY(-2px); }
.demos__tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.frame { position: relative; background: var(--dark); aspect-ratio: 16 / 9.4; overflow: hidden; }
.frame__poster, .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.frame__poster { object-fit: cover; object-position: top left; transition: opacity .35s linear, transform 1.2s var(--ease); }
.frame.swap .frame__poster { opacity: 0; transform: scale(1.03); }
.frame__start { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(14, 14, 14, .45); transition: opacity .3s linear; }
.frame.live .frame__start, .frame.live .frame__poster { opacity: 0; pointer-events: none; }
.demos__foot { margin-top: 14px; display: flex; gap: 10px 24px; flex-wrap: wrap; justify-content: space-between; color: var(--muted); }

/* ---------- method: one verb at a time ---------- */
.verb { background: var(--bg); min-height: 86svh; display: flex; flex-direction: column; padding: 0 var(--m) clamp(28px, 5svh, 48px); }
.verb--alt { background: var(--surface); }
.verb--dark { background: var(--dark); color: #fff; }
.verb__word { flex: 1; min-height: 58svh; font-size: clamp(6rem, 21vw, 22rem); font-weight: 800; letter-spacing: -0.065em; line-height: 0.8; text-align: center; }
.verb__word span { display: block; position: sticky; top: calc(50svh - .42em); padding: .06em 0 .1em; }
.verb__text { font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.02em; max-width: 36ch; }

/* ---------- the line-up ---------- */
.lineup { background: var(--bg); padding: clamp(60px, 10svh, 120px) var(--m) clamp(96px, 14svh, 170px); font-size: clamp(1.125rem, .8rem + 1.25vw, 1.75rem); line-height: 1.25; letter-spacing: -0.03em; }
.lineup__part { font: inherit; font-weight: 800; color: var(--accent); position: sticky; top: 0; z-index: 2; background: var(--bg); padding: 72px 0 16px; }
.row { display: grid; grid-template-columns: 33fr 33fr 17fr 17fr; column-gap: var(--m); padding: .24em 0; font-weight: 600; }
.row > span:last-child { text-align: right; white-space: nowrap; }
.row--3 { grid-template-columns: 33fr 40fr 27fr; }
.row--2 { grid-template-columns: 33fr 67fr; }
.row--2 > span:last-child { text-align: left; white-space: normal; }
.row > span + span { font-weight: 400; }

/* ---------- about ---------- */
.about { background: var(--surface); padding: clamp(96px, 15svh, 180px) var(--m); display: grid; grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); gap: clamp(24px, 6vw, 96px); align-items: start; }
.about__photo { position: sticky; top: 12svh; overflow: hidden; aspect-ratio: 4 / 5; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; scale: 1.12; will-change: transform; }
.about__text { display: flex; flex-direction: column; gap: clamp(22px, 3.4svh, 36px); max-width: 760px; }
.about__text > p { font-size: var(--step-lead); line-height: 1.32; letter-spacing: -0.02em; }
.about blockquote { background: var(--bg); padding: clamp(20px, 3vw, 36px); }
.about blockquote p { font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.02em; font-weight: 600; }
.about blockquote footer { margin-top: 14px; color: var(--muted); font-weight: 600; }
.off { display: grid; grid-template-columns: 1fr 1fr; gap: 26px var(--m); }
.off dt { font-weight: 800; letter-spacing: -0.03em; font-size: var(--step-lead); margin-bottom: 4px; }

/* ---------- contact ---------- */
.contact { background: var(--dark); color: #fff; min-height: 100svh; padding: clamp(84px, 13svh, 130px) var(--m) clamp(24px, 4svh, 40px); display: flex; flex-direction: column; }
.contact__ask { font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.02em; max-width: 30ch; }
.contact__mail { margin-top: auto; display: inline-block; align-self: flex-start; font-size: 8.4vw; font-weight: 800; letter-spacing: -0.055em; line-height: 1; text-decoration: none; white-space: nowrap; padding: .1em 0 .16em; transition: color .25s, transform .5s var(--ease); transform-origin: left bottom; }
.contact__mail:hover { color: #7fd1b5; }
.contact__foot { display: flex; justify-content: space-between; gap: 16px var(--m); flex-wrap: wrap; padding-top: 3svh; }
.contact__links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.foot { display: grid; grid-template-columns: 1fr 1fr; min-height: 92svh; background: var(--bg); }
.foot__photo { overflow: hidden; background: var(--clay); }
.foot__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 12%; scale: 2.1; transform-origin: 78% 12%; }
.foot__menu { padding: clamp(40px, 8svh, 80px) var(--m) clamp(20px, 3svh, 32px) clamp(24px, 6vw, 96px); display: flex; flex-direction: column; }
.foot__mark { font-weight: 800; letter-spacing: -0.04em; margin-bottom: clamp(24px, 5svh, 48px); }
.foot__menu nav { display: grid; gap: clamp(8px, 1.6svh, 20px); }
.foot__menu nav a { font-size: clamp(2rem, 1rem + 3vw, 3.4rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; text-decoration: none; transition: transform .35s var(--ease), color .2s; }
.foot__menu nav:hover a { color: var(--muted); }
.foot__menu nav a:hover { transform: translateX(14px); color: var(--ink); }
.foot__legal { margin-top: auto; padding-top: 28px; font-size: var(--step-small); color: var(--muted); max-width: 60ch; }

/* ---------- tablet and phone: their own composition ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .hero { height: auto; min-height: 100svh; display: flex; flex-direction: column; position: relative; }
  .hero__text { position: relative; z-index: 2; left: 0; top: 0; width: auto; max-width: none; padding: 84px var(--m) 0; order: 1; }
  .hero__title, .hero__say { font-size: clamp(2.2rem, 10.6vw, 5.4rem); white-space: normal; }
  .hero__say { left: var(--m); top: 84px; right: var(--m); }
  .hero__stage { position: relative; order: 2; width: 100%; height: auto; aspect-ratio: 4 / 4.4; margin-top: 18px; flex: 1;
 }
  .hero__video { object-position: 84% 50%; }
  .hero__lead { max-width: none; }

  .claim { grid-template-columns: 1fr; }
  .claim__pin { height: auto; top: 0; padding: 78px 0 18px; background: var(--bg); z-index: 2; }
  .claim__text { max-width: none; font-size: 1.5rem; }
  .claim__reel { padding: 6svh 0 14svh; gap: 9svh; }
  .plate--a { width: 64%; margin-left: 0; }
  .plate--b { width: 100%; }
  .plate--c { width: 56%; margin-left: 0; }

  .panel { position: relative; grid-template-columns: 1fr; min-height: 0; }
  .panel__text { padding-top: 64px; max-width: none; }
  .panel__shot { height: 62vw; }
  .panel__shot img { top: 0; left: var(--m); width: 130%; }
  .panel--itsm .panel__shot img { top: 0; }
  .panel__shot--chat { height: auto; padding: 0 var(--m) 56px; }

  .demos__head { grid-template-columns: 1fr; }
  .frame { aspect-ratio: 3 / 4; }
  .verb { min-height: 78svh; }
  .verb__word { font-size: 24vw; min-height: 46svh; }

  .lineup__part { padding-top: 48px; }
  .row, .row--3, .row--2 { display: flex; flex-wrap: wrap; gap: 2px 14px; padding: 9px 0; }
  .row > span:first-child { flex-basis: 100%; font-size: 1.375rem; }
  .row > span + span { font-size: 0.9375rem; color: var(--muted); text-align: left; }
  .row > span:last-child { margin-left: auto; }
  .row--2 > span:first-child { font-size: var(--step-body); font-weight: 800; }
  .row--2 > span:last-child { margin-left: 0; font-size: var(--step-body); color: var(--ink); }

  .about { grid-template-columns: 1fr; }
  .about__photo { position: relative; top: 0; width: 72%; }
  .off { grid-template-columns: 1fr; }

  .contact { min-height: 86svh; }
  .contact__mail { font-size: 7.8vw; margin-top: 18svh; }
  .foot { grid-template-columns: 1fr; }
  .foot__photo { height: 50svh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv, .js .hero__lead, .js .hero__actions { opacity: 1; transform: none; animation: none; transition: none; }
  .js .hero__title .line > span, .js .hero__stage { animation: none; transform: none; opacity: 1; }
  .btn, .link, .foot__menu nav a { transition: none; }
}

/* =====================================================================
   Motion layer. Transform, opacity and clip-path only.
   ===================================================================== */
:root { --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --ease-io: cubic-bezier(0.77, 0, 0.175, 1); }

/* ---- opening: his name, then the sheet lifts off the room ---- */
.curtain { display: none; }
.intro .curtain {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 60; pointer-events: none;
  background: var(--clay-ink); color: var(--ink); clip-path: inset(0 0 0 0);
  animation: lift .95s var(--ease-io) 1.2s forwards;
}
.curtain p { font-weight: 800; font-size: clamp(3rem, 10vw, 10rem); letter-spacing: -0.06em; line-height: 1; white-space: nowrap; animation: lift-name .95s var(--ease-io) 1.2s forwards; }
.curtain span { display: inline-block; opacity: 0; transform: translateY(.5em); animation: ch-in .7s var(--ease-out) calc(.1s + var(--i) * 45ms) forwards; }
@keyframes lift { to { clip-path: inset(0 0 100% 0); } }
@keyframes lift-name { to { transform: translateY(-45%); } }
@keyframes ch-in { to { opacity: 1; transform: none; } }

/* ---- first screen: waits for the sheet, then lands word by word ---- */
.hero__title .w { display: inline-block; overflow: hidden; padding: .06em .04em .14em; margin: -.06em -.04em -.14em; vertical-align: top; }
.hero__title .wi { display: inline-block; }
.js .hero__title .wi { transform: translateY(112%); }
.js .go .hero__title .wi { transform: none; transition: transform 1.1s var(--ease-out) calc(var(--i) * 90ms); }
.js .hero__lead, .js .hero__actions { opacity: 0; animation: none; }
.js .go .hero__lead { animation: rise .9s var(--ease-out) .45s forwards; }
.js .go .hero__actions { animation: rise .9s var(--ease-out) .6s forwards; }
.js .hero__stage { animation: none; }
.js .go .hero__stage { animation: arrive 1.8s var(--ease-out) both; }
@keyframes arrive { from { scale: 1.1; } to { scale: 1; } }
.hero__text { will-change: transform, opacity; }

/* the play button asks once to be pressed */
#hear { position: relative; }
#hear::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--clay-ink); opacity: 0; pointer-events: none; }
.go #hear:not(.heard)::after { animation: ring 2.6s var(--ease-out) 2.4s infinite; }
@keyframes ring { 0% { opacity: .7; transform: scale(1); } 60%, 100% { opacity: 0; transform: scale(1.22, 1.5); } }

/* ---- split text ---- */
.sp .w { display: inline-block; white-space: nowrap; }
.sp .w.wm { overflow: hidden; padding: .08em .05em .16em; margin: -.08em -.05em -.16em; vertical-align: top; }
.sp .wi, .sp .ch { display: inline-block; }
.js .sp .wi { transform: translateY(115%); transition: transform .95s var(--ease-out); transition-delay: calc(var(--d, 0ms) + var(--i) * 70ms); }
.js .sp.in .wi { transform: none; }
.js .sp .ch { opacity: 0; transform: translateY(.42em); transition: opacity .45s linear, transform .85s var(--ease-out); transition-delay: calc(var(--d, 0ms) + var(--i) * 28ms); }
.js .sp.in .ch { opacity: 1; transform: none; }
.js .verb__word .sp .ch { transition-delay: calc(var(--i) * 65ms); transform: translateY(.3em); }
.js .verb__word .sp.in .ch { transform: none; }

/* settled elements answer the pointer at once */
.js .rv.done { transition-delay: 0s; transition-duration: .3s; }

/* ---- the claim fills with ink as you read ---- */
.claim__text .cw { transition: opacity .35s linear; }

/* ---- pictures open like a shutter ---- */
.js .plate.rv, .js .about__photo.rv { opacity: 1; transform: none; }
.js .plate .plate__img, .js .about__photo img { clip-path: inset(100% 0 0 0); }
.js .plate .plate__img { transition: clip-path 1.15s var(--ease-io) var(--d, 0ms); }
.js .plate.in .plate__img, .js .about__photo.in img { clip-path: inset(0 0 0 0); }
.js .plate .plate__img img { scale: 1.4; transition: scale 1.6s var(--ease-out) var(--d, 0ms); }
.js .about__photo img { scale: 1.4; transition: clip-path 1.15s var(--ease-io), scale 1.6s var(--ease-out); }
.js .plate.in .plate__img img { scale: 1.14; }
.js .about__photo.in img { scale: 1.12; }
.js .plate figcaption { opacity: 0; transform: translateY(14px); transition: opacity .6s linear .5s, transform .8s var(--ease-out) .5s; }
.js .plate.in figcaption { opacity: 1; transform: none; }

/* ---- work plates: the one underneath steps back ---- */
.work { background: #000; }
.panel { transform-origin: 50% 0; will-change: transform; }
.panel__dim { position: absolute; inset: 0; z-index: 3; background: #000; opacity: 0; pointer-events: none; }
.panel__shot[data-cursor] { cursor: pointer; }

/* the support conversation plays out */
.js .chat__msg, .js .chat__cap { opacity: 0; transform: translateY(12px) scale(.96); transform-origin: 0 100%; transition: opacity .3s linear, transform .5s var(--ease-out); transition-delay: calc(.2s + var(--i, 0) * 750ms); }
.js .chat__msg--user { transform-origin: 100% 100%; }
.js .chat.in .chat__msg, .js .chat.in .chat__cap { opacity: 1; transform: none; }

/* ---- demos: the selection slides between tabs, the window opens ---- */
.demos__tabs { position: relative; }
.demos__tabs.has-pill button[aria-selected="true"] { background: var(--surface); color: var(--ink); }
.tabs-on { position: absolute; inset: 0; display: flex; gap: 8px; flex-wrap: wrap; pointer-events: none; clip-path: inset(0 100% 0 0 round 999px); transition: clip-path .32s var(--ease-out); }
.tabs-on span { background: var(--ink); color: #fff; font: 600 var(--step-body)/1 var(--font); padding: 14px 22px; border-radius: 999px; }
.frame { will-change: clip-path; }

/* ---- pointer extras, desktop only ---- */
.btn { transition: transform .25s var(--ease-out), scale .14s var(--ease-out), background-color .2s, color .2s; }
.btn:active { transform: none; scale: .97; }
.cursor { position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none; }
.cursor__in { display: block; background: var(--clay-ink); color: var(--ink); font: 600 var(--step-small)/1 var(--font); padding: 11px 16px; border-radius: 999px; white-space: nowrap; opacity: 0; transform: translate(16px, 18px) scale(.9); transform-origin: 0 0; transition: opacity .18s linear, transform .22s var(--ease-out); }
.cursor.on .cursor__in { opacity: 1; transform: translate(16px, 18px) scale(1); }
@media (hover: hover) and (pointer: fine) {
  .lineup .row { transition: opacity .25s ease, transform .35s var(--ease-out); }
  .lineup:has(.row:hover) .row.done:not(:hover) { opacity: .34; }
  .lineup .row.done:hover { transform: translateX(14px); }
  .panel__shot[data-cursor] img { transition: scale .6s var(--ease-out); }
  .panel__shot[data-cursor]:hover img { scale: 1.015; }
}

@media (prefers-reduced-motion: reduce) {
  .js .hero__title .wi, .js .sp .wi, .js .sp .ch { transform: none; opacity: 1; transition: none; }
  .js .plate .plate__img, .js .about__photo img { clip-path: none; transition: none; }
  .js .plate .plate__img img { scale: 1.14; transition: none; }
  .js .about__photo img { scale: 1.12; transition: none; }
  .js .plate figcaption, .js .chat__msg, .js .chat__cap { opacity: 1; transform: none; transition: none; }
  #hear::after { animation: none !important; }
  .tabs-on, .lineup .row { transition: none; }
}

/* =====================================================================
   App screens are shown whole, never cropped; the footer carries his real photo.
   ===================================================================== */
.plate--shot .plate__img { aspect-ratio: 16 / 10; }
.plate--shot .plate__img img { scale: 1; }
.js .plate--shot .plate__img img { scale: 1.08; }
.js .plate--shot.in .plate__img img { scale: 1; }
.plate--b { width: 100%; }
.plate--c { width: 78%; margin-left: 8%; }

.panel { grid-template-columns: minmax(0, 36fr) minmax(0, 64fr); }
.panel__shot { display: flex; align-items: center; }
.panel__shot img, .panel--itsm .panel__shot img { position: static; width: 94%; margin-left: 2%; height: auto; }
.panel__shot--chat { justify-content: center; }

.foot__photo { background: #0c0f14; }
.foot__photo img { object-position: 50% 22%; scale: 1; transform-origin: 50% 50%; }

@media (max-width: 900px) {
  .plate--c { width: 100%; margin-left: 0; }
  .panel { grid-template-columns: 1fr; }
  .panel__shot { height: auto; padding: 0 var(--m) 48px; }
  .panel__shot img, .panel--itsm .panel__shot img { width: 100%; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .js .plate--shot .plate__img img { scale: 1; }
}

/* ---- footer: the three apps, whole, each opening its demo ---- */
.foot__work { background: var(--dark); color: #fff; padding: clamp(40px, 8svh, 80px) var(--m); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3svh, 32px) var(--m); align-content: center; }
.foot__shot { display: block; text-decoration: none; min-width: 0; }
.foot__shot--big { grid-column: 1 / -1; }
.foot__shot img { width: 100%; height: auto; transition: scale .5s var(--ease-out); }
.foot__shot span { display: block; margin-top: 10px; font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .foot__shot:hover img { scale: 1.02; } }
@media (prefers-reduced-motion: reduce) { .foot__shot img { transition: none; } }

.plate--a.plate--shot { width: 86%; margin-left: auto; }
@media (max-width: 900px) { .plate--a.plate--shot { width: 100%; } }
