/* Time Bay: a day that opens out around the calendar. Shared colours follow the app. */
:root {
  --bay-deep: color-mix(in srgb, var(--primary) 38%, var(--ink));
  --bay-sheet: color-mix(in srgb, var(--elevated) 92%, var(--wash));
  --bay-pool: color-mix(in srgb, var(--primary) 40%, var(--wash));
  --bay-note: #f5ead5;
  --bay-note-ink: #63513e;
  --bay-curve: cubic-bezier(0.22, 1, 0.36, 1);
  --bay-depth: 0 28px 65px -28px
    color-mix(in srgb, var(--bay-deep) 36%, transparent);
}
:root[data-mode="dark"] {
  --bay-note: #342c24;
  --bay-note-ink: #e5d4b9;
  --bay-sheet: color-mix(in srgb, var(--elevated) 84%, var(--primary));
}
body {
  caret-color: var(--primary);
}
.site-header .nav-shell {
  height: 88px;
}
.hero.wrap {
  display: block;
  width: min(1280px, calc(100% - 96px));
  min-height: 0;
  padding: 34px 0 64px;
}
.hero .hero-copy {
  padding: 0;
  text-align: center;
  z-index: 4;
}
.hero h1 {
  font-size: clamp(44px, 5.2vw, 76px);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.04em;
  white-space: normal;
  color: var(--bay-deep);
}
.hero-first-line {
  font-size: 0.65em;
  letter-spacing: -0.025em;
}
.hero-bottom-line {
  max-width: 780px;
  margin: 26px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  text-align: left;
}
.hero .hero-description {
  font-size: 14px;
  line-height: 1.95;
  margin: 0;
}
.hero .hero-actions {
  margin: 0;
  gap: 26px;
  flex-shrink: 0;
}
.hero .button.primary {
  background: var(--bay-deep);
}
.hero .button.primary:hover {
  background: var(--ink);
}
.hero .hero-stage {
  margin-top: 38px;
  padding: 0 0 45px;
  height: 810px;
  width: 100%;
  perspective: 1400px;
}
.hero .phone-shell {
  width: 350px;
  height: 730px;
  transform: translateY(calc(var(--desk-drift, 0px) * -0.5)) rotate(-2deg);
  z-index: 3;
}
.hero .phone-shell .app-preview {
  padding-inline: 14px;
  animation: none;
  transform: none;
}
.hero .stage-backdrop,
.hero .floating-note {
  display: none;
}
.hero .hero-atmosphere {
  display: none;
}
.hero .flow-field {
  inset: 0 8% 10%;
  opacity: 0.38;
}
.bay-desk::before {
  content: "";
  position: absolute;
  width: 85%;
  height: 74%;
  top: 6%;
  left: 8%;
  background: radial-gradient(
    ellipse at 55% 40%,
    color-mix(in srgb, var(--primary) 36%, transparent),
    transparent 68%
  );
  filter: blur(25px);
  pointer-events: none;
}
.bay-waterline {
  position: absolute;
  width: 92%;
  height: 61%;
  left: 4%;
  top: 16%;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  border-radius: 50%;
  transform: rotate(-19deg);
  pointer-events: none;
}
.waterline-two {
  inset: 12% auto auto 10%;
  width: 80%;
  height: 72%;
  transform: rotate(24deg);
  border-color: color-mix(in srgb, var(--primary) 11%, transparent);
}
.desk-caption {
  position: absolute;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.desk-caption-left {
  top: 4px;
  left: 8%;
}
.desk-caption-right {
  right: 6%;
  bottom: 142px;
  writing-mode: vertical-rl;
}
.desk-object {
  position: absolute;
  z-index: 4;
  background: var(--bay-sheet);
  box-shadow: var(--bay-depth);
  border: 0;
  border-radius: 16px;
  padding: 23px;
  text-align: left;
  color: var(--ink);
  transform: translateY(var(--desk-drift, 0px)) perspective(800px)
    rotate(var(--rest-angle, 0deg)) rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg));
  transition:
    transform 700ms var(--bay-curve),
    box-shadow 500ms;
}
.desk-object:focus-visible {
  outline-offset: 7px;
}
.desk-object:hover {
  box-shadow: 0 35px 72px -28px
    color-mix(in srgb, var(--bay-deep) 48%, transparent);
}
.desk-brief {
  left: 2%;
  top: 84px;
  width: 292px;
  --rest-angle: -7deg;
}
.object-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 500;
}
.object-heading svg {
  width: 17px;
  height: 17px;
  color: var(--action);
}
.object-date {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}
.object-arrow {
  margin-left: auto;
}
.brief-course {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 20px 0 14px;
}
.brief-course strong {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.brief-course > span {
  font-size: 11px;
}
.bay-task {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  text-align: left;
  font-size: 12px;
  min-height: 46px;
}
.bay-task:hover {
  color: var(--action);
}
.bay-checkbox {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--secondary);
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 250ms;
}
.bay-checkbox svg {
  width: 13px;
  height: 13px;
  opacity: 0;
}
.bay-task[aria-pressed="true"] .bay-checkbox {
  background: var(--action);
  border-color: var(--action);
  color: var(--on-action);
}
.bay-task[aria-pressed="true"] .bay-checkbox svg {
  opacity: 1;
}
.bay-task[aria-pressed="true"] [data-task-label] {
  text-decoration: line-through;
}
.object-foot {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 14px;
}
.desk-word {
  right: 1%;
  top: 30px;
  width: 276px;
  --rest-angle: 7deg;
  background: color-mix(in srgb, var(--wash) 72%, var(--elevated));
}
.desk-word-title {
  display: block;
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin-top: 16px;
  line-height: 1.25;
}
.desk-word-meaning {
  display: block;
  margin-top: 10px;
  font-size: 13px;
}
.desk-receipt {
  width: 260px;
  top: 355px;
  right: 3%;
  --rest-angle: -5deg;
}
.receipt-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 25px;
}
.desk-amount {
  display: block;
  font-size: 40px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--bay-deep);
  font-variant-numeric: tabular-nums;
}
.receipt-line {
  border-top: 1px dashed var(--line);
  margin-top: 16px;
  padding-top: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.receipt-line svg {
  width: 17px;
  height: 17px;
}
.desk-note {
  width: 210px;
  left: 7%;
  top: 445px;
  --rest-angle: 6deg;
  background: var(--bay-note);
  color: var(--bay-note-ink);
  border-radius: 5px 16px 16px 16px;
}
.desk-note > p {
  font-size: 26px;
  line-height: 1.55;
  margin: 20px 0;
  color: inherit;
}
.desk-note > span {
  font-size: 11px;
}
.hero .preview-caption {
  bottom: 13px;
  font-size: 11px;
}
.hero .scroll-cue {
  position: static;
  transform: none;
  justify-content: center;
  margin-top: 10px;
}
/* A single date holds the narrative together; the rail remains native anchor navigation. */
.bay-journey.day-story {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 9%;
  padding-block: 110px 70px;
  align-items: start;
}
.journey-side {
  position: sticky;
  top: 80px;
  align-self: start;
}
.journey-side h2 {
  font-size: clamp(30px, 3vw, 43px);
  line-height: 1.45;
}
.journey-side > p {
  margin-top: 24px;
  font-size: 14px;
}
.day-rail {
  display: flex;
  flex-direction: column;
  margin-top: 48px;
}
.day-rail a {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 16px 0 16px 22px;
  color: var(--muted);
  position: relative;
  border-left: 1px solid var(--line);
  font-size: 13px;
  transition: color 250ms;
}
.day-rail a::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid var(--secondary);
  background: var(--paper);
  border-radius: 50%;
  left: -4px;
  top: calc(50% - 4px);
  transition:
    background 300ms,
    transform 300ms;
}
.day-rail a[aria-current="step"] {
  color: var(--bay-deep);
}
.day-rail a[aria-current="step"]::before {
  background: var(--action);
  border-color: var(--action);
  transform: scale(1.4);
}
.day-rail time {
  font-variant-numeric: tabular-nums;
  font-size: 17px;
}
.journey-footnote {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 38px;
}
.journey-scenes {
  min-width: 0;
}
.bay-scene {
  min-height: 880px;
  padding-top: 20px;
  padding-bottom: 160px;
  scroll-margin-top: 65px;
}
.bay-scene:last-child {
  min-height: 700px;
  padding-bottom: 50px;
}
.scene-copy h3 {
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.5;
  letter-spacing: -0.035em;
}
.scene-copy > p {
  font-size: 14px;
  line-height: 2;
  margin-top: 22px;
  max-width: 40em;
}
.scene-detail {
  font-size: 12px;
  line-height: 1.9;
  margin-top: 26px;
}
.morning-demo {
  display: flex;
  align-items: stretch;
  gap: 26px;
  padding: 26px;
  border-radius: 16px;
  margin-top: 38px;
  background: var(--bay-sheet);
  box-shadow: var(--bay-depth);
  transform: perspective(1000px) rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg));
  transition: transform 600ms var(--bay-curve);
}
.widget-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-right: 24px;
  border-right: 1px solid var(--line);
  min-width: 100px;
}
.widget-date > span {
  font-size: 11px;
  color: var(--muted);
}
.widget-date > strong {
  font-size: 76px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.04em;
  color: var(--bay-deep);
}
.widget-body {
  flex: 1;
  min-width: 0;
}
.widget-body .brief-course {
  margin-block: 16px;
}
.widget-node {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  padding-top: 10px;
}
.widget-node svg {
  width: 14px;
  height: 14px;
}
.widget-node strong {
  margin-left: auto;
  font-weight: 500;
}
.week-demo {
  margin: 24px 0 0 24px;
  padding: 20px 24px;
  background: color-mix(in srgb, var(--wash) 65%, var(--elevated));
  border-radius: 16px;
}
.week-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.week-toolbar > strong {
  font-weight: 500;
}
.week-toolbar > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.week-toolbar .icon-button {
  width: 30px;
  height: 30px;
  min-width: 30px;
}
.week-toolbar .icon-button svg {
  width: 14px;
  height: 14px;
}
.week-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.week-strip > span {
  font-size: 12px;
  padding: 9px 0;
}
.week-strip small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 5px;
}
.ledger-theatre {
  margin-top: 36px;
}
.sample-notification {
  display: flex;
  align-items: center;
  padding: 18px 21px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--wash) 70%, var(--elevated));
  gap: 12px;
  margin-left: 26px;
}
.notification-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--action);
  color: var(--on-action);
  border-radius: 12px;
  flex-shrink: 0;
}
.sample-notification > div {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.sample-notification strong {
  font-size: 13px;
  font-weight: 500;
}
.sample-notification span:not(.notification-icon) {
  font-size: 11px;
  color: var(--muted);
}
.capture-path {
  height: 68px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  color: var(--primary);
}
.capture-path > span {
  width: 1px;
  height: 17px;
  background: var(--secondary);
}
.capture-path svg {
  width: 17px;
  height: 17px;
}
.ledger-paper {
  padding: 25px 30px;
  background: var(--bay-sheet);
  box-shadow: var(--bay-depth);
  border-radius: 16px;
}
.ledger-paper-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  gap: 10px;
}
.ledger-paper-head > span:last-child {
  color: var(--action);
  font-size: 11px;
}
.ledger-display {
  display: block;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.4;
  font-weight: 400;
  color: var(--bay-deep);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.ledger-paper > p {
  margin-top: 20px;
  font-size: 12px;
}
.pending-transaction {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}
.pending-transaction > svg {
  width: 20px;
  height: 20px;
  color: var(--action);
}
.pending-transaction > div {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pending-transaction strong {
  font-weight: 500;
  font-size: 13px;
}
.pending-transaction span {
  font-size: 11px;
  color: var(--muted);
}
.demo-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 80px;
  padding-top: 20px;
}
.demo-controls .text-link {
  border: 0;
  background: none;
  padding: 10px 0;
}
.ledger-theatre[data-state="recognizing"] .capture-path {
  animation: capture-flow 850ms var(--bay-curve) both;
}
.ledger-theatre[data-state="recorded"] .pending-transaction {
  animation: record-settle 650ms var(--bay-curve);
}
@keyframes capture-flow {
  from {
    opacity: 0.25;
    clip-path: inset(0 0 100%);
  }
  to {
    opacity: 1;
    clip-path: inset(0);
  }
}
@keyframes record-settle {
  from {
    transform: translateY(12px);
    opacity: 0.3;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.vocab-theatre {
  margin-top: 36px;
  padding: 28px;
  border-radius: 16px;
  background: var(--bay-sheet);
  box-shadow: var(--bay-depth);
}
.book-switch {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 22px;
}
.book-switch button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 0 0 13px;
  font-size: 12px;
}
.book-switch button[aria-pressed="true"] {
  border-color: var(--action);
  color: var(--action);
}
.book-switch button:hover {
  color: var(--action);
}
.bay-search-label {
  display: block;
  font-size: 12px;
  margin-top: 23px;
  color: var(--muted);
}
.bay-search {
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--secondary);
  padding-block: 10px;
}
.bay-search > svg {
  width: 20px;
  height: 20px;
  color: var(--action);
}
.bay-search input {
  font: inherit;
  font-size: 20px;
  background: transparent;
  border: 0;
  outline-offset: 7px;
  padding: 0;
  width: 100%;
  min-width: 0;
  color: var(--ink);
}
.bay-search input::placeholder {
  color: var(--muted);
  font-size: 14px;
}
.bay-word-result {
  min-height: 235px;
  padding-top: 20px;
}
.bay-word-entry + .bay-word-entry {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  margin-top: 18px;
}
.bay-word-entry h4 {
  font-size: 49px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.04em;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.bay-word-entry > p {
  font-size: 14px;
}
.bay-word-entry > span {
  display: inline-block;
  color: var(--ink);
  padding: 5px 9px;
  background: var(--wash);
  border-radius: 5px;
  font-size: 11px;
  margin-top: 16px;
}
.bay-word-entry .word-personal-note {
  font-size: 12px;
  margin-top: 18px;
}
.bay-word-empty {
  font-size: 14px;
  line-height: 2;
  padding: 35px 0;
}
.word-status {
  font-size: 11px;
  line-height: 1.9;
  margin-top: 14px;
}
.bay-word-suggestions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.bay-word-suggestions button {
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
  background: transparent;
  font-size: 12px;
}
.bay-word-suggestions button:hover {
  border-color: var(--action);
}
.evening-theatre {
  background: var(--bay-note);
  color: var(--bay-note-ink);
  padding: 30px;
  border-radius: 6px 16px 16px 16px;
  margin-top: 36px;
  box-shadow: var(--bay-depth);
  transform: rotate(-1deg);
}
.note-date {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.note-date svg {
  width: 18px;
  height: 18px;
}
#bay-note {
  display: block;
  resize: vertical;
  width: 100%;
  min-height: 205px;
  max-height: 450px;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 18px;
  line-height: 2.2;
  color: inherit;
  margin-top: 28px;
}
.note-save-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 17px;
  border-top: 1px solid color-mix(in srgb, var(--bay-note-ink) 20%, transparent);
}
.note-save-row > span {
  font-size: 11px;
}
.note-save-row button {
  border: 0;
  background: transparent;
  padding: 6px 0;
  font-size: 12px;
}
/* Secondary information stays concise after the hands-on experience. */
.features.section-pad {
  padding-top: 95px;
  border-top: 1px solid var(--line);
}
.features .feature-visual {
  background: color-mix(in srgb, var(--wash) 65%, var(--elevated));
}
.bay-finale {
  padding: 100px 0 40px;
  text-align: center;
}
.gather-stage {
  position: relative;
  height: 385px;
  max-width: 850px;
  margin: 0 auto 30px;
  perspective: 1000px;
}
.gather-day {
  position: absolute;
  z-index: 3;
  width: 220px;
  height: 250px;
  top: 65px;
  left: calc(50% - 110px);
  background: var(--bay-sheet);
  box-shadow: var(--bay-depth);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: scale(calc(0.94 + var(--gather, 0) * 0.06));
}
.gather-day > span {
  font-size: 11px;
  color: var(--muted);
}
.gather-day > strong {
  font-size: 108px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.04em;
  color: var(--bay-deep);
}
.gather-tile {
  position: absolute;
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--bay-sheet);
  padding: 16px 22px;
  box-shadow: var(--bay-depth);
  border-radius: 12px;
  font-size: 12px;
  left: calc(50% - 88px);
  top: 160px;
  width: 176px;
  transform: translate(
      calc(var(--gx) * (1 - var(--gather, 0))),
      calc(var(--gy) * (1 - var(--gather, 0)))
    )
    rotate(calc(var(--ga) * (1 - var(--gather, 0))));
  opacity: calc(1 - var(--gather, 0) * 0.8);
}
.gather-tile svg {
  width: 18px;
  height: 18px;
  color: var(--action);
}
.gather-todo {
  --gx: -270px;
  --gy: -80px;
  --ga: -12deg;
}
.gather-ledger {
  --gx: 275px;
  --gy: -65px;
  --ga: 10deg;
}
.gather-word {
  --gx: -235px;
  --gy: 100px;
  --ga: 8deg;
}
.gather-note {
  --gx: 240px;
  --gy: 110px;
  --ga: -8deg;
  background: var(--bay-note);
  color: var(--bay-note-ink);
}
.bay-finale h2 {
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.5;
}
.bay-finale > p {
  margin-top: 20px;
  font-size: 14px;
}
.download.section-pad {
  padding-top: 75px;
}
.download-heading > img {
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
}
.download-heading h2 {
  font-size: 29px;
}
[data-motion="paused"] [data-tilt] {
  --tilt-x: 0deg !important;
  --tilt-y: 0deg !important;
}
@media (max-width: 1200px) and (min-width: 801px) {
  .hero.wrap {
    width: calc(100% - 64px);
  }
  .desk-brief {
    width: 248px;
    left: 0;
    top: 100px;
    padding: 18px;
  }
  .desk-word {
    width: 232px;
    right: 0;
    top: 10px;
    padding: 18px;
  }
  .desk-receipt {
    width: 225px;
    right: 0;
    top: 355px;
  }
  .desk-note {
    left: 2%;
    width: 190px;
  }
  .hero .phone-shell {
    width: 330px;
  }
  .bay-journey.day-story {
    gap: 6%;
    grid-template-columns: 0.8fr 1.2fr;
  }
  .morning-demo {
    padding: 20px;
    gap: 18px;
  }
  .widget-date {
    padding-right: 17px;
    min-width: 80px;
  }
  .widget-date strong {
    font-size: 63px;
  }
}
@media (max-width: 1000px) and (min-width: 801px) {
  .desk-brief {
    width: 205px;
    padding: 16px;
    top: 120px;
  }
  .desk-word {
    width: 190px;
    padding: 17px;
  }
  .desk-word-title {
    font-size: 35px;
  }
  .desk-receipt {
    width: 190px;
    padding: 18px;
  }
  .desk-brief .object-date,
  .desk-brief .object-foot {
    display: none;
  }
  .desk-note {
    width: 170px;
    left: 0;
  }
  .desk-note > p {
    font-size: 23px;
  }
  .hero .phone-shell {
    width: 314px;
  }
  .bay-journey.day-story {
    grid-template-columns: 0.7fr 1.3fr;
    gap: 5%;
  }
}
@media (max-width: 800px) {
  .site-header .nav-shell {
    height: 78px;
  }
  .hero.wrap {
    width: calc(100% - 40px);
    padding: 32px 0 60px;
  }
  .hero h1 {
    font-size: clamp(31px, 6vw, 48px);
    line-height: 1.35;
  }
  .hero-first-line {
    font-size: 0.8em;
  }
  .hero-bottom-line {
    flex-direction: column;
    text-align: center;
    gap: 24px;
    margin-top: 22px;
  }
  .hero .hero-description {
    font-size: 13px;
  }
  .hero .hero-actions {
    gap: 24px;
  }
  .hero .hero-stage {
    margin-top: 40px;
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 0 0 50px;
    justify-items: center;
    align-items: start;
  }
  .hero .phone-shell {
    grid-column: 1/-1;
    grid-row: 1;
    width: min(100%, 350px);
    height: 740px;
    transform: none;
  }
  .desk-object {
    position: relative;
    inset: auto;
    transform: none;
    width: 100%;
    height: 100%;
    padding: 20px;
  }
  .desk-brief {
    grid-row: 2;
    grid-column: 1/-1;
    max-width: 450px;
  }
  .desk-word {
    grid-row: 3;
    grid-column: 1;
  }
  .desk-receipt {
    grid-row: 3;
    grid-column: 2;
  }
  .desk-note,
  .desk-caption,
  .bay-waterline {
    display: none;
  }
  .desk-word .object-heading {
    font-size: 11px;
    flex-wrap: wrap;
  }
  .desk-word .object-arrow,
  .desk-receipt .object-arrow {
    display: none;
  }
  .desk-word-title {
    font-size: 33px;
  }
  .desk-word .object-foot {
    font-size: 11px;
  }
  .desk-amount {
    font-size: 34px;
  }
  .desk-receipt .receipt-line {
    font-size: 10px;
  }
  .hero .preview-caption {
    position: absolute;
    bottom: 8px;
    margin: 0;
    font-size: 10px;
  }
  .hero .preview-caption span {
    display: none;
  }
  .hero .scroll-cue {
    margin-top: 22px;
    font-size: 11px;
  }
  .bay-journey.day-story {
    display: block;
    padding-block: 50px;
  }
  .journey-side {
    position: static;
  }
  .journey-side h2 {
    font-size: 32px;
  }
  .journey-side > p {
    font-size: 13px;
  }
  .day-rail {
    flex-direction: row;
    margin-top: 30px;
    gap: 0;
  }
  .day-rail a {
    flex: 1;
    flex-direction: column;
    gap: 4px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px 3px;
    font-size: 10px;
  }
  .day-rail a::before {
    top: auto;
    bottom: -4px;
    left: calc(50% - 3px);
  }
  .day-rail time {
    font-size: 15px;
  }
  .journey-footnote {
    margin-top: 24px;
  }
  .journey-scenes {
    margin-top: 70px;
  }
  .bay-scene {
    min-height: 0;
    padding: 0 0 100px;
    scroll-margin-top: 25px;
  }
  .bay-scene:last-child {
    min-height: 0;
    padding-bottom: 30px;
  }
  .scene-copy h3 {
    font-size: 32px;
  }
  .scene-copy > p {
    font-size: 13px;
    margin-top: 20px;
  }
  .morning-demo {
    padding: 22px;
    gap: 20px;
    margin-top: 28px;
  }
  .widget-date {
    padding-right: 20px;
    min-width: 85px;
  }
  .widget-date > strong {
    font-size: 64px;
  }
  .week-demo {
    margin-left: 14px;
  }
  .scene-detail {
    font-size: 11px;
  }
  .sample-notification {
    margin-left: 10px;
    padding-inline: 17px;
  }
  .ledger-paper {
    padding: 25px;
  }
  .ledger-display {
    font-size: 54px;
  }
  .vocab-theatre {
    padding: 25px;
  }
  .bay-word-entry h4 {
    font-size: 43px;
  }
  .book-switch {
    gap: 20px;
  }
  .evening-theatre {
    padding: 25px;
  }
  #bay-note {
    font-size: 16px;
    min-height: 210px;
  }
  .gather-stage {
    height: 320px;
    margin-bottom: 15px;
  }
  .gather-day {
    width: 170px;
    height: 220px;
    left: calc(50% - 85px);
    top: 50px;
  }
  .gather-day > strong {
    font-size: 90px;
  }
  .gather-day > span {
    font-size: 9px;
  }
  .gather-tile {
    width: 130px;
    left: calc(50% - 65px);
    padding: 13px 12px;
    font-size: 10px;
    gap: 7px;
  }
  .gather-todo {
    --gx: -125px;
    --gy: -110px;
  }
  .gather-ledger {
    --gx: 125px;
    --gy: -90px;
  }
  .gather-word {
    --gx: -115px;
    --gy: 90px;
  }
  .gather-note {
    --gx: 115px;
    --gy: 105px;
  }
  .bay-finale {
    padding-top: 55px;
  }
  .bay-finale h2 {
    font-size: 33px;
  }
  .bay-finale > p {
    font-size: 12px;
  }
}
@media (max-width: 430px) {
  .hero.wrap {
    width: calc(100% - 36px);
  }
  .hero h1 {
    font-size: clamp(27px, 7.1vw, 32px);
    letter-spacing: -0.035em;
  }
  .hero .hero-actions .button {
    font-size: 12px;
    padding-inline: 18px;
    gap: 16px;
  }
  .hero .hero-actions .text-link {
    font-size: 12px;
  }
  .hero .phone-shell {
    height: 735px;
  }
  .hero .phone-shell .app-preview {
    padding-inline: 12px;
  }
  .hero .hero-stage {
    gap: 14px;
  }
  .desk-word,
  .desk-receipt {
    padding: 18px 14px;
  }
  .desk-word-title {
    font-size: 28px;
  }
  .desk-word-meaning {
    font-size: 12px;
  }
  .desk-amount {
    font-size: 30px;
  }
  .desk-word .object-foot {
    font-size: 10px;
  }
  .desk-receipt .object-heading {
    font-size: 11px;
    gap: 6px;
  }
  .desk-receipt .receipt-line svg {
    display: none;
  }
  .journey-side h2,
  .scene-copy h3 {
    font-size: 30px;
  }
  .morning-demo {
    padding: 18px;
    gap: 14px;
  }
  .widget-date {
    padding-right: 14px;
    min-width: 72px;
  }
  .widget-date > span {
    font-size: 9px;
  }
  .widget-date > strong {
    font-size: 58px;
  }
  .widget-body .brief-course strong {
    font-size: 13px;
  }
  .widget-body .brief-course > span {
    font-size: 10px;
  }
  .widget-body .bay-task {
    font-size: 11px;
  }
  .week-demo {
    padding: 16px;
    margin-left: 0;
  }
  .week-strip {
    gap: 9px;
  }
  .week-strip small {
    font-size: 9px;
  }
  .sample-notification {
    gap: 9px;
    padding: 15px 13px;
  }
  .sample-notification strong {
    font-size: 12px;
  }
  .sample-notification span:not(.notification-icon) {
    font-size: 10px;
  }
  .notification-icon {
    width: 31px;
    height: 31px;
    border-radius: 9px;
  }
  .book-switch {
    gap: 15px;
  }
  .book-switch button {
    font-size: 11px;
  }
  .vocab-theatre,
  .ledger-paper,
  .evening-theatre {
    padding: 22px;
  }
  .bay-word-entry h4 {
    font-size: 38px;
  }
  .gather-todo {
    --gx: -85px;
  }
  .gather-ledger {
    --gx: 85px;
  }
  .gather-word {
    --gx: -80px;
  }
  .gather-note {
    --gx: 80px;
  }
}
@media (max-width: 340px) {
  .hero.wrap {
    width: calc(100% - 28px);
  }
  .hero .hero-actions {
    gap: 16px;
  }
  .hero .phone-shell {
    height: 735px;
  }
  .hero .phone-shell .app-preview {
    padding-inline: 9px;
  }
  .desk-word,
  .desk-receipt {
    grid-column: 1/-1;
  }
  .desk-word {
    grid-row: 3;
  }
  .desk-receipt {
    grid-row: 4;
  }
  .widget-date {
    min-width: 58px;
    padding-right: 10px;
  }
  .widget-date > strong {
    font-size: 47px;
  }
  .morning-demo {
    gap: 10px;
    padding: 14px;
  }
  .widget-node {
    flex-wrap: wrap;
  }
  .week-toolbar {
    flex-wrap: wrap;
  }
  .sample-notification {
    margin-left: 0;
    flex-wrap: wrap;
  }
  .sample-notification > div {
    min-width: 110px;
  }
  .book-switch {
    gap: 11px;
  }
  .vocab-theatre,
  .ledger-paper,
  .evening-theatre {
    padding: 18px;
  }
  .bay-finale h2 {
    font-size: 28px;
  }
  .gather-tile {
    width: 116px;
    left: calc(50% - 58px);
    font-size: 9px;
  }
  .gather-todo {
    --gx: -65px;
  }
  .gather-ledger {
    --gx: 65px;
  }
  .gather-word {
    --gx: -65px;
  }
  .gather-note {
    --gx: 65px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero .phone-shell,
  [data-tilt],
  .evening-theatre {
    transform: none;
  }
  .gather-stage {
    --gather: 0 !important;
  }
  .bay-scene *,
  .desk-object {
    animation: none !important;
    transition: none !important;
  }
}
