/* Aivo site: design A (warm black and light gray, hairline columns, large light headings, round photo cards)
   with the owner's changes: no pastel gradients, entrance and scroll motion, a stronger hero line, working tabs,
   a different franchise layout, a plain footer band with the logo rising, richer mood and Coffename sections, an
   account section, four languages. Interactive parts are radios with labels, so they work without script. */

@font-face {
  font-family: "Aivo Sans";
  src: url("../assets/fonts/Switzer-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-024F, U+0259, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Aivo Sans";
  src: url("../assets/fonts/Switzer-VariableItalic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-024F, U+0259, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Aivo Sans";
  src: url("../assets/fonts/sans-cyrillic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Aivo Sans";
  src: url("../assets/fonts/sans-arabic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
  --ink: #1d1c1b;
  --ink-raised: #282625;
  --ink-soft: #353230;
  --paper: #f4f3f1;
  --paper-raised: #fbfaf8;
  --muted: #6b6762;
  --line: rgb(29 28 27 / 0.16);
  --on-dark: #f4f3f1;
  --on-dark-muted: rgb(244 243 241 / 0.62);
  --line-dark: rgb(244 243 241 / 0.15);
  --gutter: 40px;
  --inset: 40px;
  --max: 1440px;
  --r-xl: 80px;
  --r-btn: 14px;
  --nav-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --spring: cubic-bezier(0.3, 0.7, 0.4, 1.5);
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --font: "Aivo Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 430;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

h1,
h2 {
  font-weight: 400;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(42px, 4.5vw, 66px);
  line-height: 1.06;
}

h2 {
  font-size: clamp(32px, 3.4vw, 50px);
  line-height: 1.1;
}

h3 {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 450;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 6px;
}

[lang="ar"],
[lang="ar"] * {
  letter-spacing: 0 !important;
}

[lang="ar"] em {
  font-style: normal;
  color: var(--on-dark-muted);
}

.skip {
  position: absolute;
  z-index: 100;
  inset-inline-start: 16px;
  top: -80px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
}

.skip:focus {
  top: 16px;
}

/* Radios and the menu checkbox: hidden but still focusable. */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.dark {
  background: var(--ink);
  color: var(--on-dark);
  --hair: var(--line-dark);
  --soft: var(--on-dark-muted);
}

.light {
  background: var(--paper);
  color: var(--ink);
  --hair: var(--line);
  --soft: var(--muted);
}

.section {
  padding-block: 128px;
}

.lead {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 480;
}

/* Buttons, pills and tabs: gray on hover and a short press. */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 22px;
  border: 1px solid currentColor;
  border-radius: var(--r-btn);
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.35s var(--spring);
}

.btn:active,
.pill:active,
.post:active .pill,
.rail-tab:active,
.step-tab:active,
.lang-btn:active,
.nav-links a:active {
  transform: scale(0.96);
  transition-duration: 0.08s;
}

.arrow {
  width: 10px;
  height: 10px;
  flex: none;
  transition: transform 0.3s var(--spring);
}

.btn:hover .arrow,
.text-link:hover .arrow {
  transform: translate(2px, -2px);
}

[dir="rtl"] .arrow {
  transform: scaleX(-1);
}

[dir="rtl"] .btn:hover .arrow,
[dir="rtl"] .text-link:hover .arrow {
  transform: scaleX(-1) translate(2px, -2px);
}

.dark .btn-solid {
  background: var(--on-dark);
  border-color: var(--on-dark);
  color: var(--ink);
}

.light .btn-solid {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-dark);
}

.dark .btn-solid:hover,
.cta-card .btn-solid:hover,
.nav:not(.is-light) .btn-solid:hover {
  background: #d6d3ce;
  border-color: #d6d3ce;
}

.light .btn-solid:hover,
.nav.is-light .btn-solid:hover {
  background: #4a4744;
  border-color: #4a4744;
}

.dark .btn-line:hover,
.cta-card .btn-line:hover,
.nav:not(.is-light) .btn-line:hover {
  background: rgb(244 243 241 / 0.14);
}

.light .btn-line:hover,
.nav.is-light .btn-line:hover {
  background: rgb(29 28 27 / 0.08);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* Navigation */

.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 50;
  color: var(--on-dark);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.nav.is-scrolled {
  background: rgb(29 28 27 / 0.74);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}

.nav.is-light {
  color: var(--ink);
}

.nav.is-light.is-scrolled {
  background: rgb(244 243 241 / 0.82);
}

/* Without JavaScript the nav cannot follow the sections, so it keeps a dark bar everywhere. */
.no-js .nav {
  background: rgb(29 28 27 / 0.9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.nav-inner {
  height: var(--nav-h);
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}

.brand {
  justify-self: center;
}

.brand svg {
  height: 30px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: clamp(28px, 2.8vw, 40px);
  justify-self: start;
  font-size: 17px;
  font-weight: 500;
}

.nav-links a {
  margin: -8px -12px;
  padding: 8px 12px;
  white-space: nowrap;
  border-radius: 10px;
  opacity: 0.9;
  transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.35s var(--spring);
}

.nav-links a:hover {
  opacity: 1;
  background: rgb(244 243 241 / 0.12);
}

.nav.is-light .nav-links a:hover,
.nav.is-light .lang-btn:hover {
  background: rgb(29 28 27 / 0.07);
}

.nav.is-light .brand {
  color: #360000;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.nav .btn {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 16px;
}

.nav.is-light .btn-solid {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-dark);
}

.nav:not(.is-light) .btn-solid {
  background: var(--on-dark);
  border-color: var(--on-dark);
  color: var(--ink);
}

.lang {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 10px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.lang-btn {
  border-radius: 10px;
  transition: background-color 0.2s ease, transform 0.35s var(--spring);
}

.lang-btn:hover {
  background: rgb(244 243 241 / 0.12);
}

.lang-btn::-webkit-details-marker {
  display: none;
}

.lang-btn svg {
  width: 9px;
  height: 9px;
  transition: transform 0.2s ease;
}

.lang[open] .lang-btn svg {
  transform: rotate(180deg);
}

.lang-list {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  display: none;
  min-width: 168px;
  padding: 6px;
  border-radius: 14px;
  background: var(--paper-raised);
  color: var(--ink);
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.14);
}

.lang[open] .lang-list {
  display: block;
}

.lang-list a {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
}

.lang-list a:hover {
  background: rgb(0 0 0 / 0.05);
}

.lang-list a[aria-current="page"] {
  font-weight: 600;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor;
  transform: translateY(-3px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#menu-toggle:checked ~ .nav .menu-btn span {
  box-shadow: 0 0 0 currentColor;
  transform: rotate(45deg);
}

.mobile-menu {
  display: none;
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  min-height: max(700px, 100svh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Off screen the hero is not rendered at all, so its frames and letters cost nothing while you read below. */
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

/* Frames in depth: each one flies in from the back towards the viewer, so the field reads as coming from far
   away. A softer far layer and a sharper near layer. CSS only. */
.hero-depth {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  direction: ltr;
  /* Keep the frames out from behind the headline and the navigation. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 64%, rgb(0 0 0 / 0.25) 76%, #000 88%), linear-gradient(180deg, transparent 0, transparent 70px, #000 210px);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, transparent 64%, rgb(0 0 0 / 0.25) 76%, #000 88%), linear-gradient(180deg, transparent 0, transparent 70px, #000 210px);
  mask-composite: intersect;
  animation: fade-in 1.6s ease 0.2s both;
}

[dir="rtl"] .hero-depth {
  -webkit-mask-image: linear-gradient(270deg, transparent 0%, transparent 64%, rgb(0 0 0 / 0.25) 76%, #000 88%), linear-gradient(180deg, transparent 0, transparent 70px, #000 210px);
  mask-image: linear-gradient(270deg, transparent 0%, transparent 64%, rgb(0 0 0 / 0.25) 76%, #000 88%), linear-gradient(180deg, transparent 0, transparent 70px, #000 210px);
}

.depth-layer {
  position: absolute;
  inset: 0;
  perspective: 900px;
  perspective-origin: 84% 44%;
}

.depth-layer.far {
  filter: blur(2.2px);
  opacity: 0.72;
}

[dir="rtl"] .depth-layer {
  perspective-origin: 16% 44%;
}

.dt {
  position: absolute;
  top: 44%;
  left: 84%;
  width: var(--w);
  aspect-ratio: 16 / 10;
  margin-top: calc(var(--w) * -0.3125);
  margin-left: calc(var(--w) / -2);
  border-radius: 12px;
  background: #141312 center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgb(244 243 241 / 0.05);
  opacity: 0;
  animation: fly 18s linear infinite;
  animation-delay: var(--d);
  will-change: transform, opacity;
}

[dir="rtl"] .dt {
  left: 16%;
}

.far .dt {
  animation-duration: 26s;
}

.dt.photo {
  box-shadow: none;
}

.ht-1 { background-image: url("../assets/img/tiles/t1.webp"); }
.ht-2 { background-image: url("../assets/img/tiles/t2.webp"); }
.ht-3 { background-image: url("../assets/img/tiles/t3.webp"); }
.ht-4 { background-image: url("../assets/img/tiles/t4.webp"); }
.ht-5 { background-image: url("../assets/img/tiles/t5.webp"); }
.ht-6 { background-image: url("../assets/img/tiles/t6.webp"); }
.ht-7 { background-image: url("../assets/img/tiles/t7.webp"); }
.ht-8 { background-image: url("../assets/img/tiles/t8.webp"); }
.ht-9 { background-image: url("../assets/img/tiles/t9.webp"); }
.ht-10 { background-image: url("../assets/img/tiles/t10.webp"); }
.ht-11 { background-image: url("../assets/img/tiles/t11.webp"); }
.hn-1 { background-image: url("../assets/img/hero/h1.webp"); }
.hn-2 { background-image: url("../assets/img/hero/h2.webp"); }
.hn-3 { background-image: url("../assets/img/hero/h3.webp"); }
.hn-4 { background-image: url("../assets/img/hero/h4.webp"); }
.hn-5 { background-image: url("../assets/img/hero/h5.webp"); }
.hn-6 { background-image: url("../assets/img/hero/h6.webp"); }
.hn-7 { background-image: url("../assets/img/hero/h7.webp"); }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(29 28 27 / 0.94) 0%, rgb(29 28 27 / 0.74) 34%, rgb(29 28 27 / 0) 64%),
    linear-gradient(0deg, rgb(29 28 27 / 0.55) 0%, rgb(29 28 27 / 0) 28%);
}

[dir="rtl"] .hero::before {
  transform: scaleX(-1);
}

.hero-content {
  width: 100%;
  margin-block: auto;
  padding-top: var(--nav-h);
}

/* The hero line in one font, and under it a line that changes by itself, as on the old site. */
.hero h1 {
  max-width: 12em;
  font-size: clamp(44px, 6.4vw, 108px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero-line {
  display: block;
}

/* Room below the letters so g, y, ş and ç keep their tails. */
.hero-rotate {
  display: grid;
  overflow: hidden;
  padding-bottom: 0.24em;
  margin-bottom: -0.24em;
  color: var(--on-dark-muted);
}

/* Six lines, 4.4 s each (a 26.4 s cycle). Each letter comes in from a blur in its spectrum colour (--c, set per
   letter), keeps it for a moment, then turns to the line's own colour; the line leaves as a whole. Arabic goes word
   by word, so its steps are longer. */
.rot {
  grid-area: 1 / 1;
  opacity: 0;
  animation: rot-line 26.4s linear infinite backwards;
  animation-delay: calc(var(--n) * 4.4s + 1.1s);
}

.rot .ch {
  animation: rot-letter 26.4s ease-out infinite backwards;
  animation-delay: calc(var(--n) * 4.4s + 1.1s + var(--i) * var(--step, 28ms));
}

[dir="rtl"] .rot .ch {
  --step: 110ms;
}

.hero h1 .w {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.24em;
  margin-bottom: -0.24em;
  vertical-align: top;
}

.hero h1 .w > span {
  display: inline-block;
  animation: word-in 1.1s var(--ease) both;
  animation-delay: calc(var(--i) * 120ms + 150ms);
}

.hero-lead {
  margin-top: 36px;
  max-width: 32em;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 500;
  animation: fade-up 1s var(--ease) 0.6s both;
}

.hero .actions {
  margin-top: 40px;
  animation: fade-up 1s var(--ease) 0.75s both;
}

/* The visit card: one horizontal strip in the middle under the hero text (owner, 2026-10-07): photo, address and
   hours, map link. A solid fill instead of a blur, so nothing behind it is redrawn every frame. */
.hero-card {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: calc(100% - 2 * var(--gutter));
  margin: 32px var(--gutter) var(--gutter);
  padding-block: 10px;
  padding-inline: 10px 28px;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 26px;
  background: #2b2a29;
  animation: fade-up 1s var(--ease) 0.95s both;
}

.hero-card img {
  flex: none;
  width: 168px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
}

.hero-card p {
  font-weight: 500;
  line-height: 1.35;
}

.hero-card p span {
  display: block;
}

.hero-card .card-hours {
  color: var(--on-dark-muted);
  font-weight: 450;
}

.hero-card .text-link {
  margin-inline-start: 18px;
  white-space: nowrap;
}

/* With room to spare the card sits on its own at the bottom and the text stays centred in the whole hero, as before;
   on smaller screens it stays in the flow under the text so the two never meet. */
@media (min-width: 1300px) and (min-height: 820px) {
  .hero-card {
    position: absolute;
    inset-inline: 0;
    bottom: var(--gutter);
    width: fit-content;
    margin: 0 auto;
  }
}

/* Two column section intro with hairlines */

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-inline: 1px solid var(--hair);
}

.intro > * {
  padding-inline: var(--inset);
}

.intro > :first-child {
  border-inline-end: 1px solid var(--hair);
}

.intro-text {
  max-width: calc(24em + 2 * var(--inset));
}

.intro-text .actions {
  margin-top: 32px;
}

/* How it works: numbered steps beside a stage; each step is a label for its radio */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-top: 88px;
  border-inline-start: 1px solid var(--hair);
}

.step-list {
  padding-inline: 20px var(--inset);
}

.step + .step {
  margin-top: 4px;
}

.step-tab {
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: min(100%, 330px);
  padding: 14px 14px;
  border-radius: 14px;
  color: var(--soft);
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-align: start;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.step-tab:hover {
  color: inherit;
  background: rgb(244 243 241 / 0.06);
}

.step-body {
  display: none;
  max-width: 24em;
  padding: 20px 14px 32px;
}

#hs-0:checked ~ .step-list [data-i="0"] .step-tab,
#hs-1:checked ~ .step-list [data-i="1"] .step-tab,
#hs-2:checked ~ .step-list [data-i="2"] .step-tab,
#hs-3:checked ~ .step-list [data-i="3"] .step-tab {
  background: var(--ink-soft);
  color: inherit;
}

#hs-0:checked ~ .step-list [data-i="0"] .step-body,
#hs-1:checked ~ .step-list [data-i="1"] .step-body,
#hs-2:checked ~ .step-list [data-i="2"] .step-body,
#hs-3:checked ~ .step-list [data-i="3"] .step-body {
  display: block;
  animation: fade-up 0.5s var(--ease) both;
}

#hs-0:focus-visible ~ .step-list [data-i="0"] .step-tab,
#hs-1:focus-visible ~ .step-list [data-i="1"] .step-tab,
#hs-2:focus-visible ~ .step-list [data-i="2"] .step-tab,
#hs-3:focus-visible ~ .step-list [data-i="3"] .step-tab {
  outline: 2px solid var(--on-dark-muted);
  outline-offset: 2px;
}

.stage {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--ink-raised);
}

.screen {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 56px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

#hs-0:checked ~ .stage [data-i="0"],
#hs-1:checked ~ .stage [data-i="1"],
#hs-2:checked ~ .stage [data-i="2"],
#hs-3:checked ~ .stage [data-i="3"] {
  opacity: 1;
  transform: none;
}

.panel-screen {
  display: flex;
  flex-direction: column;
  width: min(100%, 440px);
  min-height: 340px;
  padding: 28px;
  border-radius: 30px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 90px rgb(0 0 0 / 0.38);
}

.panel-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.panel-quote {
  margin-top: auto;
  font-size: 27px;
  line-height: 1.22;
  letter-spacing: -0.015em;
}

.panel-hint {
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.panel-hint i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-inline-end: 8px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
  animation: breathe 1.6s ease-in-out infinite;
}

.panel-title {
  margin-top: 18px;
  font-size: 24px;
  letter-spacing: -0.012em;
}

.panel-lines {
  margin-top: 18px;
}

.panel-lines li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
  border-top: 1px solid var(--line);
  font-weight: 500;
}

.panel-lines li span {
  color: var(--muted);
  font-weight: 450;
  text-align: end;
}

.panel-confirm {
  display: grid;
  place-items: center;
  height: 54px;
  margin-top: auto;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 550;
}

.panel-foot {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* Four languages */

.langs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 88px;
  border-inline-start: 1px solid var(--hair);
}

.lang-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  min-height: 230px;
  padding-inline: var(--inset);
  border-inline-end: 1px solid var(--hair);
}

.lang-name {
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lang-col[lang="ar"] .lang-name,
.lang-col[lang="ru"] .lang-name {
  letter-spacing: 0;
}

/* Short facts in hairline columns (mood, Coffename, franchise) */

.cols {
  display: grid;
  margin-top: 88px;
  border-inline-start: 1px solid var(--hair);
}

.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.cols > li {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-inline: var(--inset) calc(var(--inset) * 0.75);
  border-inline-end: 1px solid var(--hair);
}

.cols h3 {
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 450;
}

.cols p {
  color: var(--soft);
  font-size: 15px;
  line-height: 1.55;
}

.col-num {
  color: var(--soft);
  font-size: 14px;
  font-weight: 500;
}

/* Mood: the panel sits on a dark band now (no gradient); each tab is a label for its radio */

.panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
  margin-top: 88px;
  padding: clamp(40px, 7vw, 104px) clamp(24px, 9vw, 132px);
  border-radius: var(--r-xl);
  background: var(--ink-raised);
}

.demo-tab {
  display: block;
  padding-block: 10px;
  color: rgb(244 243 241 / 0.42);
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-align: start;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.35s var(--spring);
}

.demo-tab:hover {
  color: var(--on-dark);
  transform: translateX(6px);
}

[dir="rtl"] .demo-tab:hover {
  transform: translateX(-6px);
}

.demo-body {
  display: none;
  max-width: 26em;
  padding: 12px 0 26px;
}

#fy-0:checked ~ .demo-tabs [for="fy-0"],
#fy-1:checked ~ .demo-tabs [for="fy-1"],
#fy-2:checked ~ .demo-tabs [for="fy-2"] {
  color: var(--on-dark);
}

#fy-0:checked ~ .demo-tabs [data-i="0"],
#fy-1:checked ~ .demo-tabs [data-i="1"],
#fy-2:checked ~ .demo-tabs [data-i="2"] {
  display: block;
  animation: fade-up 0.5s var(--ease) both;
}

#fy-0:focus-visible ~ .demo-tabs [for="fy-0"],
#fy-1:focus-visible ~ .demo-tabs [for="fy-1"],
#fy-2:focus-visible ~ .demo-tabs [for="fy-2"] {
  outline: 2px solid var(--on-dark-muted);
  outline-offset: 4px;
}

.demo {
  display: none;
}

#fy-0:checked ~ .demo-stage [data-i="0"],
#fy-1:checked ~ .demo-stage [data-i="1"],
#fy-2:checked ~ .demo-stage [data-i="2"] {
  display: block;
}

