/* Page-specific sections, grouped by page with a header comment per page. */

/* ══ Home · the mark as a map ═══════════════════════════════════════════════
   The logo mark (guide p.68) drawn from its own geometry; its four corner squares are the doors into the site.
   The mark never mirrors (it is a logo); the doors sit on its squares. */
.am-home-hero { position: relative; overflow: clip; background: var(--navy); color: var(--on-primary); }
.am-home-hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); align-items: center; min-height: calc(100svh - 76px); padding-block: var(--s-8); }
.am-home-hero__copy { display: grid; gap: var(--s-5); justify-items: start; }
.am-home-hero__copy .am-eyebrow { color: var(--sky); }
.am-home-hero__title { max-width: 15ch; font-size: clamp(2.2rem, 1.3rem + 2.5vw, 3.6rem); }
.am-home-hero__title:lang(ar) { max-width: none; font-size: clamp(2rem, 1.2rem + 2.1vw, 3.1rem); line-height: 1.4; } /* Cascadia is wide: two lines, not three */
.am-home-hero__text { max-width: 44ch; font-size: var(--fs-md); color: var(--on-primary-soft); }
.am-home-hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-block-start: var(--s-2); }
.am-home-hero__facts { display: flex; gap: var(--s-7); margin: var(--s-4) 0 0; padding-block-start: var(--s-5); border-block-start: 1px solid var(--line-dark); }
.am-home-hero__facts div { display: grid; gap: 4px; }
.am-home-hero__facts dt { order: 2; font: 700 var(--fs-xs)/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-primary-soft); }
.am-home-hero__facts dt:lang(ar) { font: 600 var(--fs-sm)/1.4 var(--font-body); letter-spacing: 0; text-transform: none; }
.am-home-hero__facts dd { order: 1; margin: 0; font: 700 clamp(2.4rem, 1.6rem + 2.4vw, 3.6rem)/1 var(--font-latin); letter-spacing: -.04em; color: var(--lemon); }

.am-mapmark { position: relative; container-type: inline-size; justify-self: center; width: min(100%, 560px); aspect-ratio: 196.7 / 196.2; }
.am-mapmark__body { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--lemon); }
.am-mapmark__doors { position: absolute; inset: 0; }
/* Each door sits on one of the mark's corner squares (65.6 of 196.7 units) and drifts toward its corner on scroll */
.am-mapmark__slot {
  --dx: -1; --dy: -1; position: absolute; width: 33.35%; height: 33.44%;
  transform: translate(calc(var(--dx) * var(--dir) * var(--drift, 0) * 9cqi), calc(var(--dy) * var(--drift, 0) * 9cqi));
  will-change: transform; /* its own layer: the drift moved it by repainting the glass door each scroll frame (F37) */
  animation: am-map-in .55s var(--ease) calc(.15s + var(--i, 0) * 90ms) backwards;
}
.am-mapmark__slot--ts { inset-block-start: 0; inset-inline-start: 0; }
.am-mapmark__slot--te { inset-block-start: 0; inset-inline-end: 0; --dx: 1; }
.am-mapmark__slot--bs { inset-block-end: 0; inset-inline-start: 0; --dy: 1; }
.am-mapmark__slot--be { inset-block-end: 0; inset-inline-end: 0; --dx: 1; --dy: 1; }
.am-mapmark__door {
  position: absolute; inset: 0; display: grid; grid-template: "code mark" auto "label label" 1fr / 1fr auto; align-items: start;
  padding: 9%; border-radius: 4.2cqi; background: var(--paper); color: var(--navy); text-decoration: none;
}
.am-mapmark__door--sky { background: var(--sky); }
.am-mapmark__code { grid-area: code; font: 700 clamp(11px, 2.4cqi, 15px)/1 var(--font-mono); letter-spacing: .04em; }
.am-mapmark__glyph, .am-mapmark__go { grid-area: mark; width: clamp(26px, 7.5cqi, 44px); height: clamp(26px, 7.5cqi, 44px); transition: opacity var(--dur) var(--ease), translate var(--dur) var(--ease); }
.am-mapmark__go { stroke-width: 2.4; opacity: 0; translate: calc(-8px * var(--dir)) 0; }
.am-mapmark__door:is(:hover, :focus-visible) .am-mapmark__glyph { opacity: 0; }
.am-mapmark__door:is(:hover, :focus-visible) .am-mapmark__go { opacity: 1; translate: 0 0; }
.am-mapmark__label { grid-area: label; align-self: end; display: grid; gap: 2px; font: 700 clamp(14px, 3.7cqi, 22px)/1.25 var(--font-head); }
.am-mapmark__alt { font: 400 clamp(10px, 2.2cqi, 13px)/1.3 var(--font-head); opacity: .72; }
.am-mapmark__alt:lang(en) { font-family: var(--font-latin); }
.am-mapmark__alt:lang(ar) { font-family: var(--font-arabic); }
@container (max-width: 360px) { .am-mapmark__alt { display: none; } }

@media (max-width: 900px) {
  .am-home-hero__in { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); min-height: 0; padding-block: var(--s-6) var(--s-8); }
  .am-mapmark { width: min(100%, 440px); }
  /* Phone composition: headline and text, then the map, then the actions and facts */
  .am-home-hero__copy { display: contents; }
  .am-home-hero__copy > * { justify-self: start; }
  .am-home-hero__copy > .am-eyebrow { order: 1; }
  .am-home-hero__title { order: 2; }
  .am-home-hero__text { order: 3; }
  .am-mapmark { order: 4; margin-block: var(--s-4); }
  .am-home-hero__ctas { order: 5; }
  .am-home-hero__facts { order: 6; }
}
@media (max-width: 560px) { .am-home-hero .am-eyebrow__items { display: none; } } /* the 4-sectors fact says it on phones */

/* Home sections: each opens its own way. Door sections carry a small hanging sign (floor code + glyph) that links on. */
.am-home-sec { padding-block: var(--s-9); }
.am-home-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-5) var(--s-7); margin-block-end: var(--s-7); }
.am-home-head--row { align-items: center; margin-block-end: var(--s-5); }
.am-home-head__main { display: grid; gap: var(--s-4); justify-items: start; max-width: 780px; }
.am-home-head__text { max-width: 52ch; font-size: var(--fs-md); color: var(--ink-soft); }
.am-on-dark .am-home-head__text { color: var(--on-primary-soft); }
.am-on-dark .am-eyebrow { color: var(--sky); }
.am-home-big { max-width: 18ch; font-size: clamp(2rem, 1.1rem + 3.2vw, 4.4rem); }
.am-home-big:lang(ar) { line-height: 1.35; }
.am-home-mid { font-size: var(--fs-xl); }

/* Products · the size line-up: every pack at its true size next to the others, on a measuring scale.
   Each pack is cropped out of its photo with --x0..--y1; its height is --unit × the cube root of its capacity. */
.am-home-products { background: var(--surface); } /* white, so white packs keep their shading */
.am-lineup {
  --unit: clamp(118px, 11.5vw, 172px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-3);
  padding-block: 128px 60px; margin-block-start: calc(-1 * var(--s-6));
  background:
    linear-gradient(var(--navy), var(--navy)) 0 calc(100% - 57px) / 100% 3px no-repeat local,
    repeating-linear-gradient(90deg, rgb(32 57 74 / .45) 0 2px, transparent 2px 24px) 0 calc(100% - 46px) / 100% 10px no-repeat local;
}
.am-lineup__item { position: relative; flex: 0 1 auto; }
.am-lineup__link { position: relative; display: grid; justify-items: center; color: var(--navy); text-decoration: none; }
.am-lineup__pack { position: relative; display: block; height: calc(var(--unit) * var(--h)); aspect-ratio: var(--ratio); overflow: hidden; transition: translate .35s var(--ease); }
/* the photo is not mirrored in Arabic: the crop offsets are physical */
.am-lineup__pack img { position: absolute; max-width: none; width: calc(100% / (var(--x1) - var(--x0))); height: calc(100% / (var(--y1) - var(--y0))); left: calc(-100% * var(--x0) / (var(--x1) - var(--x0))); top: calc(-100% * var(--y0) / (var(--y1) - var(--y0))); mix-blend-mode: multiply; filter: brightness(1.04) contrast(1.12); }
.am-lineup__size { position: absolute; top: calc(100% + 22px); white-space: nowrap; font-size: var(--fs-xs); font-weight: 700; }
.am-lineup__size:lang(ar) { font-family: var(--font-body); }
.am-lineup__tag {
  position: absolute; bottom: calc(100% + 14px); left: 50%; z-index: 2; display: grid; gap: 2px; width: max-content; max-width: 230px;
  padding: 10px 14px; border-radius: 6px; border-end-end-radius: 18px; background: var(--navy); color: var(--on-primary); font-size: var(--fs-xs);
  opacity: 0; translate: -50% 8px; pointer-events: none; transition: opacity var(--dur) var(--ease), translate var(--dur) var(--ease);
}
.am-lineup__tag b { font: 700 var(--fs-sm)/1.3 var(--font-head); }
.am-lineup__tag .am-mono { color: var(--sky); }
.am-lineup__item:first-child .am-lineup__tag { left: auto; inset-inline-start: 0; translate: 0 8px; }
.am-lineup__item:last-child .am-lineup__tag { left: auto; inset-inline-end: 0; translate: 0 8px; }
.am-lineup__link:is(:hover, :focus-visible) .am-lineup__pack { translate: 0 -12px; }
.am-lineup__link:is(:hover, :focus-visible) .am-lineup__tag { opacity: 1; translate: -50% 0; }
.am-lineup__item:is(:first-child, :last-child) .am-lineup__link:is(:hover, :focus-visible) .am-lineup__tag { translate: 0 0; }
.am-home-cats { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-block-start: var(--s-4); }
@media (max-width: 900px) {
  .am-lineup { --unit: 116px; justify-content: flex-start; gap: var(--s-5); overflow-x: auto; padding-inline: var(--s-6); scroll-snap-type: x proximity; } /* room for the edge packs’ size labels */
  .am-lineup__item { flex: none; scroll-snap-align: center; }
}

/* Quality · one bottle's journey: a pinned scroll scene (ui.js [data-journey] sets data-stage 0–4).
   Without JS or with reduced motion it is a still picture of the finished journey. */
.am-journey { position: relative; background: var(--navy); color: var(--on-primary); }
.am-journey__stage { padding-block: var(--s-9); }
.am-journey__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); align-items: center; }
.am-journey__copy { display: grid; gap: var(--s-5); align-content: start; }
.am-journey__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-4); }
.am-journey__steps { display: grid; gap: var(--s-4); margin-block-start: var(--s-2); }
.am-journey__step { display: grid; grid-template-columns: 52px auto minmax(0, 1fr); grid-template-areas: "cell n title" "cell . text"; column-gap: var(--s-3); align-items: center; transition: opacity .35s var(--ease); }
.am-journey__cell { grid-area: cell; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 6px; border-end-end-radius: 20px; background: var(--lemon); color: var(--navy); transition: background-color .4s var(--ease), color .4s var(--ease); }
.am-journey__cell .am-icon { width: 28px; height: 28px; }
.am-journey__n { grid-area: n; font-size: var(--fs-xs); color: var(--sky); }
.am-journey__title { grid-area: title; font-size: var(--fs-lg); }
.am-journey__text { grid-area: text; max-width: 42ch; font-size: var(--fs-sm); color: var(--on-primary-soft); }
.am-journey__art { direction: ltr; justify-self: center; width: min(100%, 460px); height: auto; overflow: visible; }
.am-jy__outline { fill: rgb(255 255 255 / .05); stroke: var(--lemon); stroke-width: 4; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s var(--ease); }
.am-jy__cap { fill: var(--lemon); transition: opacity .4s var(--ease); }
.am-jy__dim { fill: none; stroke: var(--sky); stroke-width: 2; stroke-linecap: round; }
.am-jy__label { fill: var(--sky); font: 700 15px var(--font-mono); }
.am-jy__box { fill: var(--primary-soft); stroke: var(--paper); stroke-width: 3; }
.am-jy__tape { fill: var(--lemon); }
.am-jy__boxglyph { color: var(--paper); }
.am-jy__shelf { fill: var(--primary-soft); }
.am-jy__ghost { fill: rgb(255 255 255 / .05); stroke: rgb(255 255 255 / .2); stroke-width: 2; }
.am-jy__tag rect { fill: var(--lemon); }
.am-jy__tag text { fill: var(--navy); font: 700 19px var(--font-latin); }
.am-jy__l2, .am-jy__l4 { transition: opacity .5s var(--ease), translate .5s var(--ease); }
.am-jy__l3 { transform-box: fill-box; transform-origin: bottom; transition: opacity .45s var(--ease), scale .5s var(--ease); }
/* live: tall section, pinned stage; the current step is bright, finished steps keep a lemon cell */
.am-journey.is-live { height: 420svh; }
.am-journey.is-live .am-journey__stage { position: sticky; top: 60px; display: grid; align-items: center; height: calc(100svh - 60px); padding-block: var(--s-6); }
.am-journey.is-live .am-journey__step { opacity: .32; }
.am-journey.is-live .am-journey__cell { background: var(--primary-soft); color: var(--sky); }
.am-journey[data-stage="1"] .am-journey__step:nth-child(1), .am-journey[data-stage="2"] .am-journey__step:nth-child(2),
.am-journey[data-stage="3"] .am-journey__step:nth-child(3), .am-journey[data-stage="4"] .am-journey__step:nth-child(4) { opacity: 1; }
.am-journey[data-stage="1"] .am-journey__step:nth-child(-n+1) .am-journey__cell, .am-journey[data-stage="2"] .am-journey__step:nth-child(-n+2) .am-journey__cell,
.am-journey[data-stage="3"] .am-journey__step:nth-child(-n+3) .am-journey__cell, .am-journey[data-stage="4"] .am-journey__step:nth-child(-n+4) .am-journey__cell { background: var(--lemon); color: var(--navy); }
.am-journey[data-stage="0"] .am-jy__outline { stroke-dashoffset: 1; }
.am-journey[data-stage="0"] .am-jy__cap { opacity: 0; }
.am-journey.is-live:is([data-stage="0"], [data-stage="1"], [data-stage="3"], [data-stage="4"]) .am-jy__l2 { opacity: 0; }  /* the box hides the measuring lines */
.am-journey.is-live:is([data-stage="0"], [data-stage="1"], [data-stage="2"]) .am-jy__l3 { opacity: 0; scale: 1 .05; }
.am-journey.is-live:not([data-stage="4"]) .am-jy__l4 { opacity: 0; translate: 0 14px; }
.am-journey:not(.is-live) .am-jy__l2 { opacity: 0; } /* still picture: the finished, shelved box */
@media (max-width: 900px) {
  .am-journey__in { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
  .am-journey__art { order: -1; width: min(70%, 260px); }
  .am-journey.is-live .am-journey__stage { padding-block: var(--s-4); }
  .am-journey.is-live .am-journey__in { align-content: center; }
  .am-journey.is-live .am-home-big { font-size: var(--fs-xl); }
  .am-journey.is-live .am-journey__step { display: none; }
  .am-journey[data-stage="0"] .am-journey__step:nth-child(1), .am-journey[data-stage="1"] .am-journey__step:nth-child(1), .am-journey[data-stage="2"] .am-journey__step:nth-child(2),
  .am-journey[data-stage="3"] .am-journey__step:nth-child(3), .am-journey[data-stage="4"] .am-journey__step:nth-child(4) { display: grid; }
}

/* Catalogue · the file is the hero: two editions, the cover on top */
.am-home-cat { position: relative; --super: var(--navy); --super-o: .07; background: var(--lemon); color: var(--navy); }
.am-home-cat__in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--s-8); align-items: center; }
.am-home-cat__copy { display: grid; gap: var(--s-5); justify-items: start; }
.am-home-cat .am-home-head__text { color: var(--navy); }
.am-home-cat__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.am-home-cat__facts { font-size: var(--fs-xs); }
.am-doc { position: relative; justify-self: center; width: min(100%, 380px); aspect-ratio: 3 / 4; }
.am-doc__sheet { position: absolute; inset: 0; border-radius: 6px; border-end-end-radius: 48px; background: var(--paper); box-shadow: 0 30px 50px -28px rgb(32 57 74 / .6); }
.am-doc__sheet--back { rotate: 7deg; translate: 22px 8px; background: var(--sky); }
.am-doc__sheet--front { display: grid; grid-template-rows: auto 1fr auto auto; gap: var(--s-3); padding: var(--s-7) var(--s-6) var(--s-6); rotate: -3deg; transition: rotate .4s var(--ease), translate .4s var(--ease); }
.am-home-cat:hover .am-doc__sheet--front { rotate: -5deg; translate: 0 -10px; }
.am-doc__sheet--front img { width: 160px; height: auto; }
.am-doc__title { align-self: end; font: 700 var(--fs-2xl)/1.1 var(--font-head); }
.am-doc__year { font-size: var(--fs-sm); }
.am-doc .am-glyphrow { --g: 18px; column-gap: 9px; }
/* phones sideways: steps beside the bottle again, sized to the short screen */
@media (orientation: landscape) and (max-height: 520px) {
  .am-journey__in { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-6); }
  .am-journey__art { order: 0; width: min(34vw, 240px); height: calc(100svh - 60px - 2 * var(--s-3)); }
  .am-journey.is-live .am-journey__stage { padding-block: var(--s-3); }
  .am-journey.is-live .am-journey__copy { gap: var(--s-3); }
  .am-journey.is-live .am-home-big { font-size: var(--fs-lg); }
}
@media (max-width: 900px) { .am-home-cat__in { grid-template-columns: minmax(0, 1fr); } .am-doc { width: min(72%, 280px); } .am-doc__title { font-size: var(--fs-xl); } }

/* Sectors · the one full-bleed moment: the van's line, then the four sectors as huge words with a photo window */
.am-home-sectors { background: var(--surface); padding-block-end: var(--s-10); }
.am-van { display: flex; align-items: center; gap: var(--s-4); margin: 0; font: 700 clamp(1.3rem, .9rem + 1.6vw, 2.4rem)/1.25 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; }
.am-van:lang(ar) { font-family: var(--font-head); letter-spacing: 0; text-transform: none; }
.am-van i { flex: none; width: clamp(32px, 6vw, 84px); height: 12px; border-radius: 6px; background: var(--navy); }
.am-words { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-4) var(--s-7); padding-inline: var(--gutter); }
.am-words__item { position: relative; display: inline-flex; align-items: center; gap: var(--s-4); color: var(--navy); text-decoration: none; }
.am-words__word { font: 700 clamp(2.8rem, .8rem + 7.4vw, 9rem)/1.05 var(--font-head); letter-spacing: var(--track-caps); transition: color var(--dur) var(--ease); }
.am-words__win { position: relative; flex: none; overflow: hidden; width: clamp(148px, 12vw, 170px); aspect-ratio: 1; border-radius: var(--cell-r); border-end-end-radius: 34%; transition: rotate .4s var(--ease); } /* fixed size: hovering never re-wraps the line */
.am-words__win .am-photo { width: 100%; height: 100%; }
.am-words__item:is(:hover, :focus-visible) .am-words__win { rotate: calc(-4deg * var(--dir)); }
.am-words__cap { position: absolute; inset-inline: 0; inset-block-end: 0; padding: 10px 12px 12px; padding-inline-end: 14%; background: rgb(32 57 74 / .92); color: var(--on-primary); font: 600 var(--fs-xs)/1.4 var(--font-body); opacity: 0; translate: 0 100%; transition: opacity .3s var(--ease) .1s, translate .3s var(--ease) .1s; }
.am-words__item:is(:hover, :focus-visible) .am-words__cap { opacity: 1; translate: 0 0; }
.am-words__item:is(:hover, :focus-visible) .am-words__word { color: var(--second-strong); }
.am-words__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } /* read by screen readers; shown on phones below */
@media (max-width: 760px) {
  .am-words { flex-direction: column; align-items: stretch; gap: var(--s-6); }
  .am-words__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "word photo" "text photo"; column-gap: var(--s-4); }
  .am-words__word { grid-area: word; } .am-words__win { grid-area: photo; width: 96px; } .am-words__item:is(:hover, :focus-visible) .am-words__win { rotate: none; }
  .am-words__cap { display: none; }
  .am-words__text { grid-area: text; position: static; width: auto; height: auto; overflow: visible; clip-path: none; font-size: var(--fs-sm); color: var(--ink-soft); }
}

/* About · night on the factory wall: the lemon lightbox sign (guide p.43) switches on and lights the story.
   Off = dimmed until it scrolls into view ([data-reveal="switch"] gets .is-in); on with no JS or reduced motion. */
