/* ==========================================================================
   Halftone — qcplaque-style hand-written CSS, no framework, no build step.
   Palette comes straight out of the company logo (halftone-logo.svg):
     #0054a6 wordmark blue · #2fabe1 cyan · #e90c8b magenta · #fcee1e yellow
     #414042 charcoal.  Those last three are the CMY of process printing, which
   is why they carry the whole design — a platemaker's site should look like
   ink. Silver is the 25th-anniversary accent (2001–2026).

   Bilingual: English LTR at the root, Arabic RTL under /ar/. Layout uses
   logical properties (margin-inline, padding-inline, inset-inline) so the
   same rules mirror themselves; only the handful of things logical properties
   can't express are repeated in the [dir="rtl"] block at the bottom.
   ========================================================================== */

:root {
    --blue:        #0054a6;
    --blue-dark:   #003d7a;
    --blue-deep:   #002a55;
    --cyan:        #2fabe1;
    --magenta:     #e90c8b;
    --yellow:      #fcee1e;
    --charcoal:    #414042;

    --ink:         #1c1d21;
    --ink-soft:    #55575e;
    --ink-faint:   #8b8d95;
    --line:        #e3e5ea;
    --paper:       #ffffff;
    --paper-tint:  #f6f8fb;
    --paper-blue:  #eef4fb;

    --silver-1:    #f2f3f5;
    --silver-2:    #c9ccd2;
    --silver-3:    #9aa0a9;

    --radius:      10px;
    --radius-lg:   16px;
    --shadow:      0 1px 2px rgba(16,24,40,.05), 0 8px 24px rgba(16,24,40,.06);
    --shadow-lg:   0 4px 8px rgba(16,24,40,.06), 0 24px 48px rgba(16,24,40,.10);

    --wrap:        1140px;
    --font: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, system-ui, sans-serif;
    /* Arabic gets the platform's own face — no webfont, so nothing is fetched
       from a third party and there is no consent question to answer. */
    --font-ar: "SF Arabic", "Geeza Pro", "Segoe UI", "Noto Naskh Arabic", "Traditional Arabic", Tahoma, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

body[dir="rtl"] { font-family: var(--font-ar); line-height: 1.9; }

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.18; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p  { margin: 0 0 1em; }

body[dir="rtl"] h1, body[dir="rtl"] h2,
body[dir="rtl"] h3, body[dir="rtl"] h4 { letter-spacing: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

/* The CMYK rule — four ink bars. Used under the header and above the footer,
   the one motif that ties every page to the logo. */
.inkline { height: 4px; display: flex; }
.inkline i { flex: 1; }
.inkline i:nth-child(1) { background: var(--cyan); }
.inkline i:nth-child(2) { background: var(--magenta); }
.inkline i:nth-child(3) { background: var(--yellow); }
.inkline i:nth-child(4) { background: var(--charcoal); }

/* ── Opening animation ──────────────────────────────────────────────────────
   White screen; the logo fades up big in the middle, holds dead still for one
   second, then glides into its place in the header. Once per visit — a tiny
   script in <head> adds .intro-play only when sessionStorage says this is the
   first page of the session. If that script is blocked, NOTHING here
   activates and the page renders normally: the animation can never hide the
   site.

   Timing over 4.3s, matching qcplaque.com:
     0   → 2.0s  fade up
     2.0 → 3.0s  hold, exactly one second
     3.0 → 3.9s  glide to the corner
     3.9 → 4.3s  curtain lifts, page fades in

   The resting position is computed, not guessed: the header logo sits inside
   a 1140px-wide centred wrapper with 24px padding, so its left edge is
   24px on narrow screens and (100vw−1140)/2+24 on wide ones. --hdr-logo-x
   holds that so the keyframes can land on it exactly.

   RTL flips it: in Arabic the header logo is on the RIGHT, so the logo has to
   arrive in the top-right corner and the horizontal travel reverses sign. */

:root {
    --hdr-logo-x:  max(24px, calc((100vw - 1140px) / 2 + 24px));
    --hdr-logo-y:  20px;               /* (74px header − 34px logo) / 2 */
    --intro-scale: 2.4;
    /* half the scaled logo: 210.1px wide × 34px tall at the scale above */
    --intro-half-w: 252.1px;
    --intro-half-h: 40.8px;
}

.intro-logo {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    display: none;
    background: #fff;
}

.intro-logo img {
    position: fixed;
    top: var(--hdr-logo-y);
    left: var(--hdr-logo-x);
    height: 34px;
    width: auto;
    transform-origin: top left;
    opacity: 0;
    will-change: transform, opacity;
}

html.intro-play .intro-logo      { display: block; animation: htCurtain 4.3s ease-out both; }
html.intro-play .intro-logo img  { animation: htLogoFly 4.3s linear both; }
html.intro-play body > *:not(.intro-logo) {
    animation: htIntroFade .7s ease-out both;
    animation-delay: 3.9s;
}

@keyframes htLogoFly {
    0%    { opacity: 0;
            transform: translate(calc(50vw - var(--intro-half-w) - var(--hdr-logo-x)),
                                 calc(46vh - var(--intro-half-h) - var(--hdr-logo-y)))
                       scale(var(--intro-scale));
            animation-timing-function: ease-in-out; }
    46.5% { opacity: 1;
            transform: translate(calc(50vw - var(--intro-half-w) - var(--hdr-logo-x)),
                                 calc(46vh - var(--intro-half-h) - var(--hdr-logo-y)))
                       scale(var(--intro-scale));
            animation-timing-function: linear; }
    69.8% { opacity: 1;
            transform: translate(calc(50vw - var(--intro-half-w) - var(--hdr-logo-x)),
                                 calc(46vh - var(--intro-half-h) - var(--hdr-logo-y)))
                       scale(var(--intro-scale));
            animation-timing-function: cubic-bezier(0.66, 0, 0.24, 1); }
    90.7% { opacity: 1; transform: translate(0, 0) scale(1); }
    100%  { opacity: 1; transform: translate(0, 0) scale(1); }
}

@keyframes htCurtain {
    0%    { opacity: 1; visibility: visible; }
    90.7% { opacity: 1; visibility: visible; }
    100%  { opacity: 0; visibility: hidden; }
}

@keyframes htIntroFade { from { opacity: 0; } to { opacity: 1; } }

/* Arabic: the logo lives in the top-RIGHT, so it must arrive there and the
   horizontal travel is mirrored. */
[dir="rtl"] .intro-logo img {
    left: auto;
    right: var(--hdr-logo-x);
    transform-origin: top right;
}

[dir="rtl"] .intro-logo img,
html.intro-play [dir="rtl"] .intro-logo img { animation-name: htLogoFlyRtl; }

@keyframes htLogoFlyRtl {
    0%    { opacity: 0;
            transform: translate(calc(var(--intro-half-w) + var(--hdr-logo-x) - 50vw),
                                 calc(46vh - var(--intro-half-h) - var(--hdr-logo-y)))
                       scale(var(--intro-scale));
            animation-timing-function: ease-in-out; }
    46.5% { opacity: 1;
            transform: translate(calc(var(--intro-half-w) + var(--hdr-logo-x) - 50vw),
                                 calc(46vh - var(--intro-half-h) - var(--hdr-logo-y)))
                       scale(var(--intro-scale));
            animation-timing-function: linear; }
    69.8% { opacity: 1;
            transform: translate(calc(var(--intro-half-w) + var(--hdr-logo-x) - 50vw),
                                 calc(46vh - var(--intro-half-h) - var(--hdr-logo-y)))
                       scale(var(--intro-scale));
            animation-timing-function: cubic-bezier(0.66, 0, 0.24, 1); }
    90.7% { opacity: 1; transform: translate(0, 0) scale(1); }
    100%  { opacity: 1; transform: translate(0, 0) scale(1); }
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94);
               backdrop-filter: saturate(150%) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 74px; }
.logo img { height: 34px; width: auto; }
.logo { flex-shrink: 0; }

.main-nav { margin-inline-start: auto; display: flex; align-items: center; gap: 26px; }
.main-nav a { color: var(--ink-soft); font-size: .95rem; font-weight: 600; white-space: nowrap; }
.main-nav a:hover { color: var(--blue); text-decoration: none; }
.main-nav a.is-current { color: var(--blue); }

.lang-switch { font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
               color: var(--ink-faint); border: 1px solid var(--line); border-radius: 999px;
               padding: 5px 13px; }
.lang-switch:hover { color: var(--blue); border-color: var(--blue); text-decoration: none; }

.nav-toggle { display: none; margin-inline-start: auto; background: none; border: 1px solid var(--line);
              border-radius: 8px; padding: 8px 11px; cursor: pointer; font-size: 1.1rem; color: var(--ink); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn { display: inline-block; font-weight: 700; font-size: .98rem; padding: 13px 26px;
       border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-align: center;
       transition: transform .12s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(0,84,166,.28); }
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 10px 26px rgba(0,84,166,.34); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; color: #fff;
        background: linear-gradient(150deg, var(--blue-deep) 0%, var(--blue) 55%, #1668bd 100%); }

/* Photo layer. A separate element rather than a background on .hero so it can
   be scaled slowly (Ken Burns) without dragging the text with it, and so the
   gradient above it stays put. Pages without a photo simply omit the element
   and keep the plain gradient. */
.hero-photo { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%;
                  transform: scale(1.06); animation: htKenBurns 26s ease-in-out infinite alternate; }
/* Two layers over the photo: a brand-blue wash so it reads as ours rather than
   as stock, and a bottom-weighted darkening so the text keeps its contrast no
   matter what the photo does down there. */
.hero-photo::after { content: ""; position: absolute; inset: 0;
    background:
      linear-gradient(150deg, rgba(0,42,85,.93) 0%, rgba(0,84,166,.86) 55%, rgba(22,104,189,.80) 100%),
      linear-gradient(to bottom, rgba(0,0,0,.12) 0%, rgba(0,0,0,.42) 100%); }

@keyframes htKenBurns {
    from { transform: scale(1.06) translate3d(0, 0, 0); }
    to   { transform: scale(1.16) translate3d(-1.5%, -1.5%, 0); }
}

/* Faint halftone dot field — the company's own name, drawn in CSS. */
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1;
                background-image: radial-gradient(rgba(255,255,255,.16) 1.4px, transparent 1.5px);
                background-size: 16px 16px; opacity: .5; }
.hero > *:not(.hero-photo) { position: relative; z-index: 2; }
.hero-inner { padding: clamp(60px, 10vw, 110px) 0 clamp(56px, 9vw, 96px); max-width: 780px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero .lede { font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255,255,255,.9); margin-bottom: 1.8em; max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: .8rem; font-weight: 700;
           letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.85);
           border: 1px solid rgba(255,255,255,.32); border-radius: 999px; padding: 6px 15px; margin-bottom: 22px; }
body[dir="rtl"] .eyebrow { letter-spacing: 0; }

/* The 60-minute promise, the single strongest thing on the site. */
.promise { background: #fff; border-radius: var(--radius-lg); padding: 26px 30px; color: var(--ink);
           box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
           margin-top: 40px; max-width: 700px; }
.promise-num { font-size: 3.1rem; font-weight: 800; line-height: 1; color: var(--blue);
               letter-spacing: -.04em; }
.promise-num span { font-size: 1rem; font-weight: 700; letter-spacing: .04em; color: var(--ink-faint);
                    text-transform: uppercase; display: block; margin-top: 4px; }
.promise-text { flex: 1; min-width: 240px; font-size: 1.02rem; }
.promise-text strong { display: block; font-size: 1.12rem; margin-bottom: 3px; }

/* ── Sections ───────────────────────────────────────────────────────────── */
.section { padding: clamp(56px, 8vw, 92px) 0; }
.section-tint { background: var(--paper-tint); }
.section-blue { background: var(--paper-blue); }
.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 0; }
.kicker { font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
          color: var(--cyan); margin-bottom: 12px; }
