/* =========================================================
   Brova — Coming Soon
   Concept: "brova" (بروفة) is the fitting — the moment before
   a piece becomes yours. The countdown is a tailor's tape.
   ========================================================= */

:root {
  /* Palette */
  --ink: #000000;
  --chalk: #F3F2EE;      /* tailor's chalk off-white */
  --paper: #FFFFFF;
  --tape: #E8C33A;       /* tape-measure yellow — fills only, never text on light */
  --graphite: #55534E;   /* secondary text on chalk (≈7:1) */
  --smoke: #A9A7A0;      /* secondary text on ink */
  --rule: #D6D4CD;
  --rule-dark: #2A2A28;
  --pin: #B3261E;        /* errors */
  --pin-light: #FF8A80;  /* errors on dark */
  --ok: #1E6B3A;
  --ok-light: #8FD9A8;

  /* Type */
  --f-display-en: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, "Times New Roman", serif;
  --f-body-en: "Instrument Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, "Geeza Pro", system-ui, sans-serif;

  --f-display: var(--f-ar);
  --f-body: var(--f-ar);

  /* Scale (fluid) */
  --t-hero: clamp(2.5rem, 1.4rem + 4.4vw, 5.2rem);
  --t-h2: clamp(1.9rem, 1.3rem + 2.6vw, 3.4rem);
  --t-h3: clamp(1.15rem, 1rem + .5vw, 1.4rem);
  --t-lede: clamp(1.05rem, .98rem + .4vw, 1.3rem);
  --t-body: 1rem;
  --t-small: .875rem;

  --lh-body: 1.75;
  --lh-tight: 1.2;

  /* Space */
  --gutter: clamp(1.1rem, .6rem + 2.4vw, 2.5rem);
  --section: clamp(4.5rem, 3rem + 7vw, 9rem);
  --maxw: 1320px;
  --radius-field: 10px;

  color-scheme: light;
}

/* English typography */
html[lang="en"] {
  --f-display: var(--f-display-en);
  --f-body: var(--f-body-en);
  --t-hero: clamp(2.8rem, 1.5rem + 4.6vw, 5.8rem);
  --lh-body: 1.6;
  --lh-tight: 1.02;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(76px + env(safe-area-inset-top, 0px));
}
body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Language swap without flashing Arabic copy in English */
.lang-pending body { opacity: 0; animation: lang-fallback 0s 1.2s forwards; }
@keyframes lang-fallback { to { opacity: 1; } }

/* Focus */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.stores :focus-visible, .panel-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--tape); }

.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: var(--chalk); padding: .6rem 1rem; border-radius: 6px;
  text-decoration: none;
}
.skip-link:focus { top: calc(.75rem + env(safe-area-inset-top, 0px)); }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px));
}

/* ---------- Logo ----------
   Mark: a hanger whose bar doubles as the curtain rail of a fitting booth.
   The mark never mirrors; only the wordmark language changes. */
.logo {
  display: inline-flex; align-items: center; gap: .5rem;
  text-decoration: none; color: var(--ink);
  padding-block: .25rem;
  --mark-accent: var(--tape);
}
.logo-mark { width: 2.1rem; height: 2.1rem; flex: none; display: block; }
.logo-word { line-height: 1; white-space: nowrap; }
.logo-word-en {
  font-family: var(--f-display-en);
  font-weight: 600;
  font-size: 1.8rem;
  letter-spacing: -.015em;
  font-optical-sizing: auto;
  transform: translateY(.06em);   /* sit the serif baseline on the booth floor */
}
.logo-word-ar {
  font-family: var(--f-ar);
  font-weight: 700;
  font-size: 1.6rem;
  transform: translateY(-.04em);
}
html[lang="ar"] .logo-word-en, html[lang="en"] .logo-word-ar { display: none; }
.logo-light { color: var(--chalk); }
.site-footer .logo-mark { width: 2.5rem; height: 2.5rem; }
.site-footer .logo-word-en { font-size: 2.1rem; }
.site-footer .logo-word-ar { font-size: 1.85rem; }
@media (max-width: 379px) {
  .logo-mark { width: 1.85rem; height: 1.85rem; }
  .logo-word-en { font-size: 1.6rem; }
  .logo-word-ar { font-size: 1.4rem; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--chalk) 92%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .site-header { background: rgba(243, 242, 238, .94); }
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 68px;
}
.header-nav { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 2rem); }
.header-link {
  text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: .6rem .2rem;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px; background-repeat: no-repeat; background-position: 100% 85%;
  transition: background-size .3s ease;
}
html[dir="ltr"] .header-link { background-position: 0 85%; }
.header-link:hover { background-size: 100% 1px; }

