/* Shared palette, typography, and face geometry. */

:root {
  color-scheme: dark;
  --stage: #171715;
  --text: #f1eee8;
  --muted: #b4b0a6;
  --focus: #e7be64;
  --sans: "Archivo",Arial,sans-serif;
  --mono: "DM Mono",monospace;
  --gutter: clamp(24px,4vw,72px);
  --face-w: clamp(264px, calc((100svh - 470px) / 1.3), 420px);
  --face-h: calc(var(--face-w)*1.3);
  --inset: clamp(16px, calc(var(--face-w) * .06), 24px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--stage);
  color: var(--text);
  font: 400 15px/1.5 var(--sans);
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-underline-offset: .2em;
}

button, a, [tabindex] {
  outline-offset: 5px;
}

:focus-visible {
  outline: 2px solid var(--focus);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 16px;
  left: var(--gutter);
  padding: 10px 18px;
  background: var(--text);
  color: var(--stage);
  font-weight: 600;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Existing identity and navigation. */

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 30px var(--gutter);
}

.designer-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.045em;
  text-decoration: none;
}

.identity p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.site-header nav ul {
  display: flex;
  gap: clamp(18px,2.2vw,36px);
  list-style: none;
  margin: 0;
  padding: 5px 0;
}

.site-header nav a {
  display: inline-block;
  padding: 3px 0;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.site-header nav a:hover {
  text-decoration: underline;
}

a[aria-disabled="true"] {
  color: #928e85;
  text-decoration: none;
  cursor: default;
}

/* The cube is the central object in a quietly lit space. */

.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px var(--gutter) 24px;
  min-height: 0;
  background: radial-gradient(ellipse at 50% 40%, #2a2a28 0, #171715 70%);
  overflow: visible;
}

.scene-position {
  position: relative;
  width: var(--face-w);
  height: var(--face-h);
  margin-bottom: calc(var(--face-w) * .24);
}

.floor-shadow {
  position: absolute;
  width: 122%;
  height: 20px;
  bottom: -34px;
  left: -11%;
  background: #090b08a6;
  border-radius: 50%;
  filter: blur(16px);
  pointer-events: none;
  opacity: .65;
}

.scene {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1600px;
  perspective-origin: 50% 44%;
  touch-action: pan-y;
  cursor: grab;
}

.scene:focus-visible {
  outline-offset: 35px;
}

.scene.is-dragging, .scene.is-dragging * {
  cursor: grabbing;
  user-select: none;
}

/* Keep the spatial chain unflattened. Clipped cover and screen planes are separate. */

.pose, .prism, .face, .device, .lift, .tilt {
  transform-style: preserve-3d;
  overflow: visible;
}

.pose, .prism {
  position: relative;
  width: 100%;
  height: 100%;
}

.pose {
  transform: rotateX(-9deg) rotateY(-14deg);
}

.prism {
  transform: rotateY(var(--rotation));
}

.prism.is-turning {
  transition: transform 700ms cubic-bezier(.2,.8,.2,1);
}

.face {
  position: absolute;
  inset: 0;
  border-radius: 0;
  background: var(--brand-bg);
  color: var(--brand-ink);
  transform: rotateY(calc(var(--side)*90deg)) translateZ(calc(var(--face-w)/2));
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  --device-h: calc(var(--face-h) * .70);
  /* iPhone 18 Pro Max frame (assets/iphone18pm-frame.webp, generated with ChatGPT image generation, 690x1435) */
  --frame-ratio: .48084;
  --device-w: calc(var(--device-h) * var(--frame-ratio));
  --device-x: calc(var(--face-w) - var(--device-w) - 14px);
  --device-y: calc(var(--face-h) - var(--device-h) - var(--inset) - 24px);
  --bezel: 12px;
  --rest-angle: -4deg;
  --text-w: clamp(120px, calc(var(--face-w) * .42), 170px);
  --feedback-y: calc(var(--face-h) * .66);
}

.face-lumiere {
  --device-h: calc(var(--face-h) * .56);
}

.face[aria-hidden="true"] {
  pointer-events: none;
}

.edge-backing {
  position: absolute;
  inset: .5px;
  background: color-mix(in srgb, var(--edge) 90%, #000000);
  transform: rotateY(calc(var(--side)*90deg)) translateZ(calc(var(--face-w)/2 - .5px));
  pointer-events: none;
  backface-visibility: hidden;
}

.cap {
  position: absolute;
  left: 0;
  width: var(--face-w);
  height: var(--face-w);
  background: #301a19;
  backface-visibility: hidden;
  pointer-events: none;
  -webkit-backface-visibility: hidden;
}

.cap-top {
  background: linear-gradient(135deg, #2b2927, #1f1e1c);
  top: calc(var(--face-w)/-2);
  transform: rotateX(90deg);
}

.cap-bottom {
  background: #0f0e0d;
  top: calc(var(--face-h) - var(--face-w)/2);
  transform: rotateX(-90deg);
}

/* Flat cover artwork is a sibling of the device, never its ancestor. */

.cover {
  position: absolute;
  inset: -.25px;
  overflow: hidden;
  transform-style: flat;
  border-radius: 0;
  background: radial-gradient(ellipse at 18% 4%, color-mix(in srgb, var(--brand-bg) 86%, var(--brand-accent)), transparent 68%), var(--brand-bg);
}

.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #00000030 0%, #00000030 58%, #0000000d 100%);
}

.face-hearthome .cover::before {
  background: linear-gradient(90deg, #0000003d 0%, #00000033 60%, #00000026 100%);
}

.face-lumiere .cover::before {
  background: linear-gradient(90deg, #00000040 0%, #00000040 80%, #0000000d 100%);
}

.cover::after {
  z-index: 0;
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, #00000038, #00000059);
  opacity: 0;
}

.face:not([data-active="true"]) .cover::after {
  z-index: 0;
  opacity: 1;
}

.cover > * {
  z-index: 1;
}

.cover-eyebrow {
  position: absolute;
  top: var(--inset);
  left: var(--inset);
  right: var(--inset);
  margin: 0;
  font: 400 12px/1.4 var(--mono);
  letter-spacing: -.025em;
}

.face-lumiere .cover-eyebrow {
  color: var(--brand-accent);
}

.cover h2 {
  position: absolute;
  top: calc(var(--inset) + 31px);
  left: var(--inset);
  margin: 0;
  max-width: var(--text-w);
  font-size: clamp(28px, calc(var(--face-w) * .085), 36px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.03em;
}

.cover-value {
  position: absolute;
  left: var(--inset);
  top: max(124px, calc(var(--face-h) * .32));
  width: var(--text-w);
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: -.025em;
}

.watch-pill {
  position: absolute;
  top: var(--feedback-y);
  left: var(--inset);
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid color-mix(in srgb,var(--brand-ink) 25%,transparent);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  transition: none;
  white-space: nowrap;
  border-color: color-mix(in srgb, var(--brand-ink) 45%, transparent);
}

.watch-pill>span {
  font-size: 12px;
}

.face.is-playing .watch-pill {
  opacity: 0;
}

.project-open {
  position: absolute;
  left: var(--inset);
  bottom: var(--inset);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

a.project-open:hover {
  text-decoration: underline;
}

span.project-open {
  font-weight: 400;
  color: var(--brand-ink);
}

/* Stationary hit area; only lift and tilt move in three dimensions. */

.device {
  position: absolute;
  top: var(--device-y);
  left: var(--device-x);
  width: var(--device-w);
  height: var(--device-h);
  transform: translateZ(1px);
}

.device-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  touch-action: pan-y;
}

.device-play:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 10px;
}

.lift, .tilt {
  position: absolute;
  inset: 0;
  pointer-events: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.lift {
  transform: translateZ(0) rotateZ(var(--rest-angle));
  transition: transform 320ms cubic-bezier(.16,1,.3,1);
}

.tilt {
  background: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  transform: rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg));
}

.face.is-lifted .lift {
  transform: translateX(calc(var(--face-w) * .11)) translateY(-4%) translateZ(calc(var(--face-w) * .26)) scale(1.06) rotateZ(0deg);
  transition-duration: 520ms;
}

.screen {
  position: absolute;
  top: 1.324%;
  left: 3.375%;
  width: 93.556%;
  height: 97.352%;
  border-radius: 13% / 6%;
  overflow: hidden;
  transform-style: flat;
  background: var(--brand-bg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  pointer-events: none;
  color-scheme: light;
}

/* The generated frame already carries the Dynamic Island. */
.tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url(assets/iphone18pm-frame.webp) center / 100% 100% no-repeat;
  transform: translateZ(.5px);
  pointer-events: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.device-camera {
  display: none;
  position: absolute;
  top: 8px;
  left: 50%;
  width: 11%;
  height: 3px;
  transform: translateX(-50%);
  background: #26231f;
  pointer-events: none;
}

.lift-shadow {
  position: absolute;
  width: var(--device-w);
  height: calc(var(--device-h)*.91);
  left: var(--device-x);
  top: calc(var(--device-y) + 7px);
  background: #000;
  filter: blur(14px);
  transform: translateZ(.5px) rotateZ(var(--rest-angle)) scale(.96);
  opacity: .18;
  transition: transform 320ms cubic-bezier(.16,1,.3,1),opacity 320ms ease-out;
  pointer-events: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.face.is-lifted .lift-shadow {
  transform: translateZ(.5px) translate(18px, 34px) scale(1.08);
  opacity: .55;
  transition-duration: 520ms;
}

.lift-shadow::after {
  content: "";
  position: absolute;
  inset: -14px;
  background: inherit;
  filter: blur(14px);
  opacity: 0;
  transition: opacity 320ms ease-out;
}

.face.is-lifted .lift-shadow::after {
  opacity: 1;
  transition-duration: 520ms;
}

.demo-feedback {
  position: absolute;
  top: var(--feedback-y);
  left: var(--inset);
  width: var(--text-w);
  transform: none;
  text-align: left;
  opacity: 0;
  transition: none;
  pointer-events: none;
  backface-visibility: hidden;
  transition-delay: 0ms;
}

.face.is-playing .demo-feedback {
  opacity: 1;
  transition: opacity 180ms ease;
  transition-delay: 120ms;
}

.demo-caption {
  margin: 0 0 9px;
  min-height: 0;
  font-size: 12px;
  line-height: 1.3;
}

.demo-progress {
  display: flex;
  justify-content: flex-start;
  gap: 5px;
}

.demo-step {
  width: 10px;
  height: 4px;
  background: color-mix(in srgb, var(--brand-ink) 30%, transparent);
  overflow: hidden;
}

.demo-step>i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--brand-accent);
  transform: scaleX(0);
  transform-origin: left;
}

/* Demo layers, gestures, and the built-in Lumière screens. */

.screen-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
}

.demo-image {
  width: 100%;
  max-width: none;
  height: auto;
  transform-origin: top;
}

.demo-video, .video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.demo-finger {
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff66;
  border: 1px solid #382b2780;
  box-shadow: 0 1px 3px #19110b25;
  z-index: 8;
  opacity: 0;
  pointer-events: none;
}

.finger-ripple {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid #ffffffc9;
  opacity: 0;
}

.reel-screen, .chat-screen {
  position: absolute;
  inset: 0;
}

.reel-overlay {
  position: absolute;
  inset: 0;
  color: #fffaf5;
  background: linear-gradient(transparent 50%,#20150dd9);
  font-size: 8px;
}

.reel-account {
  position: absolute;
  top: 12px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
}

.reel-logo {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.reel-message {
  position: absolute;
  bottom: 9px;
  left: 9px;
  right: 9px;
  text-align: center;
  padding: 5px;
  border: 1px solid #fffaf59c;
  border-radius: 3px;
  font-weight: 600;
}

.chat-screen {
  display: flex;
  flex-direction: column;
  background: #fffdfa;
  color: #35261f;
  font-family: "Readex Pro",var(--sans);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 7px 9px;
  border-bottom: 1px solid #e9e2da;
  font: 600 11px/1.3 var(--sans);
}

.chat-logo {
  width: 21px;
  height: 21px;
  border-radius: 50%;
}

.chat-body {
  padding: 10px 7px;
  flex: 1;
  font-size: 9px;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.chat-chips {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  height: auto;
  padding-bottom: 18%;
  flex: 1;
  min-height: 0;
}

.chat-chip {
  padding: 4px 7px;
  border: 1px solid #c8b9ab;
  border-radius: 12px;
  color: #4a2616;
}

.chat-bubble {
  max-width: 94%;
  padding: 7px 8px;
  margin-bottom: 9px;
  border-radius: 10px;
  text-align: right;
}

.chat-bubble--customer {
  background: #71503d;
  color: #fffaf4;
  margin-left: auto;
  width: fit-content;
}

.chat-bubble--reply {
  background: #f1e9e1;
}

.chat-typing {
  color: #8e8782;
  font-size: 16px;
  letter-spacing: 2px;
}

.chat-greeting {
  font-size: 9px;
  text-align: center;
  margin: 8px 0;
}

.chat-composer {
  padding: 7px;
  border-top: 1px solid #e9e2da;
  font-size: 8px;
  color: #8e8782;
  margin-top: auto;
}

/* Project switcher and supporting homepage content. */

.cube-controls {
  display: flex;
  gap: 16px;
  align-items: center;
}

.turn-button {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid #a9a08a55;
  border-radius: 50%;
  background: transparent;
  color: #cfc9bb;
  font-size: 19px;
}

.turn-button:hover {
  border-color: #e7dcc6;
  color: #faf5ec;
}

.work-caption {
  width: 210px;
  text-align: center;
}

.caption-line {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 3px;
}

#current-work {
  font-size: 22px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.025em;
}

#current-count {
  font: 500 10px/1 var(--mono);
  letter-spacing: .12em;
  color: #b0aa9d;
}

.face-dots {
  display: flex;
  justify-content: center;
}

.face-dots button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
}

.face-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #74766b;
}

.face-dots [aria-pressed="true"] span {
  background: #efcf84;
}

.cube-help {
  display: flex;
  align-items: baseline;
  gap: 17px;
  font-size: 11px;
  color: #b4b0a6;
  min-height: 36px;
}

.cube-help p {
  margin: 0;
}

.cube-help p>span[aria-hidden] {
  padding-inline: 5px;
}

.cube-help a {
  padding-block: 10px;
  text-decoration-color: #8f897c;
}

/* The story line sits above the cube. */
.intro {
  position: relative;
  z-index: 2;
  width: min(560px,100%);
  margin: 8px 0 34px;
  color: #e9e4d8;
  font-size: clamp(16px,1.35vw,20px);
  line-height: 1.45;
  letter-spacing: -.015em;
  text-align: center;
  text-wrap: balance;
}

.stage-index-link {
  position: absolute;
  right: var(--gutter);
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: #f1ece0;
  text-decoration: none;
}

.sil-text {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.sil-arrow {
  font-size: 18px;
  line-height: 1;
  transition: transform 320ms cubic-bezier(.16,1,.3,1);
}

.stage-index-link:hover .sil-arrow {
  transform: translateY(4px);
}

.noscript-note {
  margin: 20px;
  font-size: 12px;
}

/* The work list remains the non-interactive fallback. */

.work-section {
  background: #eeece4;
  color: #272a24;
  padding: 86px var(--gutter) 0;
}

.work-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: baseline;
  padding-bottom: 36px;
}

.work-section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 42px);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -.055em;
}

