@charset "UTF-8";
/*
  sawada3.com
  01. TOKENS / BASE
  02. LOADER
  03. HEADER / MENU
  04. COMMON PARTS
  05. HERO
  06. ABOUT
  07. APPS
  08. MARQUEE
  09. WORKS
  10. SERVICES
  11. CLIENTS
  12. CONTACT / FOOTER
  13. LIGHTBOX
  14. RESPONSIVE
*/

/* 01. TOKENS / BASE */
:root {
  --bg: #f6f5f1;
  --ink: #121212;
  --muted: rgba(18, 18, 18, 0.6);
  --line: rgba(18, 18, 18, 0.12);
  --red: #e8293b;
  --dark: #0e0e0e;
  --paper: #ffffff;
  --radius-lg: 32px;
  --radius-md: 20px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-space: clamp(96px, 14vw, 180px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Poppins", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  word-break: auto-phrase;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease);
}
body.is-dark {
  --bg: var(--dark);
  --ink: #f6f5f1;
  --muted: rgba(246, 245, 241, 0.6);
  --line: rgba(246, 245, 241, 0.16);
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* 02. LOADER */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--dark);
  color: #fff;
  /* JS が読めなかったときも 4 秒で消える */
  animation: loader-fallback 0.4s 4s forwards;
}
.loader__inner {
  display: grid;
  justify-items: center;
  gap: 20px;
}
.loader__logo {
  width: 64px;
}
.loader__count {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}
.loader__count::after {
  content: "%";
}
@keyframes loader-fallback {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* 03. HEADER / MENU */
/* At the top the header is a white bar; past the hero it folds into the
   logo circle on the left and Contact + the round menu button on the right. */
.site-header {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0 calc(var(--gutter) / 2 + 12px);
  pointer-events: none;
}
.site-header__bar {
  position: relative;
  isolation: isolate;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 8px 8px 8px 18px;
  color: #121212;
}
.site-header__bar > * {
  pointer-events: auto;
}
.site-header__bar::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: -1;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: left 0.7s var(--ease), opacity 0.35s var(--ease) 0.3s;
}
.site-header.is-compact .site-header__bar::before {
  left: calc(100% - 60px);
  opacity: 0;
  transition: left 0.6s var(--ease), opacity 0.3s var(--ease) 0.35s;
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  margin-left: -8px;
  padding: 8px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), gap 0.5s var(--ease);
}
.site-header__brand img {
  width: 28px;
  filter: invert(1);
}
.site-header__brand span {
  max-width: 180px;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.6s var(--ease), opacity 0.3s var(--ease);
}
.site-header.is-compact .site-header__brand {
  gap: 0;
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
.site-header.is-compact .site-header__brand span {
  max-width: 0;
  opacity: 0;
}
.site-nav {
  display: flex;
  gap: 28px;
}
.site-nav a {
  position: relative;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease), visibility 0.35s;
}
.site-nav a:nth-child(2) { transition-delay: 0.04s; }
.site-nav a:nth-child(3) { transition-delay: 0.08s; }
.site-nav a:nth-child(4) { transition-delay: 0.12s; }
.site-header.is-compact .site-nav a {
  opacity: 0;
  visibility: hidden;
  transform: translateX(40px);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--red);
  transform: scale(0);
  transition: transform 0.3s var(--ease);
}
.site-nav a:hover::after {
  transform: scale(1);
}
.lang-switch {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: opacity 0.35s var(--ease), visibility 0.35s, background-color 0.3s var(--ease);
}
.lang-switch:hover {
  background: rgba(18, 18, 18, 0.06);
}
.site-header.is-compact .lang-switch {
  opacity: 0;
  visibility: hidden;
}
.site-header.is-compact .site-header__cta {
  box-shadow: 0 10px 24px rgba(232, 41, 59, 0.3);
}
.site-header__cta {
  transition: opacity 0.3s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.is-menu-open .site-header__cta {
  opacity: 0;
  pointer-events: none;
}
.menu-button {
  position: relative;
  flex-shrink: 0;
  width: 0;
  height: 44px;
  margin-left: -24px;
  border: 0;
  border-radius: 50%;
  background: #121212;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.4);
  cursor: pointer;
  transition: width 0.5s var(--ease), margin 0.5s var(--ease), opacity 0.3s var(--ease), transform 0.5s var(--ease), visibility 0.5s;
}
.site-header.is-compact .menu-button {
  width: 44px;
  margin-left: 0;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}
.menu-button span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 2px;
  background: #fff;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.menu-button span:nth-child(1) {
  top: 18px;
}
.menu-button span:nth-child(2) {
  top: 24px;
}
.menu-button[aria-expanded="true"] span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}
.menu-button[aria-expanded="true"] span:nth-child(2) {
  top: 21px;
  transform: rotate(-45deg);
}
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  padding: 120px var(--gutter) 48px;
  background: var(--red);
  color: #fff;
  clip-path: circle(0% at var(--menu-x, calc(100% - 46px)) var(--menu-y, 46px));
  transition: clip-path 0.7s var(--ease);
}
.mobile-menu[hidden] {
  display: none;
}
.mobile-menu.is-open {
  clip-path: circle(150% at var(--menu-x, calc(100% - 46px)) var(--menu-y, 46px));
}
.mobile-menu {
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}
.mobile-menu nav {
  display: grid;
  gap: 4px;
}
.mobile-menu__langs {
  display: flex;
  gap: 20px;
  margin-top: 32px;
}
.mobile-menu .mobile-menu__langs a {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0;
  opacity: 0.6;
}
.mobile-menu .mobile-menu__langs a.is-current {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 6px;
}
.mobile-menu a {
  font-weight: 800;
  font-size: clamp(40px, 12vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-decoration: none;
}

/* 04. COMMON PARTS */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow--light {
  color: #fff;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}
.section-head {
  margin-bottom: clamp(48px, 7vw, 96px);
}
.section-title {
  font-weight: 800;
  font-size: clamp(40px, 7vw, 104px);
  line-height: 1;
  letter-spacing: -0.045em;
}
.split-lines .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.split-lines .line > span {
  display: inline-block;
}
.split-lines em,
.contact__title em {
  font-style: normal;
  color: var(--red);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.pill:hover {
  transform: translateY(-2px);
}
.pill--red {
  background: var(--red);
  color: #fff;
}
.pill--red:hover {
  background: #121212;
}
.pill--app {
  background: var(--app-deep);
  color: #fff;
}
.pill--large {
  padding: 22px 32px;
  font-size: clamp(18px, 2.2vw, 26px);
}

/* 05. HERO */
.hero {
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  padding: 12px;
}
.hero__panel {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000;
  color: #fff;
  will-change: transform;
}
.hero__video {
  position: absolute;
  inset: -10% 0 0;
  width: 100%;
  height: 110%;
  object-fit: cover;
  opacity: 0.75;
}
.hero__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0) 65%);
}
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 72px) clamp(32px, 6vw, 80px);
  will-change: transform, opacity;
}