.lang-switch { display: inline-flex; align-items: center; gap: .15rem; font-size: .95rem; }
.lang-switch button {
  appearance: none; background: none; border: 0; cursor: pointer;
  min-height: 44px; min-width: 44px; padding: 0 .55rem; border-radius: 999px;
  color: var(--graphite); font-weight: 500;
}
.lang-switch button[lang="ar"] { font-family: var(--f-ar); }
.lang-switch button[lang="en"] { font-family: var(--f-body-en); letter-spacing: .02em; }
.lang-switch button[aria-pressed="true"] { color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); }
.lang-switch button:hover { color: var(--ink); }
.lang-sep { color: var(--rule); }
.lang-switch-light button { color: var(--smoke); }
.lang-switch-light button[aria-pressed="true"] { color: var(--ink); background: var(--chalk); box-shadow: none; }
.lang-switch-light button:hover { color: var(--chalk); }
.lang-switch-light button[aria-pressed="true"]:hover { color: var(--ink); }
.lang-switch-light .lang-sep { color: var(--rule-dark); }

@media (max-width: 479px) {
  .header-link { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: .8rem 1.6rem;
  border-radius: 999px; border: 1.5px solid var(--ink);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
html[lang="en"] .btn { font-weight: 500; letter-spacing: .01em; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--chalk); }
.btn-primary:hover { background: #2B2A27; border-color: #2B2A27; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--chalk); }
.btn-tape { background: var(--tape); border-color: var(--tape); color: var(--ink); }
.btn-tape:hover { background: #F2D35E; border-color: #F2D35E; }
.btn-block { width: 100%; }
.btn[disabled] { cursor: progress; opacity: .7; }

/* ---------- Placeholder frames (survive missing images) ---------- */
.ph {
  position: relative; overflow: hidden;
  background-color: #E6E4DE;
  background-image:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(0,0,0,.045) 14px 15px);
  border-radius: 3px;
}
.ph::after {
  content: "Brova";
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--f-display-en); font-weight: 500; font-style: italic;
  font-size: clamp(1.2rem, 3vw, 2rem); color: rgba(0,0,0,.18);
  pointer-events: none;
}
.ph img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .6s ease;
}
.ph img.is-loaded { opacity: 1; }
html:not(.js) .ph img { opacity: 1; }
.ph.is-missing img { display: none; }
.ph-dark { background-color: #1A1A19; background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.05) 14px 15px); }
.ph-dark::after { color: rgba(255,255,255,.16); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(1.25rem, .8rem + 2.5vw, 3rem); }
.hero-grid {
  display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
  padding-bottom: clamp(2.25rem, 1.25rem + 3vw, 3.75rem);
}
.hero-copy { max-width: 40rem; }
.launch-note {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: var(--t-small); color: var(--graphite); font-weight: 500;
  margin-bottom: clamp(1.2rem, 1rem + 1vw, 2rem);
}
html[lang="en"] .launch-note { letter-spacing: .01em; }
.launch-dot {
  width: .55rem; height: .55rem; border-radius: 50%; background: var(--tape);
  box-shadow: 0 0 0 3px rgba(232,195,58,.25);
}
.hero-title {
  font-family: var(--f-display);
  font-size: var(--t-hero);
  line-height: var(--lh-tight);
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: clamp(1.2rem, 1rem + 1vw, 2rem);
}
html[lang="en"] .hero-title { font-weight: 500; letter-spacing: -.025em; font-optical-sizing: auto; }
.hero-title .line { display: block; }
html[lang="en"] .hero-title .line:last-child { font-style: italic; }
@media (min-width: 600px) { html[lang="en"] .hero-title .line:last-child { padding-inline-start: .45em; } }
html[lang="ar"] .hero-title .line:last-child { font-weight: 300; }
.hero-lede {
  font-size: var(--t-lede); color: var(--graphite);
  max-width: 36rem; margin-bottom: clamp(1.1rem, .9rem + .8vw, 1.6rem);
}

/* Discount callout: a price tag in tape yellow, pointing to the text start */
.hero-promo { margin-bottom: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); }
.promo-tag {
  position: relative;
  display: inline-block;
  background: var(--tape); color: var(--ink);
  font-weight: 700; font-size: clamp(.95rem, .9rem + .3vw, 1.15rem); line-height: 1.4;
  text-wrap: balance; max-width: 100%;
  padding-block: .55rem;
  padding-inline: 1.9rem 1.1rem;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%);
}
html[dir="rtl"] .promo-tag { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); }
html[lang="en"] .promo-tag { font-weight: 600; }
.promo-tag::before {          /* the tag's string hole */
  content: ""; position: absolute; top: 50%; inset-inline-start: 13px;
  width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%;
  background: var(--chalk);
}
.promo-note { margin-top: .5rem; font-size: var(--t-small); color: var(--graphite); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Collage — three frames, like a fitting-room mirror */
.hero-visual {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: auto auto;
  gap: clamp(.6rem, .4rem + 1vw, 1.1rem);
  align-items: start;
}
.frame-a { grid-row: 1 / span 2; aspect-ratio: 3 / 4.3; }
.frame-b { aspect-ratio: 1 / 1; margin-top: 18%; }
.frame-c { aspect-ratio: 4 / 5; }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .hero-copy { max-width: 46rem; }
  .hero-visual { margin-inline-start: auto; width: 100%; max-width: 540px; }
}

