/* ==========================================================================
   AL KIMA FOR PLASTIC INDUSTRY L.L.C. — MASTER STYLESHEET
   Single stylesheet. RTL is handled with CSS logical properties only.
   Do not add a second "rtl.css" — set <html dir="rtl"> and this file adapts.
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {
  /* --- Brand colour, sampled from the logo lockup --- */
  --c-teal-deep: #0f545a;
  --c-teal: #1a7b82;
  --c-emerald: #3b9e62;
  --c-silver: #a8b0b2;
  --c-slate: #2a3335;
  --c-paper: #f8f9fa;
  --c-white: #ffffff;

  /* --- Derived tints, for surfaces and hairlines only --- */
  --c-teal-wash: #eef4f5;
  --c-teal-ink: #0a3a3e;
  --c-line: #dfe4e5;
  --c-line-strong: #c3cacb;
  --c-muted: #63706f;

  /* --- Typography --- */
  --ff-display: "Inter", "Helvetica Neue", Arial, sans-serif;
  --ff-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --ff-mono: "IBM Plex Mono", "Roboto Mono", ui-monospace, monospace;
  --ff-arabic: "Cairo", "IBM Plex Sans Arabic", "Segoe UI", sans-serif;

  --fs-display: clamp(2.4rem, 1.4rem + 3.4vw, 4.1rem);
  --fs-h1: clamp(2rem, 1.3rem + 2.4vw, 3rem);
  --fs-h2: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
  --fs-h3: 1.125rem;
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;
  --fs-mono-label: 0.6875rem;

  --lh-tight: 1.12;
  --lh-body: 1.65;
  --tracking-display: -0.022em;
  --tracking-label: 0.16em;

  /* --- Spacing scale --- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* --- Structure --- */
  --wrap: 1200px;
  --wrap-narrow: 780px;
  --radius: 3px;
  --radius-lg: 5px;
  --hairline: 1px solid var(--c-line);

  --shadow-card: 0 1px 2px rgba(15, 84, 90, 0.05);
  --shadow-lift: 0 14px 30px -14px rgba(15, 84, 90, 0.28);
  --shadow-nav: 0 1px 0 var(--c-line);

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --dur: 220ms;

  --header-h: 118px;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-block-start: calc(var(--header-h) + var(--sp-4));
}

body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-slate);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-feature-settings: "cv05" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--c-teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--c-teal-deep);
}

:where(h1, h2, h3, h4) {
  font-family: var(--ff-display);
  color: var(--c-teal-deep);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
  font-weight: 700;
  margin-block: 0 var(--sp-4);
  text-wrap: balance;
}

p {
  margin-block: 0 var(--sp-4);
  max-width: 68ch;
}

:focus-visible {
  outline: 2px solid var(--c-emerald);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  inset-block-start: -100px;
  inset-inline-start: var(--sp-4);
  z-index: 200;
  background: var(--c-teal-deep);
  color: var(--c-white);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius);
}