/* scrolling past the hero: the panel shrinks, the video drifts and the copy rises and fades.
   On the page's own scroll timeline it stays in step with native scrolling (smooth on iPhone);
   other browsers get the same motion from GSAP in main.js. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__panel,
    .hero__video,
    .hero__content {
      animation-duration: auto;
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: scroll(root block);
    }
    .hero__panel {
      animation-name: hero-panel-out;
      animation-range: 0 max(100svh, 560px);
    }
    .hero__video {
      animation-name: hero-video-drift;
      animation-range: 0 max(100svh, 560px);
    }
    .hero__content {
      animation-name: hero-content-out;
      animation-range: 0 calc(max(100svh, 560px) * 0.7);
    }
  }
}
@keyframes hero-panel-out {
  to { scale: 0.88; }
}
@keyframes hero-video-drift {
  to { translate: 0 10%; }
}
@keyframes hero-content-out {
  to { translate: 0 -120px; opacity: 0; }
}
.hero__title {
  margin-bottom: 28px;
  font-weight: 800;
  font-size: clamp(48px, 9vw, 148px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.hero__lead {
  font-weight: 500;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.9;
  opacity: 0.85;
}
.hero__scroll {
  position: absolute;
  right: clamp(24px, 5vw, 72px);
  bottom: clamp(32px, 6vw, 80px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  writing-mode: vertical-rl;
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 64px;
  background: linear-gradient(#fff 50%, rgba(255, 255, 255, 0.25) 50%);
  background-size: 100% 200%;
  animation: scroll-line 1.8s var(--ease) infinite;
}
@keyframes scroll-line {
  from {
    background-position: 0 100%;
  }
  to {
    background-position: 0 -100%;
  }
}

/* 06. ABOUT */
.about {
  padding: var(--section-space) 0 calc(var(--section-space) / 2);
}
.about__statement {
  max-width: 24em;
  font-weight: 700;
  font-size: clamp(24px, 3.6vw, 48px);
  line-height: 1.65;
  letter-spacing: 0.02em;
}
.about__lead {
  max-width: 38em;
  margin-top: 28px;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 2;
  color: var(--muted);
}
/* positioning map: the two principles are its axes, the third is the path there */
.pmap-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  margin-top: 64px;
}
.pmap {
  position: sticky;
  top: 96px;
  margin: 0;
}
.pmap__plane {
  position: relative;
  width: min(100%, 64vh);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
}
.pmap__zone {
  position: absolute;
  top: -12%;
  right: -12%;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 41, 59, 0.16), rgba(232, 41, 59, 0) 68%);
}
.pmap__axis {
  position: absolute;
  background: rgba(18, 18, 18, 0.22);
  transition: background-color 0.4s var(--ease);
}
.pmap__axis::after {
  content: "";
  position: absolute;
  border: 5px solid transparent;
}
.pmap__axis--x {
  top: 50%;
  left: 6%;
  right: 6%;
  height: 2px;
  margin-top: -1px;
  transform-origin: left center;
}
.pmap__axis--x::after {
  top: -4px;
  right: -8px;
  border-left: 8px solid rgba(18, 18, 18, 0.22);
}
.pmap__axis--y {
  left: 50%;
  top: 6%;
  bottom: 6%;
  width: 2px;
  margin-left: -1px;
  transform-origin: center bottom;
}
.pmap__axis--y::after {
  left: -4px;
  top: -8px;
  border-bottom: 8px solid rgba(18, 18, 18, 0.22);
}
.pmap__label {
  position: absolute;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
  transition: color 0.4s var(--ease);
}
.pmap__label--right {
  top: calc(50% + 12px);
  right: 6%;
}
.pmap__label--left {
  top: calc(50% + 12px);
  left: 6%;
}
.pmap__label--top {
  top: 4%;
  left: calc(50% + 12px);
}
.pmap__label--bottom {
  bottom: 4%;
  left: calc(50% + 12px);
}
.pmap[data-focus="x"] .pmap__axis--x,
.pmap[data-focus="y"] .pmap__axis--y {
  background: var(--red);
}
.pmap[data-focus="x"] .pmap__axis--x::after {
  border-left-color: var(--red);
}
.pmap[data-focus="y"] .pmap__axis--y::after {
  border-bottom-color: var(--red);
}
.pmap[data-focus="x"] .pmap__label--right,
.pmap[data-focus="y"] .pmap__label--top {
  color: var(--red);
}
.pmap__trails {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.pmap__trails path {
  fill: none;
  stroke: rgba(232, 41, 59, 0.4);
  stroke-width: 2;
  stroke-linecap: round;
  transition: stroke 0.4s var(--ease), stroke-width 0.4s var(--ease);
}
.pmap[data-focus="trail"] .pmap__trails path {
  stroke: var(--red);
  stroke-width: 3;
}
.pmap__other {
  position: absolute;
  left: var(--x);
  bottom: var(--y);
  translate: -50% 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  color: rgba(18, 18, 18, 0.45);
}
.pmap__other::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.18);
}
.pmap__app {
  position: absolute;
  left: var(--x);
  bottom: var(--y);
  z-index: 2;
  translate: -50% 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.pmap__app img {
  width: clamp(34px, 4vw, 48px);
  height: auto;
  border-radius: 24%;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}
.pmap__app b {
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}
.pmap figcaption {
  max-width: min(100%, 64vh);
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}

.principles {
  margin: 0;
  padding: 0;
  list-style: none;
}
.principle {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.principle:first-child {
  padding-top: 0;
  border-top: 0;
}
.principle__head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.principle__head span:first-child {
  color: var(--red);
}
.principle__head span:nth-child(2) {
  color: var(--muted);
}
.principle__tag {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: rgba(18, 18, 18, 0.05);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.principle.is-focus .principle__tag {
  background: var(--red);
  color: #fff;
}
.principle h3 {
  margin-top: 12px;
  font-weight: 800;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.3;
}
.principle__example {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(18, 18, 18, 0.75);
}
.principle__example img {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 24%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.principle:hover .principle__example img {
  transform: translateY(-4px) rotate(-6deg);
}

/* 07. APPS */
.apps {
  padding: calc(var(--section-space) / 2) 0 var(--section-space);
  overflow-x: hidden;
  overflow-x: clip;
}
.apps__track {
  position: relative;
}
/* a wide band winds through the characters, shifting through each app's colour */
.apps__band {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.apps__band path {
  fill: none;
  stroke: url(#apps-band-gradient);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.app {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(56px, 8vw, 120px) 0;
}
.app--reverse .app__stage {
  order: 2;
}
.app__stage {
  position: relative;
  justify-self: center;
  width: clamp(220px, 28vw, 380px);
}
.app__mascot {
  position: relative;
  z-index: 2;
  cursor: pointer;
}
.app__mascot img {
  width: 100%;
  height: auto;
  /* characters fill their canvases differently; --char-scale evens them out */
  scale: var(--char-scale, 1);
  transform-origin: 50% 100%;
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.14));
}
.app__mascot::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: -18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  filter: blur(8px);
  z-index: -1;
}
.app__decor {
  position: absolute;
  z-index: 3;
  display: block;
  color: var(--app);
  pointer-events: none;
}
.app__decor svg {
  display: block;
  width: 100%;
  height: auto;
  fill: currentColor;
}
.app__card {
  position: relative;
  z-index: 2;
  padding: clamp(28px, 4vw, 52px);
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: #121212;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}
.app__card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.app__icon {
  width: 44px;
  height: 44px;
  border-radius: 24%;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}
.app__meta {
  font-weight: 700;
  font-size: 13px;
  color: var(--app-deep);
}
.app__name {
  margin-bottom: 16px;
  font-weight: 800;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.app__desc {
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.9;
  color: rgba(18, 18, 18, 0.75);
}
.app__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.app__chips li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--app-tint);
  color: var(--app-deep);
  font-weight: 700;
  font-size: 12px;
}
.app__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill--ghost {
  padding: 10px 18px;
  border: 2px solid var(--app-deep);
  color: var(--app-deep);
}
.pill--ghost:hover {
  background: var(--app-deep);
  color: #fff;
}

/* 08. MARQUEE */
.marquee {
  padding: clamp(24px, 4vw, 48px) 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.marquee__row {
  display: flex;
  width: max-content;
}
.marquee__group {
  display: flex;
  align-items: center;
  padding-right: 0.4em;
  font-weight: 800;
  font-size: clamp(56px, 10vw, 160px);
  line-height: 1.1;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.marquee__group span:nth-of-type(even) {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}
.marquee__group i {
  margin: 0 0.35em;
  font-style: normal;
  font-size: 0.5em;
  color: var(--red);
}

/* 09. WORKS */
.works {
  padding: var(--section-space) 0;
  transition: background-color 0.5s var(--ease);
}
.works__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(32px, 4vw, 56px) clamp(16px, 3vw, 40px);
}
.work {
  display: block;
  text-decoration: none;
}
.work:first-child {
  grid-column: 1 / -1;
}
.work__media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  background: #ddd;
}
.work:first-child .work__media {
  aspect-ratio: 16 / 8;
}
.work__media img {
  width: 100%;
  height: 115%;
  object-fit: cover;
  object-position: top;
  transition: scale 0.8s var(--ease);
}
.work:hover .work__media img {
  scale: 1.04;
}
.work__info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}
.work__info h3 {
  font-weight: 700;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.02em;
}
.work__info span {
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
}

/* 10. SERVICES */
.services {
  padding: var(--section-space) 0;
  color: var(--ink);
}
.services .section-title {
  color: var(--ink);
}
.services__panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000;
  color: #fff;
}
.services__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.services__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
  padding: clamp(32px, 5vw, 72px);
  min-height: 520px;
  align-content: end;
}
.service {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.service__num {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 13px;
  color: var(--red);
}
.service h3 {
  margin-bottom: 16px;
  font-weight: 700;
  font-size: clamp(20px, 1.8vw, 24px);
  letter-spacing: -0.02em;
}
.service ul {
  padding: 0;
  list-style: none;
}
.service li {
  font-size: 14px;
  line-height: 2;
  opacity: 0.75;
}

/* 11. CLIENTS */
.clients {
  padding: clamp(64px, 8vw, 104px) 0;
  overflow-x: hidden;
  overflow-x: clip;
}
.clients .section-head {
  margin-bottom: clamp(28px, 4vw, 48px);
}
/* logos run in one row; two identical lists make the loop seamless */
.clients__marquee {
  display: flex;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.clients__row {
  display: flex;
  flex-shrink: 0;
  gap: 16px;
  margin: 0;
  padding: 0 16px 0 0;
  list-style: none;
  animation: clients-scroll 45s linear infinite;
}
.clients__marquee:hover .clients__row {
  animation-play-state: paused;
}
.clients__row li {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: clamp(180px, 18vw, 240px);
  aspect-ratio: 16 / 10;
  padding: clamp(10px, 1.2vw, 16px) clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.clients__row img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@keyframes clients-scroll {
  to {
    transform: translateX(-100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .clients__marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .clients__row {
    flex-wrap: wrap;
    justify-content: center;
    flex-shrink: 1;
    padding: 0 var(--gutter);
    animation: none;
  }
  .clients__row[aria-hidden] {
    display: none;
  }
}

/* 12. CONTACT / FOOTER */
.contact {
  padding: var(--section-space) 0 calc(var(--section-space) / 2);
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact__title {
  margin-bottom: 32px;
  font-weight: 800;
  font-size: clamp(48px, 6.6vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.contact__lead {
  margin-bottom: 32px;
  font-weight: 500;
  font-size: clamp(15px, 1.4vw, 18px);
}
.contact__info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 48px;
  margin-top: 64px;
  font-size: 14px;
  color: var(--muted);
}
.contact__info address {
  font-style: normal;
}
.site-footer {
  overflow: hidden;
  padding: 0 var(--gutter) 24px;
}
.site-footer__word {
  overflow: hidden;
  font-weight: 800;
  font-size: 10.8vw;
  line-height: 0.85;
  letter-spacing: -0.06em;
  white-space: nowrap;
}
.site-footer__word span {
  display: block;
}
.site-footer__links {
  margin-top: 20px;
  font-size: 12px;
}
.site-footer__links a {
  color: var(--muted);
  text-underline-offset: 3px;
}
.site-footer__links a:hover {
  color: var(--ink);
}
.site-footer__copy {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}

/* chat: inquiries arrive as a short conversation */
.chat {
  display: flex;
  flex-direction: column;
  /* fixed height: the conversation scrolls inside, the page around it doesn't move */
  height: clamp(480px, 68vh, 620px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: #121212;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}
.chat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(18, 18, 18, 0.08);
}
.chat__avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #121212;
}
.chat__avatar img {
  width: 24px;
}
.chat__name {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
}
.chat__status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(18, 18, 18, 0.55);
}
.chat__status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3fbf6f;
}
.chat__log {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.chat__msg {
  max-width: 84%;
  padding: 12px 16px;
  border-radius: 20px;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  animation: chat-in 0.4s var(--ease) both;
}
.chat__msg--bot {
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  background: #f1efe9;
}
.chat__msg--user {
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  background: var(--red);
  color: #fff;
}
/* an answer with its way back: "change" sits just left of the bubble */
.chat__answer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  align-self: flex-end;
  gap: 6px;
  max-width: 92%;
}
.chat__answer .chat__msg {
  max-width: none;
}
.chat__change {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(18, 18, 18, 0.45);
  font: 600 11px/1 var(--font);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.chat__change svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}
.chat__change:hover {
  background: rgba(232, 41, 59, 0.08);
  color: var(--red);
}
/* while sending and once sent, answers can't change any more */
.chat.is-sending .chat__change,
.chat.is-sent .chat__change,
.chat.is-sending .chat__edit,
.chat.is-sent .chat__edit,
.chat.is-sending .chat__restart {
  visibility: hidden;
}
.chat__restart {
  margin-left: auto;
  padding: 7px 12px;
  border: 1px solid rgba(18, 18, 18, 0.14);
  border-radius: 999px;
  background: #fff;
  color: rgba(18, 18, 18, 0.6);
  font: 600 12px/1 var(--font);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.chat__restart:hover {
  border-color: var(--red);
  color: var(--red);
}
.chat__restart[hidden] {
  display: none;
}
/* the completion card closes the conversation */
.chat__done {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  gap: 8px;
  margin-top: 6px;
  padding: 26px 20px 22px;
  border: 1px solid rgba(18, 18, 18, 0.08);
  border-radius: 20px;
  background: #fff;
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(18, 18, 18, 0.75);
  animation: chat-in 0.5s var(--ease) both;
}
.chat__done-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--red);
  animation: chat-done-pop 0.6s var(--ease) both;
}
.chat__done-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: chat-done-check 0.5s 0.35s var(--ease) forwards;
}
.chat__done-title {
  font-weight: 700;
  font-size: 17px;
  color: #121212;
}
.chat__done-note {
  font-size: 12px;
  color: rgba(18, 18, 18, 0.55);
}
.chat__done-note strong {
  color: #121212;
  overflow-wrap: anywhere;
}
.chat__done-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.chat.is-sent .chat__restart {
  visibility: hidden;
}
@keyframes chat-done-pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
}
@keyframes chat-done-check {
  to {
    stroke-dashoffset: 0;
  }
}
/* redrawn history appears at once instead of animating in again */
.chat .is-still,
.chat .is-still .chat__msg {
  animation: none;
}
.chat__msg a {
  color: inherit;
  text-underline-offset: 3px;
}
.chat__typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 15px 16px;
  border-radius: 20px;
  border-bottom-left-radius: 6px;
  background: #f1efe9;
}
.chat__typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.45);
  animation: chat-typing 1.1s ease-in-out infinite;
}
.chat__typing span:nth-child(2) {
  animation-delay: 0.15s;
}
.chat__typing span:nth-child(3) {
  animation-delay: 0.3s;
}
.chat__summary {
  align-self: stretch;
  margin: 4px 0 0;
  padding: 16px;
  border: 1px solid rgba(18, 18, 18, 0.1);
  border-radius: 16px;
  font-size: 13px;
  animation: chat-in 0.4s var(--ease) both;
}
.chat__summary div {
  display: grid;
  grid-template-columns: 5.5em 1fr 28px;
  align-items: start;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(18, 18, 18, 0.06);
}
.chat__edit {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: -3px;
  border: 1px solid rgba(18, 18, 18, 0.14);
  border-radius: 50%;
  background: #fff;
  color: rgba(18, 18, 18, 0.6);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.chat__edit svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}