.ask {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 12px 20px;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  font-size: 17px;
  font-weight: 480;
}

.ask-icon {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(29 28 27 / 0.25);
  border-radius: 9px;
}

.ask-icon svg {
  width: 14px;
  height: 14px;
}

/* The guest's sentence types itself in; the answer follows. */
.typed {
  display: inline-block;
  animation: type-in 1.2s steps(30, end) 0.2s both;
}

[dir="rtl"] .typed {
  animation-name: type-in-rtl;
}

.answer {
  margin-top: 20px;
}

.answer li {
  display: grid;
  gap: 2px;
  padding-block: 14px;
  border-top: 1px solid var(--line-dark);
  animation: fade-up 0.5s var(--ease) 1.5s both;
}

.answer li + li {
  animation-delay: 1.7s;
}

.answer li strong {
  font-weight: 560;
}

.answer li span {
  color: var(--soft);
}

/* With script, the first example waits until it is on screen. */
.js .panel:not(.play) .typed,
.js .panel:not(.play) .answer li {
  animation-play-state: paused;
}

/* Split section (Coffename) */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
}

.split-media {
  position: relative;
  padding: 0 var(--inset) 0 0;
}

[dir="rtl"] .split-media {
  padding: 0 0 0 var(--inset);
}

.split-media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--r-xl);
}