/* ---------- Tape countdown ---------- */
.tape {
  position: relative;
  background: var(--tape);
  color: var(--ink);
  padding-block: 1.9rem clamp(1.4rem, 1rem + 1.5vw, 2.2rem);
}
.tape-ruler {
  position: absolute; inset: 0 0 auto 0; height: 18px;
  background-image:
    linear-gradient(to right, var(--ink) 1.5px, transparent 1.5px),
    linear-gradient(to right, var(--ink) 1px, transparent 1px);
  background-size: 60px 18px, 12px 9px;
  background-repeat: repeat-x;
  opacity: .85;
}
.tape-marker {
  position: absolute; top: 0;
  inset-inline-start: clamp(10px, var(--progress, 0%), calc(100% - 10px));
  width: 0; height: 0;
  border-inline: 9px solid transparent;
  border-top: 14px solid var(--ink);
  transform: translateX(-50%);
  transition: inset-inline-start 1s linear;
}
html[dir="rtl"] .tape-marker { transform: translateX(50%); }
.tape-inner {
  display: grid; gap: 1.2rem 2rem;
  grid-template-columns: 1fr;
  align-items: end;
}
.tape-label { font-weight: 700; font-size: 1.05rem; }
html[lang="en"] .tape-label { font-weight: 600; }
.tape-date { font-size: var(--t-small); display: flex; flex-wrap: wrap; gap: .4rem; }
.tape-date span::after { content: ":"; }
.tape-units {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.4rem, 1.5vw, 1.5rem);
}
.unit {
  display: flex; flex-direction: column; align-items: flex-start;
  padding-inline-start: clamp(.5rem, 1.5vw, 1rem);
  border-inline-start: 1.5px solid var(--ink);
}
.num {
  font-family: var(--f-display-en);
  font-weight: 500;
  font-size: clamp(2.2rem, 1.2rem + 5vw, 5.4rem);
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  min-width: 2ch;
  font-optical-sizing: auto;
}
html[lang="ar"] .num { font-family: var(--f-ar); font-weight: 500; line-height: 1.15; }
.lbl { font-size: var(--t-small); margin-top: .35rem; font-weight: 500; }
.tape-done { display: grid; gap: .3rem; }
.tape-done-title { font-family: var(--f-display); font-size: var(--t-h2); line-height: var(--lh-tight); font-weight: 700; }
html[lang="en"] .tape-done-title { font-weight: 500; }

@media (min-width: 820px) {
  .tape-inner { grid-template-columns: minmax(12rem, .8fr) 2fr; }
  .tape-done { grid-column: 2; }
}

/* ---------- Section heads ---------- */
.section-head { max-width: 44rem; margin-bottom: clamp(2.2rem, 1.5rem + 3vw, 4rem); }
.section-head h2, .stores h2, .apps h2 {
  font-family: var(--f-display); font-size: var(--t-h2);
  line-height: var(--lh-tight); font-weight: 700; letter-spacing: -.01em;
  margin-bottom: 1rem; text-wrap: balance;
}
html[lang="en"] .section-head h2, html[lang="en"] .stores h2, html[lang="en"] .apps h2 { font-weight: 500; letter-spacing: -.02em; line-height: 1.08; }
.section-head p { font-size: var(--t-lede); color: var(--graphite); max-width: 38rem; }

