/* Al Faraina, round 4, Site C «اللوحة» The Plate, luxury edition.
   The brochure-plate idea (one colour field, one macro photograph, one exact figure) set in the colours of the
   date palm: palm green, date brown, sand and stone on a linen page, with matte brass hairlines and a passe-partout
   frame inside every plate. IBM Plex Sans Arabic for Arabic, Noto Serif Display for Latin display and the figures,
   Plex for text. The full-colour logo throughout. Reference: Bateel (palette, calm), Swiss catalogue grids. */

:root {
  --linen: #F4F0E8;
  --paper: #FBF9F4;
  --ink: #1D2420;
  --ink-2: #5A5F57;
  --palm: #1E3A2F;
  --date: #4B3527;
  --sand: #DCCDB3;
  --stone: #EAE3D6;
  --brass: #A9874F;
  --brass-soft: rgba(169, 135, 79, .45);
  --ivory: #F3ECDF;

  --display: "Noto Serif Display", "IBM Plex Sans Arabic", Georgia, serif;
  --text: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --gut: clamp(18px, 3.6vw, 56px);
  --col-gap: clamp(14px, 1.7vw, 26px);
  --sec: clamp(84px, 10vw, 150px);
  --ease: cubic-bezier(.77, 0, .175, 1);
  --out: cubic-bezier(.23, 1, .32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--linen); color: var(--ink); font: 400 1.0625rem/1.9 var(--text); -webkit-font-smoothing: antialiased; }
html[lang="en"] body { line-height: 1.65; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { letter-spacing: normal; font-family: var(--display); font-weight: 700; text-wrap: balance; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { font-weight: 400; }
/* Arabic sets in IBM Plex Sans Arabic throughout; the didone stays for English display and the printed figures */
html[lang="ar"] { --display: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-weight: 600; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }
html[dir="ltr"] .ic.flip { transform: scaleX(-1); }

::selection { background: var(--palm); color: var(--ivory); }
:focus-visible { outline: 1.5px solid var(--brass); outline-offset: 4px; }
html { scrollbar-color: var(--brass) var(--linen); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--linen); }
::-webkit-scrollbar-thumb { background: var(--brass); border: 3px solid var(--linen); border-radius: 99px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--palm); color: var(--ivory); padding: 10px 16px; }
.skip:focus { top: 12px; }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); padding-inline: var(--gut); max-width: 1536px; margin-inline: auto; }

/* ---------- top line ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(244, 240, 232, .97); border-bottom: 1px solid var(--brass-soft); }
.top-in { height: 80px; display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); padding-inline: var(--gut); max-width: 1536px; margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-emblem { width: 52px; height: auto; }
.brand-word { width: 164px; height: auto; }
.nav { display: flex; gap: clamp(18px, 2.4vw, 34px); margin-inline-start: auto; font-size: 1.05rem; color: var(--ink-2); }
.nav a { position: relative; padding-block: 4px; transition: color .25s; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--brass); transform: scaleX(0); transition: transform .4s var(--out); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.top-end { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); }
.lang { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.lang .ic { width: 18px; height: 18px; color: var(--brass); }
.lang:hover { color: var(--ink); }
.top-wa { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--palm); }
.top-wa .ic { width: 20px; height: 20px; }
.menu-btn { display: none; width: 46px; height: 46px; place-items: center; border-radius: 50%; border: 1px solid var(--brass-soft); color: var(--palm); }
.menu-btn .ic { width: 22px; height: 22px; }
.menu { display: grid; padding: 0 var(--gut) 18px; }
.menu[hidden] { display: none; }
.menu a { padding: 13px 0; border-top: 1px solid var(--brass-soft); font-size: 1.15rem; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 58px; padding-inline: 30px; font-size: 1.1rem; font-weight: 500; border-radius: 2px; transition: background-color .3s var(--out), color .3s var(--out), transform .16s var(--out); }
.btn:active { transform: scale(.97); }
.btn .ic { width: 22px; height: 22px; }
.btn-palm { background: var(--palm); color: var(--ivory); }
.btn-palm:hover { background: #274A3C; }
.btn-ivory { background: var(--ivory); color: var(--date); font-size: 1.4rem; min-height: 70px; font-variant-numeric: tabular-nums; }
.btn-ivory:hover { background: #fff; }
.link { display: inline-flex; align-items: center; gap: 8px; color: var(--palm); font-weight: 500; border-bottom: 1px solid var(--brass); padding-bottom: 2px; }
.link .ic { width: 18px; height: 18px; color: var(--brass); }

/* ---------- 1. title plate ---------- */
.title { padding-block: clamp(36px, 4vw, 56px) clamp(56px, 6vw, 88px); min-height: calc(100svh - 82px); align-items: stretch; }
.title-start { grid-column: 1 / span 5; display: flex; flex-direction: column; }
.title h1 { font-size: clamp(3.2rem, 6.4vw, 6rem); line-height: 1.22; color: var(--palm); }
html[lang="en"] .title h1 { line-height: 1.02; letter-spacing: -0.025em; font-weight: 300; }
html[lang="ar"] .title h1 { font-size: clamp(2.6rem, 5vw, 4.7rem); line-height: 1.34; }
.lede { margin-top: 26px; font-size: 1.15rem; color: var(--ink-2); max-width: 42ch; }
.title-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 34px; }
.index { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--brass-soft); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--col-gap); row-gap: 2px; }
.swatch { display: flex; align-items: center; gap: 12px; min-height: 44px; text-align: start; font-size: 1.05rem; color: var(--ink-2); transition: color .25s; }
.swatch .ic { width: 22px; height: 22px; color: var(--brass); }
.swatch span { position: relative; }
.swatch span::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: var(--o, right); transition: transform .4s var(--out); }
html[dir="ltr"] .swatch span::after { --o: left; }
.swatch[aria-selected="true"] { color: var(--palm); font-weight: 700; }
.swatch[aria-selected="true"] span::after { transform: scaleX(1); }
.swatch:hover { color: var(--ink); }
.title-plate { grid-column: 6 / span 7; position: relative; min-height: 580px; }

