/* Iteration three: the same world, with a more considered everyday experience. */
[hidden] {
  display: none !important;
}
header {
  gap: 28px;
}
header > nav {
  margin-left: auto;
}
.language-switch {
  position: relative;
  flex: none;
  z-index: 30;
}
.language-switch summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  min-width: 64px;
  padding: 8px;
  border: 1px solid #454545;
  border-radius: 24px;
  cursor: pointer;
  font:
    11px Geist,
    monospace;
}
.language-switch summary::-webkit-details-marker {
  display: none;
}
.language-switch svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
}
.language-switch[open] summary {
  background: #eee;
  color: #111;
}
.language-list {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0 14px;
  width: 380px;
  padding: 14px;
  border: 1px solid #444;
  border-radius: 16px;
  background: #151515;
  color: #eee;
  box-shadow: 0 16px 40px #0005;
  max-height: 70svh;
  overflow-y: auto;
}
.language-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 10px;
  font:
    13px/1.4 Bricolage,
    system-ui,
    sans-serif;
  border-radius: 8px;
}
.language-list a:hover,
.language-list a[aria-current] {
  background: #303030;
}
.language-offer {
  position: fixed;
  z-index: 80;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, calc(100% - 32px));
  background: #efefef;
  color: #171717;
  border: 1px solid #999;
  box-shadow: 0 8px 30px #0004;
  border-radius: 15px;
  padding: 18px 22px;
  display: flex;
  gap: 12px 22px;
  align-items: center;
  flex-wrap: wrap;
}
.language-offer p {
  font-size: 14px;
  width: 100%;
}
.language-offer a,
.language-offer button {
  min-height: 44px;
  padding: 10px 14px;
  font-size: 13px;
  border-radius: 8px;
}
.language-offer a {
  background: #111;
  color: #fff;
}
.language-offer button {
  border: 1px solid #aaa;
  background: transparent;
  color: #333;
}
.hero-copy h1 {
  font-size: clamp(60px, 6.2vw, 96px);
}
:lang(ja),
:lang(zh-Hans),
:lang(zh-Hant) {
  --sc-font-display:
    Bricolage, "Hiragino Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --sc-font-text: var(--sc-font-display);
}
:lang(ko) {
  --sc-font-display:
    Bricolage, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --sc-font-text: var(--sc-font-display);
}
html:lang(ja) h1,
html:lang(ja) h2,
html:lang(zh-Hans) h1,
html:lang(zh-Hans) h2,
html:lang(zh-Hant) h1,
html:lang(zh-Hant) h2,
html:lang(ko) h1,
html:lang(ko) h2 {
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.build-figure figcaption {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin: 0 10% 0 7%;
  position: relative;
}
.build-progress {
  display: grid;
  grid-template-columns: 32px auto;
  gap: 0 10px;
  align-items: center;
}
.build-progress .piece-icon {
  grid-row: 1/3;
  font-size: 34px;
  color: #ddd;
}
.build-progress #block-count {
  font-size: clamp(48px, 5vw, 72px);
  line-height: 0.95;
  font-family: Numbers, Bricolage, sans-serif;
}
.piece-total {
  font:
    13px Geist,
    monospace;
  color: #ccc;
}
.build-progress small {
  grid-column: 2;
  font-size: 10px;
  margin-top: 8px;
  color: #aaa;
}
#build-outcome {
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
  max-width: 250px;
  justify-self: end;
}
.build-progress-line {
  grid-column: 1/-1;
  overflow: hidden;
  height: 2px;
  background: #333;
}
.build-progress-line i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: #eee;
  transform: scaleX(var(--build-progress, 1));
  transform-origin: left;
}
.sample-day-inputs {
  display: block;
}
.replay-day {
  min-height: 48px;
  border: 1px solid #777;
  background: #eee;
  color: #111;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 14px;
  text-align: left;
}
.replay-day::after {
  content: " ↺";
  margin-left: 8px;
}
#resume-year,
#reset-demo {
  min-height: 44px;
  margin-top: 8px;
  margin-right: 18px;
}
#resume-year {
  color: #eee;
}
[data-earned="true"] #demo-message {
  color: #fff;
}
.gallery-scene {
  overflow: hidden;
}
.momentum-visual {
  isolation: isolate;
}
footer {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 10px;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 11px;
}
.footer-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-decoration-color: #777;
  text-underline-offset: 4px;
}
.info-page {
  background: #e8e8e8;
  color: #171717;
}
.info-article {
  max-width: 820px;
  margin: 0 auto;
  padding: 70px 32px 90px;
}
.info-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 44px;
  font-size: 13px;
}
.info-article h1 {
  font-size: clamp(46px, 6vw, 80px);
  margin: 22px 0 32px;
  overflow-wrap: anywhere;
}
.info-intro {
  font-size: 21px;
  line-height: 1.6;
}
.info-updated {
  font:
    11px/1.6 Geist,
    monospace;
  color: #555;
  margin: 28px 0 52px;
}
.info-article section {
  border-top: 1px solid #b7b7b7;
  padding: 30px 0 8px;
  margin-top: 28px;
}
.info-article section h2 {
  font-size: 30px;
  margin-bottom: 18px;
}
.info-article section p {
  font-size: 17px;
  line-height: 1.8;
  color: #444;
}
.info-article section a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 18px;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.operator-note {
  border-left: 2px solid #777;
  margin-top: 48px;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.7;
  color: #555;
}
.info-footer {
  background: #0a0a0a;
  color: #ccc;
  padding: 32px var(--gutter);
}
@media (max-width: 1100px) {
  header {
    gap: 18px;
  }
  header > nav {
    gap: 20px;
  }
  .nav-status {
    display: none;
  }
}
@media (max-width: 700px) {
  header {
    gap: 14px;
  }
  header > nav {
    gap: 16px;
  }
  header > nav a {
    font-size: 11px;
  }
  header > nav > a:nth-child(2) {
    display: none;
  }
  .language-switch summary {
    min-width: 56px;
    gap: 6px;
  }
  .language-list {
    width: min(360px, calc(100vw - 40px));
    right: 0;
  }
  .hero-copy h1 {
    font-size: clamp(40px, 10.5vw, 61px);
  }
  .hero-copy {
    max-width: calc(100% - 2 * var(--gutter));
  }
  .daily-stage {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 25px var(--gutter) 70px;
    gap: 20px;
  }
  .daily-copy {
    flex: none;
  }
  .daily-visual {
    position: relative;
    inset: auto;
    width: 100%;
    flex: 1;
    height: auto;
    min-height: 140px;
    margin: 0;
  }
  .daily-visual .app-screen {
    height: 95%;
  }
  .daily-facts {
    height: 66px;
  }
  .daily-copy > .screen-caption {
    position: fixed;
    top: auto;
    bottom: 42px;
    left: var(--gutter);
    font-size: 8px;
  }
  .product-stage {
    display: flex !important;
    flex-direction: column;
  }
  .product-copy {
    flex: none;
  }
  #build-heading {
    font-size: 32px;
    min-height: 2.1em;
  }
  .habit-demo {
    display: block;
  }
  .demo-label {
    margin-bottom: 8px;
    font-size: 8px;
  }
  .sample-day-inputs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }
  .habit {
    min-height: 52px;
    height: auto;
    padding: 9px 19px 9px 8px;
  }
  .habit b {
    font-size: 10px;
    line-height: 1.25;
  }
  #demo-message {
    min-height: 28px;
    font-size: 9px;
    line-height: 1.45;
  }
  #reset-demo,
  #resume-year {
    position: static;
    margin: 0;
    justify-self: start;
    min-height: 44px;
    grid-column: auto;
    font-size: 10px;
  }
  #demo-message {
    grid-column: 1/-1;
  }
  .replay-day {
    font-size: 12px;
  }
  .build-figure {
    position: relative !important;
    inset: auto !important;
    width: calc(100% + 2 * var(--gutter));
    margin: 12px calc(-1 * var(--gutter)) 0 !important;
    flex: 1;
    min-height: 180px;
  }
  .build-scene {
    min-height: 120px;
  }
  .build-figure figcaption {
    margin: 0 var(--gutter);
    gap: 10px;
  }
  .build-progress {
    grid-template-columns: 24px auto;
    gap: 0 6px;
  }
  .build-progress .piece-icon {
    font-size: 26px;
  }
  .build-progress #block-count {
    font-size: 40px;
  }
  .piece-total {
    font-size: 10px;
  }
  .build-progress small {
    font-size: 9px;
    margin-top: 4px;
  }
  #build-outcome {
    font-size: 9px;
  }
  .concept-note {
    margin: 7px var(--gutter) 0;
    font-size: 8px;
  }
  .completion-seal {
    position: relative;
    inset: auto;
    max-width: none;
    flex: none;
    margin-top: 12px;
    font-size: 9px;
    min-height: 30px;
  }
  .collection-workspace {
    top: 205px;
  }
  .collection-heading h2 {
    font-size: 34px;
  }
  .collection-heading p {
    max-width: 95%;
  }
  .collection-figure figcaption {
    flex-wrap: wrap;
  }
  .model-index button > span {
    font-size: 16px;
  }
  .momentum-visual {
    min-height: 570px;
  }
  .family-head h2 {
    font-size: 38px;
  }
  .row-status {
    max-width: 105px;
  }
  .signature {
    font-size: clamp(52px, 12vw, 95px);
  }
  .footer-brand {
    gap: 12px;
    font-size: 9px;
  }
  .footer-links {
    gap: 12px 20px;
    font-size: 11px;
  }
  .info-article {
    padding: 40px 24px 60px;
  }
  .info-intro {
    font-size: 18px;
  }
  .info-article section h2 {
    font-size: 25px;
  }
  .info-article section p {
    font-size: 16px;
  }
}
@media (max-width: 700px) and (max-height: 700px) {
  .product-copy > p {
    font-size: 11px;
    margin-top: 7px;
  }
  #build-heading {
    font-size: 28px;
  }
  .product-copy {
    padding-top: 10px;
  }
  .habit-demo {
    margin-top: 8px;
  }
  .build-figure {
    margin-top: 4px !important;
    min-height: 130px;
  }
  .build-scene {
    min-height: 80px;
  }
  .completion-seal {
    margin-top: 7px;
  }
  .daily-copy > p {
    font-size: 12px;
  }
  .daily-copy h2 {
    font-size: 32px;
  }
  .daily-stage {
    gap: 10px;
  }
  .collection-workspace {
    top: 195px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-scene {
    opacity: 1 !important;
  }
  .daily-copy > .screen-caption {
    position: static;
    margin-top: 15px;
  }
  .product-stage {
    min-height: 850px !important;
  }
  .daily-stage {
    height: auto;
  }
}
html:not(.experience-ready) .daily-copy > .screen-caption {
  position: static;
}
html:not(.experience-ready) .daily-visual {
  flex: none;
  height: 500px;
}
html:not(.experience-ready) .build-progress-line i {
  transform: scaleX(1);
}