.am-night { position: relative; overflow: clip; isolation: isolate; padding-block: var(--s-10); background: var(--navy); color: var(--on-primary); text-align: center; }
.am-night__wall { position: absolute; inset: 0; z-index: -2; background: var(--navy); }
.am-night__wall img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(.7); mix-blend-mode: luminosity; opacity: .28; }
.am-night__wall::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgb(32 57 74 / .2), rgb(32 57 74 / .85) 70%); }
.am-night__in { display: grid; justify-items: center; gap: var(--s-5); }
.am-lightbox { position: relative; width: min(100%, 520px); margin-block-end: var(--s-5); }
.am-lightbox__glow { position: absolute; z-index: -1; inset: -70% -60%; background: radial-gradient(closest-side, rgb(228 255 43 / .30), rgb(228 255 43 / .08) 55%, transparent); opacity: 0; transition: opacity 1s var(--ease) .45s; pointer-events: none; }
.am-lightbox__arm { position: absolute; inset-block-start: 50%; inset-inline-end: 100%; width: 34px; height: 14px; translate: 0 -50%; border-radius: 3px; background: #0c1922; box-shadow: 0 -22px 0 -4px #0c1922, 0 22px 0 -4px #0c1922; }
.am-lightbox__box {
  display: grid; place-items: center; aspect-ratio: 2.6; padding: 7%;
  border: 10px solid #0c1922; border-radius: 4px; background: var(--lemon);
  box-shadow: 16px 14px 0 #0a151c, 0 30px 60px -20px rgb(0 0 0 / .6);  /* the box's side and its shadow on the wall */
  filter: brightness(.32) saturate(.45);
}
.am-lightbox__box img { width: 82%; height: auto; }
.am-lightbox.is-in .am-lightbox__box { filter: none; animation: am-flicker 1.1s steps(1) both; }
.am-lightbox.is-in .am-lightbox__glow { opacity: 1; }
html:not(.js) .am-lightbox__box { filter: none; }
html:not(.js) .am-lightbox__glow { opacity: 1; }
.am-night__title { max-width: 20ch; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.6rem); }
.am-night__title:lang(ar) { line-height: 1.35; }
.am-night__text { max-width: 56ch; font-size: var(--fs-md); color: var(--on-primary-soft); }
/* the four promises as small plates screwed to the wall */
.am-promises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); width: min(100%, 980px); margin-block: var(--s-4) var(--s-3); }
.am-promise {
  display: grid; place-items: center; min-height: 92px; padding: var(--s-4) var(--s-5); border-radius: 4px;
  background:
    radial-gradient(circle, #b9b2a3 0 2.5px, transparent 3px) 8px 8px / 10px 10px no-repeat,
    radial-gradient(circle, #b9b2a3 0 2.5px, transparent 3px) calc(100% - 8px) 8px / 10px 10px no-repeat,
    radial-gradient(circle, #b9b2a3 0 2.5px, transparent 3px) 8px calc(100% - 8px) / 10px 10px no-repeat,
    radial-gradient(circle, #b9b2a3 0 2.5px, transparent 3px) calc(100% - 8px) calc(100% - 8px) / 10px 10px no-repeat,
    var(--paper);
  color: var(--navy); font: 700 var(--fs-sm)/1.4 var(--font-head); box-shadow: 0 10px 24px -14px rgb(0 0 0 / .6);
}
@media (max-width: 900px) {
  .am-night { padding-block: var(--s-8); }
  .am-promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .am-lightbox { width: min(86%, 400px); }
  .am-lightbox__box { border-width: 7px; box-shadow: 10px 9px 0 #0a151c, 0 20px 40px -16px rgb(0 0 0 / .6); }
}
@media (max-width: 420px) { .am-promises { grid-template-columns: minmax(0, 1fr); } .am-promise { min-height: 64px; } }

/* News · a short index of notices */
.am-home-news { background: var(--surface); }
.am-notices { border-block-start: 2px solid var(--navy); }
.am-notice { display: grid; grid-template-columns: 112px 8rem minmax(0, 1fr) auto; align-items: center; gap: var(--s-5); padding-block: var(--s-3); border-block-end: 1px solid var(--line); color: var(--navy); text-decoration: none; }
.am-notice:hover, .am-notice:focus-visible { background: var(--paper); }
.am-notice .am-photo { aspect-ratio: 4 / 3; margin-inline-start: var(--s-2); }
.am-notice__date { font-size: var(--fs-sm); color: var(--second-strong); }
.am-notice__title { font: 700 var(--fs-md)/1.35 var(--font-head); }
/* the row's arrow cell follows the depth rule */
.am-rowgo { display: grid; place-items: center; width: 44px; height: 44px; margin-inline-end: var(--s-2); border-radius: 5px; border-end-end-radius: 18px; background: var(--lemon); color: var(--navy); }
.am-rowgo .am-icon { width: 22px; height: 22px; }
@media (max-width: 760px) {
  .am-notice { grid-template-columns: 88px minmax(0, 1fr); grid-template-areas: "photo date" "photo title"; row-gap: var(--s-1); }
  .am-notice .am-photo { grid-area: photo; } .am-notice__date { grid-area: date; } .am-notice__title { grid-area: title; font-size: var(--fs-sm); } .am-notice .am-rowgo { display: none; }
}

/* Group brands */
.am-home-group { padding-block: var(--s-8); }
.am-home-group__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s-7); align-items: start; }
.am-home-group__title { margin-block-start: var(--s-3); font-size: var(--fs-lg); }
.am-brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--s-4); }
.am-brand { display: grid; gap: var(--s-3); justify-items: start; padding: var(--s-5); border-radius: 6px; border-end-end-radius: 28px; background: var(--surface); }
.am-brand__name { font: 700 var(--fs-lg)/1.2 var(--font-head); }
.am-brand p { font-size: var(--fs-sm); color: var(--ink-soft); }
@media (max-width: 900px) { .am-home-group__in { grid-template-columns: minmax(0, 1fr); } }

/* ============ About · the lift (guide p.71) ============
   The lobby wall (facade pattern rising from the floor), the floor panel, and the lift: a display, a navy frame and two
   steel leaves with the mark split down the seam. .is-live (JS, roomy screen, motion on) pins it and rides:
   --open (0..1) slides the leaves, --at (floor index) moves the floors behind them. Otherwise the floors stack. */
.am-lift { position: relative; background: var(--paper); --stops: 4; }
.am-lift__stage { position: relative; isolation: isolate; padding-block: var(--s-8); }
/* the wall pattern: a seamless repeat cell, tilted 22° like the brand panel by rotating an oversized layer
   (a tilted tile can't repeat without seams); the frame clips it and fades it upward */
.am-lift__wall-pat { position: absolute; inset: 0; z-index: -1; overflow: hidden; opacity: .07; mask: linear-gradient(to top, #000 0 15%, transparent 75%); pointer-events: none; }
.am-lift__wall-pat::before { content: ""; position: absolute; inset: -60%; background: url(../img/patterns/glyph-tile.svg) 0 0 / 43px; rotate: -22deg; }
.am-lift__in { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: var(--s-8); align-items: center; }
.am-lift__wall { display: grid; gap: var(--s-5); justify-items: start; align-content: center; }
.am-lift__title { max-width: 13ch; font-size: clamp(2rem, 1.2rem + 2.3vw, 3.4rem); line-height: 1.1; }
.am-lift__title:lang(ar) { line-height: 1.35; }
.am-lift__lead { max-width: 36ch; font-size: var(--fs-md); color: var(--ink-soft); }

/* the floor panel: a brushed-steel plate; the buttons have an edge (pressable), the current floor glows lemon */
.am-lift__panel { padding: 16px 18px; border-radius: 12px; background: linear-gradient(160deg, #eceeef, #b7bcbf); box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgb(0 0 0 / .15), 0 16px 30px -18px rgb(0 0 0 / .5); }
.am-lift__panel ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.am-lift__btn { display: flex; align-items: center; gap: 12px; color: var(--navy); font: 700 var(--fs-sm)/1.2 var(--font-head); text-decoration: none; }
.am-lift__key { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #c4c8cb); box-shadow: inset 0 0 0 2px rgb(255 255 255 / .5), 0 3px 0 #7d8388; font: 700 var(--fs-xs) var(--font-mono); transition: translate .15s var(--ease), box-shadow .15s var(--ease), background .3s var(--ease); }
.am-lift__btn:is(:hover, :focus-visible) .am-lift__key { translate: 0 2px; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .5), 0 1px 0 #7d8388; }
.am-lift__btn[aria-current] .am-lift__key { background: radial-gradient(circle at 35% 30%, #f6ffb8, var(--lemon)); box-shadow: 0 3px 0 #a3b81c, 0 0 0 4px rgb(228 255 43 / .3), 0 0 18px rgb(228 255 43 / .9); }

/* the lift */
.am-lift__car { display: grid; min-width: 0; --mw: clamp(150px, 19vw, 280px); }
.am-lift__display { justify-self: center; display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 128px; margin-block-end: 14px; padding: 8px 18px; border-radius: 6px; background: #0c1922; box-shadow: inset 0 0 0 2px #2b3a44, 0 0 0 6px #b7bcbf; color: var(--lemon); font: 700 1.7rem/1 var(--font-mono); text-shadow: 0 0 12px rgb(228 255 43 / .7); }
.am-lift__display .am-num { font-family: var(--font-mono); }
.am-lift__dir { font-size: .8em; }
.am-lift__dir:empty { display: none; }
.am-lift__door { position: relative; overflow: hidden; border: 16px solid var(--navy); border-block-end: 10px solid #9aa0a4; border-radius: 8px 8px 0 0; background: #11222d; }
.am-lift__leaf { position: absolute; inset-block: 0; z-index: 2; width: 50%; overflow: hidden;
  background: repeating-linear-gradient(90deg, rgb(255 255 255 / .09) 0 1px, transparent 1px 4px), linear-gradient(90deg, #c3c8cb, #eceeef 48%, #b5babd); }
.am-lift__leaf--l { left: 0; box-shadow: inset -2px 0 0 #8e959a; }
.am-lift__leaf--r { right: 0; box-shadow: inset 2px 0 0 #f4f5f6; }
.am-lift__leaf img { position: absolute; top: 50%; width: var(--mw); height: auto; translate: 0 -50%; opacity: .92; }
.am-lift__leaf--l img { left: calc(100% - var(--mw) / 2); }
.am-lift__leaf--r img { left: calc(var(--mw) / -2); }

/* floors */
.am-floor { position: relative; display: grid; align-content: center; gap: var(--s-4); padding: var(--s-6); overflow: hidden; }
.am-floor__tag { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 4px; background: var(--navy); color: var(--on-primary); font: 700 var(--fs-xs)/1.4 var(--font-head); }
.am-floor__tag .am-num { font-family: var(--font-mono); color: var(--lemon); }
.am-floor__title { font-size: clamp(1.6rem, 1rem + 1.5vw, 2.5rem); line-height: 1.15; }
.am-floor__title:lang(ar) { line-height: 1.4; }
/* GF · reception */
.am-floor--gf { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); grid-template-areas: "tag tag" "photo body"; column-gap: var(--s-6); align-items: center; background: #f1ece2; }
.am-floor--gf .am-floor__tag { grid-area: tag; }
.am-floor--gf .am-photo { grid-area: photo; aspect-ratio: 3 / 4; }
.am-floor__body { grid-area: body; display: grid; gap: var(--s-4); }
.am-floor__body p { color: var(--ink-soft); }
.am-floor__facts { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); padding-block-start: var(--s-3); border-block-start: 2px solid var(--navy); }
.am-floor__facts div { display: flex; flex-direction: column-reverse; gap: 4px; }
.am-floor__facts dt { font-size: var(--fs-xs); color: var(--ink-soft); }
.am-floor__facts dd { font: 700 clamp(1.6rem, 1rem + 1.3vw, 2.4rem)/1 var(--font-mono); color: var(--navy); }
.am-floor__facts dd .am-num { font-family: var(--font-mono); }
/* 01 · administration: two office windows, the words etched on the glass, the sky behind */
.am-floor--01 { background: linear-gradient(rgb(185 226 240 / .55), rgb(143 199 218 / .75)), url(../img/photos/building-wide.webp) 50% 60% / cover; }
.am-glass { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 12px solid #3a4349; border-radius: 4px; } /* the frame; the panes see the view behind */
.am-glass__pane + .am-glass__pane { border-inline-start: 12px solid #3a4349; }
.am-glass__pane { position: relative; display: grid; align-content: end; gap: var(--s-3); min-height: 300px; padding: var(--s-6) var(--s-5); background: linear-gradient(160deg, rgb(255 255 255 / .55), rgb(255 255 255 / .18) 70%); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); color: var(--navy); }
.am-glass__pane::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 28%, rgb(255 255 255 / .55) 30%, transparent 38%, transparent 44%, rgb(255 255 255 / .3) 45%, transparent 49%); pointer-events: none; }
.am-glass__title { font-size: var(--fs-xl); letter-spacing: .01em; }
.am-glass__pane p { font-size: var(--fs-md); line-height: 1.55; }
/* 02 · manufacturing: the factory floor, a lemon floor line, values as door plates */
.am-floor--02 { isolation: isolate; background: linear-gradient(transparent calc(100% - 28px), var(--lemon) calc(100% - 28px) calc(100% - 22px), #172c39 calc(100% - 22px)), var(--navy); }
.am-floor--02 .am-floor__title { font-size: clamp(1.8rem, 1rem + 2vw, 2.9rem); }
.am-doorplates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.am-doorplate { display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-areas: "cell t" "cell x"; column-gap: var(--s-3); align-items: center; padding: var(--s-3) var(--s-4); border-radius: 4px; background: var(--paper); color: var(--navy); }
.am-doorplate b { grid-area: t; font: 700 var(--fs-md)/1.3 var(--font-head); }
.am-doorplate > span:last-child { grid-area: x; font-size: var(--fs-sm); color: var(--ink-soft); }
.am-doorplate__cell { grid-area: cell; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 6px; border-end-end-radius: 18px; background: var(--navy); color: var(--sky); }
.am-doorplate__cell--lemon { background: var(--lemon); color: var(--navy); }
.am-doorplate__cell--sky { background: var(--sky); color: var(--navy); }
.am-doorplate__cell .am-icon { width: 26px; height: 26px; }
.am-floor__commit { color: var(--on-primary-soft); }
.am-floor__commit .am-link { min-height: 24px; color: var(--lemon); }
/* R · the roof: the group's signs on posts against the sky, the parapet below */
.am-floor--r { isolation: isolate; display: flex; flex-direction: column; align-items: flex-start; padding-block-end: 0; background: linear-gradient(#8fd0e4, #d8f0f7 85%); }
.am-floor--r::before { content: ""; position: absolute; z-index: -1; inset-block-start: 14%; inset-inline-end: 10%; width: 84px; aspect-ratio: 1; border-radius: 50%; background: var(--lemon); box-shadow: 0 0 70px 10px rgb(228 255 43 / .55); } /* a lemon sun */
.am-floor__text { max-width: 46ch; }
.am-roof { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s-4); margin-block-start: auto; }
.am-roof__sign { display: grid; }
.am-roof__sign > :first-child { display: inline-flex; align-items: center; gap: 8px; min-height: 64px; padding: 12px 18px; border-radius: 3px; background: var(--paper); color: var(--navy); font: 700 var(--fs-md)/1 var(--font-head); text-decoration: none; box-shadow: 0 10px 20px -14px rgb(0 0 0 / .5); }
.am-roof__sign--main > :first-child { height: 82px; padding: 14px 20px; background: var(--navy); }
.am-roof__sign img { height: 100%; width: auto; }
.am-roof__sign .am-icon { width: 14px; height: 14px; }
.am-roof__sign::after { content: ""; height: 30px; background: linear-gradient(90deg, transparent 18%, #3a4349 18% 24%, transparent 24% 76%, #3a4349 76% 82%, transparent 82%); }
.am-floor__cta { align-self: stretch; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); margin-inline: calc(-1 * var(--s-6)); margin-block-start: calc(-1 * var(--s-4)); padding: var(--s-5) var(--s-6); background: linear-gradient(#a9aeb1, #8e959a); box-shadow: inset 0 3px 0 #c4c8cb; color: var(--navy); } /* the parapet */
.am-floor__cta b { font: 700 var(--fs-lg)/1.3 var(--font-head); }

/* stacked (no JS, reduced motion, small screens) */
.am-lift:not(.is-live) .am-lift__display, .am-lift:not(.is-live) .am-lift__leaf { display: none; }
.am-lift:not(.is-live) .am-lift__door { overflow: visible; border: 0; background: none; }
.am-lift:not(.is-live) .am-lift__floors { display: grid; gap: var(--s-5); }
.am-lift:not(.is-live) .am-floor { border-radius: 6px; }
.am-lift:not(.is-live) .am-floor--r { padding-block-end: 0; }

/* the ride */
.am-lift.is-live { height: calc(var(--stops) * 110svh + 100svh); }
.am-lift.is-live .am-lift__stage { position: sticky; top: 60px; height: calc(100svh - 60px); padding-block: var(--s-5); }
.am-lift.is-live .am-lift__in { height: 100%; }
.am-lift.is-live .am-lift__car { grid-template-rows: auto minmax(0, 1fr); height: 100%; }
/* --fh: the doorway's height in whole px (set by JS), so the floors stack without seams */
.am-lift.is-live .am-lift__floors { position: absolute; inset-inline: 0; bottom: 0; display: flex; flex-direction: column-reverse; translate: 0 calc(var(--at, 0) * var(--fh, 0px)); transition: translate var(--ride, .6s) cubic-bezier(.6, 0, .3, 1); }
.am-lift__btn.is-called .am-lift__key { background: radial-gradient(circle at 35% 30%, #f6ffb8, var(--lemon)); box-shadow: 0 1px 0 #a3b81c, 0 0 0 4px rgb(228 255 43 / .3), 0 0 18px rgb(228 255 43 / .9); translate: 0 2px; }
.am-lift.is-ding .am-lift__display { animation: am-ding .35s var(--ease); } /* arrival */
/* while it travels: the arrow runs, the number rolls, a landing's light sweeps the doors, the panel answers */
.am-lift__display { overflow: hidden; }
.am-lift.is-moving .am-lift__dir { animation: am-arrow .5s linear infinite; }
.am-lift.is-moving[data-way="down"] .am-lift__dir { animation-direction: reverse; }
.am-lift__now.is-roll { animation: am-roll .32s var(--ease); }
.am-lift__now { display: inline-block; }
.am-lift__door::after { content: ""; position: absolute; inset-inline: 0; top: 0; z-index: 3; height: 28%; background: linear-gradient(transparent, rgb(255 255 255 / .42), transparent); opacity: 0; pointer-events: none; }
.am-lift__door.is-pass::after { animation: am-sweep .45s linear; }
.am-lift[data-way="down"] .am-lift__door.is-pass::after { animation-direction: reverse; }
.am-lift__btn.is-pass .am-lift__key { animation: am-pass .6s var(--ease); }
.am-lift.is-moving .am-lift__btn.is-called .am-lift__key { animation: am-called 1s ease-in-out infinite; }
.am-lift.is-live .am-floor { flex: none; height: var(--fh, 0px); }
.am-lift.is-live .am-floor__tag { display: none; } /* the display above the doors says the floor */
/* only the floor the lift is at shows; the others stay in the page (screen readers, keyboard) but no sliver of a
   neighbour can bleed past the doorway edge on high-density screens */
.am-lift.is-live .am-floor:not(.is-here) { opacity: 0; }
.am-lift.is-live .am-lift__leaf--l { translate: calc(var(--open, 0) * -100%) 0; }
.am-lift.is-live .am-lift__leaf--r { translate: calc(var(--open, 0) * 100%) 0; }
/* each floor fills its doorway: the reception photo runs full height, the office is one wall of glass */
.am-lift.is-live .am-floor--gf { grid-template-areas: "photo body"; grid-template-rows: 100%; padding: 0; }
.am-lift.is-live .am-floor--gf .am-photo { height: 100%; aspect-ratio: auto; border-radius: 0; }
.am-lift.is-live .am-floor__body { padding: var(--s-6); padding-inline-start: 0; } /* no padding on the photo side, in either direction */
.am-lift.is-live .am-floor--01 { align-content: stretch; padding: 0; }
.am-lift.is-live .am-glass { border-radius: 0; }
.am-lift.is-live .am-glass__pane { min-height: 0; padding: var(--s-7) var(--s-6); }
.am-lift.is-live .am-glass__title { font-size: clamp(1.9rem, 1rem + 1.8vw, 2.8rem); }

@media (max-width: 1100px) {
  .am-lift__stage { padding-block: var(--s-6); }
  .am-lift__in { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
  .am-lift__wall { display: contents; }
  .am-lift__panel { position: sticky; top: 68px; z-index: 5; padding: 10px; }
  .am-lift__panel::before { content: ""; position: absolute; inset-inline: calc(-1 * var(--gutter)); bottom: 100%; height: 12px; background: var(--paper); } /* covers the gap under the (condensed, 60px) header */
  .am-lift__panel ol { display: flex; justify-content: space-between; gap: 6px; }
  .am-lift__panel li { flex: 1; }
  .am-lift__btn { flex-direction: column; gap: 4px; font-size: var(--fs-xs); text-align: center; }
  .am-lift__key { width: 38px; height: 38px; }
  .am-floor { padding: var(--s-5); }
  .am-floor--gf { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tag" "photo" "body"; row-gap: var(--s-4); }
  .am-floor--gf .am-photo { aspect-ratio: 4 / 3; }
  .am-glass, .am-doorplates { grid-template-columns: minmax(0, 1fr); }
  .am-glass__pane + .am-glass__pane { border-inline-start: 0; border-block-start: 12px solid #3a4349; }
  .am-floor--r::before { width: 52px; inset-block-start: 7%; inset-inline-end: 6%; }
  .am-glass__pane { min-height: 0; padding: var(--s-5) var(--s-4); }
  .am-floor__cta { margin-inline: calc(-1 * var(--s-5)); padding-inline: var(--s-5); }
}

/* narrow screens: the same one pinned lift. The intro (title, text) scrolls away first (--intro, set by JS), then the
   panel — round keys and a small display — and the lift fill the screen under the header; floors get compact layouts. */
.am-lift__display--mini { display: none; }
.am-lift:not(.is-live) .am-lift__door::after { display: none; }
@media (max-width: 1100px) {
  .am-lift.is-live { height: calc(var(--stops) * 110svh + 100svh + var(--intro, 0px)); }
  .am-lift.is-live .am-lift__stage { top: calc(60px - var(--intro, 0px)); height: calc(100svh - 60px + var(--intro, 0px)); padding-block: var(--s-4) calc(60px + var(--s-5) + 14px); } /* the lift stops above the WhatsApp button */
  .am-lift.is-live .am-lift__in { grid-template-rows: auto auto auto auto minmax(0, 1fr); gap: var(--s-4); }
  .am-lift.is-live .am-lift__panel { position: relative; top: auto; display: flex; align-items: center; gap: 8px; }
  .am-lift.is-live .am-lift__panel::before { display: none; }
  .am-lift.is-live .am-lift__panel ol { flex: 1; min-width: 0; }
  .am-lift.is-live .am-lift__display--mini { display: flex; flex: none; justify-self: auto; min-width: 58px; margin: 0; padding: 6px 8px; gap: 4px; font-size: 1.1rem; box-shadow: inset 0 0 0 2px #2b3a44; }
  .am-lift.is-live .am-lift__car > .am-lift__display { display: none; }
  .am-lift.is-live .am-lift__car { grid-template-rows: minmax(0, 1fr); --mw: clamp(120px, 40vw, 220px); }
  .am-lift.is-live .am-lift__door { border-width: 10px; border-block-end-width: 6px; }
  .am-lift.is-live .am-floor { padding: var(--s-4); gap: var(--s-3); }
  .am-lift.is-live .am-floor--01 { padding: 0; } /* the office glass runs edge to edge, as on desktop */
  .am-lift.is-live .am-floor__title { font-size: 1.45rem; }
  .am-lift.is-live .am-floor--gf { grid-template-columns: minmax(0, 1fr); grid-template-areas: "photo" "body"; grid-template-rows: minmax(0, 1fr) auto; align-items: stretch; /* the photo takes what the text leaves */ padding: 0; row-gap: 0; }
  .am-lift.is-live .am-floor__body { align-content: start; gap: var(--s-3); padding: var(--s-4); }
  .am-lift.is-live .am-floor__body p { font-size: var(--fs-sm); }
  .am-lift.is-live .am-floor__facts { flex-wrap: nowrap; justify-content: space-between; gap: var(--s-3); }
  .am-lift.is-live .am-floor__facts dd { font-size: 1.35rem; }
  .am-lift.is-live .am-floor__facts dt { font-size: 12px; line-height: 1.3; }
  .am-lift.is-live .am-glass { grid-template-rows: 1fr 1fr; }
  .am-lift.is-live .am-glass__pane { padding: var(--s-4); }
  .am-lift.is-live .am-glass__title { font-size: 1.5rem; }
  .am-lift.is-live .am-glass__pane p { font-size: var(--fs-sm); }
  .am-lift.is-live .am-doorplates { gap: var(--s-2); }
  .am-lift.is-live .am-doorplate { grid-template-columns: 40px minmax(0, 1fr); padding: var(--s-2) var(--s-3); }
  .am-lift.is-live .am-doorplate__cell { width: 40px; height: 40px; }
  .am-lift.is-live .am-floor__cta { margin-inline: calc(-1 * var(--s-4)); padding: var(--s-4); }
  .am-lift.is-live .am-roof__sign--main > :first-child { height: 64px; }
  .am-lift.is-live .am-roof__sign > :first-child { min-height: 48px; padding: 8px 12px; font-size: var(--fs-sm); }
  .am-lift.is-live .am-floor--r { padding-block-end: 0; } /* the parapet sits on the sill */
  .am-lift.is-live .am-floor--r::before { inset-block-start: 30%; inset-inline-end: 10%; width: 56px; } /* the sun in the empty sky above the signs */
}
/* narrow phones: the panel shows the round keys only, like a real lift; the floor names stay for screen readers
   (each floor's own tag names it on the page) */
@media (max-width: 480px) {
  .am-lift__btn > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .am-lift__panel ol { justify-content: space-around; }
}
/* short phones (the lift stops above the WhatsApp button, so the doorway is short): tighter panel, values in two
   columns, the roof's signs in one row */
@media (max-width: 1100px) and (max-height: 780px) {
  .am-lift.is-live .am-lift__panel { padding: 7px 10px; }
  .am-lift.is-live .am-lift__key { width: 34px; height: 34px; }
  .am-lift.is-live .am-floor--02 .am-floor__title { font-size: 1.3rem; }
  .am-lift.is-live .am-doorplates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .am-lift.is-live .am-doorplate { grid-template-columns: 28px minmax(0, 1fr); grid-template-areas: "cell t" "x x"; row-gap: 4px; padding: var(--s-2); }
  .am-lift.is-live .am-doorplate__cell { width: 28px; height: 28px; border-end-end-radius: 10px; }
  .am-lift.is-live .am-doorplate__cell .am-icon { width: 18px; height: 18px; }
  .am-lift.is-live .am-doorplate b { font-size: var(--fs-sm); }
  .am-lift.is-live .am-doorplate > span:last-child { font-size: 12px; line-height: 1.35; }
  .am-lift.is-live .am-roof { flex-wrap: nowrap; gap: var(--s-2); }
  .am-lift.is-live .am-roof__sign--main > :first-child { height: 46px; padding: 8px 10px; }
  .am-lift.is-live .am-roof__sign > :first-child { min-height: 40px; padding: 6px 8px; font-size: 13px; }
  .am-lift.is-live .am-roof__sign::after { height: 18px; }
  .am-lift.is-live .am-floor__cta b { font-size: var(--fs-md); }
}

/* phones sideways (too short for the ride: stacked floors): the panel stands in a narrow side column so each floor gets the height */
@media (max-width: 1100px) and (max-height: 559px) and (orientation: landscape) {
  .am-lift__in { grid-template-columns: auto minmax(0, 1fr); align-items: start; column-gap: var(--s-6); }
  .am-lift__wall > :not(.am-lift__panel) { grid-column: 1 / -1; }
  .am-lift__panel { grid-column: 1; top: 72px; }
  .am-lift__panel ol { flex-direction: column; }
  .am-lift__btn { flex-direction: row; gap: 8px; text-align: start; }
  .am-lift__btn > span:last-child { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .am-lift__car { grid-column: 2; }
}

/* ============ Quality · the inspector's kit (guide p.70) ============
   Hero: on warm concrete (the guide's photo), the field-inspection card hangs from its glyph-pattern strap. It sways once
   on load and leans toward the pointer (--tilt, JS); "Flip" turns it to the quality policy on its navy back. */
.am-pass { position: relative; overflow: clip; isolation: isolate; padding-block-end: var(--s-9); color: var(--navy);
  background: linear-gradient(118deg, transparent 0 46%, rgb(32 57 74 / .07) 46% 63%, transparent 63%), radial-gradient(circle at 20% 30%, rgb(255 255 255 / .35), transparent 45%), #e6e0d5; }
.am-pass::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none; /* concrete grain */
  background: radial-gradient(circle, rgb(32 57 74 / .06) 1px, transparent 1.5px) 0 0 / 7px 7px, radial-gradient(circle, rgb(255 255 255 / .5) 1px, transparent 1.5px) 3px 4px / 11px 11px; }
.am-pass__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--s-8); align-items: start; }
.am-pass__copy { display: grid; gap: var(--s-5); justify-items: start; padding-block-start: var(--s-9); }
.am-pass__title { max-width: 14ch; font-size: clamp(2.1rem, 1.2rem + 2.6vw, 3.7rem); line-height: 1.08; }
.am-pass__title:lang(ar) { line-height: 1.35; }
.am-pass__lead { max-width: 44ch; font-size: var(--fs-md); color: var(--ink-soft); }

/* the lanyard: strap, clip, card; the whole thing swings from the strap's top */
.am-pass__hang { position: relative; display: grid; justify-items: center; margin: 0; transform-origin: 50% 0; rotate: var(--tilt, 0deg); transition: rotate .8s var(--ease); animation: am-sway 2.6s var(--ease) .4s both; }
.am-pass__strap { width: 54px; height: clamp(150px, 22vh, 230px); border-radius: 0 0 6px 6px; background: url(../img/patterns/glyph-tile.svg) 0 0 / 54px, var(--sky); box-shadow: inset -6px 0 8px -6px rgb(0 0 0 / .25); }
.am-pass__clip { position: relative; z-index: 2; width: 34px; height: 40px; margin-block-start: -8px; border-radius: 8px 8px 14px 14px; background: linear-gradient(90deg, #a7adb1, #eceeef 45%, #9aa0a4); box-shadow: inset 0 -4px 0 #7d8388, 0 4px 6px rgb(0 0 0 / .2); }
.am-pass__card { position: relative; width: min(84%, 330px); aspect-ratio: .68; margin-block-start: -6px; transform-style: preserve-3d; transition: transform .8s var(--ease); }
.am-pass__hang.is-flipped .am-pass__card { transform: rotateY(180deg); }
.am-pass__face { position: absolute; inset: 0; display: grid; border-radius: 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 34px 50px -26px rgb(20 30 40 / .6), 0 2px 0 rgb(255 255 255 / .35) inset; }
.am-pass__face::before { content: ""; position: absolute; inset-block-start: 14px; inset-inline-start: 50%; translate: calc(-50% * var(--dir)) 0; width: 40px; height: 10px; border-radius: 5px; background: #e6e0d5; box-shadow: inset 0 2px 3px rgb(0 0 0 / .35); } /* the slot */
.am-pass__face--front { grid-template-rows: 1fr auto auto; justify-items: center; padding: 48px 26px 22px; background: var(--sky); }
.am-pass__mark { width: 46%; height: auto; align-self: center; }
.am-pass__team { display: grid; gap: 2px; justify-items: center; margin-block: var(--s-4); text-align: center; font: 700 var(--fs-lg)/1.25 var(--font-head); }
.am-pass__team span { font-size: var(--fs-sm); font-weight: 600; opacity: .8; }
.am-pass__foot { justify-self: stretch; display: flex; justify-content: space-between; align-items: end; gap: var(--s-3); font-size: var(--fs-xs); line-height: 1.5; }
.am-pass__foot .am-num { font-family: var(--font-mono); font-weight: 700; }
.am-pass__foot img { width: 76px; height: auto; }
.am-pass__face--back { transform: rotateY(180deg); align-content: center; gap: var(--s-4); padding: 52px 28px 28px; overflow: hidden; isolation: isolate; color: var(--on-primary);
  background: url(../img/logo/mark-soft.svg) 50% 115% / 120% no-repeat, var(--navy); }
.am-pass__policy-title { font-size: var(--fs-xl); color: var(--sky); }
.am-pass__face--back p { font-size: var(--fs-md); line-height: 1.6; }
.am-pass__face--back img { width: 96px; height: auto; margin-block-start: var(--s-3); }
.am-pass__flip { position: relative; z-index: 3; margin-block-start: var(--s-5); display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 999px; background: var(--navy); color: var(--lemon); font: 700 var(--fs-sm) var(--font-head); cursor: pointer; box-shadow: 0 4px 0 #0c1922; transition: translate .15s var(--ease), box-shadow .15s var(--ease); }
.am-pass__flip:is(:hover, :focus-visible) { translate: 0 2px; box-shadow: 0 2px 0 #0c1922; }
.am-pass__flip span[aria-hidden] { font-size: 1.15em; }

@media (max-width: 899px) {
  .am-pass { padding-block-end: var(--s-8); }
  .am-pass__in { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .am-pass__copy { padding-block-start: var(--s-7); }
  .am-pass__hang { margin-block-start: var(--s-6); }
  .am-pass__strap { height: 90px; -webkit-mask: linear-gradient(transparent, #000 60%); mask: linear-gradient(transparent, #000 60%); } /* the strap rises out of view */
  .am-pass__card { width: min(78%, 300px); }
}

/* Quality · the inspection: three stations (the client's checks) on the same concrete, the inspector's sheet beside them
   (sticky). Markup is the finished state (no JS / reduced motion); JS resets it: .is-done per station, .is-ticked per
   sheet line, .is-passed on the sheet (the stamp). */
.am-inspect { position: relative; isolation: isolate; padding-block: var(--s-9); color: var(--navy); background: #e6e0d5; }
.am-inspect::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background: radial-gradient(circle, rgb(32 57 74 / .06) 1px, transparent 1.5px) 0 0 / 7px 7px, radial-gradient(circle, rgb(255 255 255 / .5) 1px, transparent 1.5px) 3px 4px / 11px 11px; }
.am-inspect__in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); grid-template-areas: "head head" "st sheet"; gap: var(--s-6) var(--s-8); align-items: start; }
.am-inspect__head { grid-area: head; display: grid; gap: var(--s-3); max-width: 60ch; }
.am-inspect__title { font-size: clamp(1.8rem, 1.1rem + 1.8vw, 2.8rem); }
.am-inspect__head p { font-size: var(--fs-md); color: var(--ink-soft); }

/* the sheet on its clipboard */
.am-sheet { grid-area: sheet; position: sticky; top: 100px; padding: 42px 22px 24px; border-radius: 6px; background: #fff; box-shadow: 0 20px 40px -22px rgb(0 0 0 / .45); rotate: calc(1.2deg * var(--dir)); }
.am-sheet::before { content: ""; position: absolute; inset-block-start: -12px; inset-inline-start: 50%; translate: calc(-50% * var(--dir)) 0; width: 120px; height: 28px; border-radius: 6px; background: linear-gradient(#d9dcde, #9ea4a8); box-shadow: 0 3px 0 #7d8388; }
.am-sheet__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-block-end: var(--s-3); font: 700 var(--fs-xs) var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.am-sheet__top b { color: var(--navy); }
.am-sheet__lines { margin: 0; padding: 0; list-style: none; }
.am-sheet__line { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding-block: 12px; border-block-end: 1px solid #e3e0d8; font-family: var(--font-head); }
.am-sheet__box { display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid var(--navy); border-radius: 4px; color: transparent; }
.am-sheet__box .am-icon { width: 16px; height: 16px; }
.am-sheet__line.is-ticked .am-sheet__box { color: var(--navy); background: var(--lemon); animation: am-tick .35s var(--ease); }
.am-sheet__val { font: 600 var(--fs-xs) var(--font-mono); color: var(--ink-soft); }
.am-sheet__sign { margin-block-start: var(--s-4); padding-block-start: var(--s-3); border-block-start: 1.5px dashed #c9c4b8; font-size: var(--fs-xs); color: var(--ink-soft); }
.am-sheet__sign .am-num { font-family: var(--font-mono); font-weight: 700; color: var(--navy); }
.am-sheet__stamp { position: absolute; inset-inline-end: 16px; inset-block-end: 18px; padding: 6px 12px; border: 3px solid #a9bd17; border-radius: 6px; color: #6f8410; font: 800 var(--fs-md) var(--font-mono); letter-spacing: .12em; rotate: -10deg; opacity: 0; pointer-events: none; }
.am-sheet.is-passed .am-sheet__stamp { opacity: .9; animation: am-stamp .45s cubic-bezier(.2, 1.4, .4, 1) both; }

/* stations */
.am-stations { grid-area: st; display: grid; gap: var(--s-5); }
.am-station { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 210px); grid-template-areas: "copy rig" "control rig" "read rig" "result rig"; gap: var(--s-3) var(--s-6); align-items: center; padding: var(--s-6); border-radius: 8px; background: #f7f4ee; box-shadow: 0 16px 30px -24px rgb(0 0 0 / .5); }
.am-station__copy { grid-area: copy; display: grid; gap: var(--s-2); }
.am-station__copy h3 { font-size: var(--fs-xl); }
.am-station__copy p { color: var(--ink-soft); }
.am-rig { grid-area: rig; width: 100%; height: auto; overflow: visible; }
.am-rig__body { fill: #eef1f2; stroke: var(--navy); stroke-width: 3; }
.am-rig__thread { stroke: var(--navy); stroke-width: 3; opacity: .35; }
.am-rig__cap { fill: var(--sky); stroke: var(--navy); stroke-width: 3; }
.am-rig text { font: 700 11px var(--font-mono); fill: var(--navy); }
/* the plate gauge: steel, two slots; GO (green) must slide over the neck, NO-GO (red) must stop on it */
.am-rig .am-goplate { transform: translate(var(--px, 60px), var(--py, 10px)); }
.am-goplate__body { fill: url(#am-steel); stroke: var(--navy); stroke-width: 2.5; stroke-linejoin: round; }
.am-goplate__brush { stroke: #fff; stroke-width: 1; opacity: .5; }
.am-rig .am-goplate__go, .am-rig .am-goplate__nogo { font: 800 15px var(--font-mono); text-anchor: middle; }
.am-goplate__edge { fill: none; stroke-width: 3.5; stroke-linejoin: round; }
.am-goplate__edge--go { stroke: #2d7a33; }
.am-goplate__edge--nogo { stroke: #b23a26; }
.am-station[data-station="dim"] { grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); }
.am-rig .am-goplate__go { fill: #2d7a33; }
.am-rig .am-goplate__nogo { fill: #b23a26; }
.am-goplate__stop { fill: none; stroke: #b23a26; stroke-width: 3; stroke-linecap: round; opacity: 0; transition: opacity .3s var(--ease); }
.am-station.is-done .am-goplate__stop { opacity: 1; }
.am-gauge__steps { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-family: var(--font-head); }
.am-gauge__step { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); opacity: .55; transition: opacity .3s var(--ease); }
.am-gauge__step b { min-width: 58px; padding: 2px 8px; border-radius: 4px; text-align: center; font: 800 11px var(--font-mono); color: #fff; }
.am-gauge__step--go b { background: #2d7a33; }
.am-gauge__step--nogo b { background: #b23a26; }
.am-gauge__step span::after { content: " ✓"; color: #55700d; visibility: hidden; }
.am-station.is-go .am-gauge__step--go, .am-station.is-done .am-gauge__step--nogo { opacity: 1; color: var(--navy); }
.am-station.is-go .am-gauge__step--go span::after, .am-station.is-done .am-gauge__step--nogo span::after { visibility: visible; }
.am-station[data-station="dim"] .am-station__read { display: grid; gap: 8px; align-items: start; }
.am-scale__bottle { transform: translateY(-48px); transition: transform .5s cubic-bezier(.4, 1.5, .5, 1); }
.am-station:is(.is-done, .is-placed) .am-scale__bottle { transform: none; }
.am-scale__pan { fill: #c4c8cb; stroke: var(--navy); stroke-width: 2; }
.am-scale__base { fill: #9aa0a4; stroke: var(--navy); stroke-width: 2; }
.am-scale__screen { fill: #0c1922; stroke: var(--navy); stroke-width: 2; }
.am-rig .am-scale__num { font: 700 14px var(--font-mono); fill: var(--lemon); text-anchor: end; }
.am-rig .am-scale__unit { font: 700 10px var(--font-mono); fill: var(--lemon); opacity: .8; }
.am-scale__lamp { fill: #3d4f5b; }
.am-rig .am-scale__stable { font: 700 7px var(--font-mono); fill: var(--lemon); letter-spacing: .06em; opacity: .25; }
.am-station:is(.is-done, .is-stable) .am-scale__lamp { fill: var(--lemon); filter: drop-shadow(0 0 3px var(--lemon)); }
.am-station:is(.is-done, .is-stable) .am-scale__stable { opacity: 1; }
.am-station.is-stable .am-scale__num { animation: am-settle .5s steps(2) 2; } /* a real display blinks the settled reading */
.am-dial__track, .am-dial__band { fill: none; stroke-width: 14; stroke-linecap: round; }
.am-dial__track { stroke: #d5d8da; }
.am-dial__band { stroke: #b6cb1a; }
.am-rig .am-dial__num { font-size: 10px; fill: var(--ink-soft); text-anchor: middle; dominant-baseline: middle; }
.am-dial__needle { stroke: var(--navy); stroke-width: 4; stroke-linecap: round; transform-box: view-box; transform-origin: 100px 130px; transform: rotate(calc(var(--t, 0) / 30 * 180deg - 90deg)); transition: transform .15s var(--ease); }
.am-dial__cap { fill: var(--sky); stroke: var(--navy); stroke-width: 4; stroke-dasharray: 5 4; transform-box: view-box; transform-origin: 100px 130px; transform: rotate(calc(var(--t, 0) * 12deg)); transition: transform .15s var(--ease); }
.am-rig .am-dial__unit { text-anchor: middle; fill: var(--ink-soft); }
.am-station__control { grid-area: control; display: grid; gap: 6px; font: 700 var(--fs-sm) var(--font-head); }
.am-station__control input { width: 100%; height: 30px; accent-color: var(--navy); cursor: grab; }
.am-station__btn { grid-area: control; justify-self: start; padding: 10px 16px; border: 0; border-radius: 6px; background: var(--lemon); color: var(--navy); font: 700 var(--fs-sm) var(--font-head); cursor: pointer; box-shadow: 0 4px 0 #a3b81c; transition: translate .15s var(--ease), box-shadow .15s var(--ease); }
.am-station__btn:is(:hover, :focus-visible) { translate: 0 2px; box-shadow: 0 2px 0 #a3b81c; }
.am-station__read { grid-area: read; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 600 var(--fs-xs) var(--font-mono); color: var(--ink-soft); }
.am-led { display: inline-block; min-width: 76px; padding: 3px 9px; border-radius: 4px; background: #0c1922; color: var(--lemon); font: 700 var(--fs-sm) var(--font-mono); text-align: center; text-shadow: 0 0 8px rgb(228 255 43 / .6); direction: ltr; unicode-bidi: isolate; }
.am-station__warn { color: var(--danger); font-family: var(--font-head); }
.am-station__result { grid-area: result; display: flex; align-items: center; gap: 6px; font: 700 var(--fs-sm) var(--font-head); color: #55700d; }
.am-station__result .am-icon { width: 18px; height: 18px; }
.am-station:not(.is-done) .am-station__result { visibility: hidden; }
.am-stations__note { font-size: var(--fs-xs); color: var(--ink-soft); }

/* materials: resin sample bags with their resin-code tags */
.am-samples { padding-block: var(--s-9); background: var(--paper); }
.am-samples__head { display: grid; gap: var(--s-3); max-width: 56ch; margin-block-end: var(--s-7); }
.am-samples__head h2 { font-size: clamp(1.8rem, 1.1rem + 1.8vw, 2.8rem); }
.am-samples__head p { font-size: var(--fs-md); color: var(--ink-soft); }
.am-samples__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); margin: 0; padding: 0; list-style: none; }
.am-resin { display: grid; gap: var(--s-2); }
.am-resin__pack { position: relative; display: block; width: min(100%, 250px); margin-block-end: var(--s-3); }
.am-resin__svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 16px 18px rgb(32 57 74 / .18)); }
.am-resin__film { fill: rgb(255 255 255 / .55); stroke: rgb(32 57 74 / .22); stroke-width: 2; }
.am-resin__pellets > * { stroke-width: .9; }
.am-resin--pet .am-resin__pellets { stroke: #a9bcc2; fill-opacity: .88; } /* glassy, milky */
.am-resin--hdpe .am-resin__pellets { stroke: #c8c1b3; }                  /* opaque white */
.am-resin--pp .am-resin__pellets { stroke: #bdb7a8; fill-opacity: .72; }  /* translucent */
.am-resin__sheen { fill: #fff; opacity: .35; }
.am-resin__zip { stroke: var(--navy); stroke-width: 4; }
.am-resin__tag { position: absolute; inset-block-start: 10%; inset-inline-end: -10px; display: grid; justify-items: center; gap: 2px; padding: 10px 12px 8px; border-radius: 4px; background: #fff; box-shadow: 0 6px 12px -6px rgb(0 0 0 / .4); rotate: calc(6deg * var(--dir)); }
.am-resin__tag svg { width: 46px; height: auto; }
.am-resin__tag path { fill: none; stroke: var(--navy); stroke-width: 5; stroke-linejoin: round; }
.am-resin__tag text { font: 800 26px var(--font-latin); fill: var(--navy); text-anchor: middle; }
.am-resin__tag b { font: 700 11px var(--font-mono); }
.am-resin__name { font: 700 var(--fs-xl) var(--font-latin); }
.am-resin p { color: var(--ink-soft); }
.am-samples__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5); margin-block-start: var(--s-8); padding: var(--s-6); border-radius: 8px; background: var(--navy); color: var(--on-primary); }
.am-samples__cta h2 { font-size: var(--fs-xl); }
.am-samples__cta p { max-width: 60ch; color: var(--on-primary-soft); }

@media (max-width: 899px) {
  .am-inspect { padding-block: var(--s-7); }
  .am-inspect__in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "sheet" "st"; gap: var(--s-5); }
  /* the sheet becomes a compact strip that stays under the header */
  .am-sheet { top: 68px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 12px; rotate: none; }
  .am-sheet__sign, .am-sheet__val { display: none; }
  .am-sheet::before { inset-inline: calc(-1 * var(--gutter)); inset-block: auto 100%; width: auto; height: 12px; translate: none; border-radius: 0; background: #e6e0d5; box-shadow: none; } /* covers the gap under the header */
  .am-sheet:not(.is-passed) .am-sheet__stamp { display: none; }
  .am-sheet__top { width: 100%; margin: 0; }
  .am-sheet__lines { display: flex; flex-wrap: wrap; gap: 4px 14px; }
  .am-sheet__line { grid-template-columns: 22px auto; gap: 6px; padding: 0; border: 0; font-size: var(--fs-sm); }
  .am-sheet__box { width: 20px; height: 20px; }
  .am-sheet__stamp { position: static; margin-inline-start: auto; padding: 2px 8px; font-size: 12px; rotate: -6deg; }
  .am-station { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "rig" "control" "read" "result"; padding: var(--s-5); }
  .am-rig { justify-self: center; max-width: 180px; }
  .am-samples { padding-block: var(--s-7); }
  .am-samples__list { grid-template-columns: minmax(0, 1fr); }
  .am-resin { grid-template-columns: 120px minmax(0, 1fr); grid-template-areas: "pack name" "pack text"; column-gap: var(--s-4); align-items: start; }
  .am-resin__pack { grid-area: pack; margin: 0; }
  .am-resin__name { grid-area: name; }
  .am-resin p { grid-area: text; }
  .am-resin__tag { inset-inline-end: -6px; padding: 6px 8px; }
  .am-resin__tag svg { width: 30px; }
}
.am-station.is-out .am-station__result { visibility: hidden; }
@media (max-width: 899px) { .am-station[data-station="dim"] { grid-template-columns: minmax(0, 1fr); } .am-station[data-station="dim"] .am-rig { max-width: 260px; } }
.am-station.is-blocked .am-goplate { animation: am-knock .45s var(--ease); } /* blocked: the plate knocks on the neck top */

/* ============ Sectors · the X-ray lens ============
   One industry at a time on a large stage (tabs, JS). Over the photo: the same photo as an X-ray (a faint negative, plus
   its edges traced by JS so they glow like a scan) and the pack's cut-away drawn in the photo's own pixels, all revealed
   inside a circle at --x/--y. When the lens centre reaches a numbered part it locks on and a readout names it. */
@property --x { syntax: "<length-percentage>"; inherits: true; initial-value: 50%; }
@property --y { syntax: "<length-percentage>"; inherits: true; initial-value: 50%; }
.am-xray { padding-block: var(--s-9); background: var(--navy); color: var(--on-primary); }
.am-xray__head { display: grid; gap: var(--s-4); justify-items: start; max-width: 64ch; margin-block-end: var(--s-6); }
.am-xray__title { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.5rem); line-height: 1.1; }
.am-xray__title:lang(ar) { line-height: 1.35; }
.am-xray__lead { font-size: var(--fs-md); color: var(--on-primary-soft); }
.am-xray__hint { display: inline-flex; align-items: center; gap: 10px; padding-block: 6px; padding-inline: 10px 14px; border-radius: 999px; background: #2b4658; font: 700 var(--fs-xs) var(--font-mono); color: var(--sky); }
.am-xray__hint span { width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--lemon); animation: am-pulse 1.6s ease-in-out infinite; }
.am-xray__tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-block-end: var(--s-5); }
html:not(.js) .am-xray__tabs { display: none; }
.am-xray__tabs button { padding: 10px 18px; border: 0; border-radius: 999px; background: #2b4658; color: var(--on-primary); font: 700 var(--fs-md) var(--font-head); cursor: pointer; box-shadow: 0 4px 0 #0c1922; transition: translate .15s var(--ease), box-shadow .15s var(--ease), background .2s; }
.am-xray__tabs button:is(:hover, :focus-visible) { translate: 0 2px; box-shadow: 0 2px 0 #0c1922; }
.am-xray__tabs button[aria-selected="true"] { background: var(--lemon); color: var(--navy); box-shadow: 0 4px 0 #a3b81c; }
.am-xray__panels { display: grid; gap: var(--s-8); }
.am-xcard { --r: clamp(96px, 10vw, 148px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); gap: var(--s-6); align-items: start; }
.am-xcard[hidden] { display: none; }
.am-xcard.is-gliding { transition: --x .6s var(--ease), --y .6s var(--ease); }
.am-xcard__frame { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 12px; background: #2b4658; cursor: crosshair; touch-action: pan-y; }
.am-xcard__photo, .am-xcard__inside img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos); }
.am-xcard__inside { position: absolute; inset: 0; clip-path: circle(var(--r) at var(--x) var(--y)); background: radial-gradient(circle at var(--x) var(--y), #1f5a78, #0b2433 72%); } /* the scan screen */
.am-xcard__neg { filter: grayscale(1) invert(1) contrast(1.5) brightness(1.2); mix-blend-mode: screen; opacity: .3; }
.am-xcard__edges { mix-blend-mode: screen; filter: drop-shadow(0 0 2px rgb(191 233 246 / .8)); }
.am-xcard__inside svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.am-xcard__inside svg :is(path, rect) { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.xr__line :is(path, rect) { stroke: #e6f8ff; stroke-width: 2.5; filter: drop-shadow(0 0 3px rgb(191 233 246 / .8)); }
.xr__ghost :is(path, rect) { stroke: #9fdcf0; stroke-width: 1.8; stroke-dasharray: 22 16; }
.xr__hot path { stroke: var(--lemon); stroke-width: 4; filter: drop-shadow(0 0 5px var(--lemon)); }
.xr__mark circle { fill: var(--lemon); }
.xr__mark text { fill: var(--navy); font-family: var(--font-mono); font-weight: 800; text-anchor: middle; dominant-baseline: central; }
.xr__mark.is-found circle { fill: #fff; filter: drop-shadow(0 0 8px var(--lemon)); }
.am-xcard__ring { position: absolute; left: var(--x); top: var(--y); width: calc(var(--r) * 2); aspect-ratio: 1; translate: -50% -50%; overflow: hidden; border: 4px solid var(--lemon); border-radius: 50%; box-shadow: 0 0 0 1px rgb(12 25 34 / .4), 0 0 26px rgb(228 255 43 / .45); pointer-events: none; transition: border-color .2s, box-shadow .2s; }
.am-xcard__ring::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 12px; height: 12px; translate: -50% -50%; border-radius: 50%; border: 2px solid rgb(228 255 43 / .8); }
.am-xcard__ring i { position: absolute; inset-inline: 0; top: 4%; height: 2px; background: linear-gradient(90deg, transparent, #d9f4fc 30% 70%, transparent); box-shadow: 0 0 10px #bfe9f6; animation: am-scan 2.4s linear infinite; } /* the scan line */
.am-xcard.is-locked .am-xcard__ring { border-color: #fff; box-shadow: 0 0 0 4px var(--lemon), 0 0 40px var(--lemon); animation: am-lock .45s var(--ease); }
.am-xcard__read { position: absolute; z-index: 2; left: calc(var(--x) + var(--r) + 14px); top: var(--y); translate: 0 -50%; display: grid; gap: 2px; max-width: 250px; margin: 0; padding: 10px 14px; border-radius: 6px; background: var(--lemon); color: var(--navy); text-align: start; box-shadow: 0 10px 22px -12px rgb(0 0 0 / .6); opacity: 0; transition: opacity .2s; pointer-events: none; }
.am-xcard.is-flip .am-xcard__read { left: auto; right: calc(100% - var(--x) + var(--r) + 14px); }
.am-xcard.is-locked .am-xcard__read { opacity: 1; }
.am-xcard__read b { font: 700 var(--fs-md)/1.3 var(--font-head); }
.am-xcard__read span { font-size: var(--fs-sm); line-height: 1.45; }
.am-xcard__name { position: absolute; inset-inline-start: 12px; bottom: 12px; padding: 6px 14px; border-radius: 4px; background: var(--paper); color: var(--navy); font: 700 var(--fs-lg) var(--font-head); }
.am-xcard__side { display: grid; gap: var(--s-4); }
.am-xcard__side-h { font: 700 var(--fs-xs) var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--sky); }
.am-xcard__parts { display: grid; gap: var(--s-3); margin: 0; padding: 0; list-style: none; counter-reset: part; }
.am-xcard__parts li { position: relative; display: grid; gap: 2px; padding: var(--s-3) var(--s-4); padding-inline-start: 50px; border-radius: 8px; background: #2b4658; counter-increment: part; color: var(--on-primary-soft); font-size: var(--fs-sm); cursor: pointer; transition: background .2s, box-shadow .2s; }
.am-xcard__parts li::before { content: counter(part); position: absolute; inset-inline-start: 14px; top: 14px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--lemon); color: var(--navy); font: 800 12px var(--font-mono); }
.am-xcard__parts b { color: var(--on-primary); font: 700 var(--fs-md) var(--font-head); }
.am-xcard__parts li:is(:hover, :focus-visible, .is-found) { background: #34566b; box-shadow: inset 4px 0 0 var(--lemon); }
@media (max-width: 899px) {
  .am-xray { padding-block: var(--s-7); }
  .am-xcard { --r: 92px; grid-template-columns: minmax(0, 1fr); }
  .am-xcard__frame { aspect-ratio: 1; }
  .am-xcard__read, .am-xcard.is-flip .am-xcard__read { left: 12px; right: 12px; top: 12px; translate: none; max-width: none; }
  .am-xcard__name { font-size: var(--fs-md); }
}

/* Sectors · the per-industry link, and the closing: an empty scan of a blank bottle ("what will we find in yours?") */
.am-xcard__more { justify-self: start; color: var(--lemon); }
.am-xnext { padding-block: var(--s-9); background: var(--paper); color: var(--navy); }
.am-xnext__in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: var(--s-8); align-items: center; }
.am-xnext__copy { display: grid; gap: var(--s-4); justify-items: start; max-width: 52ch; }
.am-xnext__copy h2 { font-size: clamp(1.8rem, 1.1rem + 1.8vw, 2.8rem); }
.am-xnext__copy p { font-size: var(--fs-md); color: var(--ink-soft); }
.am-xnext__scan { display: grid; justify-items: center; gap: var(--s-3); margin: 0; }
.am-xnext__scan svg { width: min(100%, 300px); height: auto; }
.am-xnext__screen { fill: #143a50; }
.am-xnext__bottle { fill: none; stroke: #bfe9f6; stroke-width: 3; stroke-dasharray: 10 8; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgb(191 233 246 / .7)); }
.am-xnext__q { font: 800 64px var(--font-latin); fill: var(--lemon); text-anchor: middle; }
.am-xnext__ring { fill: none; stroke: var(--lemon); stroke-width: 7; filter: drop-shadow(0 0 10px rgb(228 255 43 / .5)); }
.am-xnext__scan figcaption { font: 700 var(--fs-sm) var(--font-mono); color: var(--ink-soft); }
@media (max-width: 899px) { .am-xnext { padding-block: var(--s-7); } .am-xnext__in { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); } .am-xnext__scan { order: -1; } .am-xnext__scan svg { width: 200px; } }

/* Products · the shape index: giant capacities on lemon over a wall of the packs' own silhouettes */
.am-prods { background: var(--paper); color: var(--navy); padding-block: var(--s-6) var(--s-9); }
.am-prods__head { display: grid; gap: var(--s-4); justify-items: start; max-width: 62ch; margin-block: var(--s-5) var(--s-7); }
.am-prods__title { font-size: clamp(2.6rem, 1.3rem + 4.6vw, 5.6rem); line-height: .98; letter-spacing: -.02em; }
.am-prods__title:lang(ar) { line-height: 1.3; letter-spacing: 0; }
.am-prods__lead { font-size: var(--fs-md); color: var(--ink-soft); }
.am-sizes { background: var(--lemon); border-block: 3px solid var(--navy); }
.am-sizes__in { display: flex; align-items: stretch; }
.am-sizes__label { flex: none; display: grid; place-items: center; margin: 0; padding-inline: var(--s-4); border-inline: 3px solid var(--navy); font: 700 var(--fs-xs) var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.am-sizes__list { flex: 1; display: flex; min-width: 0; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.am-sizes__list li { flex: 1 0 auto; border-inline-end: 3px solid var(--navy); scroll-snap-align: start; }
.am-sizes__n { display: flex; height: 100%; align-items: baseline; justify-content: center; gap: .12em; padding: 14px 18px 8px; color: var(--navy); text-decoration: none;
  font: 800 clamp(2.2rem, 1rem + 3vw, 4.1rem)/1 var(--font-latin); letter-spacing: -.045em; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.am-sizes__n small { font: 700 var(--fs-sm) var(--font-mono); letter-spacing: 0; }
.am-sizes__n--all { align-items: center; font: 700 var(--fs-md)/1.1 var(--font-head); letter-spacing: 0; white-space: nowrap; }
.am-sizes__n:is(:hover, :focus-visible, .is-lit) { background: var(--navy); color: var(--lemon); }
.am-sizes__n[aria-current] { background: var(--navy); color: var(--lemon); box-shadow: inset 0 -8px 0 var(--sky); }
.am-sizes__n:focus-visible { outline: 3px solid var(--focus); outline-offset: -6px; }
.am-prods__bar { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; justify-content: space-between; margin-block: var(--s-6) var(--s-4); }
.am-prods__types { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.am-prods__count { margin: 0; font: 700 var(--fs-sm) var(--font-mono); }
.am-prods__empty { display: grid; gap: var(--s-3); justify-items: start; padding: var(--s-7); background: #fff; border: 3px dashed var(--navy); }
.am-shapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.am-shapes > li { min-width: 0; }
.am-shape { aspect-ratio: 1 / 1.1; transition: opacity .3s var(--ease); }
.am-shape--c0 { background: var(--navy); --ink: var(--lemon); color: #fff; }
.am-shape--c1 { background: var(--lemon); --ink: var(--navy); color: var(--navy); }
.am-shape--c2 { background: var(--sky); --ink: var(--paper); color: var(--navy); }
.am-shape--c3 { background: #fff; --ink: var(--sky); color: var(--navy); }
.am-shape.is-dim { opacity: .22; }
.am-shapes__more { grid-column: span var(--span4); display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; justify-items: start; gap: var(--s-3); padding: var(--s-6); border: 3px dashed var(--navy); }
.am-shapes__more h2 { font-size: clamp(1.5rem, 1rem + 1.4vw, 2.2rem); }
.am-shapes__more p { max-width: 44ch; color: var(--ink-soft); }
.am-shapes__more { container-type: inline-size; }
/* a half-width cell on phones: title and button only */
@container (max-width: 260px) { .am-shapes__more h2 { font-size: 1.15rem; } .am-shapes__more .am-btn { max-width: 100%; white-space: normal; } .am-shapes__more p { display: none; } .am-shapes__more .am-btn { padding-inline: var(--s-3); } .am-shapes__more .am-btn__cell { display: none; } /* no room for the arrow tile */ }
.am-shape__link { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 100%; padding: var(--s-4); color: inherit; text-decoration: none; overflow: hidden; }
.am-shape__link:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
/* the capacity, tone on tone behind the shape */
.am-shape__n { position: absolute; inset-block-start: 4px; inset-inline-start: 12px; display: flex; align-items: baseline; gap: .1em; color: var(--ink); opacity: .3;
  font: 800 clamp(3rem, 1rem + 5vw, 6.8rem)/.9 var(--font-latin); letter-spacing: -.05em; transition: opacity .3s var(--ease); }
.am-shape__n small { font: 700 var(--fs-sm) var(--font-mono); letter-spacing: 0; }
.am-shape__word { font: 800 clamp(1.4rem, .9rem + 1.4vw, 2.2rem)/1 var(--font-head); letter-spacing: 0; }
.am-shape__art { position: relative; width: 100%; height: 100%; padding-block-start: 22%; overflow: visible; transform-origin: 50% 100%; transition: transform .4s cubic-bezier(.3, 1.4, .5, 1); }
.am-shape__fill { fill: var(--ink); transition: opacity .3s var(--ease); }
.am-shape__photo { opacity: 0; transition: opacity .3s var(--ease); }
.am-shape__foot { display: flex; justify-content: space-between; align-items: end; gap: var(--s-2); padding-block-start: var(--s-3); }
.am-shape__foot b { font: 700 var(--fs-sm)/1.25 var(--font-head); }
.am-shape__foot span { flex: none; font: 700 var(--fs-xs) var(--font-mono); text-align: end; }
/* hover / focus: the real pack shows inside its own shape, which tips a little; the capacity comes forward */
.am-shape__link:is(:hover, :focus-visible) .am-shape__fill { opacity: 0; }
.am-shape__link:is(:hover, :focus-visible) .am-shape__photo { opacity: 1; }
.am-shape__link:is(:hover, :focus-visible) .am-shape__n { opacity: 1; }
.am-shape__link:is(:hover, :focus-visible) .am-shape__art { transform: rotate(-3deg) scale(1.04); }
@media (max-width: 1023px) {
  .am-shapes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .am-shapes__more { grid-column: span var(--span3); }
  .am-shape__foot { flex-direction: column; align-items: start; gap: 2px; }
  .am-shape__foot span { text-align: start; }
}
@media (max-width: 639px) {
  .am-shapes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .am-shapes__more { grid-column: span var(--span2); padding: var(--s-4); }
  .am-shape__link { padding: var(--s-3); }
  .am-shape__foot { flex-direction: column; align-items: start; gap: 2px; }
  .am-shape__foot span { text-align: start; }
  .am-sizes__in { padding-inline: 0; }
  .am-sizes__label { display: none; }
}

/* Product · the carton label: the page is the side of a kraft carton, the product card its printed label */
.am-carton { --kraft: #B98F5C; position: relative; overflow: hidden; color: var(--navy); padding-block: var(--s-5) var(--s-9);
  background: repeating-linear-gradient(90deg, rgb(0 0 0 / .045) 0 3px, transparent 3px 7px), var(--kraft); }
/* the mark, printed big on the carton in one dark ink */
.am-carton::before { content: ""; position: absolute; inset-block-start: 8%; inset-inline-end: -6%; width: min(46vw, 640px); aspect-ratio: 1; background: url(../img/logo/mark-navy.svg) center / contain no-repeat; opacity: .07; mix-blend-mode: multiply; pointer-events: none; }
.am-carton .am-wrap { position: relative; }
.am-carton .am-crumbs a, .am-carton .am-crumbs span { color: #2a1d0c; }
.am-carton__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--s-8); align-items: center; margin-block-start: var(--s-6); }
.am-carton__copy { order: 2; display: grid; gap: var(--s-4); justify-items: start; }
.am-carton__title { font-size: clamp(2.2rem, 1.2rem + 3vw, 4rem); line-height: 1.02; }
.am-carton__title:lang(ar) { line-height: 1.3; }
.am-carton__lead { font-size: var(--fs-md); color: #2a1d0c; max-width: 48ch; }
.am-carton__sizes { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.am-carton__sizes > span { font: 700 var(--fs-xs) var(--font-mono); text-transform: uppercase; margin-inline-end: var(--s-2); }
.am-carton__acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-6); margin-block-start: var(--s-2); }
.am-carton__acts .am-link { color: var(--navy); }
/* the label */
.am-label { margin: 0; display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 3px solid var(--navy); rotate: -1.2deg;
  box-shadow: 0 1px 0 rgb(0 0 0 / .2), 10px 12px 0 rgb(42 29 12 / .22); }
.am-label__top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: 10px 16px; background: var(--navy); color: #fff; font: 700 11px var(--font-mono); letter-spacing: .06em; }
.am-label__top img { height: 26px; width: auto; }
.am-label__cap { grid-column: 1 / -1; display: flex; align-items: baseline; gap: .12em; margin: 0; padding: 14px 16px 4px; border-block-end: 3px solid var(--navy);
  font: 800 clamp(4.5rem, 2rem + 7vw, 9rem)/.86 var(--font-latin); letter-spacing: -.05em; }
.am-label__cap small { font: 700 var(--fs-md) var(--font-mono); letter-spacing: 0; }
.am-label__word { font: 800 clamp(2.4rem, 1.4rem + 3vw, 4rem)/1.1 var(--font-head); letter-spacing: 0; padding-block: 10px; }
.am-label__grid { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.am-label__grid > div { padding: 10px 16px; border-block-end: 1px solid var(--navy); }
.am-label__grid > div:nth-child(odd) { border-inline-end: 1px solid var(--navy); }
.am-label__grid dt { font: 700 12px var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.am-label__grid dd { margin: 2px 0 0; font: 700 var(--fs-sm)/1.35 var(--font-mono); }
.am-label__ph { aspect-ratio: 1; padding: 14px; border-inline-end: 1px solid var(--navy); }
.am-label__ph svg { width: 100%; height: 100%; }
.am-label__code { display: grid; align-content: end; gap: 10px; padding: 16px; font: 700 11px var(--font-mono); overflow-wrap: anywhere; }
.am-label__marks { display: flex; gap: 10px; margin-block-end: auto; }
.am-label__marks svg { width: 46px; height: 46px; padding: 4px; border: 2px solid var(--navy); fill: none; stroke: var(--navy); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.am-label__bars { width: 100%; height: 72px; fill: var(--navy); }
@media (max-width: 899px) {
  .am-carton__in { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .am-carton__copy { order: 0; }
  .am-carton::before { inset-block-start: auto; inset-block-end: -4%; width: 80vw; }
  .am-label { rotate: -.6deg; }
}
@media (max-width: 479px) { .am-label__top span { display: none; } .am-label__grid > div, .am-label__cap { padding-inline: 12px; } }

/* Product · about this pack, and the packing list in its clear pouch */
.am-pack { padding-block: var(--s-9); background: var(--paper); color: var(--navy); }
.am-pack__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); align-items: start; }
.am-pack__text { display: grid; gap: var(--s-4); max-width: 54ch; }
.am-pack__text h2 { font-size: clamp(1.8rem, 1.1rem + 1.8vw, 2.8rem); }
.am-pack__text p { font-size: var(--fs-md); color: var(--ink-soft); }
.am-pouch { position: relative; padding: 14px; background: linear-gradient(135deg, rgb(255 255 255 / .55), rgb(214 230 236 / .45)); border: 2px solid rgb(32 57 74 / .25); border-radius: 6px; rotate: .8deg;
  box-shadow: inset 0 0 0 6px rgb(255 255 255 / .35), 6px 8px 0 rgb(32 57 74 / .1); }
.am-pouch__strip { margin: -14px -14px 12px; padding: 8px 14px; background: var(--navy); color: #fff; font: 700 11px var(--font-mono); letter-spacing: .08em; border-radius: 4px 4px 0 0; }
.am-pouch__slip { background: #fff; padding: var(--s-5); box-shadow: 0 1px 3px rgb(0 0 0 / .12); display: grid; gap: var(--s-4); }
.am-pouch__slip h3 { font: 800 var(--fs-md) var(--font-mono); text-transform: uppercase; letter-spacing: .06em; padding-block-end: var(--s-2); border-block-end: 3px solid var(--navy); }
.am-pouch__slip dl { margin: 0; display: grid; }
.am-pouch__slip dl > div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--s-3); padding-block: 10px; border-block-end: 1px dashed rgb(32 57 74 / .4); }
.am-pouch__slip dt { font: 700 var(--fs-xs) var(--font-mono); text-transform: uppercase; letter-spacing: .06em; padding-block-start: 3px; }
.am-pouch__slip dd { margin: 0; }
.am-pouch__slip ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.am-pouch__slip li { display: flex; gap: 10px; align-items: baseline; font-weight: 600; }
/* a tick reads the same in both directions, so its borders are physical */
.am-pouch__slip li::before { content: ""; flex: none; width: 11px; height: 6px; border-left: 2.5px solid var(--navy); border-bottom: 2.5px solid var(--navy); rotate: -45deg; translate: 0 -3px; }
.am-pouch__order { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-2) var(--s-4); align-items: center; }
.am-pouch__order p { margin: 0; color: var(--ink-soft); }
.am-pouch__order p b { color: var(--navy); }
.am-pouch__order .am-link { grid-column: 2; justify-self: start; }
.am-pouch__stamp { grid-row: span 2; display: grid; place-items: center; width: 92px; aspect-ratio: 1; border: 3px solid var(--navy); border-radius: 50%; color: var(--navy); rotate: -14deg;
  font: 800 12px/1.15 var(--font-mono); text-transform: uppercase; text-align: center; padding: 8px; box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px var(--navy); opacity: .8; }
/* Product · more of the same type, as small carton labels */
.am-more { padding-block: var(--s-8); color: var(--navy); background: repeating-linear-gradient(90deg, rgb(0 0 0 / .045) 0 3px, transparent 3px 7px), #B98F5C; }
.am-more .am-wrap { display: grid; gap: var(--s-5); justify-items: start; }
.am-more__title { font-size: clamp(1.6rem, 1rem + 1.6vw, 2.4rem); }
.am-more__row { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); margin: 0; padding: 0; list-style: none; }
.am-minilabel { display: grid; grid-template-rows: auto auto 1fr auto; height: 100%; background: #fff; border: 2px solid var(--navy); color: var(--navy); text-decoration: none; box-shadow: 6px 7px 0 rgb(42 29 12 / .22); transition: translate var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.am-more__row li:nth-child(odd) .am-minilabel { rotate: -1deg; }
.am-more__row li:nth-child(even) .am-minilabel { rotate: .8deg; }
.am-minilabel:is(:hover, :focus-visible) { translate: 0 -4px; box-shadow: 8px 11px 0 rgb(42 29 12 / .25); }
.am-minilabel:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.am-minilabel__top { display: flex; align-items: center; gap: 6px; padding: 6px 10px; background: var(--navy); color: #fff; font: 700 9px var(--font-mono); letter-spacing: .06em; overflow: hidden; white-space: nowrap; }
.am-minilabel__top img { flex: none; }
.am-minilabel__cap { display: flex; align-items: baseline; gap: .1em; padding: 8px 10px 4px; border-block-end: 2px solid var(--navy); font: 800 clamp(2rem, 1.2rem + 1.8vw, 3rem)/.9 var(--font-latin); letter-spacing: -.04em; }
.am-minilabel__cap small { font: 700 var(--fs-xs) var(--font-mono); letter-spacing: 0; }
.am-minilabel__word { font: 800 var(--fs-md)/1.2 var(--font-head); letter-spacing: 0; padding-block: 6px; }
.am-minilabel__ph { width: 100%; height: 160px; padding: 10px; }
.am-minilabel__name { padding: 8px 10px; border-block-start: 1px solid var(--navy); font: 700 var(--fs-sm)/1.3 var(--font-head); }
@media (max-width: 899px) {
  .am-pack { padding-block: var(--s-7); }
  .am-pack__in { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .am-more__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
}
@media (max-width: 479px) { .am-pouch__slip { padding: var(--s-4); } .am-pouch__slip dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; } .am-pouch__stamp { width: 76px; font-size: 10px; } .am-minilabel__ph { height: 120px; } .am-minilabel__top { white-space: normal; overflow-wrap: anywhere; line-height: 1.3; } }

/* Catalogue · the two bags (guide p.44): the catalogues handed over in the brand's bags, on lemon */
.am-bags { background: var(--lemon); color: var(--navy); padding-block: var(--s-5) var(--s-9); overflow: hidden; }
.am-bags__head { display: grid; gap: var(--s-4); justify-items: start; max-width: 60ch; margin-block: var(--s-5) var(--s-7); }
.am-bags__title { font-size: clamp(2.4rem, 1.3rem + 3.6vw, 4.6rem); line-height: 1; }
.am-bags__title:lang(ar) { line-height: 1.3; }
.am-bags__lead { font-size: var(--fs-md); }
/* desktop: the title beside the bags, so the whole scene is in view */
@media (min-width: 1024px) {
  .am-bags .am-wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); column-gap: var(--s-7); align-items: center; }
  .am-bags .am-crumbs { grid-column: 1 / -1; }
  .am-bags__head { grid-column: 1; margin-block-end: 0; }
  .am-bags__row { grid-column: 2; grid-row: 2 / span 2; }
  .am-bags .am-bags__hint, .am-bags .am-bags__acts { grid-column: 1; justify-content: start; text-align: start; margin-block-start: var(--s-5); }
  .am-bag { width: min(22vw, 300px); }
}
.am-bags__row { display: flex; justify-content: center; gap: clamp(16px, 7vw, 110px); }
.am-bag { position: relative; display: grid; width: min(42vw, 360px); padding-block-start: 140px; color: inherit; text-decoration: none; }
.am-bag:focus-visible { outline: 3px solid var(--navy); outline-offset: 8px; }
/* the handle loops around the catalogue's top, in front of it */
.am-bag__handle { position: absolute; inset-block-start: 10px; inset-inline-start: 17%; z-index: 2; width: 66%; height: 130px; border: 7px solid #4A4338; border-block-end: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
/* the catalogue, standing in the bag: a third of it shows; it slides up on hover or focus */
.am-bag__doc { position: absolute; inset-inline: 26%; inset-block-start: 140px; z-index: 1; translate: 0 -34%; transition: translate .5s cubic-bezier(.3, 1.4, .5, 1); }
.am-bag:is(:hover, :focus-visible) .am-bag__doc { translate: 0 -64%; }
.am-bag__cover { position: relative; display: grid; align-content: space-between; aspect-ratio: 210 / 297; padding: 12%; overflow: hidden; box-shadow: 0 -2px 0 rgb(0 0 0 / .08), 0 6px 18px rgb(0 0 0 / .18); font-size: clamp(13px, 1.5vw, 20px); }
.am-bag__cover img { position: relative; width: 72%; }
.am-bag__cover b { position: relative; font: 800 1.1em/1.15 var(--font-head); }
.am-bag__cover i { position: absolute; inset-inline-end: -30%; inset-block-end: -18%; width: 90%; aspect-ratio: 1; background: center / contain no-repeat; }
.am-bag--navy .am-bag__cover { background: var(--sky); color: var(--navy); }
.am-bag--navy .am-bag__cover i { background-image: url(../img/logo/mark-navy.svg); }
.am-bag--sky .am-bag__cover { background: var(--navy); color: #fff; }
.am-bag--sky .am-bag__cover i { background-image: url(../img/logo/mark-lemon.svg); }
.am-bag__body { position: relative; z-index: 1; display: grid; place-items: center; aspect-ratio: 360 / 430; overflow: hidden; transition: translate .3s var(--ease); }
.am-bag:is(:hover, :focus-visible) .am-bag__body { translate: 0 4px; }
.am-bag--navy .am-bag__body { background: #3A5B6C; }
.am-bag--navy .am-bag__body::before { content: ""; position: absolute; inset: -12% -46%; background: url(../img/logo/mark-navy.svg) center / contain no-repeat; }
.am-bag--navy .am-bag__body img { position: relative; width: 56%; }
.am-bag--sky .am-bag__body { background: var(--sky); align-content: end; padding: 8%; }
/* the bag's tear line, cut from small rounded notches */
.am-bag--sky .am-bag__body::before { content: ""; position: absolute; inset-inline: 0; inset-block-start: 68%; height: 12px;
  background: radial-gradient(circle at 50% 0, #5D98AB 5px, transparent 6px) 0 0 / 30px 12px repeat-x; }
.am-bag--sky .am-bag__body img { width: 100%; }
.am-bag__tag { position: absolute; inset-block-start: 112px; inset-inline-end: -8%; z-index: 3; rotate: 7deg; display: grid; background: #fff; border: 2px solid var(--navy); padding: 6px 12px 8px; box-shadow: 3px 4px 0 rgb(32 57 74 / .25); font: 700 12px/1.35 var(--font-mono); transform-origin: 50% 0; transition: rotate .4s var(--ease); }
.am-bag__tag b { font: 800 var(--fs-md)/1.2 var(--font-head); }
.am-bag:is(:hover, :focus-visible) .am-bag__tag { rotate: 2deg; }
.am-bags__hint { margin-block-start: var(--s-6); text-align: center; font: 700 var(--fs-sm) var(--font-mono); }
/* no catalogue yet: the bags hang empty, folded flat */
.am-bags.is-empty .am-bag__body { aspect-ratio: 360 / 400; filter: saturate(.75); }
.am-bags.is-empty .am-bag__body::after { content: ""; position: absolute; inset-inline: 0; inset-block-start: 50%; height: 2px; background: rgb(0 0 0 / .18); box-shadow: 0 2px 0 rgb(255 255 255 / .2); }
.am-bags__acts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s-4) var(--s-6); margin-block-start: var(--s-7); }
.am-bags__acts .am-link { color: var(--navy); }
@media (max-width: 639px) {
  .am-bag { padding-block-start: 100px; }
  .am-bag__handle { inset-block-start: 6px; height: 94px; border-width: 5px; }
  .am-bag__doc { inset-block-start: 100px; }
  /* small screens: a small tag on the bag's top corner, clear of the catalogue */
  .am-bag__tag { inset-block-start: 112px; inset-inline-end: -4px; rotate: 5deg; padding: 3px 7px 5px; font-size: 9px; line-height: 1.3; }
  .am-bag__tag b { font-size: 13px; }
}

/* Catalogue · what's inside: the contents page, one chapter per type, a dotted leader to its count */
.am-toc { padding-block: var(--s-9); background: var(--paper); color: var(--navy); }
.am-toc__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--s-8); align-items: start; }
.am-toc__head { display: grid; gap: var(--s-3); }
.am-toc__head h2 { font-size: clamp(1.8rem, 1.1rem + 1.8vw, 2.8rem); }
.am-toc__head p { font-size: var(--fs-md); color: var(--ink-soft); max-width: 40ch; }
.am-toc__list { margin: 0; padding: 0; list-style: none; border-block-start: 3px solid var(--navy); }
.am-toc__list a { display: flex; align-items: baseline; gap: var(--s-3); padding-block: var(--s-4); border-block-end: 1px solid rgb(32 57 74 / .25); color: inherit; text-decoration: none; }
.am-toc__n { flex: none; width: 2.6em; font: 800 var(--fs-lg)/1 var(--font-latin); color: var(--sky); transition: color var(--dur) var(--ease); }
.am-toc__name { font: 700 var(--fs-md)/1.3 var(--font-head); }
.am-toc__dots { flex: 1; min-width: 24px; translate: 0 -4px; border-block-end: 3px dotted rgb(32 57 74 / .35); }
.am-toc__count { flex: none; font: 700 var(--fs-sm) var(--font-mono); }
.am-toc__list .am-icon { flex: none; align-self: center; width: 24px; height: 24px; padding: 4px; border-radius: 4px; border-end-end-radius: 10px; background: var(--lemon); transition: translate var(--dur) var(--ease); }
.am-toc__list a:is(:hover, :focus-visible) .am-toc__n { color: var(--navy); }
.am-toc__list a:is(:hover, :focus-visible) .am-icon { translate: 4px 0; }
[dir="rtl"] .am-toc__list a:is(:hover, :focus-visible) .am-icon { translate: -4px 0; }
.am-toc__list a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 899px) { .am-toc { padding-block: var(--s-7); } .am-toc__in { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); } }
@media (max-width: 479px) { .am-toc__n { width: 2em; } .am-toc__dots { display: none; } .am-toc__count { margin-inline-start: auto; } }

/* Gallery · the poster wall: the title and every photo as the guide's "Since 1997" posters, framed on concrete */
/* concrete: a fine grain, and warm late sun falling across the wall as in the guide's poster photo */
.am-wall { padding-block: var(--s-5) var(--s-9); color: var(--navy);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 220px, linear-gradient(118deg, transparent 8%, rgb(255 236 200 / .22) 22%, rgb(255 236 200 / .08) 40%, transparent 52%, rgb(0 0 0 / .14) 92%), #8C8D8C; background-blend-mode: soft-light, normal, normal; }
.am-wall .am-crumbs a, .am-wall .am-crumbs span { color: #1a2730; }
.am-wall__albums { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-5) 0 0; padding: 0; list-style: none; }
.am-wall__posters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-7) var(--s-5); margin: var(--s-7) 0 0; padding: 0; list-style: none; align-items: start; }
/* hung by eye: every other frame a little lower */
.am-poster:nth-child(4n+2), .am-poster:nth-child(4n+4) { margin-block-start: var(--s-6); }
.am-poster__sheet { position: relative; transform-origin: 50% 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; aspect-ratio: 3 / 4; border: 10px solid #1D2B35; color: var(--navy); text-decoration: none; overflow: hidden;
  background: linear-gradient(160deg, #F4F7E8, #DFF55A 70%, #C9EF2B); box-shadow: 8px 14px 20px rgb(0 0 0 / .32); transition: translate .3s var(--ease), box-shadow .3s var(--ease); }
a.am-poster__sheet { transition: translate .3s var(--ease), rotate .5s cubic-bezier(.3, 1.6, .5, 1), box-shadow .3s var(--ease); }
a.am-poster__sheet:is(:hover, :focus-visible) { translate: 0 -6px; rotate: -1.2deg; box-shadow: 10px 20px 26px rgb(0 0 0 / .36); }
.am-poster__sheet::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(112deg, transparent 35%, rgb(255 255 255 / .38) 48%, transparent 60%) no-repeat; background-size: 250% 100%; background-position: 110% 0; transition: background-position .8s var(--ease); }
a.am-poster__sheet:is(:hover, :focus-visible)::after { background-position: -40% 0; }
a.am-poster__sheet:focus-visible { outline: 3px solid var(--lemon); outline-offset: 4px; }
.am-poster__sheet > img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.am-poster__band { display: grid; gap: 4px; padding: 10px 12px 12px; }
.am-poster__band b { font: 800 var(--fs-sm)/1.25 var(--font-head); }
.am-poster__band > span { display: flex; justify-content: space-between; gap: 8px; font: 700 12px var(--font-mono); text-transform: uppercase; letter-spacing: .04em; }
/* the title poster: the 1997 poster itself */
.am-poster--title .am-poster__sheet { grid-template-rows: auto 1fr auto auto; gap: var(--s-2); padding: var(--s-5); }
.am-poster__logo { width: 62%; height: auto; }
.am-poster__h { align-self: end; font-size: clamp(1.9rem, 1rem + 2.2vw, 3rem); line-height: 1; }
.am-poster__h:lang(ar) { line-height: 1.3; }
.am-poster__since { margin: 0; font: 800 var(--fs-md)/1 var(--font-latin); letter-spacing: -.01em; }
.am-poster__since span { display: block; font-size: clamp(3rem, 1.6rem + 3.4vw, 5rem); letter-spacing: -.05em; }
.am-poster--title .am-glyphrow { --g: 14px; }
/* desktop: the title poster two frames wide, one high: logo and title on one side, SINCE 1997 on the other */
@media (min-width: 1024px) {
  .am-poster--title { grid-column: span 2; align-self: stretch; }
  .am-poster--title .am-poster__sheet { height: 100%; aspect-ratio: auto; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto; column-gap: var(--s-5); padding: var(--s-6); }
  .am-poster--title .am-poster__logo { grid-area: 1 / 1; width: min(100%, 240px); }
  .am-poster--title .am-poster__h { grid-area: 2 / 1; font-size: clamp(2.4rem, 1.2rem + 2.4vw, 3.8rem); }
  .am-poster--title .am-poster__since { grid-area: 1 / 2 / 3 / 3; align-self: end; text-align: end; font-size: var(--fs-lg); }
  .am-poster--title .am-poster__since span { font-size: clamp(5rem, 2.6rem + 5vw, 8.5rem); }
  .am-poster--title .am-glyphrow { grid-area: 3 / 1 / 4 / 3; margin-block-start: var(--s-4); }
  .am-poster:nth-child(n) { margin-block-start: 0; }
  .am-poster:nth-child(even) { margin-block-start: var(--s-5); }
}
.am-poster--empty .am-poster__sheet { grid-template-rows: auto; align-content: center; gap: var(--s-3); padding: var(--s-5); background: rgb(255 255 255 / .55); border-style: dashed; border-color: rgb(29 43 53 / .6); box-shadow: none; }
.am-poster--empty b { font: 800 var(--fs-lg)/1.2 var(--font-head); }
.am-wall .am-pager { margin-block-start: var(--s-8); }
/* brand-only posters between the photos (F9), from the guide's poster walls: the gallon's outline behind the lockup
   on lemon (posters-1997), or the sky lockup on dark navy glass (posters-dark) */
.am-poster--brand .am-poster__sheet { grid-template-rows: 1fr; place-items: center; }
.am-poster__gallon { position: absolute; inset: 10% 12% 0; width: 76%; height: 90%; fill: none; stroke: var(--navy); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; opacity: .9; }
.am-poster__sheet > .am-poster__lockup { position: relative; width: 56%; height: auto; min-height: 0; align-self: end; margin-block-end: 30%; object-fit: contain; }
.am-poster--dark .am-poster__sheet { background: radial-gradient(70% 45% at 40% 30%, rgb(160 205 225 / .35), transparent 70%), linear-gradient(170deg, #2C4E63, #0E1B24 75%); }
.am-poster--dark .am-poster__sheet > .am-poster__lockup { align-self: center; margin: 0; }
/* while another album loads in */
[data-gallery] .am-wall__posters { transition: opacity .2s var(--ease); }
[data-gallery][aria-busy="true"] .am-wall__posters { opacity: .4; }
/* the viewer */
.am-viewer { width: min(92vw, 1100px); max-height: 92vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.am-viewer::backdrop { background: rgb(20 30 38 / .88); }
.am-viewer__poster { margin: 0; display: grid; border: 12px solid #1D2B35; background: linear-gradient(160deg, #F4F7E8, #DFF55A 70%, #C9EF2B); color: var(--navy); }
.am-viewer__poster img { width: 100%; max-height: calc(92vh - 120px); object-fit: contain; background: #111; }
.am-viewer__poster figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-4); padding: 12px 16px; }
.am-viewer__poster figcaption b { font: 800 var(--fs-md)/1.3 var(--font-head); }
.am-viewer__poster figcaption span { font: 700 var(--fs-xs) var(--font-mono); text-transform: uppercase; align-self: center; }
.am-viewer__btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: var(--cell-r); border-end-end-radius: 18px; background: var(--lemon); color: var(--navy); cursor: pointer; }
.am-viewer__btn .am-icon { width: 24px; height: 24px; }
.am-viewer__btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.am-viewer__btn--prev { inset-inline-start: -70px; inset-block-start: calc(50% - 26px); }
.am-viewer__btn--next { inset-inline-end: -70px; inset-block-start: calc(50% - 26px); }
.am-viewer__btn--close { inset-inline-end: 22px; inset-block-start: 22px; background: #fff; box-shadow: 0 2px 8px rgb(0 0 0 / .3); }
@media (max-width: 1023px) { .am-wall__posters { grid-template-columns: repeat(3, minmax(0, 1fr)); } .am-poster:nth-child(n) { margin-block-start: 0; } .am-poster:nth-child(3n+2) { margin-block-start: var(--s-5); } }
@media (max-width: 639px) {
  .am-wall__posters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-3); }
  .am-poster:nth-child(n) { margin-block-start: 0; } .am-poster:nth-child(2n) { margin-block-start: var(--s-5); }
  .am-poster--title { grid-column: 1 / -1; } .am-poster--title .am-poster__sheet { aspect-ratio: auto; } .am-poster__logo { width: 44%; }
  .am-poster__sheet { border-width: 6px; }
  .am-poster--empty .am-poster__sheet { aspect-ratio: auto; } /* grows to fit its text */
  .am-viewer__btn--prev, .am-viewer__btn--next { inset-block-start: auto; inset-block-end: -66px; }
  .am-viewer__btn--prev { inset-inline-start: 0; } .am-viewer__btn--next { inset-inline-end: 0; }
}

/* News · the roll: headlines on the guide's brand tape (p.60); tap or click a strip and its department letter (p.58)
   unfolds under it. ui.js [data-roll] toggles .is-open. */
.am-desk { background: var(--sky); color: var(--navy); padding-block: var(--s-5) var(--s-9); overflow: hidden; }
.am-desk .am-crumbs { color: var(--navy); }
.am-desk__head { display: grid; gap: var(--s-3); margin-block: var(--s-6) var(--s-7); }
.am-desk__title { margin: 0; font: 800 clamp(2.6rem, 1.2rem + 5vw, 5.6rem)/1 var(--font-head); letter-spacing: -.02em; }
.am-desk__lead { margin: 0; max-width: 46ch; font-size: var(--fs-md); }

.am-roll__item, .am-open, :where(.am-open__strips li) { --tape: var(--lemon); --tape-ink: var(--navy); --top: var(--lemon); --top-ink: var(--navy); --band: var(--navy); --band-ink: var(--lemon); }
.am-roll__item--d1 { --tape: var(--navy); --tape-ink: var(--sky); --top: var(--navy); --top-ink: var(--sky); --band: var(--sky); --band-ink: var(--navy); }
.am-roll__item--d2 { --tape: #939596; --tape-ink: #14232d; --top: #939596; --top-ink: var(--lemon); --band: var(--lemon); --band-ink: var(--navy); }
.am-roll__item--d3 { --tape: var(--paper); --tape-ink: var(--navy); --top: var(--sky); --top-ink: var(--navy); --band: var(--navy); --band-ink: var(--sky); }

/* a strip of tape: torn ends, stuck down a little askew; the shadow sits on the heading (the strip is clipped) */
.am-roll__h { margin: 0; filter: drop-shadow(0 6px 6px rgb(10 30 45 / .28)); transition: margin var(--dur) var(--ease); }
.am-strip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-4); padding: 14px var(--s-5); background: var(--tape); color: var(--tape-ink); text-decoration: none; rotate: -.7deg;
  clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 17%, 100% 34%, calc(100% - 7px) 50%, 100% 67%, calc(100% - 7px) 84%, 100% 100%, 0 100%, 7px 84%, 0 67%, 7px 50%, 0 34%, 7px 17%);
  transition: rotate var(--dur) var(--ease), translate var(--dur) var(--ease); }
.am-roll__item:nth-child(even) .am-strip { rotate: .6deg; }
.am-roll__item:nth-child(3n) .am-strip { rotate: -.3deg; }
.am-strip__logo { height: 22px; width: auto; opacity: .9; }
.am-strip__text { display: grid; gap: 2px; }
.am-strip__text time { justify-self: start; font: 700 var(--fs-xs) var(--font-mono); opacity: .85; }
.am-strip__text > span { font: 800 clamp(1.1rem, .85rem + .8vw, 1.5rem)/1.2 var(--font-head); }
.am-strip__go { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 4px; border-end-end-radius: 14px; background: var(--tape-ink); color: var(--tape); }
.am-strip__go .am-icon { width: 20px; height: 20px; }
.am-strip:focus-visible { outline: 3px solid var(--focus); outline-offset: -5px; }
.am-roll__item.is-open .am-strip { rotate: 0deg; }

/* the letter */
.am-letter { position: relative; display: grid; background: #f4f4f2; color: var(--navy); box-shadow: 0 26px 36px -24px rgb(10 30 45 / .65); }
.am-lh { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 10px var(--s-5); background: var(--top, var(--lemon)); color: var(--top-ink, var(--navy)); font: 700 11px var(--font-latin); }
.am-lh img { height: 26px; width: auto; }
.am-lh [lang="ar"] { font-family: var(--font-arabic); font-size: 12px; }
.am-lh__dept { display: flex; align-items: center; justify-content: center; gap: var(--s-2); margin: 0; padding: 6px; background: var(--band); color: var(--band-ink); font: 700 var(--fs-xs) var(--font-mono); letter-spacing: .22em; text-transform: uppercase; }
.am-lh__dept .am-icon { width: 16px; height: 16px; }
.am-lh__foot { display: flex; justify-content: space-between; align-items: end; gap: var(--s-3); margin: 0; min-height: 56px; padding: 0 var(--s-5) 8px; font: 700 10px var(--font-mono); color: var(--navy);
  background: linear-gradient(#f4f4f2cc, #f4f4f2cc), url(../img/patterns/glyph-tile.svg) 0 0 / 40px; }
.am-letter__body { display: grid; gap: var(--s-4); align-content: start; padding: var(--s-5) var(--s-6) var(--s-6); }
.am-letter__ref { display: flex; justify-content: space-between; gap: var(--s-3); margin: 0; font: 700 var(--fs-xs) var(--font-mono); color: var(--ink-soft); }
.am-letter__subject { margin: 0; font: 800 clamp(1.5rem, 1rem + 1.4vw, 2.2rem)/1.15 var(--font-head); }
.am-letter__photo { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.am-letter__ex { margin: 0; }
.am-letter__more { justify-self: start; }
.am-letter__more::after { content: ""; position: absolute; inset: 0; } /* the whole letter opens the story */

/* a tap or click unfolds the letter under its strip (one open at a time) */
.am-roll { display: grid; gap: var(--s-5); }
.am-roll__h { position: relative; z-index: 1; }
.am-roll__fold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.am-roll__fold > .am-letter { min-height: 0; overflow: hidden; margin: -6px var(--s-3) 0; visibility: hidden; transition: visibility 0s .35s; }
.am-roll__item.is-open .am-roll__fold { grid-template-rows: 1fr; }
.am-roll__item.is-open .am-roll__fold > .am-letter { visibility: visible; transition-delay: 0s; }
.am-letter__subject[aria-hidden] { display: none; } /* the strip above already says it */
.am-strip__go .am-icon { rotate: 90deg; transition: rotate var(--dur) var(--ease); }
.am-roll__item.is-open .am-strip__go .am-icon { rotate: -90deg; }
[dir="rtl"] .am-strip__go .am-icon { rotate: -90deg; } [dir="rtl"] .am-roll__item.is-open .am-strip__go .am-icon { rotate: 90deg; } /* .am-flip mirrors it */
.am-roll__item { scroll-margin-block-start: 96px; } /* clears the sticky header when a tap brings it into view */
.am-roll--empty { justify-items: center; }
.am-roll--empty .am-letter { width: min(100%, 560px); rotate: -.8deg; }
.am-desk .am-pager { margin-block-start: var(--s-8); }

/* side by side: strips on one side, the tray's pile on the other; the open letter lies on top */
/* wide screens: the same unfolding, the strips a readable width, the letter laid out photo beside text */
@media (min-width: 1024px) {
  .am-roll:not(.am-roll--empty) { max-width: 1080px; gap: var(--s-6); }
  .am-roll__item:nth-child(3n+2) { margin-inline-start: var(--s-6); }
  .am-roll__item:nth-child(3n) { margin-inline-start: var(--s-3); }
  .am-strip { padding-block: 18px; }
  .am-strip__text > span { font-size: clamp(1.4rem, .9rem + .9vw, 1.9rem); }
  .am-roll__fold > .am-letter { margin-inline: var(--s-7); }
  .am-letter__body { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "ref ref" "photo ex" "photo more"; grid-template-rows: auto auto 1fr; align-items: start; gap: var(--s-3) var(--s-6); padding: var(--s-5) var(--s-6) var(--s-6); }
  .am-letter__body > .am-letter__ref { grid-area: ref; } .am-letter__photo { grid-area: photo; aspect-ratio: 4 / 3; } .am-letter__ex { grid-area: ex; font-size: var(--fs-md); } .am-letter__more { grid-area: more; }
}
/* pointing at a strip lifts it a little: it can be pulled */
@media (hover: hover) {
  .am-strip:hover { rotate: 0deg; translate: 0 -3px; }
  .am-roll__item:not(.is-open) .am-strip:hover .am-strip__go .am-icon { translate: 0 2px; }
}
@media (max-width: 479px) {
  .am-strip { gap: var(--s-3); padding-inline: var(--s-4); } .am-strip__logo { display: none; } .am-strip { grid-template-columns: minmax(0, 1fr) auto; }
  .am-lh { padding-inline: var(--s-3); font-size: 9px; } .am-lh [lang="ar"] { font-size: 10px; } .am-lh img { height: 20px; }
  .am-letter__body { padding: var(--s-4); }
}
@media (prefers-reduced-motion: reduce) { .am-roll__fold, .am-roll__fold > .am-letter, .am-strip, .am-roll__h { transition: none; } }

/* News item: the strip as the heading, the letter opened in full under it, the other strips below */
.am-open { max-width: 1080px; margin-block-start: var(--s-6); }
.am-open__h { margin: 0; position: relative; z-index: 1; filter: drop-shadow(0 6px 6px rgb(10 30 45 / .28)); }
.am-open__h .am-strip { rotate: -.6deg; padding-block: 20px; }
.am-open__h .am-strip__text > span { font-size: clamp(1.6rem, 1rem + 2.2vw, 3rem); line-height: 1.1; }
.am-open__h .am-strip__text time { font-size: var(--fs-sm); }
.am-open__letter { margin: -6px var(--s-3) 0; }
.am-open__body { display: grid; gap: var(--s-5); padding: var(--s-6) var(--s-6) var(--s-7); }
.am-open__body > :not(.am-letter__ref, .am-open__photo) { max-width: 68ch; }
.am-open__to { display: grid; gap: var(--s-1); margin: 0; font: 700 var(--fs-sm) var(--font-mono); }
.am-open__to div { display: flex; gap: var(--s-2); }
.am-open__to dt::after { content: ":"; }
.am-open__to dd { margin: 0; font-weight: 400; }
.am-open__photo { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.am-open__lead { margin: 0; font: 700 var(--fs-lg)/1.45 var(--font-head); }
.am-open__text { display: grid; gap: var(--s-3); font-size: var(--fs-md); line-height: var(--lh-body); }
.am-open__text :is(p, ul, h2) { margin: 0; }
.am-open__text h2 { margin-block-start: var(--s-4); font: 800 var(--fs-xl)/1.2 var(--font-head); }
.am-open__text ul { display: grid; gap: var(--s-2); padding: 0; list-style: none; }
.am-open__text li { position: relative; padding-inline-start: 1.6em; }
.am-open__text li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .55em; width: .6em; height: .6em; border-radius: 2px; border-end-end-radius: 6px; background: var(--navy); }
.am-open__sign { display: flex; align-items: center; gap: var(--s-4); margin: var(--s-4) 0 0; font: 700 var(--fs-md) var(--font-head); }
.am-open__sign img { width: 64px; height: auto; rotate: -8deg; opacity: .9; }
.am-open__more { max-width: 1080px; margin-block-start: var(--s-9); }
.am-open__more-h { margin: 0 0 var(--s-5); font: 800 var(--fs-xl) var(--font-head); }
.am-open__strips { display: grid; gap: var(--s-4); margin: 0; padding: 0; list-style: none; filter: drop-shadow(0 6px 6px rgb(10 30 45 / .28)); }
.am-open__strips li:nth-child(even) .am-strip { rotate: .6deg; }
.am-open__strips li .am-strip .am-strip__go .am-icon { rotate: none; }
.am-open__strips .am-strip:hover .am-strip__go .am-icon { translate: 3px 0; }
[dir="rtl"] .am-open__strips .am-strip:hover .am-strip__go .am-icon { translate: -3px 0; }
@media (min-width: 1024px) { .am-open__letter { margin-inline: var(--s-7); } .am-open__body { padding: var(--s-7) var(--s-8) var(--s-8); } }
@media (max-width: 479px) { .am-open__body { padding: var(--s-5) var(--s-4) var(--s-6); } .am-open__h .am-strip { grid-template-columns: minmax(0, 1fr); } }

/* Quote · the letter and the envelope (guide p.67): the form is a letter written by filling in its blanks; the brand
   envelope beside it fills in live and is sealed and postmarked on sending. ui.js [data-letter]. */
.am-post { background: var(--paper); color: var(--navy); padding-block: var(--s-5) var(--s-9); overflow: hidden; }
.am-post__head { display: grid; gap: var(--s-3); margin-block: var(--s-6) var(--s-7); }
.am-post__title { margin: 0; font: 800 clamp(2.4rem, 1.2rem + 4.4vw, 5rem)/1.02 var(--font-head); letter-spacing: -.02em; }
.am-post__lead { margin: 0; max-width: 52ch; font-size: var(--fs-md); }
.am-post__desk { scroll-margin-block-start: 90px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: "note env"; gap: var(--s-8); align-items: start; }

/* the letter */
.am-note { grid-area: note; position: relative; display: grid; gap: var(--s-4); padding: var(--s-7) var(--s-7) var(--s-6); background: #fff; box-shadow: 0 26px 40px -28px rgb(10 30 45 / .5); font-size: var(--fs-lg); line-height: 2.1; }
.am-note[hidden] { display: none; }
.am-note p { margin: 0; }
.am-note__to { font: 700 var(--fs-sm)/1.5 var(--font-mono); }
.am-note__to span { opacity: .7; }
.am-note__dear { font: 800 var(--fs-xl)/1.3 var(--font-head); }
.am-note__sign { line-height: 1.5; }
.am-note__sign span.is-ph { color: #8a99a3; font-weight: 400; }
.am-note__sign span { display: inline-block; margin-block-start: var(--s-1); font: 800 var(--fs-xl) var(--font-head); }
.am-note__alert { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-3) var(--s-4); background: #FFF1EF; border-inline-start: 4px solid var(--danger); color: var(--danger); font: 700 var(--fs-sm)/1.4 var(--font-head); }
.am-note__alert[hidden] { display: none; }
.am-note__alert .am-icon { width: 20px; height: 20px; flex: none; }

/* a blank: an inline field on a dotted line, growing with what's written */
.am-blank { display: inline-grid; vertical-align: baseline; max-width: 100%; }
.am-blank__in { min-inline-size: 9ch; max-inline-size: 100%; field-sizing: content; padding: 0 4px; border: 0; border-block-end: 2px dashed var(--navy); border-radius: 0; background: transparent; color: var(--navy); font: 700 1em/1.6 var(--font-head); }
.am-blank__in::placeholder { color: #8a99a3; font-weight: 400; }
.am-blank__in:focus { outline: 0; border-block-end-style: solid; background: rgb(228 255 43 / .45); }
.am-blank--wide, .am-blank--wide .am-blank__in { inline-size: 100%; }
.am-blank--pick .am-blank__in { padding-inline-end: 26px; appearance: none; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2320394A' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 2px center / 18px; }
[dir="rtl"] .am-blank--pick .am-blank__in { background-position: left 2px center; }
.am-blank--pick .am-blank__in:focus { background-color: rgb(228 255 43 / .45); }
.am-blank.has-error .am-blank__in { border-block-end-color: var(--danger); border-block-end-style: solid; background-color: #FFF1EF; }
.am-blank__err { display: flex; align-items: center; gap: 4px; font: 700 var(--fs-xs)/1.3 var(--font-head); color: var(--danger); }
.am-blank__err .am-icon { width: 14px; height: 14px; flex: none; }
.am-note__packs { display: grid; margin: 0; padding: 0; list-style: none; }
.am-qline { position: relative; padding-inline-end: 44px; }
.am-qline__other { margin-block-start: -.2em; }
.am-qline__other[hidden] { display: none; }
.am-qline__x { position: absolute; inset-inline-end: 0; top: .55em; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 2px solid var(--navy); border-radius: 50%; background: transparent; color: var(--navy); cursor: pointer; }
.am-qline__x .am-icon { width: 16px; height: 16px; }
.am-qline__x:hover { background: var(--lemon); }
.am-qline__x:focus-visible, .am-note__add:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.am-qline + .am-qline { animation: am-qline-in .3s var(--ease); }
@keyframes am-qline-in { from { opacity: 0; translate: 0 -8px; } }
.am-note__add { justify-self: start; display: inline-flex; align-items: center; gap: var(--s-2); margin-block-start: calc(-1 * var(--s-2)); padding: 6px 14px; border: 2px dashed var(--navy); border-radius: 6px; border-end-end-radius: 16px; background: transparent; color: var(--navy); font: 700 var(--fs-sm)/1.3 var(--font-head); cursor: pointer; }
.am-note__add[hidden] { display: none; }
.am-note__add .am-icon { width: 18px; height: 18px; }
.am-note__add:hover { background: var(--lemon); border-style: solid; }
.am-note__attach { position: relative; display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-sm); line-height: 1.4; cursor: pointer; }
.am-note__attach small { opacity: .7; }
.am-note__file { position: absolute; width: 1px; height: 1px; opacity: 0; }
.am-note__clip { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 5px; border-end-end-radius: 16px; background: var(--navy); color: var(--lemon); }
.am-note__clip .am-icon { width: 20px; height: 20px; }
.am-note__attach:hover b, .am-note__attach.has-file b { text-decoration: underline; text-underline-offset: 3px; }
.am-note__attach:focus-within .am-note__clip { outline: 3px solid var(--focus); outline-offset: 2px; }
.am-note__attach.has-file .am-note__clip { background: var(--lemon); color: var(--navy); }
.am-note__more { display: grid; gap: var(--s-1); font: 700 var(--fs-sm)/1.4 var(--font-head); }
.am-note__more small { font-weight: 400; opacity: .7; }
.am-note__area { inline-size: 100%; min-block-size: 6.4em; resize: vertical; padding: 0 4px; border: 0; color: var(--navy); font: 400 var(--fs-md)/2em var(--font-body);
  background: repeating-linear-gradient(transparent 0 calc(2em - 1px), rgb(32 57 74 / .25) calc(2em - 1px) 2em) 0 0 / 100% 2em local; }
.am-note__area:focus { outline: 0; background-color: rgb(228 255 43 / .25); }
.am-note__send { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-block-start: var(--s-3); line-height: 1.4; }
.am-note__privacy { font-size: var(--fs-sm); opacity: .75; }

/* the envelope */
.am-env { grid-area: env; position: sticky; top: 110px; padding-block-start: 36%; perspective: 1100px; }
.am-env__face { position: relative; z-index: 2; aspect-ratio: 23 / 16; border-radius: 4px; background: var(--sky); box-shadow: 0 28px 40px -26px rgb(10 30 45 / .6); overflow: hidden; }
.am-env__face::before { content: ""; position: absolute; inset: 0; background: url(../img/patterns/glyphs-navy.svg) 0 0 / 110px; opacity: .1; }
/* the open flap stands up behind the envelope; the letter stands in its mouth */
.am-env__flap { position: absolute; z-index: 0; inset-inline: 0; top: 36%; height: 46%; margin-block-start: 0; transform-origin: 50% 0; transform: rotateX(180deg); background: var(--navy); clip-path: polygon(0 0, 100% 0, 50% 100%); border-radius: 4px; transition: transform .5s var(--ease) .45s; }
.am-env__sheet { position: absolute; z-index: 1; inset-inline: 9%; top: 14%; height: 40%; display: grid; align-content: start; gap: 9px; padding: 16px 18px; background: #fff; box-shadow: 0 -2px 10px rgb(0 0 0 / .08); transition: translate .45s var(--ease); }
.am-env__sheet i { display: block; height: 6px; border-radius: 3px; background: #dfe5e8; }
.am-env__sheet i:nth-child(2) { width: 80%; } .am-env__sheet i:nth-child(3) { width: 90%; } .am-env__sheet i:nth-child(4) { width: 55%; }
.am-env__tear { position: absolute; inset-inline: 0; top: 54%; border-block-start: 3px dashed rgb(32 57 74 / .4); }
.am-env__win { position: absolute; z-index: 1; inset-inline-start: 8%; bottom: 12%; width: 54%; min-height: 4.6em; padding: 10px 14px; border-radius: 4px; background: #fff; font: 700 var(--fs-sm)/1.5 var(--font-mono); overflow-wrap: anywhere; }
.am-env__win b { opacity: .6; }
.am-env__win [data-letter-out="location"]:not(:empty)::before { content: "· "; }
.am-env__to { position: absolute; z-index: 1; inset-inline-start: 8%; top: 12%; max-width: 50%; font: 700 11px/1.5 var(--font-mono); }
.am-env__to b { opacity: .6; }
.am-env__logo { position: absolute; z-index: 1; inset-inline-end: 7%; bottom: 12%; width: 26%; height: auto; }
/* the postage stamp: the pack you chose, with a perforated edge */
.am-env__stamps { position: absolute; z-index: 1; inset-inline-end: 7%; top: 10%; width: 21%; aspect-ratio: 4 / 5; }
.am-env__stamp { position: absolute; inset: 0; padding: 6px; background: #fff; rotate: 4deg;
  background: radial-gradient(circle, var(--sky) 3px, transparent 3.5px) -5px -5px / 10px 10px, #fff; box-shadow: 0 2px 4px rgb(0 0 0 / .12); }
.am-env__stamp img { width: 100%; height: 100%; object-fit: cover; background: var(--paper); }
.am-env__stamp img[src$=".svg"] { object-fit: contain; padding: 18%; }
.am-env__stamp:nth-child(2) { translate: -46% 10%; rotate: -5deg; z-index: -1; }
.am-env__stamp:nth-child(3) { translate: -90% 2%; rotate: 2deg; z-index: -2; }
[dir="rtl"] .am-env__stamp:nth-child(2) { translate: 46% 10%; } [dir="rtl"] .am-env__stamp:nth-child(3) { translate: 90% 2%; }
.am-env__more { position: absolute; inset-inline-start: -14%; bottom: -10%; display: grid; place-items: center; min-width: 2.2em; height: 2.2em; padding-inline: 6px; border-radius: 1.1em; background: var(--navy); color: var(--lemon); font: 700 var(--fs-xs) var(--font-mono); }
.am-env__stamp.is-new { animation: am-restick .4s var(--ease); }
@keyframes am-restick { 40% { scale: 1.12; rotate: -2deg; } }
/* the postmark, stamped when sent */
.am-env__mark { position: absolute; z-index: 3; inset-inline-end: 20%; top: 18%; display: grid; place-items: center; align-content: center; width: 30%; aspect-ratio: 1; border: 3px solid var(--navy); border-radius: 50%; color: var(--navy); font: 700 var(--fs-xs)/1.35 var(--font-mono); text-align: center; rotate: -14deg; opacity: 0; scale: 1.6; transition: opacity .2s 1s, scale .3s cubic-bezier(.3, 1.6, .5, 1) 1s; }
.am-env__mark b { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .08em; }
.is-sending .am-env__sheet, .is-sealed .am-env__sheet { translate: 0 100%; }
.is-sealed .am-env__sheet { visibility: hidden; }
.is-sealed .am-env { padding-block-start: 0; }
.is-sending .am-env__flap, .is-sealed .am-env__flap { transform: rotateX(0deg); }
.is-sending .am-env__mark, .is-sealed .am-env__mark { opacity: .9; scale: 1; }
.is-sealed .am-env__sheet, .is-sealed .am-env__flap, .is-sealed .am-env__mark { transition: none; }

/* sent */
.am-post__done { grid-area: note; align-self: center; display: grid; gap: var(--s-4); }
.am-post__done[hidden] { display: none; }
.am-post__done-h { margin: 0; font: 800 clamp(1.8rem, 1.2rem + 2vw, 2.8rem)/1.1 var(--font-head); }
.am-post__done p { margin: 0; font-size: var(--fs-md); max-width: 46ch; }
.am-post__acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-6); }

@media (max-width: 1023px) {
  .am-post__desk { grid-template-columns: minmax(0, 1fr); grid-template-areas: "note" "env"; gap: var(--s-7); }
  .am-env { position: relative; top: 0; max-width: 560px; justify-self: center; width: 100%; }
  .is-sealed .am-post__desk { grid-template-areas: "env" "note"; }
}
@media (max-width: 639px) {
  .am-note { padding: var(--s-5) var(--s-4); font-size: var(--fs-md); line-height: 2.2; }
  .am-env__to { display: none; } .am-env__win { font-size: 11px; width: 60%; } .am-env__mark { width: 36%; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { .am-env__flap, .am-env__sheet, .am-env__mark { transition: none; } .am-env__stamp.is-new { animation: none; } }

/* Contact · the exchange of cards (guide p.59): Al-Ameen's card turns over to every way to reach us; a blank card is
   yours to fill in and leave; once sent it lands on ours. ui.js [data-cards]. */
.am-cards { position: relative; background: var(--navy); color: #fff; padding-block: var(--s-5) var(--s-9); overflow: hidden; isolation: isolate; }
/* the card front, blown up into the page: the mark tone on tone */
.am-cards::before { content: ""; position: absolute; z-index: -1; inset-block-start: -18%; inset-inline-end: -22%; width: min(1100px, 90vw); aspect-ratio: 1; background: url(../img/logo/mark-soft.svg) center / contain no-repeat; opacity: .55; }
.am-cards .am-crumbs { color: var(--sky); }
.am-cards__head { display: grid; gap: var(--s-3); margin-block: var(--s-6) var(--s-8); }
.am-cards__title { margin: 0; font: 800 clamp(2.6rem, 1.2rem + 5vw, 5.6rem)/1 var(--font-head); letter-spacing: -.02em; color: var(--lemon); }
.am-cards__lead { margin: 0; max-width: 44ch; font-size: var(--fs-md); color: #dfeaf0; }
.am-cards__table { scroll-margin-block-start: 110px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "ours yours"; gap: var(--s-8); align-items: start; }

/* our card */
.am-bcard { grid-area: ours; position: relative; display: grid; gap: var(--s-4); justify-items: center; perspective: 1600px; }
.am-bcard__in { position: relative; width: 100%; aspect-ratio: 85 / 52; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.3, 1.25, .4, 1); rotate: -2deg; }
.am-bcard.is-turned .am-bcard__in, .am-bcard:focus-within .am-bcard__in { transform: rotateY(180deg); }
@media (hover: hover) { .am-bcard:hover .am-bcard__in { transform: rotateY(180deg); } }
.am-bcard__front, .am-bcard__back { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 6px; box-shadow: 0 40px 50px -30px rgb(0 0 0 / .7); }
.am-bcard__front { display: grid; place-items: center; overflow: hidden; background: #26425a; }
.am-bcard__front::before { content: ""; position: absolute; inset: -40%; background: url(../img/logo/mark-soft.svg) center / 100% no-repeat; opacity: .7; }
.am-bcard__front img { position: relative; width: 44%; height: auto; }
.am-bcard__back { transform: rotateY(180deg); display: grid; align-content: space-between; gap: var(--s-2); padding: 6% 7%; background: var(--sky); color: var(--navy); font-style: normal; }
.am-bcard__name { margin: 0; font: 800 clamp(1.2rem, .8rem + 1.1vw, 1.8rem)/1.1 var(--font-head); }
.am-bcard__ways { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.am-bcard__ways a { display: flex; align-items: baseline; gap: var(--s-3); padding-block: 3px; color: inherit; text-decoration: none; }
.am-bcard__ways span { flex: none; width: 5.5em; font: 700 var(--fs-xs) var(--font-mono); text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.am-bcard__ways b { font: 700 clamp(.85rem, .7rem + .4vw, 1.05rem)/1.3 var(--font-latin); overflow-wrap: anywhere; }
.am-bcard__ways a:hover b, .am-bcard__ways a:focus-visible b { text-decoration: underline; text-underline-offset: 3px; }
.am-bcard__ways a:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.am-bcard__hours { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s-3); margin: 0; font: 700 var(--fs-xs)/1.3 var(--font-mono); padding-inline-end: 28%; }
.am-bcard__hours b { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 4px; background: var(--navy); color: #fff; }
.am-bcard__hours b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9aa6ad; }
.am-bcard__hours.is-open b { color: var(--lemon); }
.am-bcard__hours.is-open b::before { background: var(--lemon); box-shadow: 0 0 8px var(--lemon); }
.am-bcard__logo { position: absolute; inset-inline-end: 7%; bottom: 8%; width: 22%; height: auto; }
.am-bcard__turn { display: inline-flex; align-items: center; gap: var(--s-2); padding: 6px 12px; border: 2px solid var(--sky); border-radius: 999px; background: transparent; color: var(--sky); font: 700 var(--fs-sm) var(--font-head); cursor: pointer; }
.am-bcard__turn .am-icon { width: 16px; height: 16px; rotate: 90deg; transition: rotate .5s var(--ease); }
.am-bcard.is-turned .am-bcard__turn .am-icon { rotate: -90deg; }
.am-bcard__turn:hover { background: var(--sky); color: var(--navy); }
.am-bcard__turn:focus-visible { outline: 3px solid var(--lemon); outline-offset: 2px; }

/* your card: white, the same format; the note on a second card, its back */
.am-yours__form { grid-area: yours; display: grid; gap: var(--s-4); }
.am-yours__form[hidden] { display: none; }
.am-yours { position: relative; display: grid; align-content: start; gap: var(--s-2); padding: 7% 7% 6%; border-radius: 6px; background: #fbfaf6; color: var(--navy); box-shadow: 0 30px 40px -26px rgb(0 0 0 / .6); }
.am-yours--front { aspect-ratio: 85 / 52; rotate: 1.5deg; }
.am-yours--back { margin-block-start: calc(-1 * var(--s-2)); margin-inline-start: var(--s-6); rotate: -1deg; background: #eef3f5; }
.am-yours__tab { position: absolute; inset-block-start: -14px; inset-inline-start: 18px; padding: 3px 10px; border-radius: 4px; background: var(--lemon); color: var(--navy); font: 700 var(--fs-xs) var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.am-yours__line { display: grid; }
.am-yours__in, .am-yours__area { width: 100%; padding: 4px 2px; border: 0; border-block-end: 2px dashed rgb(32 57 74 / .45); border-radius: 0; background: transparent; color: var(--navy); font: 700 var(--fs-md)/1.4 var(--font-head); }
.am-yours__line--name .am-yours__in { font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem); font-weight: 800; }
.am-yours__in::placeholder, .am-yours__area::placeholder { color: #93a1aa; font-weight: 400; }
.am-yours__in:focus, .am-yours__area:focus { outline: 0; border-block-end-style: solid; border-block-end-color: var(--navy); background: rgb(228 255 43 / .4); }
.am-yours__reach { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--s-4); }
.am-yours__hint { margin: 0; font-size: var(--fs-xs); opacity: .7; }
.am-yours__mark { position: absolute; inset-inline-end: 6%; bottom: 7%; width: 34px; opacity: .5; }
.am-yours__area { min-height: 6.6em; resize: vertical; font: 400 var(--fs-md)/2em var(--font-body); border: 0;
  background: repeating-linear-gradient(transparent 0 calc(2em - 1px), rgb(32 57 74 / .22) calc(2em - 1px) 2em) 0 0 / 100% 2em local; }
.am-yours .has-error .am-yours__in, .am-yours__note.has-error .am-yours__area { border-block-end-color: var(--danger); border-block-end-style: solid; background-color: #FFF1EF; }
.am-yours__err { display: flex; align-items: center; gap: 4px; margin-block-start: 3px; font: 700 var(--fs-xs)/1.3 var(--font-head); color: var(--danger); }
.am-yours__err .am-icon { width: 14px; height: 14px; flex: none; }
.am-yours__alert { display: flex; align-items: center; gap: var(--s-2); margin: 0; padding: var(--s-3) var(--s-4); border-radius: 4px; background: #FFF1EF; color: var(--danger); font: 700 var(--fs-sm)/1.4 var(--font-head); }
.am-yours__alert[hidden] { display: none; }
.am-yours__alert .am-icon { width: 20px; height: 20px; flex: none; }
.am-yours__send { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-block-start: var(--s-2); }
.am-yours__send p { margin: 0; font-size: var(--fs-sm); color: #dfeaf0; }
.am-yours__send a { color: var(--lemon); }

/* sent: your card lands on ours, stamped */
.am-yours--landed { position: absolute; z-index: 3; inset-block-start: 60%; inset-inline-start: 46%; width: 62%; aspect-ratio: 85 / 52; padding: 6% 7%; gap: 2px; font-size: var(--fs-sm); line-height: 1.35; visibility: hidden; opacity: 0; translate: 70% -30%; rotate: 14deg; transition: translate .7s cubic-bezier(.3, 1.2, .4, 1), rotate .7s cubic-bezier(.3, 1.2, .4, 1), opacity .2s; }
[dir="rtl"] .am-yours--landed { translate: -70% -30%; rotate: -14deg; }
.am-yours--landed b { font: 800 var(--fs-lg)/1.1 var(--font-head); }
.am-yours__stamp { position: absolute; inset-inline-end: 8%; bottom: 12%; padding: 4px 10px; border: 3px solid var(--navy); border-radius: 6px; font: 700 var(--fs-sm) var(--font-mono); font-style: normal; text-transform: uppercase; letter-spacing: .08em; rotate: -8deg; opacity: 0; scale: 1.5; transition: opacity .2s .7s, scale .3s cubic-bezier(.3, 1.6, .5, 1) .7s; }
.is-sent .am-yours--landed { visibility: visible; opacity: 1; translate: 0 0; rotate: 4deg; }
[dir="rtl"] .is-sent .am-yours--landed { translate: 0 0; rotate: -4deg; }
.is-sent .am-yours__stamp { opacity: .85; scale: 1; }
.is-sent .am-bcard__turn, .is-sent .am-bcard__back { visibility: hidden; } /* sent: only the front, under your card */
.am-cards__done:focus { outline: 0; }
.am-cards__done { grid-area: yours; align-self: center; display: grid; gap: var(--s-4); }
.am-cards__done[hidden] { display: none; }
.am-cards__done h2 { margin: 0; font: 800 clamp(1.8rem, 1.2rem + 2vw, 2.8rem)/1.1 var(--font-head); color: var(--lemon); }
.am-cards__done p { margin: 0; font-size: var(--fs-md); color: #dfeaf0; }
.am-cards__done .am-link { color: #fff; }

/* finding us */
.am-visit { background: var(--paper); color: var(--navy); padding-block: var(--s-9); }
.am-visit__in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s-8); align-items: center; }
.am-visit__photo { margin: 0; display: grid; gap: var(--s-2); }
.am-visit__photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.am-visit__photo figcaption { font: 700 var(--fs-xs) var(--font-mono); text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.am-visit__text { display: grid; gap: var(--s-4); justify-items: start; }
.am-visit__text h2 { margin: 0; font: 800 clamp(2rem, 1.2rem + 2.6vw, 3.4rem)/1.05 var(--font-head); }
.am-visit__addr { margin: 0; font: 700 var(--fs-lg)/1.4 var(--font-head); }
.am-visit__hours { margin: 0; font: 700 var(--fs-sm) var(--font-mono); }
.am-visit__hours span { display: block; opacity: .6; text-transform: uppercase; letter-spacing: .06em; }

@media (max-width: 1023px) {
  .am-cards__table { grid-template-columns: minmax(0, 1fr); grid-template-areas: "ours" "yours"; gap: var(--s-8); }
  .am-bcard { max-width: 560px; justify-self: center; width: 100%; }
  .am-yours__form { max-width: 600px; justify-self: center; width: 100%; }
  .am-visit__in { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
}
@media (max-width: 639px) {
  .am-yours--front { aspect-ratio: auto; } .am-yours__mark { display: none; }
  .am-yours--back { margin-inline-start: var(--s-3); }
  .am-yours__reach { grid-template-columns: minmax(0, 1fr); gap: var(--s-2); }
  .am-bcard__in { aspect-ratio: 85 / 68; } /* taller on phones so the back reads at 12px with tappable rows */
  .am-bcard__back { padding: 5% 6%; } .am-bcard__ways span { width: 4.6em; font-size: 12px; } .am-bcard__ways a { min-height: 26px; align-items: center; padding-block: 0; }
  .am-bcard__hours { font-size: 12px; padding-inline-end: 22%; }
  .am-bcard__name { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) { .am-bcard__in, .am-yours--landed, .am-yours__stamp { transition: none; } }

/* Legal · the notebook (guide p.66): the policy written in the sky Al-Ameen notebook. It lies closed with its band,
   opens (the cover swings over; its inside is the contents), and its pages turn. Everything 3D lives under .is-ready
   (set by ui.js [data-nb]); without it the notebook is simply open and the sections read in turn. */
.am-nbdesk { background: #e9e5dd; color: var(--navy); padding-block: var(--s-5) var(--s-9); overflow: clip; } /* clip, not hidden: the notepad’s contents tab must stick */
.am-nbdesk__head { display: grid; gap: var(--s-3); margin-block: var(--s-6) var(--s-8); }
.am-nbdesk__title { margin: 0; font: 800 clamp(2.4rem, 1.2rem + 4.4vw, 5rem)/1.02 var(--font-head); letter-spacing: -.02em; }
.am-nbdesk__lead { margin: 0; max-width: 52ch; font-size: var(--fs-md); }

.am-nb { --board: 14px; --paper: #fdfcf8; --rule: #d6e3e9; max-width: 1120px; margin-inline: auto; }
.am-nb__book { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
/* the hard board behind the pages: sky with the glyph pattern */
.am-nb__book::before { content: ""; position: absolute; inset: calc(-1 * var(--board)); border-radius: 14px; background: url(../img/patterns/glyphs-navy.svg) 0 0 / 90px, var(--sky); background-blend-mode: soft-light; box-shadow: 0 40px 60px -40px rgb(10 30 45 / .7); }
.am-nb__lined, .am-nb__toc, .am-nb__block { background: var(--paper) repeating-linear-gradient(transparent 0 calc(2em - 1px), var(--rule) calc(2em - 1px) 2em) 0 1.2em / 100% 2em; }

/* the contents page (the inside of the cover) */
.am-nb__cover { position: relative; display: grid; }
.am-nb__front { display: none; }
.am-nb__toc { position: relative; display: grid; align-content: start; gap: var(--s-3); padding: var(--s-7) var(--s-6); border-start-start-radius: 6px; border-end-start-radius: 6px; box-shadow: inset -22px 0 26px -22px rgb(0 0 0 / .3); font-size: var(--fs-md); line-height: 2em; }
[dir="rtl"] .am-nb__toc { box-shadow: inset 22px 0 26px -22px rgb(0 0 0 / .3); }
.am-nb__toc h2 { margin: 0; font: 700 var(--fs-xs) var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); line-height: 2em; }
.am-nb__toc ol { display: grid; margin: 0; padding: 0; list-style: none; }
.am-nb__toc a { display: flex; gap: var(--s-3); align-items: baseline; padding-inline: 6px; color: inherit; text-decoration: none; font: 600 var(--fs-md)/2em var(--font-head); border-radius: 3px; }
.am-nb__toc a span { flex: none; font: 700 var(--fs-sm) var(--font-mono); color: var(--ink-soft); }
.am-nb__toc a:hover { background: rgb(228 255 43 / .45); }
.am-nb__toc a[aria-current] { background: var(--lemon); }
.am-nb__toc a:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.am-nb__tocbtn { display: none; }
.am-nb__other { justify-self: start; margin-block-start: var(--s-4); font-size: var(--fs-sm); line-height: 1.4; }

/* the pages */
.am-nb__block { position: relative; display: grid; gap: var(--s-7); padding: var(--s-7) var(--s-7) var(--s-6); border-start-end-radius: 6px; border-end-end-radius: 6px; box-shadow: inset 22px 0 26px -22px rgb(0 0 0 / .3); }
[dir="rtl"] .am-nb__block { box-shadow: inset -22px 0 26px -22px rgb(0 0 0 / .3); }
.am-nb__page, .am-nb__leaf > i { display: grid; align-content: start; gap: 0; font-size: var(--fs-md); line-height: 2em; }
.am-nb__page h2, .am-nb__leaf h2 { display: flex; align-items: baseline; gap: var(--s-3); margin: 0 0 1em; font: 800 clamp(1.6rem, 1.1rem + 1.4vw, 2.3rem)/1.2 var(--font-head); }
.am-nb__page h2:focus { outline: 0; }
.am-nb__n { flex: none; display: inline-grid; place-items: center; min-width: 2.2em; padding: 3px 6px; border-radius: 4px; border-end-end-radius: 12px; background: var(--navy); color: var(--lemon); font: 700 var(--fs-sm)/1.2 var(--font-mono); translate: 0 -.2em; }
.am-nb__text p, .am-nb__text ul { margin: 0 0 1em; }
.am-nb__text ul { display: grid; padding: 0; list-style: none; }
.am-nb__text li { position: relative; padding-inline-start: 1.4em; }
.am-nb__text li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .75em; width: .5em; height: .5em; border-radius: 2px; border-end-end-radius: 5px; background: var(--navy); }
.am-nb__folio { margin: auto 0 0; padding-block-start: var(--s-3); padding-inline-end: 64px; text-align: end; font: 700 var(--fs-xs) var(--font-mono); color: var(--ink-soft); }
.am-nb__corner, .am-nb__band, .am-nb__ribbon { display: none; }

/* previous / next */
.am-nb__nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin-block-start: calc(var(--board) + var(--s-5)); }
.am-nb__btn { display: inline-flex; align-items: center; gap: var(--s-2); padding: 8px 16px; border: 2px solid var(--navy); border-radius: 6px; border-end-end-radius: 16px; background: transparent; color: var(--navy); font: 700 var(--fs-sm) var(--font-head); cursor: pointer; }
.am-nb__btn .am-icon { width: 18px; height: 18px; }
.am-nb__btn:hover:not(:disabled) { background: var(--lemon); }
.am-nb__btn:disabled { opacity: .35; cursor: default; }
.am-nb__btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.am-nb__where { margin: 0; font: 700 var(--fs-sm) var(--font-mono); text-align: center; }
.am-nb:not(.is-ready) .am-nb__nav { display: none; }

/* ── the real notebook (JS) ── */
.am-nb.is-ready .am-nb__book { perspective: 2400px; transition: translate .7s cubic-bezier(.3, .1, .2, 1); }
.am-nb.is-ready .am-nb__book::before { inset-inline-start: calc(50% - 4px); } /* the back board: under the pages only */
.am-nb.is-ready .am-nb__block { grid-column: 2; display: grid; gap: 0; }
.am-nb.is-ready .am-nb__page { grid-area: 1 / 1; visibility: hidden; align-content: stretch; grid-template-rows: auto 1fr auto; }
.am-nb.is-ready .am-nb__leaf > i { grid-template-rows: auto 1fr auto; align-content: stretch; }
.am-nb.is-ready .am-nb__page.is-current { visibility: visible; }
/* the cover turns on the spine: front (closed) and back (the contents) */
.am-nb.is-ready .am-nb__cover { position: absolute; z-index: 4; inset-block: calc(-1 * var(--board)); inset-inline-start: 50%; inset-inline-end: calc(-1 * var(--board)); transform-origin: left center; transform-style: preserve-3d; transform: rotateY(-180deg); transition: transform 1.1s cubic-bezier(.45, .05, .2, 1); }
[dir="rtl"].am-nb.is-ready .am-nb__cover, [dir="rtl"] .am-nb.is-ready .am-nb__cover { transform-origin: right center; transform: rotateY(180deg); }
.am-nb.is-ready .am-nb__front, .am-nb.is-ready .am-nb__toc { position: absolute; inset: 0; backface-visibility: hidden; }
.am-nb.is-ready .am-nb__front { display: grid; align-content: space-between; justify-items: center; padding: 12% 10% 10%; border: 0; border-start-end-radius: 14px; border-end-end-radius: 14px; background: url(../img/patterns/glyphs-navy.svg) 0 0 / 90px, var(--sky); background-blend-mode: soft-light; box-shadow: inset 10px 0 14px -8px rgb(0 0 0 / .3); cursor: pointer; }
[dir="rtl"] .am-nb.is-ready .am-nb__front { border-radius: 14px 0 0 14px; box-shadow: inset -10px 0 14px -8px rgb(0 0 0 / .3); }
.am-nb.is-ready .am-nb__front img { width: 46%; height: auto; }
.am-nb__label { display: grid; gap: 4px; padding: var(--s-4) var(--s-6); border-radius: 6px; background: var(--paper); color: var(--navy); text-align: center; box-shadow: 0 2px 6px rgb(0 0 0 / .15); }
.am-nb__label b { font: 800 var(--fs-xl)/1.15 var(--font-head); }
.am-nb__label span { font: 700 var(--fs-xs) var(--font-mono); text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.am-nb.is-ready .am-nb__front:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
/* the back of the cover: the board's edge around the contents page */
/* the inside of the cover: a plain sky edge around the contents page (narrow at the spine) */
.am-nb.is-ready .am-nb__toc { transform: rotateY(180deg); overflow: clip; border: var(--board) solid transparent; border-inline-end-width: 4px; border-radius: 0 14px 14px 0;
  background: repeating-linear-gradient(transparent 0 calc(2em - 1px), var(--rule) calc(2em - 1px) 2em) 0 1.2em / 100% 2em padding-box, linear-gradient(var(--paper), var(--paper)) padding-box,
    url(../img/patterns/glyphs-navy.svg) 0 0 / 90px border-box, linear-gradient(var(--sky), var(--sky)) border-box;
  background-blend-mode: normal, normal, soft-light, normal; } /* the same patterned board edge as the back */
[dir="rtl"] .am-nb.is-ready .am-nb__toc { border-radius: 14px 0 0 14px; }
[dir="rtl"] .am-nb.is-ready .am-nb__toc { margin-inline-end: 0; }
/* closed: shut (the cover lies on the pages), offset (the book slides over so the closed notebook sits centred) and
   banded; ui.js lifts them in that order: the band slides off, the cover swings on its hinge, then the book centres */
.am-nb.is-shut .am-nb__cover { transform: rotateY(0deg); }
[dir="rtl"] .am-nb.is-shut .am-nb__cover { transform: rotateY(0deg); }
.am-nb.is-offset .am-nb__book { translate: -25% 0; }
[dir="rtl"] .am-nb.is-offset .am-nb__book { translate: 25% 0; }
.am-nb.is-closed .am-nb__nav { visibility: hidden; }
/* light on the swinging cover: the front darkens towards edge-on, the inside brightens as it lands */
.am-nb.is-ready .am-nb__front::after, .am-nb.is-ready .am-nb__toc::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #0b1c27; opacity: 0; pointer-events: none; }
.am-nb.is-swinging .am-nb__front::after { animation: am-nb-front 1.1s cubic-bezier(.45, .05, .2, 1) both; }

@keyframes am-nb-front { 0% { opacity: 0; } 50%, 100% { opacity: .35; } }

/* the elastic band holds it shut, then slides off; the bookmark ribbon hangs from the spine */
.am-nb.is-ready .am-nb__band { display: block; position: absolute; z-index: 5; inset-block: calc(-1 * var(--board) - 6px); inset-inline-end: 9%; width: 14px; border-radius: 4px; background: var(--navy); box-shadow: 2px 0 4px rgb(0 0 0 / .3); transition: translate .5s var(--ease), opacity .4s .2s; }
.am-nb.is-ready:not(.is-banded) .am-nb__band { translate: 160px 0; opacity: 0; pointer-events: none; }
[dir="rtl"] .am-nb.is-ready:not(.is-banded) .am-nb__band { translate: -160px 0; }
.am-nb.is-ready .am-nb__ribbon { display: block; position: absolute; z-index: 3; inset-inline-start: calc(50% + 28px); inset-block-end: -60px; width: 16px; height: 90px; background: var(--lemon); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 84%, 0 100%); transition: opacity .3s; }
.am-nb.is-shut .am-nb__ribbon { opacity: 0; }
/* the page corner: curls a little on hover; press (or drag) it to turn */
.am-nb.is-ready .am-nb__corner { display: block; position: absolute; z-index: 2; inset-block-end: 0; inset-inline-end: 0; width: 44px; height: 44px; padding: 0; border: 0; border-end-end-radius: 6px; cursor: pointer; touch-action: none;
  background: linear-gradient(to top left, transparent 50%, #e3ded2 50%, #fff 72%); filter: drop-shadow(-2px -2px 3px rgb(0 0 0 / .15)); transition: width .25s var(--ease), height .25s var(--ease); }
[dir="rtl"] .am-nb.is-ready .am-nb__corner { background: linear-gradient(to top right, transparent 50%, #e3ded2 50%, #fff 72%); border-radius: 0 0 0 6px; filter: drop-shadow(2px -2px 3px rgb(0 0 0 / .15)); }
.am-nb.is-ready .am-nb__corner { cursor: grab; }
.am-nb.is-ready .am-nb__corner:hover { width: 72px; height: 72px; }
.am-nb.is-ready .am-nb__corner:active { cursor: grabbing; }
.am-nb.is-last .am-nb__corner:not(.am-nb__corner--back), .am-nb.is-first .am-nb__corner--back { display: none; }
.am-nb.is-ready .am-nb__corner--back { inset-inline-end: auto; inset-inline-start: 0; border-radius: 0 0 0 6px; background: linear-gradient(to top right, transparent 50%, #e3ded2 50%, #fff 72%); filter: drop-shadow(2px -2px 3px rgb(0 0 0 / .15)); }
[dir="rtl"] .am-nb.is-ready .am-nb__corner--back { border-radius: 0 0 6px 0; background: linear-gradient(to top left, transparent 50%, #e3ded2 50%, #fff 72%); filter: drop-shadow(-2px -2px 3px rgb(0 0 0 / .15)); }
.am-nb.is-hinting .am-nb__corner:not(.am-nb__corner--back) { animation: am-nb-hint 1.2s var(--ease); }
@keyframes am-nb-hint { 40% { width: 96px; height: 96px; } }
/* the page edges: real sheets under each page (box-shadows set by ui.js from the pages read and still to read) */
.am-nb.is-ready .am-nb__block, .am-nb.is-ready .am-nb__toc { transition: box-shadow .45s var(--ease); }

/* the turning leaf (ui.js): its front is the page that turns, its back plain paper */
.am-nb__leaf { position: absolute; z-index: 6; inset: 0; transform-origin: left center; transform-style: preserve-3d; pointer-events: none; transition: transform .75s cubic-bezier(.45, .05, .25, 1); }
[dir="rtl"] .am-nb__leaf { transform-origin: right center; }
.am-nb__leaf > i, .am-nb__leaf > b { position: absolute; inset: 0; backface-visibility: hidden; font-style: normal; font-weight: inherit; padding: var(--s-7) var(--s-7) var(--s-6); border-radius: 0 6px 6px 0; overflow: hidden; }
[dir="rtl"] .am-nb__leaf > i, [dir="rtl"] .am-nb__leaf > b { border-radius: 6px 0 0 6px; }
.am-nb__leaf > b { transform: rotateY(180deg); border-radius: 6px 0 0 6px; }
[dir="rtl"] .am-nb__leaf > b { border-radius: 0 6px 6px 0; }
.am-nb__leaf > i::after, .am-nb__leaf > b::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / .5), transparent 55%); opacity: var(--shade, 0); transition: opacity .4s; pointer-events: none; }
[dir="rtl"] .am-nb__leaf > i::after, [dir="rtl"] .am-nb__leaf > b::after { background: linear-gradient(-90deg, rgb(0 0 0 / .5), transparent 55%); }
.am-nb__leaf.is-held, .am-nb__leaf.is-held > i::after, .am-nb__leaf.is-held > b::after { transition: none !important; }
.am-nb__leaf { box-shadow: 0 0 24px rgb(0 0 0 / .12); }
.am-nb__leaf.is-over { transform: rotateY(-180deg); }
[dir="rtl"] .am-nb__leaf.is-over { transform: rotateY(180deg); }

/* phones and small tablets: one page; the contents fold into a button; the cover just opens away */
@media (max-width: 899px) {
  .am-nb { --board: 8px; }
  .am-nb__book { grid-template-columns: minmax(0, 1fr); }
  .am-nb__toc { border-radius: 6px 6px 0 0; box-shadow: none; padding: var(--s-4) var(--s-5); border-block-end: 2px dashed var(--rule); }
  .am-nb__block { border-radius: 0 0 6px 6px; box-shadow: none; padding: var(--s-6) var(--s-5) var(--s-5); }
  .am-nb.is-ready .am-nb__cover { position: relative; inset: auto; z-index: 4; transform: none; transform-style: flat; }
  [dir="rtl"] .am-nb.is-ready .am-nb__cover { transform: none; }
  .am-nb.is-ready .am-nb__front { display: none; }
  .am-nb.is-ready .am-nb__toc { position: relative; transform: none; margin: 0; backface-visibility: visible; overflow: visible; }
  .am-nb.is-ready .am-nb__toc h2 { display: none; }
  .am-nb.is-ready .am-nb__tocbtn { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); width: 100%; padding: 4px 0; border: 0; background: transparent; color: var(--navy); font: 700 var(--fs-md)/1.4 var(--font-head); text-align: start; cursor: pointer; }
  .am-nb__tocbtn .am-icon { width: 20px; height: 20px; flex: none; transition: rotate .25s; }
  .am-nb__tocbtn[aria-expanded="true"] .am-icon { rotate: 180deg; }
  .am-nb__tocbtn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
  .am-nb.is-ready .am-nb__toc ol, .am-nb.is-ready .am-nb__other { display: none; }
  .am-nb.is-ready .am-nb__toc.is-open ol, .am-nb.is-ready .am-nb__toc.is-open .am-nb__other { display: grid; }
  .am-nb.is-ready .am-nb__toc.is-open .am-nb__other { display: inline-flex; }
  .am-nb.is-offset .am-nb__book, [dir="rtl"] .am-nb.is-offset .am-nb__book { translate: none; }
  .am-nb.is-ready .am-nb__book::before { inset-inline-start: calc(-1 * var(--board)); }
  .am-nb.is-ready .am-nb__toc { border: 0; border-radius: 6px 6px 0 0; }
  .am-nb.is-ready .am-nb__band { inset-inline-end: 12%; }
  .am-nb__corner--back { display: none !important; }
  .am-nb.is-ready .am-nb__ribbon { inset-inline-start: 18%; inset-block-end: -30px; height: 50px; }
  .am-nb__nav { margin-block-start: calc(var(--board) + var(--s-7)); }
  .am-nb.is-ready .am-nb__block { grid-column: 1; }
  .am-nb__page h2, .am-nb__leaf h2 { font-size: 1.5rem; }
  .am-nb__nav { flex-wrap: wrap; } .am-nb__where { order: -1; flex-basis: 100%; }
  .am-nb__btn span { display: none; } .am-nb__btn { padding: 10px; }
}
/* phones and tablets (ui.js .is-pad): the guide's closed sky notebook (p.66), portrait, held by its elastic. It opens
   upward: the band slides off, the cover flips up over the top and stays folded there as the binding; every section
   then reads down one lined sheet. The contents are index tabs above the notebook, sticky under the header. */
.am-nbtabs { display: none; }
@media (max-width: 899px) {
  .am-nbtabs:not([hidden]) { position: sticky; z-index: 8; inset-block-start: 60px; display: grid; gap: 6px; margin-inline: calc(-1 * var(--gutter)); padding: 10px var(--gutter) 8px; background: #e9e5dd; box-shadow: 0 10px 12px -12px rgb(10 30 45 / .5); }
  .am-nbtabs ol { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
  .am-nbtabs li { flex: 1; }
  .am-nbtabs__tab { display: grid; place-items: center; height: 40px; border-radius: 8px 8px 2px 2px; background: var(--sky); color: var(--navy); font: 700 13px var(--font-mono); text-decoration: none; box-shadow: inset 0 -3px 0 rgb(32 57 74 / .18); transition: translate var(--dur) var(--ease), background-color var(--dur) var(--ease); }
  .am-nbtabs__tab[aria-current] { background: var(--lemon); translate: 0 -3px; box-shadow: inset 0 -3px 0 #b3c91a; }
  .am-nbtabs__tab:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
  .am-nbtabs__now { margin: 0; font: 700 var(--fs-sm)/1.3 var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .am-nb.is-pad { margin-block-start: var(--s-6); }
  @media (min-width: 640px) { .am-nb.is-pad { max-width: 560px; } .am-nbtabs > * { width: min(100%, 560px); margin-inline: auto; } } /* tablets: a notebook, not a wall */
  .am-nb.is-pad .am-nb__book { perspective: 1800px; }
  .am-nb.is-pad .am-nb__toc { display: none; } /* the contents are the tabs */
  .am-nb.is-pad .am-nb__block { gap: 0; padding-block: var(--s-6); border-radius: 0 0 6px 6px; }
  /* one section per sheet; all sheets share one cell, so every sheet is as tall as the longest section */
  .am-nb.is-pad .am-nb__block { display: grid; }
  .am-nb.is-pad .am-nb__page { grid-area: 1 / 1; visibility: hidden; }
  .am-nb.is-pad .am-nb__page.is-current { visibility: visible; }
  .am-nb.is-pad .am-nb__block { transition: box-shadow .4s var(--ease); } /* the sheets still to read: paper edges under it (ui.js) */
  /* a sheet turning on the binding (ui.js): flips up over the top and away, or comes back down */
  .am-nb__sheet { position: absolute; z-index: 4; inset: 0; padding: inherit; border-radius: 0 0 6px 6px; transform-origin: 50% 0; backface-visibility: hidden; transition: transform .7s cubic-bezier(.45, .05, .25, 1); box-shadow: 0 10px 20px -8px rgb(10 30 45 / .35); }
  .am-nb__sheet .am-nb__page { display: grid; }
  .am-nb.is-pad .am-nb__nav { display: flex; margin-block-start: calc(var(--board) + var(--s-6)); padding-inline-end: 64px; } /* clear of the WhatsApp button */
  .am-nb.is-pad.is-closed .am-nb__nav { visibility: hidden; }
  .am-nb.is-pad .am-nb__folio { display: none; }
  /* the cover: sky, the glyph pattern fading out above the logo, the title on a paper label */
  .am-nb.is-pad .am-nb__cover { position: absolute; z-index: 6; inset-inline: calc(-1 * var(--board)); inset-block-start: calc(-1 * var(--board)); display: block; aspect-ratio: 5 / 7; transform-origin: 50% 0; transform: rotateX(0); transition: transform .95s cubic-bezier(.45, .05, .2, 1), opacity .2s .75s; }
  .am-nb.is-pad .am-nb__front { display: grid; align-content: space-between; justify-items: start; width: 100%; height: 100%; padding: 12% 10% 11%; border: 0; border-radius: 6px 6px 14px 14px; cursor: pointer;
    background: linear-gradient(transparent 30%, var(--sky) 78%), url(../img/patterns/glyphs-navy.svg) 0 0 / 90px, var(--sky); background-blend-mode: normal, soft-light, normal;
    box-shadow: inset 0 10px 14px -8px rgb(0 0 0 / .25), 0 30px 40px -24px rgb(10 30 45 / .7); }
  .am-nb.is-pad .am-nb__front img { width: 62%; height: auto; }
  .am-nb.is-pad .am-nb__front .am-nb__label { padding: var(--s-3) var(--s-4); text-align: start; }
  .am-nb.is-pad .am-nb__front .am-nb__label b { font-size: var(--fs-lg); }
  .am-nb.is-pad .am-nb__front:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
  /* closed: the notebook is as tall as its cover; open: the cover lies flipped up behind the top edge */
  .am-nb.is-pad.is-closed .am-nb__block { display: none; }
  .am-nb.is-pad.is-closed .am-nb__cover { position: relative; inset: auto; margin: calc(-1 * var(--board)); }
  .am-nb.is-pad:not(.is-closed) .am-nb__cover { transform: rotateX(178deg); opacity: 0; pointer-events: none; }
  .am-nb.is-pad .am-nb__book::after { content: ""; position: absolute; z-index: 5; inset-inline: calc(-1 * var(--board)); inset-block-start: calc(-1 * var(--board) - 14px); height: 26px; border-radius: 12px 12px 3px 3px;
    background: url(../img/patterns/glyphs-navy.svg) 0 0 / 90px, var(--sky); background-blend-mode: soft-light; box-shadow: inset 0 -8px 10px -6px rgb(0 0 0 / .35); opacity: 0; transition: opacity .3s .7s; } /* the cover folded back over the top */
  .am-nb.is-pad:not(.is-closed) .am-nb__book::after { opacity: 1; }
  /* the elastic down the cover; it slides off sideways before the cover lifts */
  .am-nb.is-pad .am-nb__band { display: block; position: absolute; z-index: 7; inset-block: calc(-1 * var(--board) - 4px); inset-inline-end: 12%; width: 12px; border-radius: 4px; background: var(--navy); box-shadow: 2px 0 4px rgb(0 0 0 / .3); transition: translate .45s var(--ease), opacity .3s .15s; }
  .am-nb.is-pad:not(.is-banded) .am-nb__band { translate: 120px 0; opacity: 0; pointer-events: none; }
  [dir="rtl"] .am-nb.is-pad:not(.is-banded) .am-nb__band { translate: -120px 0; }
}
@media (prefers-reduced-motion: reduce) { .am-nb.is-ready .am-nb__book, .am-nb.is-ready .am-nb__cover, .am-nb__leaf, .am-nb.is-ready .am-nb__band { transition: none; } }
@media print { .am-nb__front, .am-nb__nav, .am-nb__band, .am-nb__ribbon, .am-nb__corner { display: none !important; } .am-nb__page { visibility: visible !important; grid-area: auto !important; } }

/* Errors · the usual page, well designed: the code large, one plain sentence, a main button and a few useful links.
   Every code on navy, the crystal mark beside the text. */
.am-err { position: relative; display: grid; align-items: center; min-height: min(78vh, 760px); padding-block: var(--s-9); background: var(--navy); color: #fff; overflow: hidden; isolation: isolate; } /* every code on navy: the crystal needs a dark stage */
.am-err__cx { position: absolute; inset-block-start: 50%; inset-inline-end: max(var(--gutter), calc((100% - var(--wrap)) / 2)); width: min(560px, 44vw); translate: 0 -50%; }
@media (min-width: 900px) { .am-err__in { padding-inline-end: calc(min(560px, 44vw) + var(--s-6)); } }
@media (max-width: 899px) { .am-err__cx { position: relative; inset: auto; justify-self: center; width: min(300px, 78vw); margin-block: calc(var(--s-6) * -1) var(--s-2); translate: none; } }
.am-err__in { display: grid; justify-items: start; gap: var(--s-4); }
.am-err__code { margin: 0; font: 800 clamp(6rem, 3rem + 11vw, 13rem)/.85 var(--font-latin); letter-spacing: -.04em; }
.am-err__code { color: var(--lemon); }
.am-err__title { margin: 0; font: 800 clamp(1.8rem, 1.2rem + 2vw, 2.8rem)/1.15 var(--font-head); }
.am-err__text { margin: 0; max-width: 46ch; font-size: var(--fs-md); opacity: .85; }
.am-err__lead { margin: var(--s-3) 0 0; font: 700 var(--fs-sm) var(--font-head); }
.am-err__links { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.am-err__links a { display: inline-flex; align-items: center; gap: var(--s-3); color: inherit; text-decoration: none; font: 700 var(--fs-md) var(--font-head); }
.am-err__links a:hover span:not(.am-err__floor), .am-err__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.am-err__links a:focus-visible { outline: 3px solid var(--focus-on-dark); outline-offset: 3px; border-radius: 4px; }
.am-err__links .am-icon { width: 18px; height: 18px; transition: translate var(--dur) var(--ease); }
.am-err__links a:hover .am-icon { translate: 4px 0; }
[dir="rtl"] .am-err__links a:hover .am-icon { translate: -4px 0; }
.am-err__floor { display: grid; place-items: center; min-width: 2.6em; padding: 4px 6px; border-radius: 4px; border-end-end-radius: 12px; background: var(--lemon); color: var(--navy); font: 700 var(--fs-xs) var(--font-mono); }
.am-err__acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-6); margin-block-start: var(--s-4); }
.am-err .am-link { color: #fff; }
@media (max-width: 639px) { .am-err { min-height: 0; padding-block: var(--s-8); } }

/* Emails · the template-only preview: the email in frames at desktop and phone width */
.am-mails { background: #e9e6df; color: var(--navy); padding-block: var(--s-5) var(--s-9); }
.am-mails__title { margin: var(--s-5) 0 var(--s-4); font: 800 clamp(2rem, 1.2rem + 2.6vw, 3.4rem)/1.05 var(--font-head); }
.am-mails__bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-6); margin-block-end: var(--s-6); }
.am-mails__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.am-mails__frames { display: flex; flex-wrap: wrap; align-items: start; gap: var(--s-6); }
.am-mails__frames figure { margin: 0; display: grid; gap: var(--s-2); }
.am-mails__frames figcaption { font: 700 var(--fs-xs) var(--font-mono); opacity: .7; }
.am-mails__frames iframe { display: block; height: 900px; border: 0; border-radius: 10px; background: #EFEDE8; box-shadow: 0 20px 40px -30px rgb(0 0 0 / .45); }
.am-mails__wide { width: 640px; max-width: 100%; }
.am-mails__phone { width: 375px; max-width: 100%; }

/* Crystal · where the 3D mark sits (crystal() in inc/ui.php) */
.am-floor__cx { position: absolute; z-index: -1; inset-block-start: -22%; inset-inline-end: -9%; width: min(46%, 420px); } /* where the faint mark sat: the factory floor makes the mark */
@media (max-width: 899px) { .am-floor__cx { inset-block-start: -6%; inset-inline-end: -24%; width: 78%; opacity: .7; } }

/* Crystal material on each page's navy parts (the kit is in components.css: these only shape what had no box) */
.am-home-hero__facts > div { padding: 14px 20px 12px; border-radius: 16px; background-color: #26425a; } /* the stats as crystal plates */
@media (max-width: 359px) { .am-home-hero__facts { gap: var(--s-3); } .am-home-hero__facts > div { min-width: 0; padding-inline: 12px; } } /* 320px phones */
.am-xray__tabs button { border-radius: 14px; }
.am-floor__tag, .am-err__floor, .am-nb__n { border-radius: 6px; }
.am-pre__cell { stroke: rgb(255 255 255 / .6); stroke-width: 2.5; paint-order: stroke; } /* the preloader's cells: a glass edge */
.am-mapmark__door { --xl-b: 7px; --xl-f: 6px; } /* the mark's four squares, cut like p.69 */

/* Crystal stage (Home): the 3D mark alone on black, as on p.68–69; it turns as the section scrolls by (crystal-3d.js) */
.am-stage { --cx-tint: #0b0f13; position: relative; height: 170vh; background: linear-gradient(#000 0 calc(100% - 26vh), var(--navy)); color: var(--on-primary); }
.am-stage__in { position: sticky; top: 0; display: grid; place-items: center; align-content: center; gap: var(--s-4); height: 100vh; padding: calc(76px + var(--s-5)) var(--gutter) var(--s-7); overflow: hidden; isolation: isolate; text-align: center; } /* clear of the sticky header */
.am-stage__in::before { content: ""; position: absolute; z-index: -1; inset: 10% 15%; background: radial-gradient(closest-side, rgb(120 150 175 / .16), transparent); } /* a soft lift behind the glass */
.am-stage__cx { --cx-tint: #0b0f13; width: min(62vh, 640px); }
.am-stage__copy { display: grid; justify-items: center; gap: var(--s-3); max-width: 34ch; }
.am-stage__title { margin: 0; font: 800 clamp(1.4rem, 1rem + 1.4vw, 2.2rem)/1.25 var(--font-head); }
@media (max-width: 720px) { .am-stage { height: 140vh; } .am-stage__cx { width: min(86vw, 420px); } }
@media (orientation: landscape) and (max-height: 520px) { /* phones sideways: the mark beside its line */
  .am-stage__in { grid-template-columns: auto minmax(0, 30ch); justify-content: center; column-gap: var(--s-7); padding-block: calc(60px + var(--s-3)) var(--s-3); text-align: start; }
  .am-stage__cx { width: min(62vh, 300px); }
  .am-stage__copy { justify-items: start; }
}
@media (prefers-reduced-motion: reduce) { .am-stage { height: auto; } .am-stage__in { position: static; min-height: 100vh; } }