/* ---------- Discovery ---------- */
.discover { padding-block: var(--section); }
.discover-grid {
  display: grid; gap: clamp(2rem, 1rem + 3vw, 3rem) clamp(1rem, 2vw, 2rem);
  grid-template-columns: 1fr;
}
.look figure { margin-bottom: 1.1rem; }
.look-lg figure { aspect-ratio: 4 / 5; }
.look-sm figure { aspect-ratio: 4 / 3; }
.look h3 {
  font-size: var(--t-h3); font-weight: 700; margin-bottom: .35rem; line-height: 1.35;
}
html[lang="en"] .look h3 { font-family: var(--f-display-en); font-weight: 500; font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); line-height: 1.15; }
.look p { color: var(--graphite); max-width: 32rem; }

@media (min-width: 720px) {
  .discover-grid { grid-template-columns: 1fr 1fr; }
  .look-lg { grid-column: 1 / -1; }
  .look-lg figure { aspect-ratio: 16 / 9; }
}
@media (min-width: 1024px) {
  .discover-grid { grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; }
  .look-lg { grid-column: 1; grid-row: 1 / span 2; }
  .look-lg figure { aspect-ratio: 5 / 6; }
  .look-sm:last-child { margin-inline-start: 14%; }
}

/* ---------- Stores (dark) ---------- */
.stores { background: var(--ink); color: var(--chalk); padding-block: var(--section); }
.stores-grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); grid-template-columns: 1fr; align-items: center; }
.stores-copy { max-width: 38rem; }
.stores-lede { font-size: var(--t-lede); color: var(--smoke); margin-bottom: 2.2rem; }
.perks { margin-bottom: 2.2rem; border-top: 1px solid var(--rule-dark); }
.perks li {
  display: grid; gap: .25rem 2rem; padding-block: 1.15rem;
  border-bottom: 1px solid var(--rule-dark);
}
.perks h3 { font-size: 1.08rem; font-weight: 700; }
html[lang="en"] .perks h3 { font-weight: 600; }
.perks p { color: var(--smoke); }
.stores-note { margin-top: 1rem; font-size: var(--t-small); color: var(--smoke); max-width: 30rem; }
.stores-visual { aspect-ratio: 3 / 2; max-height: 760px; width: 100%; }

@media (min-width: 640px) {
  .perks li { grid-template-columns: minmax(10rem, .9fr) 1.4fr; align-items: baseline; }
}
@media (min-width: 960px) {
  .stores-grid { grid-template-columns: 1.1fr .9fr; }
  .stores-visual { aspect-ratio: 4 / 5; }
}