.work-section-heading p {
  margin: 0;
  color: #626558;
  font-size: 13px;
}

.work-list ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-list li {
  border-top: 1px solid #c6c8ba;
}

.work-list li > a {
  display: grid;
  grid-template-columns: 40px 1fr minmax(170px, 24%) 24px;
  align-items: center;
  gap: 18px;
  padding: 28px 0;
  text-decoration: none;
}

.work-number {
  align-self: start;
  padding-top: 6px;
  color: #646859;
  font: 400 11px/1.5 var(--mono);
}

.work-name {
  font-size: clamp(20px, 2.1vw, 29px);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -.045em;
}

.work-description {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0;
  color: #575e50;
}

.work-type {
  color: #575e50;
  font-size: 12px;
}

.coming-soon {
  display: block;
  margin-top: 6px;
  color: #626658;
  font-size: 10px;
}

.work-arrow {
  font-size: 23px;
  text-align: right;
}

.work-list a[aria-disabled="true"] {
  cursor: default;
}

.work-list a[aria-disabled="true"] .work-arrow {
  color: #878d7d;
}

.work-list li > a:not([aria-disabled]):hover .work-name {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.work-lab-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 0 26px 58px;
  border-block: 1px solid #c6c8ba;
  color: #374d32;
  text-decoration: none;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.03em;
}