.skip-link:focus {
  inset-block-start: var(--sp-3);
  color: var(--c-white);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ==========================================================================
   3. ARABIC / BIDIRECTIONAL TYPOGRAPHY
   ========================================================================== */

[lang="ar"],
html[dir="rtl"] body {
  font-family: var(--ff-arabic);
  letter-spacing: 0;
}

html[dir="rtl"] :where(h1, h2, h3, h4) {
  font-family: var(--ff-arabic);
  letter-spacing: 0;
  font-weight: 600;
  line-height: 1.35;
}

/* Latin technical strings embedded in Arabic copy keep the mono face and LTR run. */
.tech,
.mono {
  font-family: var(--ff-mono);
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

html[dir="rtl"] .tech {
  text-align: start;
}

/* ==========================================================================
   4. LAYOUT
   ========================================================================== */

.wrap {
  inline-size: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.wrap-narrow {
  inline-size: min(100% - 2.5rem, var(--wrap-narrow));
  margin-inline: auto;
}

.band {
  padding-block: var(--sp-9);
}

.band-tight {
  padding-block: var(--sp-8);
}

.band-white {
  background: var(--c-white);
  border-block: var(--hairline);
}

.band-ink {
  background: var(--c-teal-deep);
  color: #d6e3e4;
}

.band-ink :where(h1, h2, h3) {
  color: var(--c-white);
}

.band-ink a {
  color: #9ed6b7;
}

.grid {
  display: grid;
  gap: var(--sp-5);
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 820px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-8);
  align-items: center;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
}

/* ==========================================================================
   5. SIGNATURE: SECTION EYEBROW + CALIPER RULE
   The tick rule is a measurement scale, not decoration — it marks the
   start of every specified section the way a drawing sheet marks a zone.
   ========================================================================== */

.sec-head {
  margin-block-end: var(--sp-6);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--ff-mono);
  font-size: var(--fs-mono-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-teal);
  margin-block-end: var(--sp-4);
}

.eyebrow::after {
  content: "";
  flex: 1;
  block-size: 9px;
  min-inline-size: 60px;
  background-image: linear-gradient(
    to right,
    var(--c-line-strong) 0 1px,
    transparent 1px 100%
  );
  background-size: 8px 100%;
  background-position: 0 100%;
  background-repeat: repeat-x;
  border-block-end: 1px solid var(--c-line-strong);
}

.eyebrow-code {
  color: var(--c-emerald);
}

.lede {
  font-size: 1.0625rem;
  color: var(--c-muted);
  max-width: 62ch;
}

/* ==========================================================================
   6. HEADER & NAVIGATION
   ========================================================================== */

.topbar {
  background: var(--c-teal-deep);
  color: #b9d0d2;
  font-size: var(--fs-xs);
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-5);
  padding-block: var(--sp-2);
  min-block-size: 34px;
}

.topbar a {
  color: #d9e8e9;
  text-decoration: none;
}

.topbar a:hover {
  color: var(--c-white);
  text-decoration: underline;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.topbar-item svg {
  inline-size: 13px;
  block-size: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  opacity: 0.8;
  flex: none;
}

.topbar-spacer {
  margin-inline-start: auto;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #e6f1f2;
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  padding: 3px var(--sp-3);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
}

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  background: var(--c-white);
  box-shadow: var(--shadow-nav);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  padding-block: var(--sp-4);
}

/* Wide rectangular lockup — never crop it, scale it. */
.brand {
  flex: none;
  display: block;
  line-height: 0;
}

.brand img {
  block-size: clamp(34px, 4.4vw, 50px);
  inline-size: auto;
}

.nav {
  margin-inline-start: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-slate);
  text-decoration: none;
  border-block-end: 2px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.nav-link:hover {
  color: var(--c-teal);
  border-block-end-color: var(--c-silver);
}

.nav-link[aria-current="page"] {
  color: var(--c-teal-deep);
  font-weight: 600;
  border-block-end-color: var(--c-emerald);
}

.nav-cta {
  margin-inline-start: var(--sp-3);
}

.nav-toggle {
  display: none;
  margin-inline-start: auto;
  background: var(--c-white);
  border: var(--hairline);
  border-radius: var(--radius);
  padding: var(--sp-2) var(--sp-3);
  cursor: pointer;
  color: var(--c-teal-deep);
}