/* ---------- Join / forms ---------- */
.join { padding-block: var(--section); }
.join-grid { display: grid; gap: clamp(1rem, 2vw, 1.6rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) {
  .join-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
}
.panel {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: clamp(1.4rem, 1rem + 2vw, 2.6rem);
}
.panel-dark { background: var(--ink); color: var(--chalk); border-color: var(--ink); }
.panel h3 {
  font-family: var(--f-display); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  line-height: 1.25; font-weight: 700; margin-bottom: .5rem;
}
html[lang="en"] .panel h3 { font-weight: 500; line-height: 1.1; }
.panel-text { color: var(--graphite); margin-bottom: 1.6rem; max-width: 30rem; }
.panel-dark .panel-text { color: var(--smoke); }

.field { margin-bottom: 1.1rem; min-width: 0; }
.field-row { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 500; font-size: .95rem; margin-bottom: .4rem; }
.field input {
  display: block; width: 100%;
  min-height: 52px; padding: .75rem 1rem;
  font-size: 16px; /* no iOS zoom */
  background: var(--chalk); color: var(--ink);
  border: 1.5px solid transparent; border-radius: var(--radius-field);
  transition: border-color .2s ease, background-color .2s ease;
}
.field input:hover { border-color: var(--rule); }
.field input:focus { outline: none; border-color: var(--ink); background: var(--paper); }
.field input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.field input[aria-invalid="true"] { border-color: var(--pin); }
.panel-dark .field input { background: #1C1C1B; color: var(--chalk); }
.panel-dark .field input:hover { border-color: #3A3A37; }
.panel-dark .field input:focus { border-color: var(--tape); background: #232321; }
.panel-dark .field input:focus-visible { outline-color: var(--tape); }
.panel-dark .field input[aria-invalid="true"] { border-color: var(--pin-light); }
.hint { font-size: .82rem; color: var(--graphite); margin-top: .4rem; }
.panel-dark .hint { color: var(--smoke); }
.error { font-size: .85rem; color: var(--pin); margin-top: .35rem; font-weight: 500; }
.error:empty { display: none; }
.panel-dark .error { color: var(--pin-light); }

.form .btn-block { margin-top: .6rem; }
.form-status { margin-top: 1rem; font-size: .95rem; font-weight: 500; }
.form-status:empty { display: none; }
.form-status[data-tone="ok"] { color: var(--ok); }
.form-status[data-tone="error"] { color: var(--pin); }
.panel-dark .form-status[data-tone="ok"] { color: var(--ok-light); }
.panel-dark .form-status[data-tone="error"] { color: var(--pin-light); }
.form.is-done .field, .form.is-done .btn-block, .form.is-done .hp { display: none; }
.form.is-done .form-status { font-size: 1.1rem; margin-top: 0; }

/* honeypot */
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }

/* ---------- Apps ---------- */
.apps { padding-block: 0 var(--section); }
.apps-inner {
  display: grid; gap: 1.6rem; grid-template-columns: 1fr; align-items: center;
  padding-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  border-top: 1px solid var(--rule);
}
.apps p { color: var(--graphite); max-width: 36rem; }
.apps h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); margin-bottom: .6rem; }
.app-badges { display: flex; flex-wrap: wrap; gap: .75rem; }
.app-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 56px; padding: .6rem 1.1rem .6rem 1.1rem;
  border: 1.5px dashed var(--graphite); border-radius: 14px;
  color: var(--ink);
}
.app-name { font-family: var(--f-body-en); font-weight: 600; }
.app-soon {
  font-size: .8rem; font-weight: 500; padding: .15rem .55rem; border-radius: 999px;
  background: var(--tape); color: var(--ink);
}
@media (min-width: 820px) {
  .apps-inner { grid-template-columns: 1.4fr auto; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--chalk); padding-top: clamp(3rem, 2rem + 3vw, 4.5rem); }
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer-domain { font-family: var(--f-body-en); margin-top: 1rem; font-weight: 500; letter-spacing: .02em; }
.footer-tagline { color: var(--smoke); font-size: var(--t-small); margin-top: .25rem; max-width: 26rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem 2rem;
  padding-block: 1.4rem calc(1.4rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--rule-dark);
  font-size: var(--t-small); color: var(--smoke);
}

/* Tawrly credit signature — animated, restrained */
.tawrly-credit {
  display: inline-flex; align-items: center; gap: .55rem;
  text-decoration: none; color: var(--smoke);
  min-height: 44px;
}
.tawrly-mark {
  width: 7px; height: 7px; border-radius: 50%; background: var(--tape);
  animation: tawrly-pulse 2.8s ease-in-out infinite;
}
.tawrly-text {
  background-image: linear-gradient(90deg, var(--smoke) 0%, var(--smoke) 40%, var(--chalk) 50%, var(--smoke) 60%, var(--smoke) 100%);
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: tawrly-sheen 5s ease-in-out infinite;
}
.tawrly-credit:hover .tawrly-text { -webkit-text-fill-color: var(--chalk); }
@keyframes tawrly-sheen { 0%, 55% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@keyframes tawrly-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.6); opacity: .55; } }

/* ---------- Motion: one orchestrated hero entrance + image reveals ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .js .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .js .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .js .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .js .hero-copy > :nth-child(5) { animation-delay: .32s; }
  .js .frame { animation: unveil 1.1s cubic-bezier(.65,0,.25,1) both; }
  .js .frame-a { animation-delay: .1s; }
  .js .frame-b { animation-delay: .25s; }
  .js .frame-c { animation-delay: .4s; }

  .js .reveal { clip-path: inset(0 0 100% 0); transition: clip-path 1s cubic-bezier(.65,0,.25,1); }
  .js .reveal.is-in { clip-path: inset(0 0 0 0); }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes unveil { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .tawrly-text { -webkit-text-fill-color: var(--smoke); background: none; }
}

/* ---------- Large screens ---------- */
@media (min-width: 1680px) {
  :root { --maxw: 1480px; }
}