.split-text {
  padding: 8px var(--inset);
  border-inline-start: 1px solid var(--hair);
}

.split-text .lead {
  margin-top: 28px;
  max-width: 30em;
}

.split-text .note {
  margin-top: 16px;
  color: var(--soft);
  font-size: 15px;
}

.split-text .actions {
  margin-top: 32px;
}

/* Account: the tablet's own welcome card beside what an account keeps */

.account-body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  margin-top: 88px;
}

.welcome {
  margin: 0;
}

.welcome-card {
  width: min(100%, 440px);
  padding: 32px;
  border-radius: 30px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 90px rgb(0 0 0 / 0.38);
}

.welcome-logo {
  height: 26px;
  width: auto;
  color: #360000;
}

.welcome-greet {
  margin-top: 56px;
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.welcome-lines {
  margin-top: 22px;
}

.welcome-lines li {
  padding-block: 14px;
  border-top: 1px solid var(--line);
  font-weight: 500;
}

.welcome figcaption {
  width: min(100%, 440px);
  margin-top: 14px;
  color: var(--soft);
  font-size: 14px;
  text-align: center;
}

.account-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
}

.account-points li {
  display: grid;
  gap: 8px;
  padding-block: 22px;
  border-top: 1px solid var(--hair);
}

.account-points h3 {
  font-size: 20px;
}

