/* ==========================================================
   QR Simple — editorial "gallery" design
   Warm paper, ink type, one vermilion accent taken from the
   language pill in the QR Simple app.
   ========================================================== */

:root {
  --paper:     #F3EEE6;
  --paper-2:   #EAE3D7;
  --card:      #FBF8F3;
  --ink:       #1B1916;
  --ink-2:     #2A2723;
  --ink-soft:  #5E5850;
  --ink-mute:  #8A8279;
  --line:      rgba(27, 25, 22, .14);
  --line-dark: rgba(243, 238, 230, .16);
  --accent:    #D1452A;
  --accent-dk: #B53A22;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(88px, 11vw, 150px);
  --radius: 18px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
figure { margin: 0; }
h1, h2, h3, p { margin: 0; }

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip-link {
  position: absolute; inset-inline-start: 12px; top: 12px; z-index: 1000;
  transform: translateY(-200%);
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { transform: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- type ---------- */

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.012em;
  line-height: 1.02;
  text-wrap: balance;
}

h1 { font-size: clamp(48px, 7vw, 96px); }
h2 { font-size: clamp(38px, 4.8vw, 64px); }

h1 em, h2 em, .statement-text em {
  font-style: italic;
  color: var(--accent);
}

h3 {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.3;
}

.lead {
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 34em;
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.eyebrow--light { color: rgba(243, 238, 230, .7); }

/* ---------- buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font: 500 16px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn span { transition: transform .2s var(--ease); }
.btn:hover span { transform: translateX(3px); }

.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dk); }
.btn-sm { height: 44px; padding: 0 20px; font-size: 15px; }
.btn-block { width: 100%; }

.link-arrow {
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size .3s var(--ease);
}
.link-arrow::after { content: " ↓"; }
.link-arrow:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ==========================================================
   Header
   ========================================================== */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(243, 238, 230, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img { width: 166px; height: auto; }

.main-nav {
  display: flex;
  gap: 32px;
  margin-inline: auto 12px;
}
.main-nav a {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color .2s;
}
.main-nav a:hover { color: var(--ink); }

/* ---------- language switcher ---------- */

.lang { position: relative; }

.lang summary {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  list-style: none;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ink-soft);
  transition: background-color .2s, color .2s;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after {
  content: "";
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s var(--ease);
}
.lang[open] summary::after { transform: translateY(2px) rotate(225deg); }
.lang summary:hover,
.lang[open] summary { background: var(--paper-2); color: var(--ink); }

.lang-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  z-index: 10;
  min-width: 176px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 48px -20px rgba(27, 25, 22, .35);
}
.lang-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink-soft);
}
.lang-menu a:hover { background: var(--paper-2); color: var(--ink); }
.lang-menu a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.lang-menu a[aria-current="page"]::after {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: none; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 7px;
}
.burger span { display: block; width: 24px; height: 1.5px; background: var(--ink); }

.drawer {
  position: fixed; inset-block: 0; inset-inline-end: 0; z-index: 300;
  width: min(360px, 88vw);
  background: var(--paper);
  padding: 24px 28px;
  transform: translateX(100%);
  transition: transform .4s var(--ease);
  visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.drawer-close {
  display: block; margin-inline-start: auto;
  width: 44px; height: 44px;
  border: 0; background: none; cursor: pointer;
  font-size: 32px; line-height: 1; color: var(--ink);
}
.drawer nav { display: flex; flex-direction: column; gap: 6px; margin-top: 24px; }
.drawer nav a:not(.btn) {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.3;
  text-decoration: none;
}
.drawer nav .btn { margin-top: 28px; }

.drawer-lang {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 36px 0 0;
  padding: 24px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.drawer-lang a {
  display: block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink-soft);
}
.drawer-lang a[aria-current="page"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.scrim {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(27, 25, 22, .4);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.scrim.open { opacity: 1; visibility: visible; }

/* ==========================================================
   Hero
   ========================================================== */

.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(72px, 8vw, 110px); }

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.hero h1 { margin-bottom: 28px; }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--ink-mute);
}
.hero-notes li { display: flex; align-items: center; gap: 8px; }
.hero-notes li::before {
  content: "";
  width: 14px; height: 8px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg) translateY(-3px);
}

