/* ==========================================================================
   ALMOTAWAKEL — Aluminium & PVC Doors and Windows
   Rebuild v2. One stylesheet serves LTR and RTL via logical properties.

   Type: Bodoni Moda (Latin display) / Amiri (Arabic display)
         Archivo (Latin UI+body) / IBM Plex Sans Arabic (Arabic body)
   The display face is a high-contrast didone — thin hairlines against heavy
   stems — which is where the drama comes from at large sizes.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  --paper:        #F2F0EB;
  --paper-2:      #FFFFFF;
  --paper-3:      #E5E1D8;

  --ink:          #1B1E20;
  --ink-deep:     #0E1011;
  --ink-soft:     rgba(27, 30, 32, 0.62);   /* 4.7:1 on --paper */
  /* Was 0.36, which composited to ~#A4A4A2 — 2.1:1 on paper, well under the
     4.5:1 minimum, and it carried every small label on the page. Hierarchy
     between soft and faint is now carried by size and tracking, not by a
     contrast level that fails. */
  --ink-faint:    rgba(27, 30, 32, 0.66);   /* 5.1:1 on --paper */

  /* Darkened from #9A7239, which measured 3.8:1 on paper and 4.4:1 on white —
     both under 4.5:1, and it carries every eyebrow and partner-role label.
     This value clears AA on both grounds and still reads as bronze. */
  --bronze:       #8A6532;   /* 4.7:1 on --paper, 5.3:1 on white */
  --bronze-light: #CBA96B;   /* 8.7:1 on --ink-deep, for dark grounds only */

  --line:         rgba(27, 30, 32, 0.12);
  --line-invert:  rgba(255, 255, 255, 0.14);

  --font-display: 'Bodoni Moda', 'Amiri', Georgia, serif;
  --font-body:    'Archivo', 'IBM Plex Sans Arabic', system-ui, sans-serif;

  /* Display sizes run much larger than v1 — scale contrast is most of what
     separates a considered page from a flat one. */
  /* Also bounded by viewport HEIGHT — a width-only clamp lets the headline
     grow taller than the screen on short/landscape viewports. */
  --t-hero:   clamp(2.8rem, min(1.1rem + 8.6vw, 13vh), 9rem);
  --t-h3:     clamp(1.3rem, 1.1rem + 0.9vw, 1.75rem);
  --t-lede:   clamp(1.05rem, 0.98rem + 0.42vw, 1.32rem);
  --t-body:   clamp(0.96rem, 0.92rem + 0.2vw, 1.04rem);
  --t-small:  0.84rem;
  --t-micro:  0.75rem;   /* 12px floor — was 0.68rem (10.9px), under the minimum */

  --gutter:   clamp(1.25rem, 0.5rem + 2.8vw, 4rem);
  --section:  clamp(5rem, 2rem + 10vw, 12rem);
  --measure:  60ch;

  --ease:     cubic-bezier(0.22, 0.85, 0.28, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  /* Hover and colour changes live at 180ms — 300ms was the absolute ceiling
     for any UI transition, not a target. */
  --fast:     0.18s var(--ease);
  --press:    0.12s var(--ease-out);   /* press feedback must feel instant */
  --img:      0.45s var(--ease);       /* image scale on hover; 0.8s read as lag */

  --dir: 1;
}
[dir="rtl"] { --dir: -1; }

[lang="ar"] { --leading-body: 2.0; --leading-display: 1.28; }
[lang="en"], [lang="tr"] { --leading-body: 1.7; --leading-display: 0.94; }

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* The page is light overall; this makes native scrollbars and form controls
     render light rather than following the OS dark preference. */
  color-scheme: light;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--leading-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* Kills the 300ms double-tap zoom delay on touch. The tap highlight is tinted
   rather than removed — every control has a hover/active state, but touch
   users get no hover, so the flash is their only press feedback. */
a, button { touch-action: manipulation; -webkit-tap-highlight-color: rgba(154, 114, 57, 0.18); }

:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--paper); }

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--leading-display);
  text-wrap: balance;
}

/* Latin display: tight tracking + the optical-size axis pushed to its
   display end, which thins the hairlines and sharpens the contrast. */
[lang="en"] h1, [lang="tr"] h1,
[lang="en"] h2, [lang="tr"] h2 {
  letter-spacing: -0.028em;
  font-variation-settings: 'opsz' 96;
}
[lang="en"] h3, [lang="tr"] h3 { letter-spacing: -0.015em; }

/* Arabic sets optically smaller and must not carry negative tracking. */
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3 { letter-spacing: 0; }

/* The italic is the accent — a didone italic is a genuinely different
   letterform, not a slant, so it carries real emphasis. */
.accent { font-style: italic; color: var(--bronze); }
[lang="ar"] .accent { font-style: normal; }

/* Turkish casing: no text-transform anywhere. Every capitalised string in
   the markup is authored with correct İ / ı. */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--bronze);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 0.76rem; }
.eyebrow::before {
  content: '';
  inline-size: clamp(1.75rem, 3.5vw, 3.5rem);
  block-size: 1px;
  background: currentColor;
  flex: 0 0 auto;
}
.eyebrow--center { justify-content: center; }

.lede {
  font-size: var(--t-lede);
  color: var(--ink-soft);
  max-inline-size: var(--measure);
}

/* --------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */
.shell { inline-size: min(1480px, 100% - (var(--gutter) * 2)); margin-inline: auto; }

.section {
  padding-block: var(--section);
  position: relative;
  overflow-x: clip;   /* contains .reveal--side travel; no page overflow */
}

.section-head { display: grid; gap: 1.75rem; margin-block-end: clamp(3rem, 6vw, 6rem); }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1.1fr 1fr; align-items: end; gap: clamp(2.5rem, 6vw, 6rem); }
}
.section-head .eyebrow { margin-block-end: 1.25rem; }

/* --------------------------------------------------------------------------
   5. HEADER
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  /* padding is deliberately NOT transitioned — it is a layout property, so
     animating it forces reflow on a scroll-driven class change. */
  transition: background var(--fast), border-color var(--fast);
  border-block-end: 1px solid transparent;
  padding-block: 1.15rem;
}
/* Over the hero the header is transparent with light content; once scrolled
   past it, it becomes a solid paper bar. */
.site-header.is-over-hero { color: var(--paper); }
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  border-block-end-color: var(--line);
  padding-block: 0.7rem;
  color: var(--ink);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: flex; align-items: center; gap: 0.85rem; }
.brand img {
  block-size: clamp(30px, 3.6vw, 38px);
  inline-size: auto;
  transition: filter var(--fast);
}
.is-over-hero .brand img { filter: brightness(0) invert(1); }
.is-scrolled .brand img { filter: none; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  line-height: 1.05;
  display: block;
}
.brand-sub {
  font-size: var(--t-micro);
  letter-spacing: 0.16em;
  opacity: 0.55;
  line-height: 1.5;
  display: block;
}
[lang="ar"] .brand-sub { letter-spacing: 0; }
@media (max-width: 600px) { .brand-text { display: none; } }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.5rem); }
.nav-links { display: flex; gap: clamp(1rem, 2.2vw, 2.25rem); }
@media (max-width: 940px) { .nav-links { display: none; } }

.nav-links a {
  font-size: var(--t-small);
  font-weight: 500;
  opacity: 0.75;
  position: relative;
  padding-block: 0.3rem;
  transition: opacity var(--fast);
}
/* Underline grows via scaleX rather than inline-size: width is a layout
   property and animating it reflows on every frame of the hover. */
.nav-links a::after {
  content: '';
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  inline-size: 100%;
  block-size: 1px;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--fast);
}
[dir="rtl"] .nav-links a::after { transform-origin: right center; }
/* focus-visible is outside the hover query — keyboard users need it regardless */
.nav-links a:focus-visible::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { opacity: 1; }
  .nav-links a:hover::after { transform: scaleX(1); }
}