/* ---------- the plate ---------- */
.plate { position: absolute; inset: 0; background: var(--c); color: var(--fg); padding: clamp(30px, 3.2vw, 48px); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: auto auto auto minmax(0, 1fr); column-gap: var(--col-gap); overflow: hidden; }
.plate::before, .uplate::before { content: ""; position: absolute; inset: 14px; border: 1px solid var(--frame); pointer-events: none; }
.plate-lab { grid-column: 1 / -1; grid-row: 1; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 1.15rem; }
.plate-lab span { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 1.9vw, 1.7rem); }
html[lang="en"] .plate-lab span { font-weight: 400; }
html[lang="ar"] .plate-lab span { font-weight: 600; }
.plate-lab .ic { width: 26px; height: 26px; color: var(--accent); }
.plate-lab small { font-family: "Noto Serif Display", "IBM Plex Sans Arabic", Georgia, serif; font-size: 1rem; color: var(--sub); }
.plate-lab small:lang(ar) { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: .95rem; }
.plate-fig { grid-column: 1 / -1; grid-row: 2; margin-top: clamp(12px, 2vw, 26px); font-family: "Noto Serif Display", Georgia, serif; font-weight: 300; font-size: clamp(3.6rem, 7vw, 6rem); line-height: 1; direction: ltr; text-align: right; letter-spacing: -0.01em; color: var(--fig); }
html[dir="ltr"] .plate-fig { text-align: left; }
.plate-note { grid-column: 1 / span 3; grid-row: 3; align-self: start; margin-top: 18px; font-size: 1.05rem; line-height: 1.75; color: var(--sub); max-width: 32ch; }
.plate-pack { grid-column: 1 / span 2; grid-row: 4; align-self: end; justify-self: start; height: min(280px, 46%); width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(20, 14, 6, .35)); }
.plate-photo { grid-column: 4 / span 3; grid-row: 3 / span 2; align-self: end; justify-self: end; aspect-ratio: 1; width: 100%; max-width: 400px; object-fit: cover; border-radius: 4px; }
.plate.is-entering { z-index: 2; }