.hero-visual {
  position: relative;
  padding-block-end: 48px;
  padding-inline-start: 64px;
}

.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}

/* phone frame around the real app screenshot */
.device {
  position: absolute;
  padding: 7px;
  background: #151412;
  border-radius: 38px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06) inset,
    0 40px 70px -24px rgba(27, 25, 22, .55),
    0 12px 24px -12px rgba(27, 25, 22, .35);
}
.device img {
  width: 100%;
  border-radius: 31px;
}

.hero-device {
  width: clamp(150px, 15vw, 212px);
  inset-inline-start: 0;
  bottom: 0;
}

.now-playing {
  position: absolute;
  inset-inline-end: -18px;
  top: 12%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: 0 24px 44px -20px rgba(27, 25, 22, .45);
}
.np-play {
  position: relative;
  flex: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
}
.np-play::before, .np-play::after {
  content: "";
  position: absolute; top: 12px;
  width: 3px; height: 12px;
  border-radius: 1px;
  background: #fff;
}
.np-play::before { left: 13px; }
.np-play::after  { left: 20px; }
.np-text { display: flex; flex-direction: column; line-height: 1.25; }
.np-title { font-size: 13.5px; font-weight: 600; }
.np-meta { font-size: 12px; color: var(--ink-mute); }
.np-wave { display: flex; align-items: center; gap: 3px; height: 22px; margin-inline-start: 6px; }
.np-wave i {
  width: 3px; height: 30%;
  border-radius: 2px;
  background: var(--accent);
  animation: wave 1.1s ease-in-out infinite;
}
.np-wave i:nth-child(2) { animation-delay: -.9s; }
.np-wave i:nth-child(3) { animation-delay: -.5s; }
.np-wave i:nth-child(4) { animation-delay: -.7s; }
.np-wave i:nth-child(5) { animation-delay: -.2s; }
@keyframes wave {
  0%, 100% { height: 25%; }
  50%      { height: 100%; }
}

/* ==========================================================
   Facts strip
   ========================================================== */

.facts { border-block: 1px solid var(--line); }

.facts-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.fact { padding: 40px 28px 44px; }
.fact + .fact { border-inline-start: 1px solid var(--line); }
.fact:first-child { padding-inline-start: 0; }

.fact-num {
  font-family: var(--serif);
  font-size: clamp(44px, 4.4vw, 60px);
  line-height: 1;
  margin-bottom: 14px;
}
.fact-num span {
  margin-inline-start: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0;
}
.fact-label { font-size: 15px; color: var(--ink-soft); max-width: 17em; }

/* ==========================================================
   Section scaffolding
   ========================================================== */

section.how, section.museums, section.visitors, section.demo,
section.benefits, section.faq, section.contact {
  padding: var(--section) 0;
}

.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }

/* ==========================================================
   How it works
   ========================================================== */

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.steps { list-style: none; margin: 0; padding: 0; }

.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
  color: var(--accent);
}
.step h3 { font-family: var(--serif); font-size: 34px; font-weight: 400; margin-bottom: 8px; }
.step p { color: var(--ink-soft); max-width: 30em; }

.how-photo img { border-radius: var(--radius); }
.how-photo figcaption {
  margin-top: 16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  color: var(--ink-soft);
}

/* ==========================================================
   For museums (dark)
   ========================================================== */

.museums { background: var(--ink); color: var(--paper); }
.museums .lead { color: rgba(243, 238, 230, .72); }