/* Captions belong to their scene, including while the next scene is pinned. */
.daily-stage > .screen-caption {
  position: absolute;
  bottom: 35px;
  left: var(--gutter);
  font-size: 10px;
  line-height: 1.6;
  max-width: 420px;
}
@media (max-width: 700px) {
  .daily-stage > .screen-caption {
    bottom: 39px;
    font-size: 8px;
    max-width: calc(100% - 2 * var(--gutter));
  }
}
@media (prefers-reduced-motion: reduce) {
  .daily-stage > .screen-caption {
    position: static;
    margin-top: 18px;
  }
}
html:not(.experience-ready) .daily-stage > .screen-caption {
  position: static;
  margin-top: 18px;
}

html:lang(ja) .model-index button > span {
  font-size: 14px;
  letter-spacing: -0.05em;
}
.info-article h1 {
  hyphens: auto;
}

header > nav > a {
  min-height: 44px;
  display: flex;
  align-items: center;
}
@media (max-width: 700px) {
  #resume-year {
    grid-column: 2/-1;
    justify-self: end;
  }
}

/* Short translated viewports need room for the original family diagram. */
@media (max-width: 700px) and (max-height: 700px) {
  html:not(:lang(en)) .dna-heading h2 {
    font-size: 32px;
  }
}

/* The optional final day shares the same composition as the scroll sequence. */
#monolith .habit-demo[data-earned="true"] {
  border-bottom: 0;
  padding-bottom: 0;
}
@media (prefers-reduced-motion: reduce) {
  #monolith .product-stage[data-complete="false"] .completion-seal {
    opacity: 0;
  }
}

#monolith .product-stage[data-complete="true"] .sample-day-inputs {
  visibility: hidden;
  pointer-events: none;
}
#monolith #replay-day {
  position: absolute;
  left: 0;
  top: 22px;
}
