/* Layout follows the original exactly: a 1728x768-unit frame per section, centred
   on the page. One unit is 1px from 1366px wide upwards and shrinks in proportion
   below that. Under 1092px the same markup reflows into a single column. */
@font-face { font-family: "Display"; src: url("/assets/fonts/display.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Josefin Sans"; src: url("/assets/fonts/josefin-sans.woff") format("woff"); font-display: swap; }

:root { --u: min(1px, calc(100vw / 1366)); --bg: #cbc2b5; --ink: #444; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: #000; font-family: "Josefin Sans", "Avenir Next", Futura, "Gill Sans", sans-serif; font-size: calc(20 * var(--u)); line-height: calc(28 * var(--u)); overflow-x: hidden;
  /* The original was typeset without kerning; keeping that keeps every line the same width. */
  font-kerning: none; }
h1, h2, p, figure { margin: 0; font-weight: 400; }
img { display: block; }
a { color: inherit; }
button { font: inherit; }

.s { position: relative; height: calc(768 * var(--u)); overflow: hidden; }
.a { position: absolute; left: calc(50% + (var(--x) - 864) * var(--u)); top: calc(var(--y) * var(--u)); }
.a[style*="--w"] { width: calc(var(--w) * var(--u)); }
.sz { height: calc(var(--h) * var(--u)); }

.display { font-family: "Display", "Josefin Sans", sans-serif; color: var(--ink); white-space: nowrap; }
.h { font-size: calc(58.667 * var(--u)); line-height: calc(82 * var(--u)); }
.hero-name { font-size: calc(70.4 * var(--u)); line-height: calc(98 * var(--u)); }
.hero-handle { font-size: calc(34.667 * var(--u)); line-height: calc(48 * var(--u)); }
.lbl { font-size: calc(26.667 * var(--u)); line-height: calc(37 * var(--u)); text-transform: uppercase; color: var(--ink); }
.email { text-decoration: underline; text-decoration-thickness: from-font; text-underline-offset: .12em; }

.photo { overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.crop { overflow: hidden; }
.crop img { position: absolute; left: 0; top: 0; width: 100%; height: auto; }

.socials a img { width: 100%; height: 100%; }

/* hero */
.panel { background: #fff; text-align: center; padding-top: calc(94.65 * var(--u)); }
.panel .group + .group { margin-top: calc(51 * var(--u)); }
.panel .lbl { margin-bottom: calc(10.8 * var(--u)); }
.panel .group:first-child .lbl { margin-bottom: calc(6.55 * var(--u)); }

/* insights */
.platform { display: contents; }
.card { background: #fff; border-radius: calc(36 * var(--u)); color: var(--ink); text-align: center; display: flex; flex-direction: column; justify-content: center; padding-top: calc(2 * var(--u)); }
.donut svg { width: 100%; height: 100%; display: block; overflow: visible; font-family: "Josefin Sans", sans-serif; }

/* about: in flow, so the section grows if the text is made longer */
/* flow-root keeps the text's top margin inside the section even where overflow is visible (the editor) */
.about { display: flow-root; height: auto; min-height: calc(768 * var(--u)); }
.about-text { position: relative; top: 0; margin: calc(172.6 * var(--u)) 0 calc(80 * var(--u)); font-size: calc(23.636 * var(--u)); line-height: calc(33.09 * var(--u)); overflow-wrap: break-word; }
.about-text p + p { margin-top: calc(33.09 * var(--u)); }

/* videos. --p is 1% of the phone's width, so the frame keeps its proportions at any size. */
.vids, .vid { display: contents; }
.phone { --pw: 197.95; --p: calc(var(--pw) * var(--u) / 100); background: #000; border-radius: calc(15.4 * var(--p)); box-shadow: inset 0 0 0 calc(.7 * var(--p)) #5a5a5a; cursor: pointer; }
.phone::before, .phone::after { content: ""; position: absolute; width: calc(1.6 * var(--p)); background: #2e2e2e; border-radius: var(--p); }
.phone::before { left: calc(-1.2 * var(--p)); top: calc(44 * var(--p)); height: calc(15 * var(--p)); box-shadow: 0 calc(19 * var(--p)) 0 0 #2e2e2e, 0 calc(-17 * var(--p)) 0 0 #2e2e2e; clip-path: inset(calc(-10 * var(--p)) 0 calc(-34 * var(--p)) 0); }
.phone::after { right: calc(-1.2 * var(--p)); top: calc(46 * var(--p)); height: calc(24 * var(--p)); }
.screen { position: absolute; top: calc(5.6 * var(--p)); bottom: calc(5.6 * var(--p)); left: calc(5.3 * var(--p)); right: calc(5.3 * var(--p)); border-radius: calc(9.5 * var(--p)); overflow: hidden; background: #111; }
.screen img, .screen video { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.notch { position: absolute; top: calc(5.4 * var(--p)); left: calc(25 * var(--p)); width: calc(50 * var(--p)); height: calc(7.4 * var(--p)); background: #000; border-radius: 0 0 calc(4.6 * var(--p)) calc(4.6 * var(--p)); }
.notch::before { content: ""; position: absolute; left: 34%; top: 32%; width: 26%; height: calc(1.1 * var(--p)); border-radius: var(--p); background: #4a4a4a; }
.notch::after { content: ""; position: absolute; left: 70%; top: 22%; width: calc(2.2 * var(--p)); height: calc(2.2 * var(--p)); border-radius: 50%; background: #4a4a4a; }
.play { position: absolute; left: 50%; top: 50%; width: calc(48 * var(--u)); height: calc(48 * var(--u)); min-width: 36px; min-height: 36px; transform: translate(-50%, -50%); border: 0; padding: 0; border-radius: 50%; background: rgba(19, 22, 32, .6); cursor: pointer; display: grid; place-items: center; transition: opacity .2s, background .2s; }
.play:hover { background: rgba(19, 22, 32, .8); }
.play svg { width: 50%; height: 50%; fill: #fff; }
.play .pause, .phone.playing .play .go { display: none; }
.phone.playing .play .pause { display: block; }
.phone.playing .play { opacity: 0; }
.phone.playing .play:focus-visible, .phone.loading .play { opacity: 1; }
.phone.loading .play { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { background: rgba(19, 22, 32, .25); } }
.mute { position: absolute; right: calc(9 * var(--p)); bottom: calc(9 * var(--p)); width: calc(15 * var(--p)); height: calc(15 * var(--p)); min-width: 28px; min-height: 28px; border: 0; padding: 0; border-radius: 50%; background: rgba(19, 22, 32, .6); cursor: pointer; display: grid; place-items: center; }
.mute[hidden] { display: none; }
.mute svg { width: 60%; height: 60%; fill: #fff; }
.mute .off, .mute.muted .on { display: none; }
.mute.muted .off { display: block; }
.progress { position: absolute; left: calc(12 * var(--p)); right: calc(12 * var(--p)); bottom: calc(3 * var(--p)); height: calc(1.2 * var(--p)); border-radius: var(--p); background: rgba(255, 255, 255, .25); overflow: hidden; opacity: 0; transition: opacity .2s; }
.phone.playing .progress { opacity: 1; }
.progress i { display: block; height: 100%; width: 0; background: #fff; }
.video-error { position: absolute; left: 10%; right: 10%; top: 62%; margin: 0; padding: .5em; border-radius: .6em; background: rgba(19, 22, 32, .8); color: #fff; font: 500 12px/1.3 system-ui, sans-serif; text-align: center; }
.stats { white-space: nowrap; line-height: calc(24 * var(--u)); }
.stat.is-empty { display: none; }

/* clients: in flow, so the section grows when a fifth row of logos is added */
.clients { display: flow-root; height: auto; min-height: calc(768 * var(--u)); }
.logos { position: relative; top: 0; margin: calc(177.6 * var(--u)) 0 calc(80 * var(--u)); display: flex; flex-direction: column; align-items: center; gap: calc(35.9 * var(--u)); }
.logo-row { display: flex; gap: calc(37.8 * var(--u)); }
.logo { position: relative; width: calc(98.63 * var(--u)); height: calc(98.63 * var(--u)); border-radius: 50%; overflow: hidden; background: #fff; flex: none; }
.logo img { width: 100%; height: 100%; object-fit: cover; }

/* contact */
.testimonial img { width: 100%; height: 100%; object-fit: contain; }
.testimonial.crop img { left: -15.47%; width: 130.48%; height: auto; }
.cta { font-size: calc(70.667 * var(--u)); line-height: calc(83.9 * var(--u)); text-align: center; }
.contact-email { text-align: center; }

.site-footer { border-top: 1px solid rgba(52, 49, 45, .16); max-width: 1100px; margin: 0 auto; padding: 34px 24px 46px; text-align: center; }
.site-footer p { color: rgba(52, 49, 45, .86); font-family: "Avenir Next", Futura, "Gill Sans", system-ui, sans-serif; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; line-height: 1.7; }

/* ---- single column: phones and tablets ---- */
@media (max-width: 1091px) {
  :root { --u: min(calc(100vw / 480), .95px); --pad: max(calc(30 * var(--u)), calc((100vw - 700px) / 2)); }
  .s { height: auto; min-height: 0; overflow: visible; padding: calc(56 * var(--u)) var(--pad); }
  .a { position: relative; left: auto; top: auto; }
  .a[style*="--w"] { width: auto; }
  .sz { height: auto; }
  .display { white-space: normal; overflow-wrap: break-word; }
  .h, .hero-name { font-size: calc(46 * var(--u)); line-height: 1.18; }
  .h { margin-bottom: calc(28 * var(--u)); }

  .hero { padding-top: calc(40 * var(--u)); }
  .hero-name { padding-right: calc(170 * var(--u)); }
  .hero-handle { margin-bottom: calc(18 * var(--u)); }
  .socials { display: flex; gap: calc(22 * var(--u)); align-items: center; }
  .socials a { width: calc(40 * var(--u)) !important; height: calc(40 * var(--u)); }
  .hero-socials { position: absolute; right: var(--pad); top: calc(52 * var(--u)); }
  .hero .photo { aspect-ratio: 564 / 552; }
  .panel { padding: calc(44 * var(--u)) calc(20 * var(--u)); }
  .panel .group + .group { margin-top: calc(34 * var(--u)); }

  .platform { display: grid; grid-template-columns: 1fr 1fr; gap: calc(18 * var(--u)); margin-bottom: calc(44 * var(--u)); align-items: center; }
  .platform:last-child { margin-bottom: 0; }
  .platform-logo { grid-column: 1 / -1; justify-self: center; width: calc(var(--w) * var(--u)) !important; height: calc(var(--h) * var(--u)); }
  .card { height: calc(136 * var(--u)); }
  .card:nth-of-type(4) { grid-column: 1 / -1; }
  .donut { grid-column: 1 / -1; justify-self: center; width: calc(330 * var(--u)) !important; aspect-ratio: 807 / 683; }
  .donut svg { font-size: 32px; }
  .donut .lab-r { text-anchor: start; transform: translateX(-30px); }
  .donut .lab-l { text-anchor: end; transform: translateX(30px); }

  .about-text { margin: 0; font-size: inherit; line-height: inherit; }
  .about-text p + p { margin-top: calc(24 * var(--u)); }
  .about .photo { aspect-ratio: 569 / 557; margin-top: calc(36 * var(--u)); }

  .vids { display: grid; grid-template-columns: repeat(2, auto); justify-content: space-evenly; gap: calc(36 * var(--u)) calc(20 * var(--u)); }
  .vid { display: block; }
  .phone { --pw: 184; width: calc(var(--pw) * var(--u)) !important; height: calc(var(--pw) * 1.9787 * var(--u)); }
  .stats { margin-top: calc(16 * var(--u)); }

  .logos { margin: 0; gap: calc(20 * var(--u)); flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .logo-row { display: contents; }
  .logo { width: calc(88 * var(--u)); height: calc(88 * var(--u)); }

  .contact { display: flex; flex-direction: column; align-items: center; }
  .contact .photo { aspect-ratio: 1; width: 100%; }
  .testimonial { width: calc(300 * var(--u)) !important; aspect-ratio: 268.41 / 130.1; margin-top: calc(-40 * var(--u)); }
  .cta { font-size: calc(58 * var(--u)); line-height: 1.15; margin: calc(40 * var(--u)) 0 calc(28 * var(--u)); }
  .contact-email { margin-top: calc(24 * var(--u)); }
  .site-footer { padding: 26px 18px 34px; }
}

/* tablets and phones held sideways: use the width */
@media (min-width: 640px) and (max-width: 1091px) {
  .hero { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-name, .hero-handle { grid-column: 1 / -1; }
  .hero .photo { aspect-ratio: auto; min-height: calc(440 * var(--u)); }
  .hero .photo img { position: absolute; }
  .platform { grid-template-columns: 1fr 1fr; }
  .vids { grid-template-columns: repeat(4, auto); }
  .phone { --pw: 150; }
  .stats { font-size: calc(17 * var(--u)); }
  .about .photo, .contact .photo { max-width: calc(520 * var(--u)); margin-inline: auto; }
}