.lang { display: flex; align-items: center; border: 1px solid currentColor; border-radius: 100px; padding: 3px; gap: 2px; opacity: 0.85; }
.lang a {
  position: relative;
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.68rem;
  border-radius: 100px;
  opacity: 0.7;
  line-height: 1;
  transition: background var(--fast), opacity var(--fast), color var(--fast);
}
/* The visible pill is ~26px tall, below the 44px touch minimum. This extends
   the hit area vertically only — extending it horizontally would overlap the
   neighbouring language and cause mis-taps. */
.lang a::after {
  content: '';
  position: absolute;
  inset-block: -11px;   /* 22px pill + 22px = 44px effective target */
  inset-inline: 0;
}
.lang a:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .lang a:hover { opacity: 1; } }
.is-over-hero .lang a[aria-current="true"] { background: var(--paper); color: var(--ink); opacity: 1; }
.is-scrolled .lang a[aria-current="true"] { background: var(--ink); color: var(--paper); opacity: 1; }

/* --------------------------------------------------------------------------
   6. MOTION-SCROLL HERO
   Full-viewport. The background, overlay and copy each move at a different
   rate as the hero scrolls away — parallax depth rather than a static image.
   Transforms are written by JS (see main.js) via CSS custom properties, so
   the whole effect degrades to a plain static hero when motion is reduced.
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  /* min-block-size, not block-size: a fixed height forces tall copy to
     overflow upward under the fixed header. This lets the hero grow instead. */
  min-block-size: 100svh;
  overflow: hidden;
  display: grid;
  align-items: end;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  /* Oversized vertically so the layer has somewhere to travel. A parallax
     shift larger than this overhang would drag the image edge into view;
     using a percentage keeps the headroom proportional if the hero grows. */
  inset-block: -25%;
  inset-inline: 0;
  z-index: -2;
  /* translate before scale, so the shift is a literal distance rather than
     being multiplied by the current zoom. */
  transform: translate3d(0, var(--hero-shift, 0px), 0) scale(var(--hero-scale, 1));
  will-change: transform;
}
.hero-bg picture, .hero-bg img { inline-size: 100%; block-size: 100%; }
/* The source is a dense mid-grey grid — the busiest possible ground for white
   type. Dropping brightness hard and pulling contrast *down* flattens the
   grid into texture instead of competing detail. */
.hero-bg img { object-fit: cover; filter: grayscale(1) brightness(0.62); }

/* Legibility comes from a steep vertical gradient rather than from dimming
   the whole picture: near-opaque where the copy sits, nearly clear at the top
   so the lit cluster in the image survives. */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    /* Header band — keeps the white nav readable over bright glazing. */
    linear-gradient(to bottom,
      rgba(14, 16, 17, 0.58) 0%,
      rgba(14, 16, 17, 0.12) 14%,
      transparent 22%),
    /* Bottom scrim — carries the headline and lede. */
    linear-gradient(to top,
      rgba(14, 16, 17, 0.96) 0%,
      rgba(14, 16, 17, 0.86) 20%,
      rgba(14, 16, 17, 0.56) 42%,
      rgba(14, 16, 17, 0.24) 66%,
      rgba(14, 16, 17, 0.14) 100%),
    /* Side scrim from the text edge, mirrored for RTL. */
    linear-gradient(to var(--veil-dir, right),
      rgba(14, 16, 17, 0.62), transparent 64%),
    linear-gradient(to var(--veil-dir, right), rgba(154, 114, 57, 0.12), transparent 52%);
  opacity: var(--hero-veil, 1);
}
[dir="rtl"] .hero-veil { --veil-dir: left; }