/* ---------- 2. plates as sections ---------- */
.uplate { position: relative; background: var(--c); color: var(--fg); padding-block: clamp(64px, 8vw, 120px); }
.uplate .grid { row-gap: 34px; position: relative; }
.u-head { grid-column: 1 / span 7; grid-row: 1; }
.u-head h2 { font-size: clamp(2.3rem, 4.2vw, 4rem); line-height: 1.3; color: var(--head); }
html[lang="en"] .u-head h2 { line-height: 1.08; letter-spacing: -0.02em; }
html[lang="ar"] .u-head h2 { font-size: clamp(2rem, 3.4vw, 3.15rem); line-height: 1.45; }
.u-head h2 .ic { display: block; width: 44px; height: 44px; margin-bottom: 18px; color: var(--accent); }
.u-head p { margin-top: 16px; font-size: 1.15rem; max-width: 50ch; color: var(--sub); }
.u-head .u-subs { margin-top: 10px; font-size: 1rem; color: var(--fg); opacity: .9; padding-top: 12px; border-top: 1px solid var(--frame); max-width: 60ch; }
/* the figure sits on the heading line, at the far edge of the plate */
.u-fig { grid-column: 8 / span 5; grid-row: 1; align-self: end; justify-self: end; font-family: "Noto Serif Display", Georgia, serif; font-weight: 300; font-size: clamp(3.2rem, 6vw, 5.6rem); line-height: 1; direction: ltr; color: var(--fig); }
.u-photo { grid-column: 1 / span 4; grid-row: 2; aspect-ratio: 1; width: 100%; object-fit: cover; border-radius: 4px; }
.u-prods { grid-column: 5 / span 8; grid-row: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 18px; align-content: start; }
.u-prod { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--frame); }
.u-prod img { width: 104px; height: 130px; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(20, 14, 6, .3)); transition: transform .45s var(--out); }
.u-prod span { display: grid; line-height: 1.35; min-width: 0; }
.u-prod b { font-weight: 500; font-size: 1rem; overflow-wrap: anywhere; color: var(--head); }
.u-prod small { font-size: .875rem; color: var(--sub); }
@media (hover: hover) and (pointer: fine) { .u-prod:hover img { transform: translateY(-4px); } .u-prod:hover b { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; } }
.u-empty { grid-column: 5 / span 8; grid-row: 2; align-self: start; border-top: 1px solid var(--frame); padding-top: 14px; font-size: 1.05rem; max-width: 46ch; color: var(--sub); }
.u-ask { grid-column: 5 / span 8; grid-row: 3; justify-self: start; display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 1.05rem; border-bottom: 1px solid var(--accent); padding-bottom: 4px; color: var(--head); }
.u-ask .ic { width: 22px; height: 22px; color: var(--accent); }
/* mirror every other plate */
.uplate:nth-of-type(even) .u-photo { grid-column: 9 / span 4; }
.uplate:nth-of-type(even) .u-prods, .uplate:nth-of-type(even) .u-empty, .uplate:nth-of-type(even) .u-ask { grid-column: 1 / span 8; }
/* a plate with one pack or none gives the photograph seven columns and sets the heading, the pack and the ask beside it,
   so the text column and the photograph end together (the last row takes any slack below the ask) */
.uplate.is-sparse .grid { grid-template-rows: auto auto 1fr; }
.uplate.is-sparse .u-photo { grid-column: 1 / span 7; grid-row: 1 / span 3; height: 100%; min-height: 420px; aspect-ratio: auto; }
.uplate.is-sparse .u-head { grid-column: 8 / span 5; grid-row: 1; }
.uplate.is-sparse .u-prods, .uplate.is-sparse .u-empty { grid-column: 8 / span 5; grid-row: 2; grid-template-columns: minmax(0, 1fr); }
.uplate.is-sparse .u-ask { grid-column: 8 / span 5; grid-row: 3; align-self: start; }
.uplate.is-sparse .u-fig { grid-column: 8 / span 5; grid-row: 4; justify-self: start; }
.uplate.is-sparse:nth-of-type(even) .u-photo { grid-column: 6 / span 7; }
.uplate.is-sparse:nth-of-type(even) .u-head, .uplate.is-sparse:nth-of-type(even) .u-prods, .uplate.is-sparse:nth-of-type(even) .u-empty,
.uplate.is-sparse:nth-of-type(even) .u-ask, .uplate.is-sparse:nth-of-type(even) .u-fig { grid-column: 1 / span 5; }