.chat__edit:hover:not(:disabled) {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}
.chat__summary dt {
  font-weight: 700;
  color: rgba(18, 18, 18, 0.5);
}
.chat__summary dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chat__summary p {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(18, 18, 18, 0.55);
}
.chat__summary p a {
  color: var(--ink);
  text-underline-offset: 2px;
}
/* answers are given in the timeline, on the reply side, under their question */
.chat__picks {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-self: flex-end;
  gap: 8px;
  max-width: 92%;
}
.chat__choice {
  padding: 9px 16px;
  border: 1.5px solid var(--red);
  border-radius: 999px;
  background: transparent;
  color: var(--red);
  font: 600 13px/1.3 var(--font);
  cursor: pointer;
  animation: chat-in 0.4s var(--ease) both;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.chat__choice:hover,
.chat__choice.is-current {
  background: var(--red);
  color: #fff;
}
.chat__reply {
  display: flex;
  flex-direction: column;
  align-self: flex-end;
  gap: 8px;
  width: min(88%, 420px);
  padding: 10px;
  border: 1.5px solid var(--red);
  border-radius: 20px;
  border-bottom-right-radius: 6px;
  background: #fff;
  animation: chat-in 0.4s var(--ease) both;
}
.chat__reply-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.chat__reply-error {
  flex: 1;
  font-size: 12px;
  line-height: 1.5;
  color: var(--red);
}
.chat__reply-error:empty {
  display: none;
}
.chat__field {
  display: block;
  width: 100%;
  min-width: 0;
  max-height: 160px;
  padding: 11px 14px;
  border: 1px solid rgba(18, 18, 18, 0.14);
  border-radius: 16px;
  background: #fff;
  color: #121212;
  font: 500 14px/1.6 var(--font);
  resize: none;
}
.chat__field:focus {
  border-color: var(--red);
  outline: none;
}
@media (max-width: 900px) {
  .chat__reply {
    width: 94%;
  }
  /* 16px keeps iPhone from zooming the page when a field is tapped */
  .chat__field {
    font-size: 16px;
  }
}
.chat__send {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}
.chat__send:hover {
  transform: scale(1.06);
}
.chat__send svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.chat__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
@keyframes chat-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}
@keyframes chat-typing {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .chat__msg,
  .chat__summary,
  .chat__choice,
  .chat__reply,
  .chat__done,
  .chat__done-icon,
  .chat__typing span {
    animation: none;
  }
  .chat__done-icon svg {
    animation: none;
    stroke-dashoffset: 0;
  }
}