.nav-toggle svg {
  inline-size: 20px;
  block-size: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

@media (max-width: 940px) {
  :root {
    --header-h: 76px;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    inset-block-start: 100%;
    inset-inline: 0;
    background: var(--c-white);
    border-block-start: var(--hairline);
    box-shadow: var(--shadow-lift);
    display: none;
  }

  .nav[data-open="true"] {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: var(--sp-3);
  }

  .nav-link {
    padding: var(--sp-3);
    border-block-end: 1px solid var(--c-line);
  }

  .nav-cta {
    margin: var(--sp-3) 0 0;
  }

  .site-header {
    position: relative;
  }
}

/* ==========================================================================
   7. BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1;
  padding: 0.85rem var(--sp-5);
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--c-teal);
  color: var(--c-white);
}

.btn-primary:hover {
  background: var(--c-teal-deep);
  color: var(--c-white);
}

.btn-ghost {
  background: transparent;
  color: var(--c-teal-deep);
  border-color: var(--c-line-strong);
}

.btn-ghost:hover {
  border-color: var(--c-teal);
  color: var(--c-teal);
}

.band-ink .btn-primary {
  background: var(--c-white);
  color: var(--c-teal-deep);
}

.band-ink .btn-primary:hover {
  background: var(--c-emerald);
  color: var(--c-white);
}

.band-ink .btn-ghost {
  color: var(--c-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.band-ink .btn-ghost:hover {
  border-color: var(--c-white);
  color: var(--c-white);
}

.btn-sm {
  padding: 0.55rem var(--sp-4);
  font-size: var(--fs-xs);
}

.btn svg {
  inline-size: 15px;
  block-size: 15px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  flex: none;
}

/* Arrow flips direction in RTL. */
html[dir="rtl"] .btn svg.icon-arrow {
  transform: scaleX(-1);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-block-start: var(--sp-6);
}

/* ==========================================================================
   8. HERO — DIE PLATE
   ========================================================================== */

.hero {
  background: var(--c-white);
  border-block-end: var(--hairline);
  padding-block: var(--sp-8) var(--sp-9);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: var(--sp-8);
  align-items: center;
}

.hero-title {
  font-size: var(--fs-display);
  margin-block-end: var(--sp-5);
}

.hero-title em {
  font-style: normal;
  color: var(--c-teal);
}

.hero-lede {
  font-size: 1.125rem;
  color: var(--c-muted);
  max-width: 54ch;
}

/* Production snapshot strip — reads as the header block of a data sheet. */
.snapshot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  border: var(--hairline);
  border-radius: var(--radius);
  margin-block-start: var(--sp-7);
  background: var(--c-line);
  overflow: hidden;
}

.snapshot-cell {
  padding: var(--sp-4);
  background: var(--c-paper);
}

.snapshot-key {
  display: block;
  font-family: var(--ff-mono);
  font-size: var(--fs-mono-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-block-end: var(--sp-2);
}

.snapshot-val {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
  font-family: var(--ff-mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--c-teal-deep);
  font-variant-numeric: tabular-nums;
}

.snapshot-unit {
  font-size: 0.75rem;
  color: var(--c-teal);
  margin-inline-start: 2px;
}

@media (max-width: 940px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-7);
  }
}

/* --- Die plate figure --- */
.die {
  position: relative;
  aspect-ratio: 1;
  inline-size: 100%;
  max-inline-size: 480px;
  margin-inline: auto;
}

.die svg {
  inline-size: 100%;
  block-size: 100%;
  overflow: visible;
}

.die-ring-rotate {
  transform-origin: 260px 260px;
  animation: die-spin 44s linear infinite;
}

@keyframes die-spin {
  to {
    transform: rotate(360deg);
  }
}

.die-melt {
  animation: die-pulse 5.5s ease-in-out infinite;
}

@keyframes die-pulse {
  0%,
  100% {
    opacity: 0.25;
    r: 40;
  }
  50% {
    opacity: 0.5;
    r: 52;
  }
}

.die-leader {
  stroke: var(--c-teal);
  stroke-width: 1;
  fill: none;
  opacity: 0.55;
}

/* Drawing title block: the stamp that carries a drawing's controlled values. */
.die-figure {
  max-inline-size: 480px;
  margin-inline: auto;
}

.title-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  margin: var(--sp-5) 0 0;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius);
  background: var(--c-line);
  overflow: hidden;
}

.tb-cell {
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-paper);
}

.tb-key {
  font-family: var(--ff-mono);
  font-size: var(--fs-mono-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.tb-val {
  margin: var(--sp-2) 0 0;
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-teal-deep);
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

html[dir="rtl"] .tb-val {
  text-align: start;
}

/* ==========================================================================
   9. MATERIAL CATALOG CARD
   ========================================================================== */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  border-color: var(--c-teal);
  box-shadow: var(--shadow-lift);
}

/* Emerald index bar grows on hover — the tactile cue. */
.card::before {
  content: "";
  position: absolute;
  inset-block-start: -1px;
  inset-inline-start: -1px;
  inline-size: 42px;
  block-size: 3px;
  background: var(--c-emerald);
  border-start-start-radius: var(--radius-lg);
  transition: inline-size var(--dur) var(--ease);
}

.card:hover::before,
.card:focus-within::before {
  inline-size: calc(100% + 2px);
}

.card-code {
  font-family: var(--ff-mono);
  font-size: var(--fs-mono-label);
  letter-spacing: 0.14em;
  color: var(--c-teal);
  text-transform: uppercase;
  margin-block-end: var(--sp-2);
}

.card-title {
  font-size: var(--fs-h3);
  margin-block-end: var(--sp-2);
}

.card-desc {
  font-size: var(--fs-sm);
  color: var(--c-muted);
  margin-block-end: var(--sp-4);
}

.card-specs {
  list-style: none;
  margin: 0 0 var(--sp-4);
  padding: 0;
  border-block-start: 1px solid var(--c-line);
}

.card-specs li {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-2);
  border-block-end: 1px solid var(--c-line);
  font-size: var(--fs-sm);
}