body[dir="rtl"] .kicker { letter-spacing: 0; }

/* ── Stat band ──────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line);
         border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: #fff; padding: 30px 22px; text-align: center; }
.stat b { display: block; font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; color: var(--blue);
          letter-spacing: -.03em; line-height: 1.05; }
.stat span { display: block; font-size: .88rem; color: var(--ink-soft); margin-top: 7px; font-weight: 600; }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
        padding: 30px 28px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--ink-soft); margin-bottom: 0; font-size: .98rem; }
/* Each card carries one ink colour as a top rule — cyan, magenta, yellow, blue
   in rotation, so a row of cards reads as a set without needing icons. */
.card::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 4px; background: var(--cyan); }
.card:nth-child(4n+2)::before { background: var(--magenta); }
.card:nth-child(4n+3)::before { background: var(--yellow); }
.card:nth-child(4n+4)::before { background: var(--blue); }

.card-num { font-size: .78rem; font-weight: 800; letter-spacing: .1em; color: var(--ink-faint);
            text-transform: uppercase; margin-bottom: 10px; }

/* Plain list of capabilities with a tick */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.ticks li { position: relative; padding-inline-start: 32px; color: var(--ink-soft); font-size: 1rem; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .42em; width: 18px; height: 18px;
                    border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E") center/12px no-repeat; }
.ticks li strong { color: var(--ink); }

/* ── Steps ──────────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 54px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0;
                inset-inline-start: 0; width: 40px; height: 40px; border-radius: 50%;
                background: var(--blue); color: #fff; font-weight: 800; font-size: 1.05rem;
                display: flex; align-items: center; justify-content: center; }
.step h3 { font-size: 1.06rem; }
.step p { color: var(--ink-soft); font-size: .96rem; margin-bottom: 0; }

/* ── Plate size table ───────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
table.plates { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 520px; }
table.plates caption { text-align: start; padding: 20px 24px 0; font-weight: 800; font-size: 1.1rem; }
table.plates th, table.plates td { padding: 14px 24px; text-align: start; border-bottom: 1px solid var(--line); }
table.plates thead th { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
                        color: var(--ink-faint); background: var(--paper-tint); }
body[dir="rtl"] table.plates thead th { letter-spacing: 0; }
table.plates tbody tr:last-child td { border-bottom: none; }
table.plates tbody tr:hover { background: var(--paper-blue); }
.dim { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gauge { display: inline-block; font-size: .82rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
         background: var(--paper-blue); color: var(--blue); white-space: nowrap; }

/* ── Silver anniversary badge ───────────────────────────────────────────── */
.silver { display: inline-flex; align-items: center; gap: 14px; padding: 14px 26px 14px 18px;
          border-radius: 999px; color: var(--ink);
          background: linear-gradient(135deg, var(--silver-1), var(--silver-2) 45%, var(--silver-1) 70%, var(--silver-3));
          box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 6px 18px rgba(16,24,40,.14); }
.silver b { font-size: 1.85rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.silver span { font-size: .84rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: #4a4d54; }
body[dir="rtl"] .silver { padding: 14px 18px 14px 26px; }
body[dir="rtl"] .silver span { letter-spacing: 0; }

/* ── Split feature block ────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
               background: var(--paper-tint); aspect-ratio: 4 / 3; display: flex; align-items: center;
               justify-content: center; color: var(--ink-faint); font-size: .9rem; text-align: center; padding: 24px; }

/* ── CTA band ───────────────────────────────────────────────────────────── */
.cta { background: linear-gradient(150deg, var(--blue-deep), var(--blue)); color: #fff; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.88); font-size: 1.1rem; max-width: 56ch; margin-inline: auto; margin-bottom: 1.6em; }

/* ── Forms ──────────────────────────────────────────────────────────────── */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
             padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; font-size: .93rem; margin-bottom: 7px; }
.field .hint { font-weight: 500; color: var(--ink-faint); font-size: .86rem; }
.field input, .field textarea, .field select {
    width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px;
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,84,166,.14);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.required { color: var(--magenta); }

/* Honeypot — a real-looking field kept out of sight and out of the tab order.
   Humans never see it; automated form-fillers fill everything they find, and
   that is how upload.php tells them apart. Must NOT be display:none, which
   the better bots check for. */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px;
      overflow: hidden; opacity: 0; }
body[dir="rtl"] .hp { left: auto !important; right: -9999px !important; }

.dropzone { border: 2px dashed var(--line); border-radius: var(--radius-lg); padding: 34px 24px;
            text-align: center; background: var(--paper-tint); transition: border-color .15s, background .15s; }
.dropzone.is-over { border-color: var(--blue); background: var(--paper-blue); }
.dropzone p { margin-bottom: 0; color: var(--ink-soft); font-size: .95rem; }
.file-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; text-align: start; }
.file-list li { display: flex; justify-content: space-between; gap: 14px; font-size: .92rem;
                background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 9px 14px; }
.file-list .sz { color: var(--ink-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }

.challenge { background: var(--paper-blue); border: 1px solid #d5e3f5; border-radius: var(--radius);
             padding: 18px 20px; }
.challenge label { margin-bottom: 8px; }
.challenge input { max-width: 160px; }

.alert { border-radius: var(--radius); padding: 15px 18px; margin-bottom: 22px; font-size: .96rem;
         border: 1px solid; }
.alert-ok   { background: #eefaf2; border-color: #b6e6c9; color: #14663a; }
.alert-bad  { background: #fdeef1; border-color: #f6c2ce; color: #9b1c36; }
.alert-info { background: var(--paper-blue); border-color: #cfe0f4; color: var(--blue-dark); }

/* ── Contact detail blocks ──────────────────────────────────────────────── */
.info { display: grid; gap: 18px; }
.info-item { border-inline-start: 3px solid var(--cyan); padding-inline-start: 18px; }
.info-item:nth-child(2) { border-color: var(--magenta); }
.info-item:nth-child(3) { border-color: var(--yellow); }
.info-item:nth-child(4) { border-color: var(--blue); }
.info-item b { display: block; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
               color: var(--ink-faint); margin-bottom: 4px; }
body[dir="rtl"] .info-item b { letter-spacing: 0; }
.info-item span, .info-item a { font-size: 1.05rem; font-weight: 600; }
.pending { color: var(--ink-faint); font-style: italic; font-weight: 500; }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
               padding: 18px 22px; margin-bottom: 12px; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between;
               gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--blue); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 14px 0 0; color: var(--ink-soft); font-size: .98rem; }

/* ══ MOTION & INTERACTION ═══════════════════════════════════════════════════
   Everything below is progressive enhancement. The gate is `html.js`, added by
   the script in <head>: with JavaScript off, none of these selectors match and
   every element renders in its final, visible state. Hiding things by default
   and revealing them with JS would mean a blank page for anyone whose script
   is blocked — so the hiding itself is behind the gate.
   ────────────────────────────────────────────────────────────────────────── */

/* Scroll reveal. Elements lift and fade as they enter the viewport, once. */
html.js .reveal { opacity: 0; transform: translateY(22px); }
html.js .reveal.is-in { opacity: 1; transform: none;
    transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
/* Children of a .reveal-group stagger, so a row of cards arrives as a wave
   rather than a block. The delay is set inline per child by the script. */
html.js .reveal-group > .reveal.is-in { transition-delay: var(--d, 0ms); }

/* Header condenses once the page scrolls — less chrome while reading. */
.site-header { transition: box-shadow .25s ease, background .25s ease; }
.header-row  { transition: min-height .25s ease; }
.logo img    { transition: height .25s ease; }
.site-header.is-stuck { box-shadow: 0 4px 20px rgba(16,24,40,.10); background: rgba(255,255,255,.98); }
.site-header.is-stuck .header-row { min-height: 60px; }
.site-header.is-stuck .logo img   { height: 28px; }

/* Cards lift on hover, and any photo inside them pushes in slightly. */
.card { transition: transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s ease; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.card-media { margin: -30px -28px 22px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--paper-tint); }
.card-media img { width: 100%; height: 100%; object-fit: cover;
                  transition: transform .55s cubic-bezier(.2,.7,.3,1); }
.card:hover .card-media img { transform: scale(1.07); }

/* Figure used in the split blocks on Services / About. */
.shot { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
        background: var(--paper-tint); position: relative; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block;
            transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.shot:hover img { transform: scale(1.04); }
.shot figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 26px 20px 14px;
    font-size: .84rem; color: #fff; font-weight: 600;
    background: linear-gradient(to top, rgba(0,0,0,.68), transparent); }

/* Counters hold their own width so the layout doesn't jitter while counting. */
.stat b { font-variant-numeric: tabular-nums; }

/* ── Plate finder ───────────────────────────────────────────────────────────
   The interactive answer to "tell us your press". Type a press name, a size,
   or one dimension, and the table narrows to what fits. Without JS it is just
   a text box above a complete table — nothing is hidden, so nothing is lost. */
.finder { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
          padding: 22px 24px; box-shadow: var(--shadow); margin-bottom: 26px; }
.finder label { display: block; font-weight: 700; margin-bottom: 9px; font-size: .95rem; }
.finder-input { position: relative; display: flex; align-items: center; gap: 10px; }
.finder input { flex: 1; font: inherit; font-size: 1.05rem; padding: 13px 15px;
                border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-tint); }
.finder input:focus { outline: none; border-color: var(--blue); background: #fff;
                      box-shadow: 0 0 0 3px rgba(0,84,166,.14); }
.finder-clear { border: none; background: none; cursor: pointer; font-size: 1.3rem; color: var(--ink-faint);
                padding: 4px 8px; line-height: 1; display: none; }
.finder.has-query .finder-clear { display: block; }
.finder-count { margin: 12px 0 0; font-size: .93rem; color: var(--ink-soft); min-height: 1.4em; }
.finder-count b { color: var(--blue); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px;
        font: inherit; font-size: .85rem; font-weight: 600; color: var(--ink-soft); cursor: pointer;
        transition: border-color .15s, color .15s, background .15s; }
.chip:hover, .chip.is-on { border-color: var(--blue); color: var(--blue); background: var(--paper-blue); }

table.plates tbody tr { transition: background .18s ease, opacity .18s ease; }
table.plates tbody tr.is-hidden { display: none; }
table.plates tbody tr.is-hit { background: #fff9e0; }
table.plates tbody tr.is-hit td:first-child { box-shadow: inset 3px 0 0 var(--yellow); }
[dir="rtl"] table.plates tbody tr.is-hit td:first-child { box-shadow: inset -3px 0 0 var(--yellow); }
.no-hits { padding: 26px 24px; text-align: center; color: var(--ink-soft); }

/* ── Photo strip ────────────────────────────────────────────────────────── */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.strip figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2;
                box-shadow: var(--shadow); background: var(--paper-tint); }
.strip img { width: 100%; height: 100%; object-fit: cover;
             transition: transform .5s cubic-bezier(.2,.7,.3,1), filter .3s ease; }
.strip figure:hover img { transform: scale(1.06); }

@media (max-width: 980px) { .strip { grid-template-columns: repeat(2, 1fr); } }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,.72); font-size: .94rem; }
.footer-main { padding: 52px 0 34px; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
                  margin-bottom: 16px; font-weight: 800; }
body[dir="rtl"] .site-footer h4 { letter-spacing: 0; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-logo img { height: 30px; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 20px 0; display: flex;
                 flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .87rem; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .steps  { grid-template-columns: repeat(2, 1fr); }
    .split  { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    /* At 2.4× the logo would be 504px wide — wider than the phone. 1.5×
       gives 315px, which still fills a 375px screen with a margin. Only the
       three variables change; the keyframes are shared. */
    :root {
        --intro-scale: 1.5;
        --intro-half-w: 157.6px;
        --intro-half-h: 25.5px;
    }

    body { font-size: 16px; }
    .nav-toggle { display: block; }
    .main-nav { display: none; position: absolute; inset-inline: 0; top: 100%; flex-direction: column;
                align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
                box-shadow: var(--shadow-lg); padding: 8px 0; }
    .main-nav.is-open { display: flex; }
    .main-nav a { padding: 13px 24px; }
    .lang-switch { margin: 8px 24px; align-self: flex-start; }

    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr; gap: 30px; }
    .promise { gap: 16px; padding: 22px; }
    .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; }

    /* Skip the intro entirely rather than flashing it in 1ms: hide the
       curtain and make sure the page itself is visible, since the fade-in
       above is what normally reveals it. */
    html.intro-play .intro-logo { display: none; }
    html.intro-play body > *:not(.intro-logo) { opacity: 1; animation: none; }

    /* Scroll reveals must end VISIBLE, not merely un-animated — the reveal
       state is opacity:0, so simply cancelling the transition would leave the
       page blank for exactly the people who asked for less movement. */
    html.js .reveal { opacity: 1 !important; transform: none !important; }
    .hero-photo img { animation: none; transform: scale(1.06); }
    .card:hover { transform: none; }
    .card:hover .card-media img, .shot:hover img, .strip figure:hover img { transform: none; }
}

/* ── RTL fixes that logical properties can't express ────────────────────── */
[dir="rtl"] .hero { background: linear-gradient(210deg, var(--blue-deep) 0%, var(--blue) 55%, #1668bd 100%); }
[dir="rtl"] .cta  { background: linear-gradient(210deg, var(--blue-deep), var(--blue)); }
/* Measurements read left-to-right in both languages. Without this the RTL
   paragraph flips the token order and "0.15 mm" renders as "mm 0.15" — and
   with Arabic-Indic digits it flipped "400 × 510" into "510 × 400", which for
   a plate size is not cosmetic at all. The digits themselves are Western for
   the same reason; see the note in build_halftone.py. `isolate` keeps the run
   from interacting with the Arabic around it at all. */
[dir="rtl"] .promise-num,
[dir="rtl"] .gauge,
[dir="rtl"] .dim { direction: ltr; unicode-bidi: isolate; }

/* Print — someone will print the plate-size page and pin it up. */
@media print {
    .site-header, .site-footer, .cta, .hero-actions, .nav-toggle { display: none !important; }
    body { font-size: 12pt; }
    .hero { background: none !important; color: #000; }
    .hero h1, .hero .lede { color: #000; }
    .table-wrap { border: none; }
    table.plates { min-width: 0; }
}