.account-points p {
  color: var(--soft);
  font-size: 15px;
}

/* At the table: a rail of photo cards; tabs and cards are labels for the same radios */

.rail {
  position: relative;
  margin-top: 80px;
  --card: min(1064px, 86vw);
  --gap: 40px;
}

.rail-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding-inline: var(--gutter);
}

.rail-tab {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  color: var(--soft);
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.35s var(--spring);
}

.rail-tab:hover {
  color: var(--ink);
  background: rgb(29 28 27 / 0.07);
}

#rl-0:checked ~ .rail-tabs [for="rl-0"],
#rl-1:checked ~ .rail-tabs [for="rl-1"],
#rl-2:checked ~ .rail-tabs [for="rl-2"] {
  background: var(--ink);
  color: var(--on-dark);
}

#rl-0:focus-visible ~ .rail-tabs [for="rl-0"],
#rl-1:focus-visible ~ .rail-tabs [for="rl-1"],
#rl-2:focus-visible ~ .rail-tabs [for="rl-2"] {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.rail-window {
  margin-top: 32px;
  overflow: hidden;
}

.rail-track {
  --k: 0;
  display: flex;
  gap: var(--gap);
  padding-inline: calc((100% - var(--card)) / 2);
  transform: translateX(calc(var(--k) * -1 * (var(--card) + var(--gap))));
  transition: transform 0.8s var(--ease);
}