.card-specs dt,
.spec-key {
  color: var(--c-muted);
}

.spec-val {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  color: var(--c-teal-deep);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: end;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-block: auto 0;
  padding-block-start: var(--sp-2);
}

.tag {
  font-size: var(--fs-xs);
  color: var(--c-teal-deep);
  background: var(--c-teal-wash);
  border: 1px solid #dbe7e8;
  border-radius: 100px;
  padding: 2px var(--sp-3);
}

.card-link {
  margin-block-start: var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.card-link svg {
  inline-size: 14px;
  block-size: 14px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  transition: transform var(--dur) var(--ease);
}

html[dir="rtl"] .card-link svg {
  transform: scaleX(-1);
}

.card:hover .card-link svg {
  transform: translateX(3px);
}

html[dir="rtl"] .card:hover .card-link svg {
  transform: scaleX(-1) translateX(3px);
}

/* ==========================================================================
   10. DATA TABLES
   ========================================================================== */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-lg);
  background: var(--c-white);
}

.data-table {
  inline-size: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  min-inline-size: 620px;
}

.data-table caption {
  text-align: start;
  padding: var(--sp-4) var(--sp-5);
  font-family: var(--ff-mono);
  font-size: var(--fs-mono-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
  border-block-end: 1px solid var(--c-line);
  background: var(--c-paper);
}

.data-table th,
.data-table td {
  text-align: start;
  padding: var(--sp-3) var(--sp-5);
  border-block-end: 1px solid var(--c-line);
  vertical-align: top;
}

.data-table thead th {
  background: var(--c-teal-deep);
  color: var(--c-white);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table tbody tr:nth-child(even) {
  background: var(--c-paper);
}

.data-table tbody tr:hover {
  background: var(--c-teal-wash);
}

.data-table tbody th {
  font-weight: 600;
  color: var(--c-teal-deep);
  white-space: nowrap;
}

.data-table td.num,
.data-table td .num {
  font-family: var(--ff-mono);
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
  color: var(--c-slate);
}

/* Numeric runs stay LTR internally but hug the RTL start edge. */
html[dir="rtl"] .data-table td.num {
  text-align: right;
}

.table-note {
  font-size: var(--fs-xs);
  color: var(--c-muted);
  margin-block-start: var(--sp-3);
  max-inline-size: 92ch;
}

/* ==========================================================================
   11. PROCESS SEQUENCE
   Order carries real information here: material moves through these
   stages in one direction. The connector line encodes that flow.
   ========================================================================== */

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.process-step {
  position: relative;
  counter-increment: step;
  padding-block-start: var(--sp-6);
  border-block-start: 2px solid var(--c-line-strong);
  transition: border-color var(--dur) var(--ease);
}

.process-step:hover {
  border-block-start-color: var(--c-emerald);
}

.process-step::before {
  content: "0" counter(step);
  position: absolute;
  inset-block-start: -0.85rem;
  inset-inline-start: 0;
  background: var(--c-white);
  padding-inline-end: var(--sp-3);
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-teal);
}

.band-ink .process-step::before {
  background: var(--c-teal-deep);
  color: var(--c-emerald);
}

.band-ink .process-step {
  border-block-start-color: rgba(255, 255, 255, 0.25);
}

.process-title {
  font-size: var(--fs-h3);
  margin-block-end: var(--sp-2);
}

.process-body {
  font-size: var(--fs-sm);
  color: var(--c-muted);
  margin: 0;
}

.band-ink .process-body {
  color: #a9c3c5;
}

.process[data-steps="5"] {
  grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1080px) {
  .process[data-steps="5"] {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-6) var(--sp-5);
  }
}

@media (max-width: 900px) {
  .process,
  .process[data-steps="5"] {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-6) var(--sp-5);
  }
}