/* 13. LIGHTBOX */
.lightbox {
  width: min(1100px, 92vw);
  height: 90vh;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
}
.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}
.lightbox__body {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.lightbox__body img {
  width: 100%;
}
.lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #121212;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

/* 14. STORY (app case studies in a full-screen popup) */
.story {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #f6f5f1;
  color: #121212;
}
.story::backdrop {
  background: transparent;
}
.story__scroll {
  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.story__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 6;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: #121212;
  color: #fff;
  font: 600 14px/1 var(--font);
  cursor: pointer;
  transition: transform 0.3s var(--ease);
}
.story__close:hover {
  transform: scale(1.05);
}
.story__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  height: 4px;
  background: rgba(18, 18, 18, 0.1);
  pointer-events: none;
}
.story__progress-bar {
  position: absolute;
  inset: 0;
  background: var(--app-deep);
  transform: scaleX(0);
  transform-origin: left;
}
.story__rider {
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 36px;
  height: 36px;
  border-radius: 24%;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

/* cover */
.story-cover {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 120px var(--gutter) 96px;
  background: var(--app);
  color: var(--app-ink, #fff);
  text-align: center;
}
.story-cover__blob {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  pointer-events: none;
}
.story-cover__blob:nth-of-type(1) {
  top: -12vw;
  left: -10vw;
  width: 42vw;
  height: 42vw;
}
.story-cover__blob:nth-of-type(2) {
  right: -14vw;
  bottom: -18vw;
  width: 56vw;
  height: 56vw;
}
.story-cover__inner {
  position: relative;
  z-index: 1;
}
.story-cover__mascot {
  width: clamp(110px, 14vw, 180px);
  height: auto;
  margin: 0 auto 32px;
  border-radius: 24%;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.2);
}
.story-cover__eyebrow {
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}
.story-cover__title {
  font-weight: 800;
  font-size: clamp(64px, 13vw, 200px);
  line-height: 1;
  letter-spacing: -0.05em;
}
.story-cover__title span {
  display: inline-block;
}
.story-cover__tagline {
  margin-top: 24px;
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.6;
}
.story-cover__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
  margin: 48px 0 0;
  font-size: 13px;
}
.story-cover__meta dt {
  margin-bottom: 4px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}