[dir="rtl"] .rail-track {
  transform: translateX(calc(var(--k) * (var(--card) + var(--gap))));
}

#rl-1:checked ~ .rail-window .rail-track {
  --k: 1;
}

#rl-2:checked ~ .rail-window .rail-track {
  --k: 2;
}

.rail-card {
  position: relative;
  display: block;
  flex: none;
  width: var(--card);
  height: clamp(440px, 40vw, 568px);
  overflow: hidden;
  border-radius: 120px;
  background: var(--ink);
  color: var(--on-dark);
  cursor: pointer;
}

.rail-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rail-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(20 19 18 / 0.82) 0%, rgb(20 19 18 / 0.45) 42%, rgb(20 19 18 / 0) 70%);
}

[dir="rtl"] .rail-card::after {
  transform: scaleX(-1);
}

.rail-copy {
  position: absolute;
  z-index: 1;
  top: 0;
  inset-inline-start: 0;
  display: block;
  width: min(100%, 470px);
  padding-block-start: 150px;
  padding-inline: 48px 0;
}

.rail-title {
  display: block;
  font-size: 28px;
  letter-spacing: -0.015em;
  font-weight: 420;
}

.rail-text {
  display: block;
  margin-top: 24px;
  font-weight: 500;
}

/* Visit: the map is a still picture that opens Google Maps */

.map-card {
  position: relative;
  display: block;
  height: clamp(380px, 42vw, 580px);
  margin-top: 88px;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: #e4e2de;
}

.map-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 46%;
  transition: transform 1.2s var(--ease);
}

.map-card:hover img {
  transform: scale(1.02);
}

.map-credit {
  position: absolute;
  bottom: 10px;
  inset-inline-end: 24px;
  color: rgb(29 28 27 / 0.6);
  font-size: 11px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 56px;
  border-inline-start: 1px solid var(--hair);
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 150px;
  padding-inline: var(--inset);
  border-inline-end: 1px solid var(--hair);
}

.fact dt {
  color: var(--soft);
  font-size: 15px;
  font-weight: 500;
}

.fact dd {
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.005em;
}

.fact dd .text-link {
  display: flex;
  width: fit-content;
  font-size: 17px;
}

.fact dd .text-link + .text-link {
  margin-top: 8px;
}

/* Blog */

.posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: 72px;
  margin-top: 88px;
  border-inline-start: 1px solid var(--hair);
}

.post {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 270px;
  padding-inline: var(--inset);
  border-inline-end: 1px solid var(--hair);
}

.post-meta {
  color: var(--soft);
  font-size: 15px;
  font-weight: 500;
}

.post h3 {
  font-size: 25px;
  line-height: 1.22;
  letter-spacing: -0.014em;
  font-weight: 420;
}

.post p {
  color: var(--soft);
}

.post-open {
  align-self: flex-start;
  margin-top: auto;
  cursor: pointer;
}

/* The whole card opens the post. The pill inside presses, not the label, so the card stays clickable. */
.post-open::after {
  content: "";
  position: absolute;
  inset: 0;
}