.hero-inner {
  position: relative;
  inline-size: min(1480px, 100% - (var(--gutter) * 2));
  margin-inline: auto;
  /* Reserves the fixed header's footprint so the eyebrow can never ride up
     underneath it, however tall the headline gets. */
  padding-block-start: clamp(6rem, 13vh, 8.5rem);
  padding-block-end: clamp(4rem, 10vh, 8rem);
  color: var(--paper);
  transform: translate3d(0, var(--hero-copy-shift, 0px), 0);
  opacity: var(--hero-copy-fade, 1);
  will-change: transform, opacity;
  /* Kept wide and soft: a tight shadow would clog the didone's hairlines. */
  text-shadow: 0 2px 30px rgba(14, 16, 17, 0.65);
}

.hero-title {
  font-size: var(--t-hero);
  margin-block: 1.75rem 2rem;
  max-inline-size: 15ch;
}

/* Line-by-line entrance: each line is masked and its inner span rises. */
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span {
  display: block;
  transform: translateY(115%);
  animation: rise 0.85s var(--ease-out) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes rise { to { transform: translateY(0); } }

.hero .lede { color: rgba(255, 255, 255, 0.76); max-inline-size: 48ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-block-start: 2.5rem; }

/* Fading-in elements below the headline */
.hero-fade { opacity: 0; animation: fadeUp 0.8s var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   7. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.85rem;
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 1px solid currentColor;
  transition: background var(--fast), color var(--fast),
              border-color var(--fast), transform var(--press);
}
[lang="ar"] .btn { letter-spacing: 0; }

.btn--solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--ghost { background: transparent; }
.btn .arrow { transition: transform var(--fast); }

/* Press feedback works on every input type, so it is NOT behind the hover
   query — it is the only confirmation a touch user gets that the tap landed. */
.btn:active { transform: scale(0.97); }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: scale(0.97); }
  .btn--solid:hover { background: var(--bronze-light); border-color: var(--bronze-light); }
  .btn--ghost:hover { background: var(--paper); color: var(--ink); }
  .btn:hover .arrow { transform: translateX(calc(var(--dir) * 5px)); }
}

/* --------------------------------------------------------------------------
   8. ABOUT
   -------------------------------------------------------------------------- */
.about-grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1.1fr; gap: clamp(3rem, 8vw, 8rem); } }

.capabilities { display: grid; margin-block-start: 2.5rem; }
.capability { display: grid; gap: 0.6rem; padding-block: 1.75rem; border-block-start: 1px solid var(--line); }
.capability:last-child { border-block-end: 1px solid var(--line); }
.capability h3 { font-size: var(--t-h3); }
.capability p { color: var(--ink-soft); font-size: 0.94rem; max-inline-size: 46ch; }

.profile-figure { background: var(--paper-3); padding: clamp(1.5rem, 4vw, 3.25rem); display: grid; gap: 1.5rem; align-content: center; }
.profile-figure svg { inline-size: 100%; block-size: auto; }
.profile-caption { font-size: var(--t-micro); letter-spacing: 0.16em; color: var(--ink-faint); }
[lang="ar"] .profile-caption { letter-spacing: 0; }

/* --------------------------------------------------------------------------
   10. PRODUCTS
   -------------------------------------------------------------------------- */
/* Five products. Breakpoints are chosen to avoid a lone card on the last row:
   4-up would leave 4+1, so wide screens go straight to 5-up and mid screens
   drop to 3 (3+2) rather than 4. */
/* Separators are drawn per-card, not by exposing a coloured grid background
   through the gaps. With 5 cards no column count divides evenly, so the old
   technique left the empty cell of the last row showing as a grey block. */
.products { display: grid; gap: 1px; background: transparent; }
@media (min-width: 720px)  { .products { grid-template-columns: repeat(2, 1fr); } }
/* Capped at three columns so each product figure stays large. Above tablet
   this is always 3+2 — the incomplete last row is fine now that separators
   are drawn per-card rather than by exposing the grid background. */
@media (min-width: 1000px) { .products { grid-template-columns: repeat(3, 1fr); } }

.product {
  background: var(--paper);
  /* The ring sits in the 1px gap; adjacent rings coincide, so shared edges
     still read as a single hairline. */
  box-shadow: 0 0 0 1px var(--line);
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  display: grid;
  gap: 1.4rem;
  grid-template-rows: auto 1fr auto;
  transition: background var(--fast);
}
@media (hover: hover) and (pointer: fine) { .product:hover { background: var(--paper-2); } }