.story-cover__meta dd {
  margin: 0;
  font-weight: 700;
}

/* chapters */
.story-chapter {
  display: grid;
  grid-template-columns: minmax(120px, 0.6fr) 1fr;
  gap: clamp(24px, 5vw, 80px);
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(96px, 12vw, 160px) var(--gutter);
}
.story-chapter__num {
  position: sticky;
  top: 96px;
  align-self: start;
  font-weight: 800;
  font-size: clamp(80px, 12vw, 180px);
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 2px var(--app-deep);
}
.story-chapter__label {
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--app-deep);
}
.story-chapter h3 {
  margin-bottom: 28px;
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.35;
}
.story-chapter p:not(.story-chapter__label):not(.story-chapter__num) {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 2.1;
  color: rgba(18, 18, 18, 0.78);
}
.story-chapter p + p {
  margin-top: 1.2em;
}

/* statement */
.story-statement {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 120px var(--gutter);
  background: var(--app-tint);
  text-align: center;
}
.story-statement p {
  max-width: 13em;
  font-weight: 800;
  font-size: clamp(32px, 6vw, 88px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--app-deep);
}

/* languages: one question cycling through every language the app speaks */
.story-lang {
  padding: clamp(96px, 12vw, 160px) var(--gutter);
  background: var(--app);
  color: var(--app-ink, #fff);
  text-align: center;
}
.story-lang .story-chapter__label {
  color: inherit;
  opacity: 0.7;
}
.story-lang h3 {
  font-weight: 800;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.3;
}
.story-lang__phrases {
  display: grid;
  gap: 8px;
  max-width: 15em;
  margin: 48px auto 32px;
  padding: 0;
  list-style: none;
  font-weight: 800;
  font-size: clamp(20px, 2.6vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.story.is-motion .story-lang__phrases {
  position: relative;
  display: block;
  min-height: 3.8em;
  font-size: clamp(26px, 4.6vw, 68px);
}
.story.is-motion .story-lang__phrases li {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-wrap: balance;
}
.story-lang__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}
.story-lang__chips li {
  padding: 6px 14px;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  opacity: 0.55;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), opacity 0.4s var(--ease);
}
.story-lang__chips li.is-current {
  background: var(--app-ink, #fff);
  color: var(--app);
  border-color: var(--app-ink, #fff);
  opacity: 1;
}
.story-lang__body {
  max-width: 36em;
  margin: 0 auto;
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 2;
  opacity: 0.85;
}

/* screens: sideways gallery while scrolling down */
.story-screens {
  position: relative;
  background: #121212;
  color: #fff;
}
.story-screens__sticky {
  padding: 96px 0;
  overflow-x: auto;
}
.story.is-motion .story-screens__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}
.story-screens__head {
  margin-bottom: clamp(24px, 4vw, 48px);
  padding: 0 var(--gutter);
}
.story-screens__head h3 {
  font-weight: 800;
  font-size: clamp(32px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.04em;
}
.story-screens__track {
  display: flex;
  gap: clamp(20px, 3vw, 48px);
  width: max-content;
  padding: 0 var(--gutter);
}
.story-shot {
  flex-shrink: 0;
  margin: 0;
}
.story-shot img {
  width: auto;
  height: clamp(300px, 58vh, 600px);
  height: clamp(300px, 58dvh, 600px);
  border-radius: clamp(20px, 2.4vw, 32px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}
.story-shot figcaption {
  max-width: 260px;
  margin-top: 16px;
  font-weight: 600;
  font-size: 13px;
  opacity: 0.7;
}

/* decisions: cards stack on top of each other */
.story-decisions {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(96px, 12vw, 160px) var(--gutter);
}
.story-decisions__head {
  margin-bottom: 48px;
}
.story-decisions__head h3 {
  font-weight: 800;
  font-size: clamp(32px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.04em;
}
.decision {
  position: sticky;
  top: calc(88px + var(--i) * 20px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(20px, 4vw, 56px);
  min-height: 52vh;
  margin-bottom: 40px;
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.06);
  transform-origin: center top;
}
.decision:nth-child(even) {
  background: var(--app-tint);
}
.decision .decision__num {
  align-self: end;
  font-weight: 800;
  font-size: clamp(120px, 15vw, 220px);
  line-height: 0.74;
  letter-spacing: -0.07em;
  white-space: nowrap;
  color: var(--app-deep);
}
.decision__num span {
  display: inline-block;
  vertical-align: top;
  margin-left: 0.5em;
  font-size: clamp(14px, 1.2vw, 18px);
  letter-spacing: 0.04em;
  opacity: 0.45;
}
.decision h4 {
  margin: 0 0 16px;
  text-wrap: balance;
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.4;
}
.decision h4 + p {
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 2;
  color: rgba(18, 18, 18, 0.75);
}

/* timeline */
.story-timeline {
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(96px, 12vw, 160px) var(--gutter);
}
.story-timeline > h3 {
  margin-bottom: 56px;
  font-weight: 800;
  font-size: clamp(32px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.04em;
}
.story-timeline__list {
  position: relative;
}
.story-timeline ol {
  margin: 0;
  padding: 0 0 0 48px;
  list-style: none;
}
.story-timeline__line {
  position: absolute;
  top: 6px;
  bottom: 0;
  left: 9px;
  width: 3px;
  border-radius: 3px;
  background: var(--app-deep);
  transform-origin: top;
}
.story-timeline li {
  position: relative;
  padding-bottom: 44px;
}
.story-timeline li::before {
  content: "";
  position: absolute;
  top: 4px;
  left: -46px;
  width: 17px;
  height: 17px;
  border: 3px solid var(--app-deep);
  border-radius: 50%;
  background: #f6f5f1;
  transition: background-color 0.3s var(--ease), transform 0.4s var(--ease);
}
.story-timeline li.is-reached::before {
  background: var(--app-deep);
  transform: scale(1.25);
}
.story-timeline time {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--app-deep);
}
.story-timeline li strong {
  display: block;
  font-weight: 700;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
}
.story-timeline li span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(18, 18, 18, 0.7);
}

/* outro */
.story-outro {
  padding: clamp(96px, 12vw, 160px) var(--gutter) 160px;
  background: var(--app);
  color: var(--app-ink, #fff);
  text-align: center;
}
.story-outro h3 {
  margin-bottom: 24px;
  font-weight: 800;
  font-size: clamp(40px, 7vw, 104px);
  line-height: 1;
  letter-spacing: -0.045em;
}
.story-outro > p {
  max-width: 34em;
  margin: 0 auto;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 2;
  opacity: 0.9;
}
.story-outro__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}
.pill--white {
  background: #fff;
  color: var(--app-deep);
}
.pill--line {
  border: 2px solid currentColor;
  color: inherit;
}
.story-next {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-top: 96px;
  padding: 16px 28px 16px 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.story-next:hover {
  background: rgba(0, 0, 0, 0.28);
  transform: translateY(-3px);
}
.story-next img {
  width: 56px;
  height: 56px;
  border-radius: 24%;
}
.story-next small {
  display: block;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}
.story-next strong {
  display: block;
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 28px);
}

/* 15. RESPONSIVE */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-nav,
  .site-header__cta,
  .lang-switch {
    display: none;
  }
  .menu-button {
    width: 44px;
    margin-left: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .pmap-wrap {
    grid-template-columns: 1fr;
  }
  .pmap {
    position: static;
  }
  .pmap__plane,
  .pmap figcaption {
    width: 100%;
    max-width: none;
  }
  .story-chapter {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .story-chapter__num {
    position: static;
    font-size: 72px;
  }
  .decision {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .decision .decision__num {
    align-self: start;
    font-size: 88px;
  }
  .app {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 56px;
  }
  .app--reverse .app__stage {
    order: 0;
  }
  .app__stage {
    width: min(64vw, 300px);
  }
  .app__card {
    width: 88%;
  }
  .app:nth-of-type(odd) .app__card {
    justify-self: start;
  }
  .app:nth-of-type(even) .app__card {
    justify-self: end;
  }
  .contact__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  :root {
    --radius-lg: 24px;
  }
  .hero {
    padding: 8px;
  }
  .hero__scroll {
    display: none;
  }
  .hero__lead br {
    display: none;
  }
  .story.is-motion .story-lang__phrases {
    min-height: 4.6em;
  }
  .works__grid {
    grid-template-columns: 1fr;
  }
  .work:first-child .work__media {
    aspect-ratio: 16 / 10;
  }
  .services__grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .marquee__group span:nth-of-type(even) {
    -webkit-text-stroke-width: 1.5px;
  }
}

/* privacy policy page */
.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 820px;
  margin: 0 auto;
  padding: 20px var(--gutter);
}
.legal-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.legal-header__brand img {
  width: 28px;
  height: auto;
  filter: invert(1);
}
/* the top page hides this on small screens in favor of its menu; this page has no menu */
.legal-header .lang-switch {
  display: inline-block;
}
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) var(--gutter) clamp(64px, 10vw, 120px);
}
.legal__eyebrow {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}
.legal h1 {
  margin: 0 0 32px;
  font-weight: 800;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.legal h2 {
  margin: 48px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 18px;
  line-height: 1.5;
}
.legal p,
.legal li {
  font-size: 15px;
  line-height: 1.9;
}
.legal p {
  margin: 0 0 12px;
}
.legal ul {
  margin: 0 0 12px;
  padding-left: 1.4em;
}
.legal a:not(.pill) {
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.legal__date {
  margin-top: 48px !important;
  color: var(--muted);
  font-size: 13px !important;
}
.legal__back {
  margin-top: 24px;
}
.legal-footer {
  max-width: 820px;
  margin: 0 auto;
}
.legal--center {
  min-height: 60vh;
}