/* ---------- 3-5. editorial pages ---------- */
.company { padding-block: var(--sec); align-items: center; }
.company-photo { grid-column: 1 / span 4; margin: 0; }
.company-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; }
/* the company plate: the logo in its own colours on stone, inside the brass passe-partout every plate carries */
.company-photo.is-mark { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 4; background: var(--stone); border-radius: 4px; }
.company-photo.is-mark::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(169, 135, 79, .5); pointer-events: none; }
.company-photo.is-mark img { width: 72%; height: auto; aspect-ratio: auto; object-fit: contain; border-radius: 0; }
.company-body { grid-column: 6 / span 7; }
.company h2, .col-label { font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1.3; color: var(--palm); }
.intro { margin-top: 22px; font-family: var(--display); font-weight: 400; font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.75; color: var(--ink); }
html[lang="en"] .intro { line-height: 1.45; font-weight: 300; }
html[lang="ar"] .intro { font-weight: 400; font-size: clamp(1.15rem, 1.6vw, 1.42rem); line-height: 1.95; }
.facts { margin-top: 34px; border-top: 1px solid var(--brass-soft); }
.facts div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: var(--col-gap); padding-block: 16px; border-bottom: 1px solid var(--brass-soft); }
.facts dt { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink-2); }
.facts dt .ic { width: 22px; height: 22px; color: var(--brass); }
.services, .brands { padding-block: var(--sec); border-top: 1px solid var(--brass-soft); }
.col-label { grid-column: 1 / span 3; }
.svc { grid-column: 4 / span 9; border-top: 1px solid var(--brass-soft); }
.svc li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: var(--col-gap); align-items: baseline; padding-block: 18px; border-bottom: 1px solid var(--brass-soft); }
.svc b { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.4; color: var(--palm); }
html[lang="en"] .svc b { font-weight: 400; }
html[lang="ar"] .svc b { font-weight: 600; }
.svc .ic { width: 24px; height: 24px; color: var(--brass); }
.svc span { color: var(--ink-2); max-width: 44ch; }
.brands-body { grid-column: 4 / span 9; }
.register { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); }
.register li { padding-block: 16px; border-top: 1px solid var(--brass-soft); font-family: "Noto Serif Display", Georgia, serif; font-weight: 400; font-size: clamp(1.25rem, 2vw, 1.8rem); line-height: 1.25; direction: ltr; text-align: start; color: var(--palm); }
html[dir="rtl"] .register li { text-align: right; }
.brands .note { margin-top: 20px; color: var(--ink-2); }