@media (max-width: 520px) {
  .process,
  .process[data-steps="5"] {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   12. IMAGE SLOTS
   ========================================================================== */

.img-slot {
  margin: 0;
  background: var(--c-teal-wash);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.img-slot img,
.img-slot svg {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  display: block;
}

.img-slot figcaption {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  padding: var(--sp-3) var(--sp-4);
  background: linear-gradient(to top, rgba(15, 84, 90, 0.94) 40%, rgba(15, 84, 90, 0));
  color: var(--c-white);
  font-family: var(--ff-mono);
  font-size: var(--fs-mono-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ratio-4-3 {
  aspect-ratio: 4 / 3;
}

.ratio-16-9 {
  aspect-ratio: 16 / 9;
}

.ratio-1-1 {
  aspect-ratio: 1;
}

/* ==========================================================================
   13. MISC BLOCKS
   ========================================================================== */

.fact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-4);
}

.fact-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--c-slate);
}

.fact-list li::before {
  content: "";
  inline-size: 10px;
  block-size: 10px;
  margin-block-start: 0.45rem;
  background: var(--c-emerald);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

html[dir="rtl"] .fact-list li::before {
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

.callout {
  border-inline-start: 3px solid var(--c-emerald);
  background: var(--c-white);
  border-block: var(--hairline);
  border-inline-end: var(--hairline);
  border-radius: var(--radius);
  padding: var(--sp-5);
}

.callout p:last-child {
  margin-block-end: 0;
}

.term-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.term {
  background: var(--c-white);
  padding: var(--sp-5);
}

.term-key {
  font-family: var(--ff-mono);
  font-size: var(--fs-mono-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-teal);
  margin-block-end: var(--sp-2);
}

.term-val {
  font-size: var(--fs-sm);
  color: var(--c-slate);
  margin: 0;
}

.contact-card {
  background: var(--c-white);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
}

.contact-line {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--sp-4);
  padding-block: var(--sp-4);
  border-block-end: 1px solid var(--c-line);
  align-items: start;
}

.contact-line:last-of-type {
  border-block-end: 0;
}

.contact-line svg {
  inline-size: 18px;
  block-size: 18px;
  stroke: var(--c-teal);
  stroke-width: 1.6;
  fill: none;
  margin-block-start: 3px;
}

.contact-label {
  display: block;
  font-family: var(--ff-mono);
  font-size: var(--fs-mono-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-block-end: 2px;
}

.contact-value {
  font-size: 1rem;
  color: var(--c-teal-deep);
  font-weight: 500;
}

/* ==========================================================================
   14. FOOTER
   ========================================================================== */

.site-footer {
  background: var(--c-teal-deep);
  color: #a9c3c5;
  font-size: var(--fs-sm);
  padding-block: var(--sp-8) var(--sp-5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--sp-7);
  padding-block-end: var(--sp-6);
  border-block-end: 1px solid rgba(255, 255, 255, 0.16);
}

@media (max-width: 780px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
}

.footer-logo {
  background: var(--c-white);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
  display: inline-block;
  margin-block-end: var(--sp-4);
}

.footer-logo img {
  block-size: 34px;
  inline-size: auto;
}

.footer-title {
  font-family: var(--ff-mono);
  font-size: var(--fs-mono-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-white);
  margin-block-end: var(--sp-4);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-3);
}

.footer-list a,
.site-footer a {
  color: #cfe0e1;
  text-decoration: none;
}

.footer-list a:hover,
.site-footer a:hover {
  color: var(--c-white);
  text-decoration: underline;
}

.footer-label {
  font-family: var(--ff-mono);
  font-size: var(--fs-mono-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7fa0a2;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  justify-content: space-between;
  padding-block-start: var(--sp-5);
  font-size: var(--fs-xs);
  color: #8fadaf;
}

/* ==========================================================================
   15. SCROLL REVEAL & MOTION PREFERENCES
   ========================================================================== */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .btn:hover,
  .card:hover {
    transform: none;
  }
}

/* ==========================================================================
   16. PRINT
   ========================================================================== */

@media print {
  .topbar,
  .nav,
  .nav-toggle,
  .btn-row,
  .site-footer {
    display: none;
  }

  body {
    background: #fff;
  }

  .card,
  .table-scroll {
    break-inside: avoid;
  }
}