/* The product images are 1536x1024 (3:2) and opaque. Matching the frame to
   the source ratio means no crop and identical framing on all four cards;
   the old 3/4 portrait frame clipped them badly. */
.product-figure {
  background: var(--paper-2);
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.product-figure img {
  inline-size: 100%;
  block-size: 100%;
  /* cover, not contain: the ratios already match, so nothing is cropped, but
     cover guarantees the frame is filled edge to edge if a future image
     differs slightly. No multiply blend — these grounds are warm, not white,
     and multiplying would leave a beige block on the card. */
  object-fit: cover;
  transition: transform var(--img);
}
@media (hover: hover) and (pointer: fine) {
  .product:hover .product-figure img { transform: scale(1.06) translateY(-5px); }
}

.product h3 { font-size: var(--t-h3); }
.product p { color: var(--ink-soft); font-size: 0.9rem; }
.product-meta {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-block-start: 1rem; border-block-start: 1px solid var(--line);
  font-size: var(--t-micro); letter-spacing: 0.14em; color: var(--ink-faint);
}
[lang="ar"] .product-meta { letter-spacing: 0; }

/* --------------------------------------------------------------------------
   11. BAND
   -------------------------------------------------------------------------- */
.band { position: relative; min-block-size: clamp(560px, 90vh, 940px); display: grid; place-items: center; overflow: hidden; padding: var(--section) var(--gutter); }
.band picture { position: absolute; inset: 0; display: block; }
.band img { inline-size: 100%; block-size: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06); }
.band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(14,16,17,0.84), rgba(14,16,17,0.48)); }
.band-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  justify-items: center;
  /* Was 24ch. `ch` resolves against THIS element's font — the small body
     face — so it capped the display quote near 190px and forced a two-word
     wrap. The measure belongs on the quote itself, in its own em. */
  max-inline-size: min(100%, 64rem);
}
.band-inner .eyebrow { color: var(--bronze-light); }

.band-quote {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 0.85rem + 2.5vw, 3.25rem);
  /* --leading-display is 0.94 for Latin, which is right for a one-line
     headline and collides badly across four lines of a quote. */
  line-height: 1.14;
  color: var(--paper);
  max-inline-size: 15em;      /* ~32 characters per line, at any size */
  margin-inline: auto;
  text-wrap: balance;         /* even line lengths, not a ragged tail */
}
[lang="ar"] .band-quote { line-height: 1.7; max-inline-size: 17em; }
[lang="en"] .band-quote, [lang="tr"] .band-quote { letter-spacing: -0.025em; font-variation-settings: 'opsz' 96; }

/* --------------------------------------------------------------------------
   12. PARTNERS
   Official supplied logo files, trimmed to a uniform 150px height so they
   render at matching optical size.
   -------------------------------------------------------------------------- */
.partners-section { background: var(--ink); color: var(--paper); }
.partners-section .lede { color: rgba(255,255,255,0.66); }

.partners { display: grid; gap: 1px; background: var(--line-invert); }
@media (min-width: 840px) { .partners { grid-template-columns: repeat(3, 1fr); } }

/* White cards on the anthracite section: the gaps read as dark rules, and
   every partner logo sits on its own brand-neutral ground. */
.partner {
  background: var(--paper-2);
  color: var(--ink);
  /* Inline padding trimmed so the widest wordmark still fits at its full
     height in a three-column row rather than being scaled down. */
  padding: clamp(2.25rem, 4.5vw, 3.75rem) clamp(1.25rem, 2.2vw, 2rem);
  display: grid;
  gap: 1.25rem;
  align-content: start;
  transition: background var(--fast);
}
@media (hover: hover) and (pointer: fine) { .partner:hover { background: var(--paper); } }

.partner-mark {
  min-block-size: clamp(44px, 4.6vw, 62px);
  display: flex;
  align-items: center;
}