.museums-inner {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.museums h2 { margin-bottom: 24px; }

.checks { list-style: none; margin: 40px 0 0; padding: 0; }
.checks li {
  position: relative;
  padding: 16px 0 16px 36px;
  border-top: 1px solid var(--line-dark);
  color: rgba(243, 238, 230, .88);
}
.checks li:last-child { border-bottom: 1px solid var(--line-dark); }
.checks li::before {
  content: "";
  position: absolute; inset-inline-start: 4px; top: 23px;
  width: 13px; height: 7px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

.browser {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .8);
}
.browser-bar {
  display: flex; gap: 7px;
  padding: 12px 14px;
  background: #EDEAE4;
}
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #CFC9BF; }

/* ==========================================================
   For visitors
   ========================================================== */

.visitors-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.visitors-media { position: relative; padding-inline-end: 22%; padding-bottom: 12%; }
.visitors-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.visitors-photo img { width: 100%; height: 100%; object-fit: cover; }
/* The composite ships on a white background, so it sits on a white
   card rather than being blended into the page — blending would also
   make the white phone screens see-through over the photo. */
.visitors-phones {
  position: absolute;
  inset-inline-end: 0; bottom: 0;
  width: 46%;
  padding: 10px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 34px 60px -28px rgba(27, 25, 22, .5);
}
.visitors-phones img { border-radius: 8px; }

.visitors h2 { margin-bottom: 24px; }

.feature-list { margin: 40px 0 0; }
.feature-list > div {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.feature-list > div:last-child { border-bottom: 1px solid var(--line); }
.feature-list dt { font-weight: 600; margin-bottom: 2px; }
.feature-list dd { margin: 0; color: var(--ink-soft); }

/* Visitors use the web scanner at applink.qrsimple.com — no app to install.
   The QR lets someone reading this on a computer open it on their phone. */
.scanner-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 28px;
  margin-top: 36px;
}

.scanner-qr {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 290px;
}
.scanner-qr img {
  flex: none;
  width: 88px;
  height: 88px;
  padding: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.scanner-qr figcaption {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.scanner-qr strong { display: block; color: var(--ink); font-weight: 600; }

/* ==========================================================
   Try it (dark) — a real QR presented as a wall label
   ========================================================== */

.demo { background: var(--ink); color: var(--paper); }
.demo .lead { color: rgba(243, 238, 230, .72); }

.demo-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.demo h2 { margin-bottom: 24px; }
.demo h2 em { color: #EE8C74; }

.demo-steps {
  counter-reset: step;
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
}
.demo-steps li {
  counter-increment: step;
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line-dark);
  color: rgba(243, 238, 230, .9);
}
.demo-steps li:last-child { border-bottom: 1px solid var(--line-dark); }
.demo-steps li::before {
  content: counter(step, decimal-leading-zero);
  flex: none;
  width: 30px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
  color: var(--accent);
}

.demo-label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
  align-items: end;
  width: min(100%, 470px);
  padding: 26px;
  background: #fff;
  color: var(--ink);
  border-radius: 4px;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .85);
}
.demo-label img { width: 200px; height: 200px; }

.demo-label figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-inline-start: 22px;
  border-inline-start: 1px solid var(--line);
}
.demo-artist {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.demo-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 27px;
  line-height: 1.12;
  text-wrap: balance;
}
.demo-meta { font-size: 14px; color: var(--ink-soft); }
.demo-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.demo-hint::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ==========================================================
   Benefits
   ========================================================== */

.benefits { background: var(--paper-2); }

.benefit-list {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.benefit-list li {
  grid-column: span 2;
  padding: 36px 32px 40px;
  background: var(--paper-2);
  transition: background-color .3s var(--ease);
}
.benefit-list li:hover { background: var(--card); }
/* 3 across, then 2 wider cards to finish the grid cleanly */
.benefit-list li:nth-child(4),
.benefit-list li:nth-child(5) { grid-column: span 3; }

.benefit-num {
  display: block;
  margin-bottom: 44px;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--accent);
}
.benefit-list h3 { font-family: var(--serif); font-size: 32px; font-weight: 400; margin-bottom: 10px; }
.benefit-list p { color: var(--ink-soft); max-width: 28em; }

/* ==========================================================
   Statement band
   ========================================================== */

.statement {
  position: relative;
  min-height: clamp(420px, 52vw, 640px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}
.statement-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.statement::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(27,25,22,.78) 0%, rgba(27,25,22,.25) 55%, rgba(27,25,22,.05) 100%);
}
.statement-inner { position: relative; z-index: 1; padding-bottom: clamp(48px, 7vw, 88px); }
.statement-text {
  font-family: var(--serif);
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.08;
  max-width: 17em;
  text-wrap: balance;
}
.statement-text em { color: #F0B8A8; }

/* ==========================================================
   FAQ
   ========================================================== */

.faq-inner {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.faq .section-head { margin-bottom: 0; position: sticky; top: 120px; }
.faq-more { margin-top: 20px; color: var(--ink-soft); }
.faq-more a { color: var(--ink); text-underline-offset: 3px; }

.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }

.faq-list summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding-block: 26px;
  padding-inline: 0 56px;
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 27px);
  line-height: 1.25;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before,