.post:hover .pill {
  background: #d7d4cf;
}

.post:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

/* A post opens over the page: the page dims and a card rises into the middle with the text in it. The card keeps
   room on every side and is as tall as the post, never taller than the window; longer posts scroll inside it with a
   thin bar. Radios and labels, so it works without script; the script adds Escape, the back button, a link per post
   and focus. The page behind is not locked: locking removes the scrollbar, the page reflows and the card jumps. Nothing
   in it blurs, casts a large shadow or animates on its own. */

.sheets {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

.sheet {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(20 19 18 / 0.62);
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.sheet-panel {
  position: relative;
  width: min(920px, 100%);
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 28px;
  background: var(--paper-raised);
  color: var(--ink);
  contain: layout paint;
  will-change: transform, opacity;
  opacity: 0;
  transform: translateY(56px);
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}

/* A thin rounded bar inside the card, clear of its corners, no arrows. Firefox takes the standard properties. */
.sheet-panel::-webkit-scrollbar {
  width: 14px;
}

.sheet-panel::-webkit-scrollbar-track {
  margin-block: 24px;
  background: transparent;
}

.sheet-panel::-webkit-scrollbar-thumb {
  min-height: 48px;
  border: 4px solid transparent;
  border-radius: 999px;
  background: rgb(29 28 27 / 0.2) padding-box;
}

.sheet-panel::-webkit-scrollbar-thumb:hover {
  background-color: rgb(29 28 27 / 0.36);
}

.sheet-panel::-webkit-scrollbar-button {
  display: none;
}

@supports not selector(::-webkit-scrollbar) {
  .sheet-panel {
    scrollbar-width: thin;
    scrollbar-color: rgb(29 28 27 / 0.24) transparent;
  }
}

.sheet-panel:focus {
  outline: none;
}

.sheet-state:checked ~ .sheet-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.35s ease, visibility 0s;
}

.sheet-state:checked ~ .sheet-panel {
  opacity: 1;
  transform: none;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.35s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}

.sheet-bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px;
  background: var(--paper-raised);
}

.sheet-meta {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sheet-close,
.sheet-actions label {
  cursor: pointer;
}

.sheet-body {
  max-width: 680px;
  margin-inline: auto;
  padding: 24px 28px 56px;
}

.sheet-body h2 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 420;
}

.sheet-lead {
  margin-top: 20px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.45;
  font-weight: 450;
}

.sheet-body h3 {
  margin-top: 44px;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 520;
}

.sheet-body p,
.sheet-list {
  margin-top: 14px;
  font-size: 18px;
  line-height: 1.65;
}

.sheet-lead + p {
  margin-top: 36px;
}

.sheet-list {
  padding-inline-start: 1.2em;
  list-style: disc;
}

.sheet-list li + li {
  margin-top: 6px;
}

.sheet-samples {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.sheet-samples li {
  display: flex;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  line-height: 1.5;
}

.sample-lang {
  flex: none;
  width: 92px;
  color: var(--muted);
  text-align: left;
}

[dir="rtl"] .sample-lang {
  text-align: right;
}

.sheet-end {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.sheet-end p {
  margin-top: 0;
  color: var(--muted);
  font-size: 15px;
}

.sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* A post on its own page (/blog/<slug>/): the panel's reading column on the page, then links to the other posts. */
.post-page {
  min-height: 70vh;
  background: var(--paper);
  color: var(--ink);
}

/* Two classes, so the small-screen padding of .sheet-body does not take the room under the navigation away. */
.sheet-body.article {
  padding-top: calc(var(--nav-h) + 72px);
}

.article-crumbs {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 15px;
}

.article-crumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article .sheet-meta {
  display: block;
  margin-bottom: 18px;
}

.sheet-body h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 420;
}

.article .sheet-actions {
  margin-top: 16px;
}

.more-posts {
  max-width: 680px;
  margin-inline: auto;
  padding: 0 28px 128px;
}

.more-posts h2 {
  font-size: 28px;
  letter-spacing: -0.015em;
}

.more-posts ul {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.more-posts a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.more-title {
  font-size: 18px;
  line-height: 1.35;
}

.more-meta {
  flex: none;
  color: var(--muted);
  font-size: 14px;
}

.more-posts a:hover .more-title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* Franchise: one wide photo and the five parts in columns (different from the steps above) */

.wide-photo {
  margin-top: 88px;
  overflow: hidden;
  border-radius: var(--r-xl);
}

.wide-photo img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

#franchise .cols {
  margin-top: 64px;
}

/* FAQ */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-inline: 1px solid var(--hair);
}

.faq > * {
  padding-inline: var(--inset);
}

.faq > :first-child {
  border-inline-end: 1px solid var(--hair);
}

.faq details {
  border-bottom: 1px solid var(--hair);
}

.faq details:first-child {
  border-top: 1px solid var(--hair);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.006em;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 13px;
  height: 13px;
  margin-top: 7px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform 0.25s ease;
}

.faq summary {
  transition: color 0.2s ease;
}

.faq summary:hover {
  color: var(--soft);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  max-width: 34em;
  padding-bottom: 26px;
  color: var(--soft);
  font-size: 17px;
}

/* Closing card */

.cta {
  padding-block: 0 128px;
}

.cta-card {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(460px, 44vw, 620px);
  padding: 48px 24px;
  overflow: hidden;
  border-radius: var(--r-xl);
  color: var(--on-dark);
  text-align: center;
}