/* The cards are white, so each logo keeps its own brand colours with no plate
   behind it. A white knockout was ruled out because Bauplast's mark is a white
   letter reversed out of an orange square — flattening it would erase the "B". */
.partner-logo {
  /* All three files are trimmed to a uniform 150px height, so a fixed
     block-size renders them at matching optical heights. The previous
     190px width cap was what squashed the widest one out of step. */
  block-size: clamp(44px, 4.6vw, 62px);
  inline-size: auto;
  max-inline-size: 100%;
  object-fit: contain;
  object-position: left center;
  /* If a file is missing the alt text renders here, so the slot degrades to
     a readable name rather than a broken icon. */
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  transition: transform var(--fast);
}
[dir="rtl"] .partner-logo { object-position: right center; }
@media (hover: hover) and (pointer: fine) {
  .partner:hover .partner-logo { transform: translateY(-2px); }
}

/* Optical correction: Asia Pen's lockup is far wider than the other two
   (5.8:1 against roughly 4.3:1), so at an identical height it carries more
   visual mass and reads as the largest. Trimming its height evens the three
   out by area rather than by measurement. */
.partner-logo[src$="asiapen.png"] { block-size: clamp(37px, 3.9vw, 53px); }
.partner p { color: var(--ink-soft); font-size: 0.9rem; }
/* The role label is itself a <p> inside .partner, so `.partner p` (0-1-1)
   outranks a bare `.partner-role` (0-1-0). Qualify it to win the cascade. */
p.partner-role { font-size: var(--t-micro); letter-spacing: 0.18em; color: var(--bronze); }
[lang="ar"] p.partner-role { letter-spacing: 0; }

/* --------------------------------------------------------------------------
   13. CONTACT
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 7rem); } }

.contact-item { display: grid; gap: 0.4rem; padding-block: 1.6rem; border-block-start: 1px solid var(--line); }
.contact-item:last-child { border-block-end: 1px solid var(--line); }
.contact-label { font-size: var(--t-micro); letter-spacing: 0.18em; color: var(--ink-faint); }
[lang="ar"] .contact-label { letter-spacing: 0; }
.contact-value { font-family: var(--font-display); font-size: clamp(1.2rem, 2.2vw, 1.7rem); font-variant-numeric: tabular-nums; transition: color var(--fast), transform var(--press); }
a.contact-value:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { a.contact-value:hover { color: var(--bronze); } }

/* Latin data must stay LTR inside an RTL page. */
.ltr-data { direction: ltr; unicode-bidi: isolate; text-align: start; }

/* The contact panel is the company lockup, not a photograph. It therefore
   takes none of the photo treatment: no cover-crop, no grayscale, no bronze
   gradient — and it needs a light ground, since the mark is dark artwork on
   a transparent background. */
.contact-logo {
  aspect-ratio: 1 / 1;
  /* Transparent: the logo art is already transparent PNG, so it sits
     directly on the section's paper ground with no plate behind it. */
  background: transparent;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 6vw, 4.5rem);
}
.contact-logo img {
  inline-size: 100%;
  max-inline-size: 400px;
  block-size: auto;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   14. FOOTER
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink-deep); color: rgba(255,255,255,0.55); padding-block: clamp(2.5rem, 5vw, 4rem); font-size: var(--t-small); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.site-footer img { block-size: 34px; inline-size: auto; filter: brightness(0) invert(1); opacity: 0.6; }
.footer-langs { display: flex; gap: 1.25rem; }
/* padding-block gives these a 44px touch target without changing how they look. */
.footer-langs a { padding-block: 0.7rem; transition: color var(--fast), transform var(--press); }
.footer-langs a:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .footer-langs a:hover { color: var(--paper); } }

/* Build credit — text then mark, matching the green-line.ly treatment.
   Held in English on every locale, so it is always LTR regardless of page
   direction. */
.footer-credit {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--t-micro);
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--fast);
}
@media (hover: hover) and (pointer: fine) { .footer-credit:hover { color: var(--paper); } }