.lab-link-note {
  margin-left: 18px;
  font-size: 12px;
  font-weight: 400;
  color: #626558;
  letter-spacing: 0;
}

.work-lab-link:hover {
  color: #1e3919;
  text-decoration: underline;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 32px;
  color: #626558;
  font-size: 11px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-decoration: none;
}

.device, .device * {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* The stationary desktop button covers the face; its CTA cutout remains usable. */

@media (hover:hover) and (pointer:fine) {
  .device-play {
    inset: auto;
    left: calc(-1*var(--device-x));
    top: calc(-1*var(--device-y));
    width: var(--face-w);
    height: var(--face-h);
    clip-path: polygon(0 0,100% 0,100% 100%,55% 100%,55% calc(100% - 75px),0 calc(100% - 75px));
  }
  .device-play:focus-visible {
    outline: none;
  }
  .face:has(.device-play:focus-visible) .cover {
    outline: 3px solid var(--brand-accent);
    outline-offset: -8px;
  }
}

/* Stack supporting content when the side columns no longer have room. */

@media (max-width:1100px) {
  .stage {
    padding-bottom: 32px;
  }
  .intro {
    width: min(450px,100%);
    font-size: 16px;
    margin: 0 0 22px;
  }
  .stage-index-link {
    position: static;
  }
}

/* Compact portrait covers keep the switcher and Lab access in the first screen. */

@media (max-width:700px) {
  :root {
    --face-w: clamp(250px, min(calc((100vw - 24px) / 1.3), calc((100svh - 350px) / 1.3)), 300px);
    --inset: 16px;
    --face-h: calc(var(--face-w) * 1.3);
  }
  .site-header {
    padding: 16px 24px;
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
  }
  .site-header nav {
    width: auto;
  }
  .site-header nav ul {
    gap: 6px;
    padding: 0;
    flex-wrap: nowrap;
    align-items: center;
  }
  .site-header nav a {
    min-height: 44px;
    font-size: 13px;
    display: flex;
    align-items: center;
    padding: 0;
  }
  .stage {
    padding: 14px 24px 28px;
    min-height: 0;
  }
  .scene-position {
    margin-bottom: 30px;
  }
  .pose {
    transform: translateX(calc(var(--face-w) * .01)) scale(.89) rotateX(-7deg) rotateY(-10deg);
  }
  .cover-eyebrow {
    font-size: 13px;
    max-width: none;
    line-height: 1.4;
    letter-spacing: -.04em;
  }
  .cover h2 {
    top: 52px;
    font-size: 28px;
  }
  .cover-value, .face-nimble .cover-value {
    top: max(124px, calc(var(--face-h) * .32));
    width: var(--text-w);
    font-size: 15px;
    line-height: 1.3;
    max-width: none;
  }
  .face {
    --device-h: calc(var(--face-h) * .62);
    --device-y: calc(var(--face-h) - var(--device-h) - 26px);
    --device-x: calc(var(--face-w) - var(--device-w) - 10px);
    --bezel: 8px;
    --text-w: clamp(120px, calc(var(--face-w) * .42), 170px);
    --feedback-y: calc(var(--face-h) * .66);
  }
  .face-lumiere {
    --device-h: calc(var(--face-h) * .56);
  }
  .cover h2 br {
    display: initial;
  }
  .watch-pill>span {
    font-size: 13px;
  }
  .watch-pill {
    top: var(--feedback-y);
    max-width: none;
    font-size: 13px;
    line-height: 1.25;
    padding: 9px 14px;
    gap: 7px;
    white-space: nowrap;
  }
  .project-open {
    font-size: 13px;
    bottom: 12px;
    gap: 5px;
    max-width: none;
    flex-wrap: nowrap;
    line-height: 1.4;
    align-content: center;
    white-space: nowrap;
  }
  .tilt {
    padding: 0;
  }
  .device-camera {
    top: 5px;
    height: 2px;
  }
  .demo-feedback {
    top: var(--feedback-y);
    width: var(--text-w);
  }
  .demo-caption {
    font-size: 13px;
    margin-bottom: 7px;
    line-height: 1.3;
    min-height: 0;
  }
  .demo-step {
    width: 7px;
    height: 4px;
  }
  .demo-progress {
    gap: 3px;
  }
  .cube-controls {
    gap: 10px;
  }
  .work-caption {
    width: 185px;
  }
  .caption-line {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
  }
  #current-count {
    font-size: 13px;
    letter-spacing: 0;
  }
  .stage-index-link {
    order: 1;
  }
  #current-work {
    font-size: 18px;
  }
  .cube-help {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 12px;
    font-size: 13px;
    min-height: 44px;
  }
  .intro {
    font-size: 14px;
    line-height: 1.4;
    margin: 0 0 18px;
  }
  .stage-index-link {
    align-self: center;
  }
  .chat-header {
    padding: 8px 4px 5px;
    font-size: 7px;
    gap: 3px;
  }
  .chat-logo {
    width: 12px;
    height: 12px;
  }
  .chat-body {
    font-size: 6px;
    padding: 5px 4px;
    line-height: 1.65;
  }
  .chat-bubble {
    padding: 4px;
    margin-bottom: 5px;
    border-radius: 6px;
  }
  .chat-chip {
    padding: 2px 3px;
  }
  .chat-chips {
    gap: 3px;
  }
  .reel-account {
    font-size: 6px;
    top: 8px;
    left: 5px;
    gap: 3px;
  }
  .reel-logo {
    width: 10px;
    height: 10px;
  }
  .reel-message {
    font-size: 6px;
    bottom: 5px;
    left: 5px;
    right: 5px;
    padding: 3px;
  }
  .screen {
    font-size: 8px;
  }
  .work-section {
    padding-top: 48px;
  }
  .work-section-heading {
    display: block;
    padding-bottom: 28px;
  }
  .work-section-heading p {
    margin-top: 9px;
    font-size: 12px;
  }
  .work-list li>a {
    grid-template-columns: 24px 1fr 18px;
    gap: 12px;
    padding-block: 22px;
  }
  .work-name {
    font-size: 22px;
  }
  .work-description {
    font-size: 12px;
  }
  .work-type {
    grid-column: 2;
    grid-row: 2;
    font-size: 11px;
  }
  .work-arrow {
    grid-column: 3;
    grid-row: 1;
  }
  .work-number {
    font-size: 9px;
  }
  .coming-soon {
    display: inline;
    margin-left: 9px;
    font-size: 9px;
  }
  .work-lab-link {
    padding-left: 36px;
    font-size: 22px;
  }
  .lab-link-note {
    display: block;
    margin-left: 0;
    margin-top: 5px;
    font-size: 11px;
  }
  .site-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    font-size: 10px;
  }
  .site-footer p:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .site-footer a {
    grid-column: 2;
    grid-row: 1;
  }
  .designer-name {
    display: block;
    font-size: 14px;
    white-space: nowrap;
  }
  .identity p {
    display: none;
  }
}

@media (max-width:360px) {
  .watch-pill {
    padding-inline: 9px;
  }
  .face {
    --device-x: calc(var(--face-w) - var(--device-w) - 4px);
    --rest-angle: 1deg;
  }
  .pose {
    transform: translateX(calc(var(--face-w) * .01)) scale(.83) rotateX(-7deg) rotateY(-10deg);
  }
  .designer-name {
    max-width: 66px;
    white-space: normal;
    line-height: 1.15;
  }
}

/* Respect explicit playback and remove spatial motion for reduced motion. */

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  .prism.is-turning, .lift, .lift-shadow, .watch-pill {
    transition: none;
  }
  .face.is-lifted .lift {
    transform: rotateZ(var(--rest-angle));
  }
  .tilt {
    transform: none;
  }
  .face.is-lifted .lift-shadow {
    transform: translateZ(.5px) rotateZ(var(--rest-angle)) scale(.96);
    opacity: .18;
  }
  .demo-finger {
    display: none;
  }
  .lift-shadow::after {
    display: none;
  }
  .demo-feedback {
    transition-delay: 120ms;
  }
}