/* ---------- 6. contact plate (date brown) ---------- */
.contact { position: relative; background: var(--date); color: var(--ivory); padding-block: var(--sec); }
.contact::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(201, 168, 108, .4); pointer-events: none; }
.contact-in { row-gap: 32px; position: relative; }
.contact h2 { grid-column: 1 / span 6; font-size: clamp(3rem, 6vw, 5.6rem); line-height: 1.25; color: var(--ivory); }
html[lang="en"] .contact h2 { line-height: 1.02; letter-spacing: -0.02em; font-weight: 300; }
.contact-body { grid-column: 7 / span 6; display: grid; gap: 22px; align-content: start; }
.contact-body .btn { justify-self: start; }
.contact-body > p { color: #D6C6AE; max-width: 46ch; }
.phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.phone { display: flex; gap: 12px; align-items: center; padding-block: 12px; border-top: 1px solid rgba(220, 205, 179, .28); }
.phone .ic { width: 20px; height: 20px; color: #C9A86C; }
.phone span { display: grid; line-height: 1.4; }
.phone b { font-weight: 500; font-size: 1.15rem; direction: ltr; text-align: start; font-variant-numeric: tabular-nums; }
html[dir="rtl"] .phone b { text-align: right; }
.phone small { color: #C7B596; font-size: .85rem; }
.phone:hover b { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #C9A86C; }
.addr { display: flex; gap: 10px; align-items: flex-start; color: #D6C6AE; }
.addr .ic { width: 20px; height: 20px; margin-top: 6px; color: #C9A86C; flex: none; }
.contact-links { display: flex; flex-wrap: wrap; gap: 26px; }
.contact-links a { display: inline-flex; align-items: center; gap: 8px; border-bottom: 1px solid #C9A86C; padding-bottom: 2px; }
.contact-links .ic { width: 20px; height: 20px; color: #C9A86C; }

/* ---------- footer ---------- */
.foot { padding-block: 56px 40px; }
.foot-in { row-gap: 10px; align-items: center; }
.foot-logo { grid-column: 1 / span 2; width: 130px; height: auto; }
.foot-slogan { grid-column: 3 / span 5; font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: var(--palm); }
.foot-copy { grid-column: 8 / span 5; text-align: end; color: var(--ink-2); font-size: .92rem; }
.credit { grid-column: 1 / -1; padding-top: 16px; margin-top: 18px; border-top: 1px solid var(--brass-soft); font-size: .95rem; }
.credit a { font-weight: 500; }
.credit a:hover { color: var(--palm); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 4px; }

.fab { position: fixed; z-index: 40; inset-inline-end: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 58px; height: 58px; display: none; place-items: center; border-radius: 50%; background: var(--palm); color: var(--ivory); box-shadow: 0 14px 26px -10px rgba(20, 30, 24, .55), inset 0 0 0 1px rgba(169, 135, 79, .7); }
.fab .ic { width: 28px; height: 28px; }

/* ---------- responsive ---------- */
@media (max-width: 1140px) {
  .nav, .top-wa { display: none; }
  .menu-btn { display: grid; }
  .top-end { margin-inline-start: auto; }
  .title-start { grid-column: 1 / span 6; }
  .title-plate { grid-column: 7 / span 6; }
  .plate-photo { grid-column: 3 / span 4; }
}
@media (max-width: 900px) {
  .title { min-height: 0; row-gap: 34px; }
  .title-start, .title-plate { grid-column: 1 / -1; }
  .title-plate { min-height: 0; aspect-ratio: 4 / 4.8; }
  .index { margin-top: 34px; }
  .u-head, .u-fig, .u-photo, .u-ask, .u-prods, .u-empty,
  .uplate:nth-of-type(even) .u-photo, .uplate:nth-of-type(even) .u-prods, .uplate:nth-of-type(even) .u-empty, .uplate:nth-of-type(even) .u-ask,
  .uplate.is-sparse .u-photo, .uplate.is-sparse .u-prods, .uplate.is-sparse .u-empty, .uplate.is-sparse .u-ask, .uplate.is-sparse .u-head, .uplate.is-sparse .u-fig,
  .uplate.is-sparse:nth-of-type(even) .u-photo, .uplate.is-sparse:nth-of-type(even) .u-prods, .uplate.is-sparse:nth-of-type(even) .u-empty, .uplate.is-sparse:nth-of-type(even) .u-ask,
  .uplate.is-sparse:nth-of-type(even) .u-head, .uplate.is-sparse:nth-of-type(even) .u-fig { grid-column: 1 / -1; grid-row: auto; }
  .uplate.is-sparse .grid { grid-template-rows: none; }
  .uplate.is-sparse .u-photo { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .u-prods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .u-fig { justify-self: start; }
  .u-photo { max-width: 440px; }
  .company-photo, .company-body, .col-label, .svc, .brands-body { grid-column: 1 / -1; }
  .company-photo { max-width: 440px; margin-bottom: 34px; }
  .col-label { margin-bottom: 22px; }
  .contact h2, .contact-body { grid-column: 1 / -1; }
  .foot-logo, .foot-slogan, .foot-copy { grid-column: 1 / -1; text-align: start; }
  .fab { display: grid; }
  .foot { padding-bottom: 104px; }
}
@media (max-width: 560px) {
  .brand-emblem { width: 44px; }
  .brand-word { width: 132px; }
  .title-plate { aspect-ratio: auto; min-height: 540px; }
  .plate-photo { grid-column: 3 / span 4; }
  .u-prods, .phones { grid-template-columns: minmax(0, 1fr); }
  .u-prod { grid-template-columns: 84px minmax(0, 1fr); }
  .u-prod img { width: 84px; height: 104px; }
  .register { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .btn-ivory { font-size: 1.2rem; }
}
.fab { transition: opacity .3s var(--ease, ease), transform .3s var(--ease, ease); }
.fab.is-away { opacity: 0; transform: translateY(12px); pointer-events: none; }

@media (max-width: 400px) {
  /* Plex sets wider than the old text face: on the narrowest phones the brand and the end group need a little room back */
  .top-in { gap: 10px; }
  .brand-emblem { width: 40px; }
  .brand-word { width: 116px; }
  .top-end { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .u-prod img { transition: none; }
}

