@font-face {
  font-family: "Noto Sans SC";
  src: url("assets/fonts/noto-sans-sc.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Sema Signature";
  src: url("assets/fonts/signature.ttf") format("truetype");
  font-weight: 650;
  font-display: swap;
}
:root {
  --edge: clamp(24px,6.3vw,130px);
  --light: #f4f3ec;
  font-family: "Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;
  background: #1b302d;
  color: var(--light);
  scroll-snap-type: y mandatory;
}
* { box-sizing: border-box; }
body,h1,h2,p { margin: 0; }
a { color: inherit; text-decoration: none; }
button,summary { color: inherit; font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.skip { position: fixed; z-index: 8; top: 8px; left: 12px; background: #22322e; padding: 8px; clip-path: inset(50%); }
.skip:focus { clip-path: none; }
#hero-media { position: fixed; inset: 0; pointer-events: none; background: #263b38; }
#hero-media img,#hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#hero-media video { opacity: 0; }
#hero-media .playing { opacity: 1; }
.masthead,.controls { position: fixed; z-index: 5; inset-inline: 0; padding-inline: var(--edge); display: flex; align-items: center; justify-content: space-between; }
.masthead { top: 0; min-height: 86px; background: linear-gradient(#112020a1,transparent); }
.signature { font: 650 clamp(21px,1.9vw,32px)/1.2 "Sema Signature","PingFang SC",sans-serif; letter-spacing: .085em; }
.masthead nav { display: flex; gap: clamp(18px,2.6vw,54px); align-items: center; font-size: 14px; }
.masthead nav a { display: block; padding-block: 10px; }
.masthead nav a:hover,.masthead nav a[aria-current],.text-link:hover { text-decoration: underline; text-underline-offset: 6px; }
.scene { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 100vh; min-height: 100dvh; overflow: clip; scroll-snap-align: start; scroll-snap-stop: always; padding: 116px var(--edge) 98px; }
.scene::before,.story::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero::before { background: linear-gradient(100deg,#112823bc,#19272327 82%); }
.copy { position: relative; width: fit-content; }
h1 img { display: block; width: min(57.58vw,969px); height: auto; opacity: .82; }
.slogan { margin-top: clamp(24px,2.6vw,44px); font-size: clamp(24px,2.7vw,48px); line-height: 1.4; letter-spacing: .025em; }
.shelf { --tone: #34433bc4; }
.threshold { --tone: #203542bd; }
.meeting { --tone: #273c39d9; }
.story::before { background: var(--tone); z-index: -3; }
.lens { position: absolute; inset: 0; pointer-events: none; z-index: -2; mask-image: linear-gradient(90deg,transparent 7%,#0002 26%,#000b 53%,black 75%); }
/* Every plane is registered to this 3:2 camera. Desktop and phone share contact points. */
.scene { --phase: 0; --depth: 0; --distance: max(var(--depth),calc(-1 * var(--depth))); }
.shot {
  position: absolute;
  width: max(105%,159dvh);
  aspect-ratio: 3 / 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
}
.shot .plane, .shot .backplate, .shot .subject,
.shot .reflection img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.shot .backplate, .glass-lettering {
  transform: translate3d(calc(var(--phase) * -1.4%),calc(var(--phase) * 1.4%),0);
}
.shelf {
  --slide: calc(var(--depth) * 11%);
  --rack-y: calc(var(--depth) * 2.2%);
  --lift: calc(var(--distance) * -11%);
}
.shelf .contact, .threshold .contact, .threshold .reflection {
  transform: translate3d(calc(var(--phase) * -1.4%),calc(var(--phase) * 1.4%),0);
}
.shelf .subject {
  transform: translate3d(calc(var(--phase) * -1.4% + var(--slide)),calc(var(--phase) * 1.4% + var(--rack-y) + var(--lift)),0);
}
.shelf .contact, .threshold .contact { mix-blend-mode: multiply; }
.shelf .carton-ground { transform: translate(var(--slide),var(--rack-y)); }
.shelf .seam, .threshold .seam { opacity: clamp(0,calc(.87 - var(--distance) * 5),.87); }
.shelf .cast {
  transform: translate(calc(var(--distance) * 2.8%),calc(var(--distance) * -1.5%));
  opacity: clamp(.16,calc(.56 - var(--distance) * .4),.56);
}
.threshold {
  --step-x: calc(var(--distance) * 13%);
  --floor-y: calc(var(--distance) * 2.2%);
  --toe-lift: calc(var(--distance) * -4.8%);
}
.threshold .reflection {
  clip-path: polygon(44.9% 0,55.1% 0,55.1% 56.5%,45.5% 60.2%);
  opacity: .105;
}
.threshold .reflection img {
  transform-origin: 0 0;
  transform: translate3d(calc(96% - var(--step-x) * .45),calc(.8% + var(--toe-lift) * .65),0) scale(-.53,.71);
  filter: blur(2px) saturate(.3);
}
.glass-lettering { color: #e9eae1; opacity: .67; filter: blur(.45px); }
.threshold .shoe-ground { transform: translate(var(--step-x),var(--floor-y)); }
.threshold .cast {
  transform: translate(calc(var(--distance) * 1.2%),calc(var(--distance) * .9%));
  opacity: clamp(.18,calc(.48 - var(--distance) * .3),.48);
}
.threshold .subject {
  transform: translate3d(calc(var(--phase) * -1.4% + var(--step-x)),calc(var(--phase) * 1.4% + var(--floor-y) + var(--toe-lift)),0);
}
/* The screen and supporting hand move together. The approaching finger is closer to the camera. */
.meeting .lens {
  mask-image: linear-gradient(90deg,transparent 8%,#0001 20%,#000a 35%,#000 44%);
}
.meeting .shot {
  left: auto; right: -.5vw; top: 50%;
  width: min(92vw,170svh);
  transform: translateY(-50%);
}
.tablet-photo {
  display: block; width: 100%; height: 100%;
  mask-image: linear-gradient(0deg,transparent,#000 11%,#000 89%,transparent);
}
.meeting .finger-plane {
  pointer-events: none;
  transform: translate3d(calc(var(--phase) * -1.4% + var(--distance) * 8%),calc(var(--phase) * 1.4% + var(--distance) * 8%),0);
}
.tapping-index {
  position: absolute; left: 63.9%; top: 59.75%; width: 45%; height: auto;
  transform: translateX(var(--hand-travel,0%));
  filter: saturate(.3) drop-shadow(-3px 6px 5px #080d0e66);
}
/* Both decisions live on the same glass plane, 21% of its width apart. */
.meeting:has(.tablet-glass[data-state="declined"]) { --hand-travel: 28.16%; }
.meeting:has(.tablet-glass[data-state="pending"] .decline-decision:focus-visible) { --hand-travel: 28.16%; }
@media (hover:hover) {
  .meeting:has(.decline-decision:enabled:hover) { --hand-travel: 28.16%; }
}
@media (prefers-reduced-motion:no-preference) {
  .tapping-index { transition: transform .42s cubic-bezier(.21,.63,.31,1); }
}
.tablet-glass {
  position: absolute;
  left: 34%; top: 21.35%; width: 60.35%; height: 56.95%;
  transform: skewY(.16deg); transform-origin: top left;
  clip-path: polygon(0 0,100% 0,100% 100%,2% 100%,4.6% 99%,6.8% 97%,8.1% 94.5%,8.7% 92.5%,8.45% 90.6%,7.8% 89.1%,6.3% 88.3%,3% 87.6%,0 86.3%);
  border-radius: 2.5% / 3.7%; overflow: hidden; container-type: inline-size;
  background: linear-gradient(120deg,#151d20f5,#132023e6);
  font-family: -apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
  color: #e9efea; pointer-events: auto;
}
.console-bar {
  display: flex; align-items: center; justify-content: space-between; height: 14%;
  padding: 0 4%; background: #122321; border-bottom: 1px solid #82988b48;
}
.console-name { color: #f4f6ed; font-size: max(12px,2.65cqw); letter-spacing: -.04em; font-weight: 650; }
.console-name { display: inline-flex; align-items: center; gap: .52em; }
.console-name::before { content: ""; width: 1.25em; height: 1.25em; border-radius: .24em; border: 1px solid #8da99670; background: url("assets/semawave-symbol.svg") center / 94% no-repeat; }
.sample-label,.rail-title { color: #bdcec4; font-size: max(9px,1.65cqw); }
.task-rail {
  position: absolute; inset: 14% auto 0 0; width: 23.5%;
  padding: 4% 1.5%; background: #162322; border-right: 1px solid #abbcac26;
}
.rail-title { margin: 0 0 .85em .6em; }
.task-choice {
  display: block; width: 100%; padding: .55em .45em; margin-bottom: .35em;
  text-align: left; font-size: max(11px,2cqw); white-space: nowrap;
  border-radius: .3em; border: 1px solid transparent; color: #c9d5cd; background: transparent;
}
.task-choice[aria-pressed="true"] { background: #30483e; color: #f3f5e8; border-color: #829e8475; }
.tablet-glass button:focus-visible { outline: 2px solid #e4fbe6; outline-offset: 1px; }
.task-pane { position: absolute; left: 28%; right: 3.2%; top: 19%; }
.task-context { font-size: max(10px,1.95cqw); line-height: 1.25; color: #b2d6bf; }
.task-title { font-size: max(16px,4.4cqw); line-height: 1.2; font-weight: 550; letter-spacing: -.04em; margin: .27em 0 .26em; }
.task-offer { font-size: max(11px,2.35cqw); line-height: 1.35; color: #e3ebe3; }
.task-reason { margin-top: .52em; padding-left: .7em; border-left: 2px solid #86af94; font-size: max(10px,1.92cqw); line-height: 1.45; color: #bfd0c5; }
.bundle-sketch {
  position: absolute; left: 3%; width: 18%; top: 54%; height: 30%;
  background-image: radial-gradient(#b5cdc831 .6px, transparent .8px);
  background-size: 1.5cqw 1.5cqw; pointer-events: none;
}
.bundle-sketch svg { display: block; width: 100%; height: 100%; stroke-linejoin: round; stroke-linecap: round; }
.bundle-sketch .breakfast-sketch, [data-task="breakfast"] .dinner-sketch { display: none; }
[data-task="breakfast"] .breakfast-sketch { display: block; }
.pack-front { fill: #adcbb421; stroke: #a9c6b2; stroke-width: 1.6; }
.pairing-plus { stroke: #e4efdf; stroke-width: 1.7; }
.decision-actions {
  position: absolute; top: 63%; left: 57%; width: 40%; height: 14%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5%;
}
.decision-actions button {
  border-radius: .35em; font-size: max(11px,2.15cqw); line-height: 1; padding: 0;
  white-space: nowrap; border: 1px solid #799083;
}
.accept-decision { color: #132c22; background: #c4e4c7; font-weight: 650; }
.decline-decision { color: #e4e9df; background: #243431; }
.decision-actions button:enabled:hover { filter: brightness(1.12); }
.decision-actions button:disabled { cursor: default; }
.tablet-glass[data-state="accepted"] .decline-decision,
.tablet-glass[data-state="declined"] .accept-decision { opacity: .42; }
.decision-footer {
  position: absolute; inset: 82% 3% 1% 28%;
  display: flex; align-items: center; gap: clamp(7px,2cqw,20px);
  border-top: 1px solid #9bb4a837; font-size: max(10px,1.8cqw);
}
.decision-status { color: #c4d5c9; line-height: 1.4; }
.undo-decision { color: #e8eee4; font: inherit; padding: .5em 0; background: none; border: 0; text-decoration: underline; text-underline-offset: .2em; white-space: nowrap; }
@container (max-width: 460px) {
  .task-pane { top: 17.5%; left: 25.8%; right: 2.4%; }
  .task-title { font-size: max(15px,4.5cqw); }
  .task-reason { margin-top: .34em; line-height: 1.32; }
  .decision-footer { inset-inline: 25.8% 24%; font-size: max(10px,1.8cqw); gap: 5px; }
}
@container (max-width: 320px) {
  .task-rail { padding: 3% 1.2%; width: 22%; }
  .task-choice { min-height: 24px; padding-inline: 2px; }
  .task-pane { left: 24%; right: 2%; top: 17%; }
  .task-title { margin-block: .15em; }
  .task-offer { line-height: 1.2; }
  .task-reason { margin-top: .25em; padding-left: .45em; line-height: 1.25; }
  .bundle-sketch { top: 60%; height: 24%; }
  .decision-footer { left: 24%; }
}
.copy > * {
  transform: translate3d(0,calc(var(--phase) * var(--type-travel, 0px)),0);
}
.copy .chapter { --type-travel: -5svh; }
.copy h1, .copy h2 { --type-travel: -1.8svh; }
.copy .slogan { --type-travel: 2.8svh; }
.copy .text-link { --type-travel: 4.2svh; }

.story::after { background: linear-gradient(90deg,#101d1f77,transparent 69%),linear-gradient(0deg,#111f23a8,transparent 24%,transparent 73%,#14232652); }
.story .copy { width: min(39vw,650px); }
.meeting .copy { width: min(34vw,590px); }
.meeting::after { background: linear-gradient(90deg,#13232173,transparent 47%); }
.chapter { display: flex; align-items: center; column-gap: 13px; font-size: 14px; letter-spacing: .07em; }
.chapter span { padding-left: 12px; border-left: 1px solid #eef1e476; font-size: .88em; }
h2 { font-size: clamp(32px,3.5vw,68px); font-weight: 400; line-height: 1.28; letter-spacing: -.045em; margin-block: 27px 20px; }
.text-link { display: inline-block; font-size: 14px; padding: 6px 0; margin-top: 22px; border-bottom: 1px solid #e4e8df88; }
.controls { bottom: 0; padding-bottom: max(15px,env(safe-area-inset-bottom)); pointer-events: none; }
.controls > * { pointer-events: auto; }
.scene-index { display: flex; }
.scene-index a { width: 39px; height: 44px; display: grid; align-items: center; padding-right: 7px; }
.scene-index a::after { content: ""; display: block; height: 2px; background: #f2f1ea60; }
.scene-index a[aria-current]::after { background: var(--light); }
#motion-toggle { background: none; border: 0; padding: 10px 0 10px 12px; font-size: 12px; }
.controls:has(a[href="#team"][aria-current="step"]) #motion-toggle {
  padding: 6px 9px; border-radius: 3px; background: #21342fe8;
}
@media (max-width:760px) and (min-height:541px), (max-width:1000px) and (orientation:portrait) {
  .masthead { min-height: 88px; padding-block: 13px 6px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
  .masthead nav { width: 100%; justify-content: space-between; gap: 10px; font-size: 13px; }
  h1 img { width: 96.86%; max-width: 581px; }
  .hero .copy { width: 100%; }
  .slogan { font-size: clamp(20px,5.3vw,34px); }
  .story { align-items: flex-end; padding-top: min(52svh,115vw); padding-bottom: 80px; }
  .story .copy { width: 100%; }
  .lens { top: 0; bottom: auto; height: 60%; mask-image: linear-gradient(0deg,transparent 0%,#000b 14%,black 31%,black 78%,#0006); }
  .shot { width: min(155vw,95svh); top: 55%; left: auto; right: -4%; transform: translateY(-50%); mask-image: linear-gradient(transparent,#000 15%,#000 93%,transparent); }
  .story::after { background: linear-gradient(0deg,#101e22b0 9%,#14212599 31%,transparent 68%,#17232066); }
  .meeting .lens { height: 66%; mask-image: linear-gradient(0deg,transparent,#000b 14%,black 32%,black 84%,#0003); }
  .meeting .shot { width: min(148vw,95svh); right: -3%; top: 58%; }
  .meeting { padding-bottom: max(82px,13svh); }
  .meeting .copy { width: 100%; }
  .meeting::after { background: linear-gradient(0deg,#111f2370,transparent 46%); }
  .chapter { font-size: 12px; }
  h2 { margin: 15px 0 10px; font-size: clamp(29px,7vw,43px); }
  .text-link { margin-top: 12px; }
}
@media (max-width:480px) and (max-height:700px) {
  .masthead { min-height: 72px; padding-block: 6px 0; }
  .story { padding-top: 34svh; padding-bottom: 57px; }
  .story .lens { height: 52%; }
  .meeting .lens { height: 64%; }
  .meeting .shot { top: 58%; }
  .shot { width: min(145vw,72svh); }
  .story h2 { font-size: clamp(25px,6.6vw,29px); margin-block: 9px 6px; }
  .text-link { margin-top: 6px; }
}
@media (max-height:540px) {
  .masthead { min-height: 54px; flex-direction: row; align-items: center; justify-content: space-between; gap: 14px; background: #20312eeb; }
  .masthead nav { width: auto; }
  .scene { padding-block: 68px 60px; }
  .slogan,h2 { margin-block: 8px; }
  .controls { padding-bottom: 0; }
}
@media (max-height:540px) and (orientation:landscape) {
  .scene { padding-block: 64px 44px; }
  .story .copy { width: min(48vw,650px); }
  .meeting .copy { width: 34vw; }
  .story h2 { font-size: clamp(24px,3.5vw,35px); }
  .chapter { font-size: 12px; }
  .text-link { margin-top: 4px; }
}
@media (prefers-reduced-motion:reduce) {
  #hero-media video,#motion-toggle { display: none; }
  .scene { --phase: 0 !important; --depth: 0 !important; }
  :root { scroll-snap-type: y proximity; }
}
@media (prefers-reduced-motion:no-preference) {
  :root { scroll-behavior: smooth; }
}