.cta-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 60% at 50% 46%, rgb(20 19 18 / 0.62), rgb(20 19 18 / 0.18));
}

.cta-card h2 {
  font-size: clamp(36px, 4.2vw, 58px);
}

.cta-card p {
  margin-top: 20px;
  font-weight: 500;
}

.cta-card .actions {
  justify-content: center;
  margin-top: 36px;
}

.cta-card .btn-solid {
  background: var(--on-dark);
  border-color: var(--on-dark);
  color: var(--ink);
}

/* Footer: a copyright line, labelled columns of pills, and the large glossy logo rising across the page. */

.footer {
  overflow: hidden;
  padding-top: clamp(72px, 9vw, 120px);
  background: var(--paper);
  color: var(--ink);
  --hair: var(--line);
  --soft: var(--muted);
}

.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
  gap: 40px;
}

.foot-copy,
.foot-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 24px;
}

.foot-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.foot-label {
  margin-bottom: 10px;
}

/* The brand stays AIVO in every language (Turkish casing would dot the I). */
.foot-copy {
  text-transform: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 10px;
  background: #e7e5e1;
  line-height: 1.35;
  color: var(--ink);
  font-size: 15px;
  font-weight: 450;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.35s var(--spring);
}

.pill:hover {
  background: #d7d4cf;
}

.pill[aria-current="page"] {
  background: var(--ink);
  color: var(--on-dark);
}

.foot-logo {
  overflow: hidden;
  margin-top: clamp(64px, 10vw, 150px);
  padding: 0 clamp(8px, 1.5vw, 24px) clamp(8px, 1.5vw, 24px);
}

.foot-logo-inner {
  transform: translateY(var(--rise, 0%));
  will-change: transform;
}

.giant {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Motion.
   The hero plays on load with CSS alone. Section content rises in as it scrolls into view and the footer logo
   rises with the scroll, through scroll-driven animations where the browser has them; elsewhere the script adds
   .io and does the same with an IntersectionObserver. With neither, everything simply shows. */

@supports (animation-timeline: view()) {
  [data-reveal] {
    animation: reveal-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 75%;
  }

  [data-reveal="clip"] {
    animation-name: reveal-clip;
    animation-range: entry 0% cover 40%;
  }

  .foot-logo {
    view-timeline-name: --mark;
  }

  .foot-logo-inner {
    animation: mark-rise linear both;
    animation-timeline: --mark;
    animation-range: entry 0% entry 100%;
  }
}

.io [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.io [data-reveal].in {
  opacity: 1;
  transform: none;
}

.io [data-reveal="clip"] {
  opacity: 1;
  transform: none;
  clip-path: inset(10% 6% 0 6% round var(--r-xl));
  transition: clip-path 1.2s var(--ease);
}

.io [data-reveal="clip"].in {
  clip-path: inset(0 0 0 0 round var(--r-xl));
}

@keyframes word-in {
  from {
    transform: translateY(110%);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes fly {
  0% {
    opacity: 0;
    transform: translate3d(var(--x), var(--y), -2600px);
  }
  14%,
  84% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--x), var(--y), 360px);
  }
}

@keyframes rot-line {
  0%,
  14% {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
  15.5%,
  100% {
    opacity: 0;
    transform: translateY(-0.2em);
    filter: blur(6px);
  }
}

@keyframes rot-letter {
  0% {
    opacity: 0;
    filter: blur(10px);
    color: var(--c);
  }
  1.5% {
    opacity: 1;
    filter: blur(0);
    color: var(--c);
  }
  4.9% {
    color: var(--c);
  }
  7.6%,
  15.6% {
    opacity: 1;
    color: var(--on-dark-muted);
  }
  15.7%,
  100% {
    opacity: 0;
    color: var(--on-dark-muted);
  }
}

@keyframes breathe {
  50% {
    opacity: 0.3;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .io [data-reveal] {
    opacity: 1;
    transform: none;
    clip-path: none;
  }

  .rot.is-first {
    opacity: 1;
  }

  .dt {
    opacity: 0.6;
    transform: translate3d(var(--x), var(--y), -900px);
  }
}

/* Smaller screens */

/* Below 1260 px the section links no longer fit beside the centred logo; the menu button takes over. */
@media (max-width: 1259px) {
  .nav-inner {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  .nav-end {
    margin-inline-start: auto;
  }

  .menu-btn {
    display: grid;
  }

  #menu-toggle:checked ~ .mobile-menu {
    position: fixed;
    inset: var(--nav-h) 0 0;
    z-index: 49;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px var(--gutter);
    overflow-y: auto;
    background: var(--ink);
    color: var(--on-dark);
    font-size: 28px;
    letter-spacing: -0.015em;
  }

  .mobile-menu > a {
    padding-block: 8px;
  }

  .mobile-langs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line-dark);
    color: var(--on-dark-muted);
    font-size: 17px;
    letter-spacing: 0;
  }

  .mobile-lang[aria-current="page"] {
    color: var(--on-dark);
  }

  #menu-toggle:checked ~ .nav {
    background: var(--ink);
    color: var(--on-dark);
  }

  body:has(#menu-toggle:checked) {
    overflow: hidden;
  }
}

@media (max-width: 1180px) {
  .cols-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 48px;
  }
}