/* Painted as a mask rather than an <img>: an SVG loaded through <img> is an
   isolated document and cannot inherit currentColor, which would leave the
   mark black on this near-black footer. Masking paints currentColor through
   the silhouette instead. This matches how nivo-os draws it. */
.nivo-mark {
  inline-size: 20px;
  block-size: 20px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask-image: url(../img/nivo-it.svg);
          mask-image: url(../img/nivo-it.svg);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-mask-position: center;
          mask-position: center;
}

/* NIVO stays NIVO in every locale, per the brand rules. */
.nivo-word { font-weight: 600; letter-spacing: 0.16em; }

/* --------------------------------------------------------------------------
   15. SCROLL REVEAL
   Hidden state is scoped to .js, set inline before first paint, so the page
   is fully readable if JavaScript never runs.
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  /* 0.9s made scrolling feel syrupy — this fires on every section. */
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.js .reveal--side { transform: translateX(calc(var(--dir) * 44px)); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   16. REDUCED MOTION
   Everything scroll-driven, parallaxed or animated collapses to static.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-title .line > span { transform: none; animation: none; }
  .hero-fade { opacity: 1; animation: none; }
  .hero-bg { transform: none !important; }
  .hero-inner { transform: none !important; opacity: 1 !important; }
  /* Reduced motion means gentler, not none. Colour and opacity transitions
     still carry meaning (hover, focus, state), so they are kept — only
     movement is removed, by restricting which properties may transition. */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-property: opacity, color, background-color, border-color, filter !important;
    transition-duration: 0.15s !important;
  }
}

/* --------------------------------------------------------------------------
   17. MOBILE NAV
   -------------------------------------------------------------------------- */
.nav-toggle { display: none; padding: 0.5rem; }
@media (max-width: 940px) {
  /* 44x44 minimum touch target — the bars alone are only ~24x17. */
  .nav-toggle {
    display: grid;
    place-content: center;
    min-inline-size: 44px;
    min-block-size: 44px;
  }
}
.nav-toggle { transition: transform var(--press); }
.nav-toggle:active { transform: scale(0.92); }
.nav-toggle span { display: block; inline-size: 24px; block-size: 1.5px; background: currentColor; transition: transform var(--fast), opacity var(--fast); }
.nav-toggle span + span { margin-block-start: 6px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset-block-start: 0; inset-inline: 0;
  background: var(--paper); color: var(--ink);
  padding: 6rem var(--gutter) 3rem;
  z-index: 90; display: grid;
  transform: translateY(-100%);
  /* visibility, not just transform: a panel translated off-screen still has
     focusable links in it, so keyboard users would tab into a menu they
     cannot see. visibility:hidden removes them from the tab order, and the
     delay lets the close animation finish before it disappears. */
  visibility: hidden;
  /* Exit is faster than enter: opening is a considered action, closing is the
     system getting out of the way. */
  transition: transform 0.28s var(--ease), visibility 0s linear 0.28s;
  border-block-end: 1px solid var(--line);
  /* Stops scroll chaining to the page behind the open panel. */
  overscroll-behavior: contain;
}
.mobile-nav.is-open {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.5s var(--ease), visibility 0s linear 0s;
}
.mobile-nav a { transition: color var(--fast), transform var(--press); }
.mobile-nav a:active { transform: scale(0.98); }
.mobile-nav a { font-family: var(--font-display); font-size: 1.8rem; padding-block: 1rem; border-block-end: 1px solid var(--line); }
@media (min-width: 941px) { .mobile-nav { display: none; } }

/* Anchors must clear the fixed header. */
section[id] { scroll-margin-block-start: 92px; }

/* Skip link — clip-path hides it without an offset that would flip under RTL. */
.skip {
  position: fixed; inset-block-start: 0; inset-inline-start: 0; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 0.85rem 1.25rem;
  clip-path: inset(50%); opacity: 0;
}
.skip:focus { clip-path: none; opacity: 1; }