.faq-list summary::after {
  content: "";
  position: absolute;
  inset-inline-end: 6px; top: 50%;
  width: 16px; height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease);
}
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-list summary:hover { color: var(--accent); }

.faq-list details p {
  padding-block: 0 28px;
  padding-inline: 0 56px;
  color: var(--ink-soft);
  max-width: 38em;
}

/* ==========================================================
   Contact (dark)
   ========================================================== */

.contact { background: var(--ink); color: var(--paper); }
.contact .lead { color: rgba(243, 238, 230, .72); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact h2 { margin-bottom: 24px; }
.contact h2 em { color: #EE8C74; }

.contact-direct { margin-top: 32px; color: rgba(243, 238, 230, .6); }
.contact-direct a { color: var(--paper); text-underline-offset: 3px; }

.contact-form {
  padding: clamp(28px, 3.4vw, 44px);
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }

.field { display: block; margin-bottom: 22px; }
.field > span {
  display: block;
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(243, 238, 230, .72);
}
.field > span em { font-style: normal; color: rgba(243, 238, 230, .4); }

.field input,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  background: rgba(243, 238, 230, .04);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  color: var(--paper);
  font: 16px/1.4 var(--sans);
  transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 116px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(243, 238, 230, .07);
}
.field input.is-invalid { border-color: #EE8C74; }

.contact-form .btn { margin-top: 6px; }

/* spam trap — never shown to people */
.botcheck { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-status { min-height: 1.6em; margin-top: 14px; font-size: 14.5px; color: rgba(243, 238, 230, .72); }
.form-status.is-error { color: #EE8C74; }

/* ==========================================================
   Footer
   ========================================================== */

.site-footer {
  background: var(--ink);
  color: rgba(243, 238, 230, .66);
  border-top: 1px solid var(--line-dark);
  padding: 72px 0 36px;
  font-size: 15px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand img { width: 150px; margin-bottom: 18px; }
.footer-brand p { max-width: 22em; }

.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h3 {
  margin-bottom: 6px;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--paper);
}
.footer-col a { text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--paper); }
.footer-col address { font-style: normal; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
  font-size: 14px;
}
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--paper); }

.footer-lang {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-lang a[aria-current="page"] { color: var(--paper); }

/* ==========================================================
   Languages & writing systems
   Instrument Serif covers Latin only, so Vietnamese, Chinese
   and Arabic pages load their own faces (see LANG_META in
   _src/build.py). Arabic pages also run right-to-left; the
   layout above uses logical properties so it mirrors itself.
   ========================================================== */

:root:lang(vi) { --serif: "Newsreader", "Iowan Old Style", Georgia, serif; }
:root:lang(zh) {
  --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --sans: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
:root:lang(ar) {
  --serif: "Amiri", "Noto Naskh Arabic", serif;
  --sans: "IBM Plex Sans Arabic", "Inter", sans-serif;
}

/* stacked diacritics, CJK and Arabic all need taller lines */
:lang(vi) h1, :lang(vi) h2 { line-height: 1.14; }
:lang(zh) h1, :lang(zh) h2 { line-height: 1.24; letter-spacing: 0; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) .statement-text { line-height: 1.45; letter-spacing: 0; }
html:lang(zh) body, html:lang(ar) body { line-height: 1.75; }

:lang(zh) h1 { font-size: clamp(40px, 5.6vw, 76px); }
:lang(ar) h1 { font-size: clamp(42px, 5.8vw, 80px); }

/* Chinese and Arabic have no italics: the accent colour carries the emphasis */
:lang(zh) em, :lang(ar) em,
:lang(zh) .demo-title, :lang(ar) .demo-title,
:lang(zh) .how-photo figcaption, :lang(ar) .how-photo figcaption { font-style: normal; }

/* Chinese can break between any two characters: keep an emphasised phrase whole */
:lang(zh) em { white-space: nowrap; }

/* letter-spacing pulls Arabic letters apart, breaking the joins */
:lang(ar) .eyebrow, :lang(ar) .footer-col h3, :lang(ar) .demo-artist,
:lang(ar) .demo-hint, :lang(ar) .lang summary { letter-spacing: 0; }
:lang(zh) .eyebrow, :lang(zh) .demo-artist, :lang(zh) .demo-hint { letter-spacing: .06em; }

/* right-to-left: the drawer slides in from the left, arrows point the reading way */
[dir="rtl"] .drawer { transform: translateX(-100%); }
[dir="rtl"] .drawer.open { transform: none; }
[dir="rtl"] .btn span { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .btn:hover span { transform: scaleX(-1) translateX(3px); }

/* ==========================================================
   Entrance animations
   Elements rise and fade in as they enter the viewport; --d
   staggers siblings. The `.js` guard keeps content visible if
   JavaScript is off.
   ========================================================== */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity .9s var(--ease) var(--d, 0ms),
    transform .9s var(--ease) var(--d, 0ms);
}
.js .reveal--fade { transform: none; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .np-wave i { animation: none; height: 60%; }
  .btn, .btn span { transition: none; }
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 1080px) {
  .main-nav { gap: 24px; }
  .now-playing { inset-inline-end: 8px; }
  .benefit-list { grid-template-columns: repeat(2, 1fr); }
  .benefit-list li,
  .benefit-list li:nth-child(4),
  .benefit-list li:nth-child(5) { grid-column: span 1; }
  .benefit-list li:last-child { grid-column: span 2; }
}

/* Languages with longer menu labels (see wide_nav in _src/build.py)
   switch to the menu button sooner rather than wrapping the header. */
@media (max-width: 1040px) {
  .nav-wide .main-nav, .nav-wide .header-cta { display: none; }
  .nav-wide .burger { display: flex; }
  .nav-wide .lang { margin-inline-start: auto; }
}

@media (max-width: 900px) {
  .main-nav, .header-cta { display: none; }
  .lang { margin-inline-start: auto; }
  .burger { display: flex; }
  .header-inner { height: 68px; }
  .brand img { width: 140px; }

  .hero-inner,
  .how-grid,
  .museums-inner,
  .visitors-inner,
  .demo-inner,
  .faq-inner,
  .contact-inner { grid-template-columns: 1fr; }

  .hero-visual { max-width: 520px; padding-inline-start: 48px; }
  .visitors-media { max-width: 560px; order: 2; }
  .faq .section-head { position: static; }

  .facts-inner { grid-template-columns: 1fr 1fr; }
  .fact { padding: 32px 20px 36px; }
  .fact:nth-child(odd) { padding-inline-start: 0; border-inline-start: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-actions { gap: 20px; }
  .hero-visual { padding-inline-start: 28px; padding-block-end: 36px; }
  .hero-device { width: 128px; border-radius: 28px; padding: 5px; }
  .hero-device img { border-radius: 23px; }
  .now-playing { top: 6%; inset-inline-end: -6px; padding-block: 10px; padding-inline: 10px 12px; }
  .np-title { font-size: 12.5px; }
  .np-wave { display: none; }

  .step { grid-template-columns: 52px 1fr; }
  .step h3 { font-size: 30px; }

  .benefit-list { grid-template-columns: 1fr; }
  .benefit-list li,
  .benefit-list li:last-child { grid-column: auto; }
  .benefit-num { margin-bottom: 24px; }

  .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }

  /* already on a phone: the button is all they need */
  .scanner-qr { display: none; }

  /* label stacks: code on top, caption underneath */
  .demo-label { grid-template-columns: 1fr; justify-items: start; padding: 22px; }
  .demo-label img { width: 168px; height: 168px; }
  .demo-label figcaption { padding: 18px 0 0; border-inline-start: 0; border-top: 1px solid var(--line); width: 100%; }
  .footer-bottom { flex-direction: column; }
}