@media (max-width: 900px) {
  :root {
    --gutter: 16px;
    --inset: 20px;
    --r-xl: 40px;
    --nav-h: 64px;
  }

  .section {
    padding-block: 88px;
  }

  .brand svg {
    height: 26px;
  }

  .nav .btn-line,
  .nav .btn-solid {
    display: none;
  }

  .hero {
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 56px;
  }

  .hero-content {
    margin-block: 0;
    padding-top: 8px;
  }

  .hero::before {
    background: linear-gradient(0deg, rgb(29 28 27 / 0.96) 0%, rgb(29 28 27 / 0.82) 45%, rgb(29 28 27 / 0.25) 100%);
  }

  [dir="rtl"] .hero::before {
    transform: none;
  }

  .hero h1 {
    font-size: clamp(38px, 10.5vw, 72px);
  }

  /* The frames sit in their own box between the navigation and the text. */
  .hero-depth,
  [dir="rtl"] .hero-depth {
    position: relative;
    inset: auto;
    flex: 1 0 180px;
    margin-top: var(--nav-h);
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 64%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 64%, transparent 100%);
  }

  .depth-layer,
  [dir="rtl"] .depth-layer {
    perspective-origin: 50% 46%;
  }

  .dt,
  [dir="rtl"] .dt {
    top: 46%;
    left: 50%;
  }

  .depth-layer.far {
    filter: none;
    opacity: 0.5;
  }

  .hero-lead {
    margin-top: 24px;
    font-size: 17px;
  }

  .hero .actions {
    margin-top: 32px;
  }

  .hero-card {
    display: none;
  }

  .intro,
  .faq {
    grid-template-columns: minmax(0, 1fr);
    border-inline-end: 0;
  }

  .intro > :first-child,
  .faq > :first-child {
    border-inline-end: 0;
  }

  .intro > * + *,
  .faq > * + * {
    margin-top: 28px;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 56px;
  }

  .step-list {
    padding-inline: 8px var(--inset);
  }

  .step-tab {
    font-size: 20px;
  }

  .stage {
    min-height: 470px;
    margin-top: 32px;
    margin-inline-start: -1px;
  }

  .screen {
    padding: 20px;
  }

  .panel-screen {
    min-height: 320px;
    padding: 22px;
  }

  .panel-quote {
    font-size: 23px;
  }

  .langs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 56px;
    margin-top: 56px;
  }

  .lang-col {
    min-height: 0;
    gap: 20px;
  }

  .panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    margin-top: 56px;
    padding: 36px 20px;
  }

  .cols,
  .cols-4,
  .cols-5 {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 48px;
    row-gap: 0;
    border-inline-start: 0;
  }

  .cols > li {
    padding: 22px 0;
    border-inline-end: 0;
    border-top: 1px solid var(--hair);
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .split-media,
  [dir="rtl"] .split-media {
    padding: 0;
  }

  .split-text {
    margin-top: 40px;
  }

  .account-body {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 48px;
  }

  .welcome-card,
  .welcome figcaption {
    width: 100%;
  }

  .account-points {
    grid-template-columns: minmax(0, 1fr);
  }

  .rail {
    margin-top: 56px;
  }

  .rail-tabs {
    display: none;
  }

  .rail-window {
    margin-top: 0;
    padding-inline: var(--gutter);
  }

  .rail-track,
  [dir="rtl"] .rail-track {
    flex-direction: column;
    gap: 12px;
    padding-inline: 0;
    transform: none;
  }

  .rail-card {
    width: 100%;
    height: 460px;
    border-radius: 40px;
    cursor: default;
  }

  .rail-card::after {
    background: linear-gradient(0deg, rgb(20 19 18 / 0.88) 0%, rgb(20 19 18 / 0.5) 50%, rgb(20 19 18 / 0.05) 100%);
  }

  [dir="rtl"] .rail-card::after {
    transform: none;
  }

  .rail-copy {
    top: auto;
    bottom: 0;
    width: 100%;
    padding: 28px;
  }

  .rail-title {
    font-size: 24px;
  }

  .rail-text {
    margin-top: 12px;
  }

  .map-card {
    margin-top: 56px;
    height: 380px;
  }

  .facts,
  .posts {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 40px;
  }

  .fact,
  .post {
    min-height: 0;
    padding-block: 24px;
    border-inline-end: 0;
    border-top: 1px solid var(--hair);
  }

  .posts {
    row-gap: 0;
    margin-top: 56px;
  }

  .post {
    gap: 10px;
  }

  .post-open {
    margin-top: 6px;
  }

  .sheet {
    align-items: flex-end;
    padding: 12px 0 0;
  }

  .sheet-panel {
    width: 100%;
    border-radius: 24px 24px 0 0;
    opacity: 1;
    transform: translateY(100%);
  }

  .sheet-bar {
    padding: 16px 20px;
  }

  .sheet-body {
    padding: 12px 20px 48px;
  }

  .sheet-body.article {
    padding-top: calc(var(--nav-h) + 40px);
  }

  .more-posts {
    padding-inline: 20px;
  }

  .sheet-body p,
  .sheet-list,
  .sheet-samples li {
    font-size: 17px;
  }

  .sheet-lead {
    font-size: 19px;
  }

  .sheet-samples li {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .sample-lang {
    width: auto;
  }

  .wide-photo {
    margin-top: 56px;
  }

  .wide-photo img {
    aspect-ratio: 4 / 3;
  }

  #franchise .cols {
    margin-top: 32px;
  }

  .cta {
    padding-bottom: 88px;
  }

  .foot-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .foot-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .hero .actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .welcome-card {
    padding: 24px;
  }
}
