:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #17181c;
  --muted: #53565d;
  --blue: #1947ae;
  --line: #e2e3e7;
  --soft: #f5f5f7;
  --mono: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 100%;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  scroll-padding-top: 5rem;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.6; }
main { min-height: 63vh; }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
img { display: block; height: auto; max-width: 100%; }
figure, p { margin: 0; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
h1, h2, h3 { margin: 0; line-height: 1.07; letter-spacing: -.047em; }
h1 { font-size: clamp(3.3rem, 6.4vw, 6.3rem); font-weight: 710; }
h2 { font-size: clamp(1.85rem, 3.8vw, 3.2rem); font-weight: 670; }
h3 { font-size: 1.25rem; font-weight: 680; letter-spacing: -.024em; }
.shell { width: min(100% - 3.5rem, 75rem); margin-inline: auto; }
.skip { position: fixed; top: .6rem; left: .6rem; z-index: 5; transform: translateY(-150%); background: white; padding: .55rem 1rem; }
.skip:focus { transform: translateY(0); }
.masthead { position: sticky; top: 0; z-index: 4; border-bottom: 1px solid #17181c14; background: #fffffff0; backdrop-filter: blur(18px); }
.topbar, .footer-inner { min-height: 3.55rem; display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; }
.wordmark { display: inline-flex; align-items: center; gap: .52rem; color: var(--ink); text-decoration: none; font-weight: 680; white-space: nowrap; letter-spacing: -.028em; font-size: 1.04rem; }
.studio-mark { width: .77rem; height: .77rem; display: inline-block; border-radius: .25rem; background: #222328; }
nav { display: flex; flex-wrap: wrap; gap: .35rem clamp(1rem, 2.8vw, 2.2rem); }
nav a { color: #4d5057; text-decoration: none; font-size: .9rem; font-weight: 510; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
.topbar nav { align-items: center; }
.language-switch { display: inline-grid; place-items: center; width: 2rem; min-height: 2rem; margin-inline-start: -.48rem; border-radius: .4rem; }
.language-switch:hover { background: var(--soft); }
.language-switch img { width: 1.4rem; height: .94rem; object-fit: contain; }
.eyebrow { color: var(--muted); font-size: .92rem; font-weight: 620; }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.lede { font-size: clamp(1.1rem, 2.1vw, 1.29rem); line-height: 1.52; color: var(--muted); max-width: 44ch; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.82rem; padding: .6rem 1.24rem; border-radius: 2rem; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; }
.button:hover { background: #3b3d43; }

.studio-hero { background: #fff; }
.hero-layout { display: grid; justify-items: center; padding-block: clamp(3rem, 7svh, 5.5rem) clamp(3.75rem, 8svh, 6.75rem); text-align: center; }
.home-copy { min-width: 0; }
.hero-kicker { display: inline-flex; align-items: center; gap: .52rem; color: #41434a; font-size: .92rem; font-weight: 590; }
.hero-kicker img { width: 1.68rem; border-radius: 23%; }
.home-copy h1 { margin: .6rem 0 .66rem; font-size: clamp(3.45rem, 7.35vw, 7rem); font-weight: 690; line-height: .99; letter-spacing: -.071em; word-spacing: .042em; text-wrap: balance; }
.home-copy .lede { margin-inline: auto; text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem 1.25rem; margin-top: 1.27rem; }
.hero-detail { display: inline-flex; align-items: center; gap: .36rem; padding-block: .55rem; color: #262831; font-weight: 560; text-decoration: none; }
.hero-detail:hover { text-decoration: underline; }
.link-arrow { font-size: 1.04em; }

.hero-art { position: relative; margin-top: clamp(2.65rem, 5.6svh, 4.35rem); }
.hero-device {
  position: relative;
  overflow: hidden;
  width: clamp(10.35rem, 23svh, 15.25rem);
  border: clamp(3px, .4vw, 5px) solid #25262c;
  border-radius: clamp(1.45rem, 2.9vw, 2.4rem);
  background: #101424;
  box-shadow: 0 0 0 1px #a9aab1, 0 1.3rem 3.6rem #20233124, 0 .2rem .8rem #20233124;
}
.hero-device img { width: 100%; }

/* DOUCHE occupies the last six cells of the capture’s first row. */
.hero-word-trace {
  position: absolute;
  inset: 29.2% auto auto 41.2%;
  width: 52.7%;
  height: 3.9%;
  border: 1px solid #b1ffdbac;
  border-radius: .35rem;
  background: #6ff5b64a;
  box-shadow: 0 0 .4rem #60eaaa43;
  opacity: 0;
  pointer-events: none;
}

.word-sample { padding-block: clamp(3.75rem, 8vw, 7.25rem); background: var(--soft); }
.sample-layout { display: grid; grid-template-columns: minmax(0, .68fr) minmax(0, 1.32fr); align-items: center; gap: clamp(2rem, 5.4vw, 5rem); }
.sample-copy h2 { margin: .57rem 0 1rem; font-size: clamp(3.15rem, 5.25vw, 5.7rem); line-height: .97; letter-spacing: -.068em; }
.sample-copy h2 span { display: block; }
.sample-copy .lede { max-width: 31ch; }
.sample-fallback { padding: 1.75rem; border-radius: 1.2rem; background: #fff; }
.word-demo { display: grid; grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr); gap: clamp(.9rem, 2vw, 1.45rem); padding: clamp(.95rem, 2.25vw, 1.45rem); border: 1px solid #e1e2e6; border-radius: 1.5rem; background: #fff; box-shadow: 0 .75rem 2rem #1d253a0c; }
.word-board { align-self: center; min-width: 0; }
.word-target { margin-bottom: .21rem; font-size: 1.25rem; font-weight: 660; }
.word-target strong { padding-left: .23rem; font-family: var(--mono); letter-spacing: .08em; }
#word-instructions { color: var(--muted); font-size: .89rem; }
.word-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.22rem, .58vw, .38rem); max-width: 17rem; margin-block: .88rem .68rem; touch-action: none; user-select: none; }
.word-cell { aspect-ratio: 1; min-width: 0; padding: 0; border: 1px solid #d9dbe0; border-radius: .45rem; background: #f5f5f7; color: var(--ink); font: 630 clamp(.89rem, 1.55vw, 1.12rem) var(--mono); cursor: pointer; }
.word-cell:not([aria-pressed="true"]):hover { border-color: #9299a5; background: #ebedf1; }
.word-cell.word-trace { border-color: #809886; background: #e6efe9; }
.word-cell[aria-pressed="true"] { border-color: #29523e; background: #29523e; color: #fff; }
.word-status { min-height: 2.84em; color: var(--muted); font-size: .88rem; line-height: 1.42; }
.word-postcard { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: .95rem; background: #fafafb; }
.word-postcard-art { position: relative; overflow: hidden; background: #eeeef0; }
.word-postcard-art img { width: 100%; aspect-ratio: 1.75; object-fit: cover; object-position: 50% 46%; }
.word-demo:not(.word-solved) .word-postcard-art img { scale: 1.04; filter: blur(4px) saturate(.62); }
.word-postcard-art span { position: absolute; inset: auto .58rem .58rem; width: fit-content; padding: .18rem .5rem; border-radius: .32rem; background: #ffffffef; color: var(--ink); font-size: .76rem; }
.word-postcard-copy { padding: .86rem .95rem 1rem; }
.word-postcard-copy > div { min-height: 6.25rem; }
.word-postcard-copy [data-word-prompt] p { font-size: clamp(1.25rem, 2.15vw, 1.68rem); font-weight: 655; line-height: 1.15; letter-spacing: -.035em; }
.word-postcard-copy [data-word-prompt] span { display: block; margin-top: .4rem; color: var(--muted); font-size: .89rem; line-height: 1.4; }
.word-phrase { color: #264c3a; font-size: 1.73rem; font-weight: 660; line-height: 1.13; letter-spacing: -.038em; }
.word-example { margin-top: .42rem; font-size: .91rem; font-weight: 630; }
.word-translation { color: var(--muted); font-size: .89rem; }
.word-action { display: inline-flex; align-items: center; min-height: 2.5rem; margin-top: .6rem; padding: .3rem .65rem; border: 1px solid #cbced5; border-radius: .5rem; background: #fff; color: var(--ink); font: 610 .88rem system-ui, sans-serif; cursor: pointer; }
.word-action:hover { background: #eeeff2; }
.word-demo .word-cell:focus-visible { outline-offset: 2px; }

.studio-note { margin-bottom: clamp(2.9rem, 6.3vw, 5.65rem); padding: clamp(2.4rem, 6vw, 5rem) clamp(1.4rem, 5vw, 4rem); border-radius: clamp(1.25rem, 3vw, 2rem); background: var(--soft); text-align: center; }
.studio-note > p { max-width: 53ch; margin: .88rem auto 0; color: var(--muted); font-size: 1.08rem; text-wrap: pretty; }
.home-note { margin-bottom: 0; padding-block: clamp(4rem, 8vw, 7.25rem); background: transparent; }
.home-note h2, .page-ludiloka .studio-note h2 { font-weight: 690; font-size: clamp(2.55rem, 5.4vw, 4.9rem); letter-spacing: -.062em; }
.note-link { display: inline-block; margin-top: 1.15rem; color: var(--blue); font-weight: 570; }
.product-intro { width: 100%; padding: clamp(3.9rem, 7vw, 6.4rem) 1.05rem clamp(2.4rem, 5vw, 4.25rem); text-align: center; }
.product-intro h1 { font-weight: 700; letter-spacing: -.066em; }
.app-icon { width: clamp(3.7rem, 7vw, 5.4rem); margin: 0 auto .84rem; border-radius: 23%; }
.product-summary .lede { max-width: 48ch; margin: .95rem auto 0; text-wrap: balance; }
.product-platform { display: flex; justify-content: center; flex-wrap: wrap; gap: .44rem .84rem; margin-top: .95rem; color: var(--muted); }
.product-tour { max-width: 65rem; padding-block: 0 clamp(2.6rem, 5.6vw, 5rem); }
.screens { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: clamp(.9rem, 2.5vw, 1.6rem); }
.screens figure { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 1.45rem; background: var(--soft); }
.screens figcaption { padding: clamp(1.15rem, 2.35vw, 1.9rem) clamp(1.15rem, 2.35vw, 1.9rem) 0; }
.screens h2 { font-size: clamp(1.48rem, 2.65vw, 2.15rem); letter-spacing: -.052em; }
.screens figcaption p { max-width: 36ch; margin-top: .51rem; color: var(--muted); }
.screen-plate { display: grid; place-items: end center; margin-top: auto; min-width: 0; padding: clamp(1.3rem, 2.65vw, 2.1rem) clamp(1.1rem, 2.4vw, 1.95rem); }
.screens img { width: min(100%, 14rem); border: 3px solid #25262c; border-radius: clamp(1rem, 2vw, 1.5rem); box-shadow: 0 .8rem 1.7rem #14182725; }
.reading-page { max-width: 47rem; padding-block: clamp(3rem, 8vw, 6.5rem); }
.reading-page h1 { font-size: clamp(3.15rem, 8vw, 5.75rem); margin: .75rem 0 1rem; }
.reading-page .lede { margin-bottom: 1.12rem; max-width: 49ch; }
.reading-page h2 { font-size: clamp(1.55rem, 3.4vw, 2.3rem); }
.guidance { max-width: 60ch; margin-top: .8rem; color: var(--muted); }
.faq { margin-top: 3rem; }
.faq h2 { margin-bottom: 1.2rem; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { padding: .9rem .1rem; cursor: pointer; font-weight: 650; }
details p { padding: 0 1rem 1rem 1.45rem; color: var(--muted); }
.secondary-language, .policy section { border-top: 1px solid var(--line); margin-top: 1.7rem; padding-top: 1.55rem; }
.secondary-language h3 { margin-top: 1.3rem; }
.reading-page section p + p, .reading-page section h2 + p, .reading-page section h3 + p { margin-top: .65rem; }
.related { margin-top: 1.25rem; }
.contact-address { margin-block: 1.5rem; font-size: clamp(1.15rem, 3vw, 1.65rem); overflow-wrap: anywhere; }
.legal-entity { padding-bottom: 1.5rem; color: var(--muted); font-size: .95rem; }
.footer { border-top: 1px solid var(--line); background: var(--soft); }
.footer-inner { min-height: 4.85rem; }

@media screen and (prefers-reduced-motion: no-preference) {
  :root { --motion-ease: cubic-bezier(.22, .77, .23, 1); }
  :root:has(.page-home) { scroll-behavior: smooth; }

  .button, .word-action { transition: background-color .18s ease; }
  .link-arrow { transition: transform .23s var(--motion-ease); }
  .hero-detail:hover .link-arrow { transform: translateX(.2em); }

  .home-copy > *, .product-intro > * { animation: ease-in-view .68s var(--motion-ease) both; }
  .home-copy h1 { animation-delay: .06s; }
  .home-copy .lede, .product-summary { animation-delay: .12s; }
  .hero-actions { animation-delay: .17s; }
  .hero-actions:focus-within { animation: none; }
  .hero-device { animation: place-product 1.38s var(--motion-ease) .1s both; }
  .hero-word-trace { animation: trace-preview-word 1.2s var(--motion-ease) 1s both; }

  @supports (animation-timeline: scroll()) {
    .hero-art {
      animation: drift-product linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 54svh;
    }
  }

  [data-reveal].motion-pending:not(:focus-within) { opacity: 0; }
  [data-reveal].motion-entered:not(:focus-within) { animation: ease-in-view .72s var(--motion-ease) var(--reveal-delay, 0s) both; }
  .word-demo, .screens figure:nth-child(2) { --reveal-delay: .07s; }
  .screens figure:nth-child(3) { --reveal-delay: .14s; }

  .word-cell { transition: background-color .17s ease, border-color .17s ease, color .17s ease, scale .17s ease; }
  .word-cell:active { scale: .96; }
  .word-found { animation: seat-letter .29s var(--motion-ease) calc(var(--word-step, 0) * 37ms) both; }
  .word-solved [data-word-result] { animation: ease-in-view .48s var(--motion-ease) .09s both; }
  .word-postcard-art img { transition: filter .63s var(--motion-ease), scale .63s var(--motion-ease); }

  @keyframes ease-in-view {
    from { opacity: 0; transform: translateY(.75rem); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes place-product {
    0% { opacity: 0; transform: perspective(950px) translateY(1.85rem) rotateX(7deg) rotateY(-16deg) rotateZ(-4deg) scale(.965); }
    64% { opacity: 1; }
    100% { opacity: 1; transform: perspective(950px) translateY(0) rotateX(0) rotateY(0) rotateZ(0) scale(1); }
  }

  @keyframes trace-preview-word {
    0% { opacity: 0; clip-path: inset(0 100% 0 0); }
    58%, 75% { opacity: 1; clip-path: inset(0); }
    100% { opacity: 0; clip-path: inset(0); }
  }

  @keyframes drift-product {
    to { transform: translateY(-1rem) rotate(-1.6deg); }
  }

  @keyframes seat-letter {
    0% { scale: .96; }
    55% { scale: 1.025; }
    100% { scale: 1; }
  }
}

@media (max-width: 59rem) {
  .sample-layout { grid-template-columns: minmax(0, 1fr); gap: 1.95rem; max-width: 44rem; }
  .sample-copy h2 span { display: inline; }
  .sample-copy .lede { max-width: 39ch; }
}

@media (max-width: 39rem) {
  .shell { width: calc(100% - 2.1rem); }
  .hero-layout { padding-block: clamp(3.1rem, 7svh, 4.25rem) 4.15rem; }
  .home-copy h1 { font-size: clamp(3.02rem, 12.5vw, 4.8rem); }
  .home-copy .lede { max-width: 29ch; }
  .hero-art { margin-top: 2.5rem; }
  .hero-device { width: clamp(10.35rem, 44vw, 11.65rem); border-radius: 1.52rem; }
  .topbar { min-height: 3.4rem; flex-wrap: wrap; gap: .32rem .5rem; padding-block: .61rem; }
  .topbar .wordmark { font-size: 1rem; }
  .topbar nav { column-gap: .47rem; }
  .topbar nav a { font-size: .86rem; }
  .language-switch { width: 1.65rem; margin-inline-start: -.18rem; }
  .hero-actions { gap: .42rem 1.05rem; margin-top: 1.05rem; }
  .word-demo { grid-template-columns: minmax(0, 1fr); }
  .word-grid { max-width: 18rem; gap: .27rem; }
  .word-cell { font-size: 1.04rem; }
  .word-postcard-art img { aspect-ratio: 2.05; }
  .screens { grid-template-columns: 1fr; gap: 1rem; }
  .footer-inner { flex-wrap: wrap; gap: .6rem 1rem; padding-block: .95rem; }
}
