/* =========================================================
   Fast Trade Resources: styles
   Brand toolkit v1 (approved 2026-11-25, variant A "Gold field").
   Sources: design/tokens.css + design/components.css + page layouts.
   Edit HERE for the live site; the design/ folder is the reference toolkit.
   Mobile first. Font sizes in rem (16px = 1rem).
   ========================================================= */

/* ---------- Functional rules (keep) ---------- */
html[data-lang="ms"] .en, html[data-lang="en"] .ms { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; z-index: 100; background: var(--white); padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Tokens ---------- */
:root {
  /* ---- Gold (from the logo gradient) ---- */
  --gold-1: #DB812B;          /* gradient start (copper) */
  --gold-2: #E2A429;          /* gradient middle: THE brand gold, used flat for fields and buttons */
  --gold-3: #F4DA2B;          /* gradient end (bright) */
  --gold-grad: linear-gradient(90deg, var(--gold-1) 0%, var(--gold-2) 48%, var(--gold-3) 100%);
  --gold: var(--gold-2);
  --gold-press: #C98E1C;      /* pressed / hover on gold fills */
  --gold-ink: #8A5A00;        /* gold for TEXT and icons on white or silver (6:1 on white) */
  --gold-tint: #FBF3DF;       /* pale gold wash for highlighted rows and notes */

  /* ---- Silver (from the logo) and neutrals ---- */
  --silver: #E6E8E7;          /* logo silver: tinted sections, footer */
  --silver-50: #F5F6F5;       /* lightest section ground */
  --line: #D3D7D6;            /* rules and card borders */
  --line-strong: #A7ADAC;     /* input borders, dividers on silver */
  --white: #FFFFFF;

  /* ---- Text (graphite, never pure black) ---- */
  --ink: #1F2226;             /* headings and body text (15.6:1 on white) */
  --ink-2: #3A3F44;           /* strong secondary */
  --muted: #565D62;           /* secondary text (6.6:1 on white, 5.3:1 on silver) */
  --on-gold: #1F2226;         /* text on gold fields (7.9:1) */

  /* ---- Function colours ---- */
  --wa: #157F3F;              /* WhatsApp buttons ONLY (5.3:1 with white text) */
  --wa-press: #0F6A33;
  --error: #B3261E;
  --error-tint: #FCEDEC;
  --sold: #565D62;

  /* ---- Type ---- */
  --f-head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;

  --t-xs: 0.8125rem;   /* 13px: legal lines, photo credits. Nothing smaller than 12px anywhere */
  --t-sm: 0.9375rem;   /* 15px: meta, captions */
  --t-card: 1rem;      /* 16px: card copy */
  --t-body: 1.0625rem; /* 17px: body */
  --t-lead: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);   /* 18 → 21 */
  --t-h4: 1.125rem;                                      /* 18 */
  --t-h3: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);       /* 20 → 24 */
  --t-h2: clamp(1.75rem, 1.4rem + 1.4vw, 2.625rem);      /* 28 → 42 */
  --t-h1: clamp(2.125rem, 1.6rem + 2.4vw, 3.75rem);      /* 34 → 60 */

  --lh-tight: 1.12;
  --lh-head: 1.2;
  --lh-body: 1.6;
  --track-head: -0.02em;
  --track-wide: 0.18em;      /* only for the "RESOURCES"-style sentence-case signature line */

  /* ---- Space (4px base) ---- */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem;
  --gutter: max(1rem, env(safe-area-inset-left));
  --wrap: 75rem;             /* 1200px content column */
  --section: clamp(3.5rem, 2rem + 6vw, 7rem);

  /* ---- Shape ---- */
  --r-sm: 6px;               /* buttons, inputs, chips */
  --r-md: 12px;              /* cards, photos */
  --r-brand: 48px;           /* the logo's big rounded corner, used on ONE corner only */
  --tap: 44px;               /* minimum tap target */

  /* ---- Depth: borders by default; shadow only for things that float ---- */
  --shadow-float: 0 8px 24px -8px rgba(31, 34, 38, 0.28), 0 2px 6px rgba(31, 34, 38, 0.12);
  --shadow-header: 0 1px 0 var(--line), 0 6px 16px -12px rgba(31, 34, 38, 0.35);

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 160ms;
  --t-med: 280ms;
  --t-slow: 520ms;

  /* ---- Focus ---- */
  --focus: 0 0 0 2px var(--white), 0 0 0 4px var(--ink);
}
@media (min-width: 768px) { :root { --gutter: max(2rem, env(safe-area-inset-left)); } }

/* ---------- Components ---------- */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 var(--t-body)/var(--lh-body) var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 700; line-height: var(--lh-head); letter-spacing: var(--track-head); margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: var(--t-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
h4 { font-size: var(--t-h4); }
p, ul, ol, dl, figure { margin: 0; }
[hidden] { display: none !important; }
p { text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--gold-ink); }
::selection { background: var(--gold-3); color: var(--ink); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
abbr[title] { text-decoration: underline dotted; cursor: help; }
.ico { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.2em; }
.mono, .item__tag { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
html { scrollbar-color: var(--line-strong) var(--silver-50); }
input, select, textarea, button { font: inherit; color: inherit; }
input { caret-color: var(--gold-ink); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--silver { background: var(--silver-50); }
.section--gold { background: var(--gold); color: var(--on-gold); }

/* ---------- Section head: heading + optional one-line lead. No eyebrow labels. ---------- */
.shead { display: grid; gap: var(--s-3); max-width: 46rem; margin-bottom: var(--s-6); }
.shead__title { font-size: var(--t-h2); }
.shead__lead { font-size: var(--t-lead); color: var(--muted); }
.shead--row { max-width: none; justify-items: start; }
@media (min-width: 768px) { .shead--row { grid-template-columns: 1fr auto; align-items: end; } }
.shead__rule { display: block; width: 3.5rem; height: 4px; background: var(--gold-grad); border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; white-space: nowrap; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--tap); padding: 0.625rem 1.25rem; border-radius: var(--r-sm);
  border: 2px solid transparent; font: 600 1rem/1.2 var(--f-head); letter-spacing: 0;
  text-decoration: none; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn--primary { background: var(--gold); color: var(--on-gold); }
.btn--primary:hover { background: var(--gold-press); }
.btn--secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--white); }
.btn--ghost { padding-inline: var(--s-2); color: var(--ink); }
.btn--ghost .ico { transition: transform var(--t-fast) var(--ease-out); }
.btn--ghost:hover .ico { transform: translateX(3px); }
.btn--wa { background: var(--wa); color: var(--white); }
.btn--wa:hover { background: var(--wa-press); }
.btn--sm { min-height: var(--tap); padding: 0.5rem 0.875rem; font-size: 0.9375rem; }
.btn--lg { min-height: 3.25rem; padding: 0.875rem 1.75rem; font-size: 1.0625rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
.on-photo .btn--secondary, .section--gold .btn--secondary { border-color: currentColor; color: inherit; }
.on-photo .btn--secondary:hover, .section--gold .btn--secondary:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* Text link with arrow ("Ketahui lebih lanjut") */
.more { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); font: 600 1rem var(--f-head); color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--gold); }
.more:hover { border-bottom-color: var(--ink); }

/* ---------- Top bar (white, sticky, solid) ---------- */
.utility { background: var(--silver); color: var(--ink-2); font-size: var(--t-sm); }
.utility .wrap { display: flex; gap: var(--s-5); justify-content: flex-end; min-height: 2.25rem; align-items: center; }
.utility a { text-decoration: none; display: inline-flex; gap: var(--s-2); align-items: center; }
.topbar { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.topbar.is-scrolled { box-shadow: var(--shadow-header); border-bottom-color: transparent; }
.topbar__inner { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; display: flex; align-items: center; gap: var(--s-5); min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; min-height: var(--tap); }
.brand__mark { width: 3rem; height: 2.4rem; background: url("/assets/brand/mark.png") center/contain no-repeat; }
.brand__name { font: 800 1.0625rem/1.05 var(--f-head); letter-spacing: 0.01em; white-space: nowrap; }
.brand__name small { display: block; white-space: nowrap; font: 500 0.75rem/1.3 var(--f-head); letter-spacing: var(--track-wide); color: var(--muted); }
.nav { display: flex; gap: var(--s-1); margin-left: auto; }
.nav a { position: relative; display: inline-flex; white-space: nowrap; align-items: center; min-height: var(--tap); padding: 0 var(--s-3); font: 600 0.9688rem var(--f-head); text-decoration: none; color: var(--ink-2); border-radius: var(--r-sm); }
.nav a:hover { color: var(--ink); background: var(--silver-50); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: var(--s-3); right: var(--s-3); bottom: 4px; height: 3px; border-radius: 2px; background: var(--gold); }
.topbar__actions { display: flex; align-items: center; gap: var(--s-3); }
.lang { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden; }
.lang button { min-width: var(--tap); min-height: calc(var(--tap) - 2px); border: 0; background: transparent; font: 600 0.875rem var(--f-head); cursor: pointer; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.menu-btn { width: var(--tap); height: var(--tap); border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--white); display: grid; place-items: center; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { content: ""; display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 1px; position: relative; }
.menu-btn span::before { position: absolute; top: -6px; } .menu-btn span::after { position: absolute; top: 6px; }
@media (min-width: 960px) and (max-width: 1199px) { .nav a { padding: 0 var(--s-2); font-size: 0.9375rem; } .brand__name small { display: none; } .topbar__inner { gap: var(--s-3); } }
@media (min-width: 960px) { .menu-btn { display: none; } }
@media (max-width: 959px) {
  .nav:not(.is-open) { display: none; }
  .topbar .btn--wa { display: none; }               /* phones: only the floating WhatsApp button */
  .topbar__actions { margin-left: auto; }           /* nav is out of the row here, so push BM/EN + menu to the right */
  .nav { position: absolute; inset: 100% 0 auto; flex-direction: column; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: var(--s-2) var(--gutter) var(--s-5); box-shadow: var(--shadow-header); }
  .nav a { min-height: 3.25rem; font-size: 1.0625rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"]::after { left: auto; right: 0; top: 50%; bottom: auto; width: 6px; height: 6px; border-radius: 50%; transform: translateY(-50%); }
  .utility { display: none; }
}

/* ---------- Floating WhatsApp (phones) ---------- */
.fab { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 60; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--wa); color: var(--white); display: grid; place-items: center; box-shadow: var(--shadow-float); }
.fab .ico { width: 1.75rem; height: 1.75rem; }
.fab { transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out); }
.fab.is-hidden { opacity: 0; transform: translateY(1rem); pointer-events: none; } /* hidden while another WhatsApp button is on screen */
.fab:active { transform: scale(0.95); }
@media (min-width: 960px) { .fab { display: none; } }

/* ---------- Hero: full-bleed job photo, white statement panel, leaf corner ---------- */
.hero { position: relative; }
.hero__photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--silver); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__panel { position: relative; background: var(--white); padding: var(--s-6) var(--gutter) var(--s-7); display: grid; gap: var(--s-4); }
.hero__panel h1 { max-width: 15ch; }
.hero__lead { font-size: var(--t-lead); color: var(--muted); max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-2); }
.hero__actions .btn { flex: 0 0 auto; }
@media (max-width: 599px) { .hero__actions .btn { flex-basis: 100%; } .final__actions .btn { flex: 1 1 100%; } }
/* Phones: keep "Resources Sdn Bhd" under the name, with a smaller mark and tighter tracking so the header still fits. */
@media (max-width: 479px) { .brand { gap: var(--s-2); } .brand__mark { width: 2.5rem; height: 2rem; } .brand__name small { letter-spacing: 0.02em; } .lang button { min-width: 2.5rem; } .topbar__inner { gap: var(--s-3); } .topbar__actions { gap: var(--s-2); } }
@media (max-width: 345px) { .brand__name small { display: none; } .topbar__inner { gap: var(--s-2); } } /* very narrow phones: the menu button wins */
.hero__sig { font: 500 var(--t-sm) var(--f-head); letter-spacing: 0.04em; color: var(--gold-ink); }
@media (min-width: 960px) {
  .hero { min-height: min(46rem, 88svh); display: grid; }
  .hero__photo { position: absolute; inset: 0 0 0 0; aspect-ratio: auto; border-bottom-right-radius: var(--r-brand); }
  .hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31,34,38,.38), rgba(31,34,38,0) 55%); }
  .hero__panel { align-self: end; justify-self: start; width: min(40rem, 52%); margin: 0 0 var(--s-8) max(var(--gutter), calc((100% - var(--wrap)) / 2)); padding: var(--s-7) var(--s-7) var(--s-6); border-top-left-radius: var(--r-brand); box-shadow: var(--shadow-float); }
}
.item__sample { top: auto !important; bottom: var(--s-3); }
.gh-tag, .item__sample { position: absolute; left: var(--s-3); top: var(--s-3); z-index: 2; background: rgba(255,255,255,.92); color: var(--ink); font: 600 0.8125rem var(--f-body); padding: 0.2rem 0.55rem; border-radius: 4px; }

/* ---------- Credentials strip (white row: label + issuer logos, thin dividers). Pattern supplied by the user 2026-11-25 ----------
   Logos are sized optically, not to one height: crests carry fine detail and need more height,
   a wordmark needs less. One shared slot height keeps every logo on the same centre line. */
.creds { --slot: 3.25rem; background: var(--white); border-bottom: 1px solid var(--line); }
.creds__row { list-style: none; margin: 0; padding: var(--s-3) 0; display: grid; }
.creds__group { display: grid; grid-template-columns: 7rem 1fr; align-items: center; gap: var(--s-4); padding: var(--s-3) 0; }
.creds__group + .creds__group { border-top: 1px solid var(--line); }
.creds__label { font: 600 0.8125rem/1.35 var(--f-head); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.creds__logos { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-5); list-style: none; padding: 0; margin: 0; }
.creds__logos li { height: var(--slot); display: grid; align-items: center; }
.creds__logos img { height: calc(var(--slot) * var(--k, 1)); width: auto; max-width: 9.5rem; object-fit: contain; }
@media (min-width: 960px) {
  .creds { --slot: 3.75rem; }
  .creds__row { display: flex; justify-content: center; align-items: center; padding: var(--s-5) 0; }
  .creds__group { display: flex; gap: var(--s-5); padding: 0 var(--s-7); }
  .creds__group:first-child { padding-left: 0; } .creds__group:last-child { padding-right: 0; }
  .creds__group + .creds__group { border-top: 0; border-left: 1px solid var(--line); }
  .creds__label { white-space: nowrap; }
}
@media (min-width: 960px) and (max-width: 1199px) { .creds__group { padding-inline: var(--s-5); } .creds__label { white-space: normal; max-width: 7rem; } }

/* Licence seal: a plain text seal, never an official crest */
.lic__seal { flex: none; width: 3.5rem; height: 3.5rem; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--ink); background: var(--white); font: 800 0.75rem/1 var(--f-head); letter-spacing: 0; text-align: center; color: var(--ink); box-shadow: inset 0 0 0 3px var(--white), inset 0 0 0 4px var(--gold); }
.lic__seal--sm { font-size: 0.75rem; } /* long codes get a bigger seal, never text under 12px */

/* Licence card (About page) */
.liccard { display: flex; gap: var(--s-4); align-items: center; align-self: start; padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }
.liccard__logo { flex: none; width: 4rem; height: 3.5rem; display: grid; place-items: center; }
.liccard__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.liccard h3 { font-size: var(--t-h4); }
.liccard p { font-size: var(--t-card); color: var(--muted); }

/* ---------- Cards ---------- */
.card { display: grid; gap: var(--s-3); align-content: start; padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }
.card h3 { font-size: var(--t-h4); }
.card p { font-size: var(--t-card); color: var(--muted); }
.card__icon { width: 3rem; height: 3rem; border-radius: var(--r-sm); background: var(--gold-tint); color: var(--gold-ink); display: grid; place-items: center; }
.card__icon .ico { width: 1.5rem; height: 1.5rem; }

/* Category photo card ("What we buy") */
.cat { position: relative; display: grid; border-radius: var(--r-md); overflow: hidden; background: var(--ink-2); text-decoration: none; isolation: isolate; min-height: 15rem; color: var(--white); } /* dark fallback keeps the white label readable before the photo loads */
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform var(--t-slow) var(--ease-out); }
.cat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(31,34,38,0) 35%, rgba(31,34,38,.82)); }
.cat__body { align-self: end; padding: var(--s-5); display: grid; gap: var(--s-1); }
.cat h3 { color: var(--white); font-size: var(--t-h3); }
.cat p { font-size: var(--t-sm); color: #E9EBEA; }
.cat:hover img { transform: scale(1.04); }

/* Project card */
.proj { display: grid; gap: var(--s-3); align-content: start; }
.proj__img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--silver); }
.proj__img img { width: 100%; height: 100%; object-fit: cover; }
.proj__type { font: 600 var(--t-sm) var(--f-head); color: var(--gold-ink); }
.proj h3 { font-size: var(--t-h4); }
.proj p { font-size: var(--t-card); color: var(--muted); }

/* ---------- Item card (catalogue) ---------- */
.items { list-style: none; padding: 0; display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.item { position: relative; display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); overflow: hidden; scroll-margin-top: 6rem; transition: box-shadow var(--t-med) var(--ease-out), border-color var(--t-med) var(--ease-out); }
.item__img { position: relative; aspect-ratio: 4 / 3; background: var(--silver); }
.item__img img { width: 100%; height: 100%; object-fit: cover; }
.item__tag { position: absolute; right: var(--s-3); bottom: var(--s-3); background: var(--white); color: var(--ink); font-size: 0.8125rem; font-weight: 500; padding: 0.2rem 0.5rem; border-radius: 4px; }
.item__status { position: absolute; left: var(--s-3); top: var(--s-3); font: 700 0.8125rem var(--f-head); padding: 0.25rem 0.6rem; border-radius: 4px; background: var(--gold); color: var(--on-gold); }
.item__status--sold { background: var(--ink); color: var(--white); }
.item__body { display: grid; gap: var(--s-2); padding: var(--s-4) var(--s-4) var(--s-5); align-content: start; }
.item__name { font-size: var(--t-h4); }
.item__desc { font-size: var(--t-card); color: var(--muted); }
.item__meta { display: flex; gap: var(--s-2); align-items: center; font-size: var(--t-sm); color: var(--muted); }
.item__price { font: 600 var(--t-sm) var(--f-head); color: var(--ink-2); }
.item__actions { display: flex; gap: var(--s-2); margin-top: var(--s-2); }
.item__actions .btn--wa { flex: 1; white-space: nowrap; }
.item__share { position: absolute; top: var(--s-3); right: var(--s-3); z-index: 3; width: var(--tap); padding: 0; background: rgba(255,255,255,.94); border-color: transparent; color: var(--ink); border-radius: 50%; } /* sits on the photo, top right */
.item__share:hover { background: var(--white); border-color: var(--ink); }
.item--sold .item__img img { filter: grayscale(1) contrast(.9); opacity: .7; }
.item--sold .btn--wa { background: var(--silver); color: var(--muted); pointer-events: none; }
.item.is-target { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold), var(--shadow-float); }
.item__thumbs { position: absolute; left: 0; right: 0; bottom: var(--s-2); display: flex; justify-content: center; gap: 0; }
.item__thumbs button { width: var(--tap); height: 1.5rem; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.item__thumbs button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.6); box-shadow: 0 0 0 1px rgba(31,34,38,.3); }
.item__thumbs button[aria-current="true"]::before { background: var(--white); }

/* Skeleton and error states */
.item--skeleton .item__img, .sk { background: linear-gradient(90deg, var(--silver-50), var(--silver) 50%, var(--silver-50)); background-size: 200% 100%; animation: sk 1.4s linear infinite; }
.sk { height: 0.9rem; border-radius: 4px; }
@keyframes sk { to { background-position: -200% 0; } }
.items__error { grid-column: 1 / -1; display: grid; gap: var(--s-3); justify-items: start; padding: var(--s-6); border: 1px solid var(--error); background: var(--error-tint); border-radius: var(--r-md); }
.items__error h3 { font-size: var(--t-h4); color: var(--error); }
.items__empty { grid-column: 1 / -1; padding: var(--s-6); text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--r-md); }

/* ---------- Catalogue controls ---------- */
.search { position: relative; display: flex; align-items: center; }
.search .ico { position: absolute; left: 0.875rem; color: var(--muted); pointer-events: none; }
.search input { width: 100%; min-height: 3rem; padding: 0 3rem 0 2.75rem; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--white); font-size: var(--t-body); }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--gold-tint), 0 0 0 1px var(--ink); }
.search__clear { position: absolute; right: 2px; width: var(--tap); height: var(--tap); border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 1.25rem; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; }
.chip { min-height: var(--tap); padding: 0 1rem; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--white); font: 600 0.9375rem var(--f-head); color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: var(--s-2); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip__n { font: 500 0.8125rem var(--f-mono); opacity: .75; }
.count { font-size: var(--t-sm); color: var(--muted); }

/* ---------- Steps (disposal process, viewing) ---------- */
.steps { list-style: none; padding: 0; display: grid; gap: var(--s-4); counter-reset: s; }
.steps li { counter-increment: s; position: relative; min-height: 5rem; padding: var(--s-4) 0 var(--s-4) 4rem; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: var(--s-4); width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; font: 700 1.125rem var(--f-head); background: var(--gold); color: var(--on-gold); }
.steps h3 { font-size: var(--t-h4); margin-bottom: var(--s-1); }
.steps p { font-size: var(--t-card); color: var(--muted); }
@media (min-width: 960px) { .steps--row { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); min-height: 3.5rem; padding-block: var(--s-3); font: 600 1.0625rem var(--f-head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 0.75rem; height: 0.75rem; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translateY(-3px); transition: transform var(--t-fast) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq details[open] summary { color: var(--gold-ink); }
.faq details p { padding-bottom: var(--s-5); color: var(--muted); max-width: 65ch; }

/* ---------- Final CTA band ---------- */
.final { background: var(--silver); }
.final__box { display: grid; gap: var(--s-5); padding: var(--s-7) var(--s-5); background: var(--white); border-radius: 0 var(--r-brand) 0 var(--r-brand); border: 1px solid var(--line); }
.final__title { font-size: var(--t-h2); max-width: 22ch; }
.final__lead { color: var(--muted); max-width: 40rem; }
.final__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.app { display: inline-flex; gap: var(--s-2); align-items: center; font-size: var(--t-sm); color: var(--muted); }
.app strong { color: var(--ink); font-family: var(--f-head); }
@media (min-width: 960px) { .final__box { grid-template-columns: 1.3fr 1fr; align-items: center; padding: var(--s-8); } }

/* ---------- Footer: silver, gold rule (never black) ---------- */
.footer { background: var(--silver-50); border-top: 4px solid; border-image: var(--gold-grad) 1; color: var(--ink-2); font-size: var(--t-sm); padding-bottom: env(safe-area-inset-bottom); }
.footer__grid { display: grid; gap: var(--s-6); padding-block: var(--s-8) var(--s-6); }
.footer__logo { width: 9rem; }
.footer h2 { font-size: 1rem; margin-bottom: var(--s-3); }
.footer ul { list-style: none; padding: 0; display: grid; gap: 0; }
.footer ul a { display: inline-flex; min-height: var(--tap); align-items: center; text-decoration: none; }
.footer ul a:hover { text-decoration: underline; }
.footer__legal { border-top: 1px solid var(--line); padding-block: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); justify-content: space-between; font-size: var(--t-xs); color: var(--muted); }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }

/* ---------- Motion: one authored moment (hero photo reveal); everything else is short state change ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__photo img:not(.slide) { animation: hero-in var(--t-slow) var(--ease-out) both; }
  @keyframes hero-in { from { clip-path: inset(0 0 0 12%); opacity: .6; } to { clip-path: inset(0); opacity: 1; } }
}

/* =========================================================
   PAGE LAYOUTS (Phase 3: ported from design/mockups and extended
   to the inner pages with the same toolkit parts)
   ========================================================= */

/* Aliases for class names the page markup and main.js already use */
.section--tint { background: var(--silver-50); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.tag-stock { position: absolute; left: var(--s-3); top: var(--s-3); z-index: 2; background: rgba(255,255,255,.92); color: var(--ink); font: 600 0.8125rem var(--f-body); padding: 0.2rem 0.55rem; border-radius: 4px; }
.placeholder { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: var(--s-2); color: var(--muted); font-size: var(--t-sm); background: var(--silver); }
.placeholder .ico { width: 2.5rem; height: 2.5rem; color: var(--line-strong); }
.note { margin-top: var(--s-5); font-size: var(--t-sm); color: var(--muted); display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.note a { color: var(--ink); font-weight: 600; }

/* Toast ("Pautan disalin") */
.toast { position: fixed; left: 50%; bottom: max(5.5rem, calc(env(safe-area-inset-bottom) + 5rem)); transform: translateX(-50%); z-index: 80; background: var(--ink); color: var(--white); padding: 0.75rem 1.25rem; border-radius: var(--r-sm); font: 600 0.9375rem var(--f-head); box-shadow: var(--shadow-float); }
@media (min-width: 960px) { .toast { bottom: 2rem; } }

/* ---------- Home hero slideshow inside the hero photo ---------- */
.hero__frame { position: absolute; inset: 0; margin: 0; }
.hero__frame .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 900ms var(--ease-out); }
.hero__frame .slide.is-on { opacity: 1; }
.hero__dots { position: absolute; right: var(--s-4); bottom: var(--s-4); z-index: 3; display: flex; align-items: center; gap: 0; background: rgba(255,255,255,.9); border-radius: 999px; padding: 0 var(--s-1); }
.hero__dots button { width: var(--tap); height: var(--tap); border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.hero__dots button:not(.hero__pause)::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink); }
.hero__dots button[aria-current="true"]::before { background: var(--ink); }
.hero__pause svg { width: 14px; height: 14px; }
@media (min-width: 960px) { .hero__dots { bottom: var(--s-6); right: max(var(--gutter), calc((100% - var(--wrap)) / 2)); } }
@media (prefers-reduced-motion: no-preference) {
  .hero__frame .slide.is-on { animation: hero-in var(--t-slow) var(--ease-out) both; }
}

/* ---------- Home: about teaser ---------- */
.about-split { display: grid; gap: var(--s-6); align-items: center; }
.about__text { font-size: var(--t-lead); max-width: 38rem; }
.keyfacts { display: grid; margin-top: var(--s-5); border-top: 1px solid var(--line); }
.keyfacts div { display: grid; grid-template-columns: 2.75rem 1fr; column-gap: var(--s-3); align-items: center; padding-block: var(--s-3); border-bottom: 1px solid var(--line); }
.keyfacts .card__icon { width: 2.75rem; height: 2.75rem; grid-row: span 2; }
.keyfacts dt { font: 700 1rem var(--f-head); }
.keyfacts dd { margin: 0; font-size: var(--t-card); color: var(--muted); }
.clients { margin-top: var(--s-5); }
.clients p { font: 600 var(--t-sm) var(--f-head); margin-bottom: var(--s-2); }
.clients ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.clients li { padding: 0.375rem 0.75rem; border-radius: 999px; background: var(--silver-50); border: 1px solid var(--line); font-size: var(--t-sm); }
.about__more { margin-top: var(--s-5); }
.photo { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--silver); margin: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--tall { aspect-ratio: 4 / 5; border-radius: var(--r-md) var(--r-brand) var(--r-md) var(--r-md); }
.photo--std { aspect-ratio: 4 / 3; }
@media (min-width: 960px) { .about-split { grid-template-columns: 1.15fr 1fr; gap: var(--s-8); } }

/* ---------- Home: what we buy ---------- */
.cats { list-style: none; padding: 0; display: grid; gap: var(--s-4); }
.cats > li { display: grid; }
@media (min-width: 640px) { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .cats { grid-template-columns: repeat(6, 1fr); }
  .cats > li { grid-column: span 2; }
  .cats > li:nth-child(1), .cats > li:nth-child(2) { grid-column: span 3; }
  .cats > li:nth-child(1) .cat, .cats > li:nth-child(2) .cat { min-height: 21rem; }
}
@media (min-width: 900px) { .items--3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Process grid ---------- */
@media (min-width: 768px) { .steps--grid, .steps--3 { grid-template-columns: repeat(2, 1fr); column-gap: var(--s-6); } }
@media (min-width: 1100px) { .steps--grid, .steps--3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Photo band ---------- */
.band { position: relative; min-height: clamp(18rem, 40vw, 30rem); display: grid; align-items: end; color: var(--white); isolation: isolate; overflow: hidden; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(31,34,38,.78), rgba(31,34,38,0) 60%); }
.band__cap { padding-block: var(--s-6); font: 600 var(--t-h3)/1.3 var(--f-head); max-width: 32ch; color: var(--white); }
.band .tag-stock { left: var(--gutter); top: var(--s-4); }

/* ---------- FAQ two-column ---------- */
.faq-wrap { display: grid; gap: var(--s-5); }
@media (min-width: 960px) { .faq-wrap { grid-template-columns: 1fr 1.6fr; gap: var(--s-8); align-items: start; } .faq-wrap .shead { position: sticky; top: 7rem; } }

/* ---------- Inner page hero ---------- */
.phero { padding-block: var(--s-6) var(--s-7); background: var(--white); }
.phero .wrap { display: grid; gap: var(--s-4); }
.crumbs { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; font-size: var(--t-sm); color: var(--muted); }
.crumbs a { display: inline-flex; min-height: var(--tap); align-items: center; color: var(--ink-2); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.phero__title { font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem); line-height: var(--lh-tight); max-width: 20ch; }
.phero__lead { font-size: var(--t-lead); color: var(--muted); max-width: 40rem; }
.phero__photo { aspect-ratio: 16 / 9; margin-top: var(--s-3); border-radius: var(--r-md) var(--r-md) var(--r-brand) var(--r-md); }
@media (min-width: 960px) {
  .phero { padding-block: var(--s-7) var(--s-8); }
  .phero .wrap { grid-template-columns: 1fr 1.1fr; column-gap: var(--s-8); align-items: center; }
  .phero .crumbs, .phero__title, .phero__lead { grid-column: 1; }
  .phero__photo { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; aspect-ratio: 4 / 3; }
}

/* ---------- Section heads used by the inner pages (shead > div) ---------- */
.shead > div { display: grid; gap: var(--s-3); }
.shead > div::before { content: ""; display: block; width: 3.5rem; height: 4px; border-radius: 2px; background: var(--gold-grad); }
.shead--row > div { max-width: 46rem; }

/* ---------- About ---------- */
.story { display: grid; gap: var(--s-6); }
.story__text { display: grid; gap: var(--s-4); align-content: start; max-width: 42rem; font-size: var(--t-body); }
.story__text > p:first-child { font-size: var(--t-lead); }
.motto { margin: var(--s-3) 0 0; padding: var(--s-5); border-radius: 0 var(--r-md) var(--r-md) 0; background: var(--gold-tint); border: 1px solid var(--line); }
.motto p { font: 700 var(--t-h3)/1.3 var(--f-head); color: var(--ink); }
.motto footer { margin-top: var(--s-2); font-size: var(--t-sm); color: var(--muted); }
.story__side { display: grid; gap: var(--s-5); align-content: start; }
.facts { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5); background: var(--white); }
.facts__title { font: 700 var(--t-h4) var(--f-head); margin-bottom: var(--s-3); }
.facts dl { display: grid; margin: 0; }
.facts dl div { display: grid; grid-template-columns: 8rem 1fr; gap: var(--s-3); padding-block: var(--s-2); border-top: 1px solid var(--line); font-size: var(--t-card); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
@media (min-width: 960px) { .story { grid-template-columns: 1.2fr 1fr; gap: var(--s-8); } }

.cards { list-style: none; padding: 0; display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }
.card__ico { width: 3rem; height: 3rem; padding: 0.75rem; border-radius: var(--r-sm); background: var(--gold-tint); color: var(--gold-ink); }

.serve { list-style: none; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.serve li { display: grid; gap: var(--s-1); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.serve h3 { font-size: var(--t-h4); }
.serve p { font-size: var(--t-card); color: var(--muted); }
@media (min-width: 768px) { .serve { grid-template-columns: repeat(2, 1fr); column-gap: var(--s-6); } }
@media (min-width: 1100px) { .serve { grid-template-columns: repeat(3, 1fr); } }

/* Equipment: was a dark band; now silver (no black theme) */
.section--dark { background: var(--silver); }
.gallery { list-style: none; padding: 0; display: grid; gap: var(--s-3); grid-template-columns: repeat(2, 1fr); }
.gallery li { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--line); }
.gallery li:first-child { border-top-left-radius: var(--r-brand); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery li > span { position: absolute; left: var(--s-2); bottom: var(--s-2); background: rgba(255,255,255,.94); color: var(--ink); font: 600 var(--t-sm) var(--f-head); padding: 0.25rem 0.6rem; border-radius: 4px; }
@media (min-width: 960px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.equip { list-style: none; padding: 0; margin-top: var(--s-6); display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
.equip li { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); background: var(--white); border-radius: var(--r-sm); font-size: var(--t-card); }
.equip .ico { width: 1.5rem; height: 1.5rem; color: var(--gold-ink); }
@media (min-width: 640px) { .equip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .equip { grid-template-columns: repeat(4, 1fr); } }

.licgrid { list-style: none; padding: 0; display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .licgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .licgrid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Projects ---------- */
.projects { list-style: none; padding: 0; display: grid; gap: var(--s-6) var(--s-5); }
@media (min-width: 640px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .projects { grid-template-columns: repeat(3, 1fr); } }
.proj__body { display: grid; gap: var(--s-1); }
.proj__title { font-size: var(--t-h4); }
.partners { margin-top: var(--s-8); display: grid; gap: var(--s-4); justify-items: center; text-align: center; }
.partners__label { font: 600 0.8125rem var(--f-head); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.partners__list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s-5) var(--s-7); }
.partners__list img { height: calc(3.25rem * var(--k, 1)); width: auto; max-width: 9rem; object-fit: contain; }

/* ---------- For sale: catalogue controls ---------- */
.catbar { display: grid; gap: var(--s-3); margin-bottom: var(--s-4); }
.catbar .search { max-width: 34rem; }
.search .sr-only + input { padding-left: 2.75rem; }
.catbar__count { font-size: var(--t-sm); color: var(--muted); }
@media (min-width: 768px) { .catbar { grid-template-columns: 1fr auto; align-items: center; } }
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.filters button { min-height: var(--tap); padding: 0 1rem; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--white); font: 600 0.9375rem var(--f-head); color: var(--ink-2); cursor: pointer; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
div.items__empty { margin-top: var(--s-5); display: grid; gap: var(--s-4); justify-items: center; }
.items__empty-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; }
.filters .chip__n { margin-left: 0.25rem; }
.filters .chip__n:empty { display: none; }
.skeleton { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--white); display: grid; gap: var(--s-3); padding-bottom: var(--s-5); }
.skeleton__img { aspect-ratio: 4 / 3; }
.skeleton__line { height: 0.9rem; margin-inline: var(--s-4); border-radius: 4px; }
.skeleton__line:last-child { width: 55%; }
.skeleton__img, .skeleton__line { background: linear-gradient(90deg, var(--silver-50), var(--silver) 50%, var(--silver-50)); background-size: 200% 100%; animation: sk 1.4s linear infinite; }
li.items__error { display: block; color: var(--ink); }
li.items__error a { font-weight: 700; color: var(--wa); }

/* ---------- Contact ---------- */
.howto { list-style: none; padding: 0; display: grid; gap: var(--s-4); }
.howto li { display: grid; gap: var(--s-3); align-content: start; justify-items: start; padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }
.howto li:first-child { border-color: var(--wa); }
.howto h3 { font-size: var(--t-h3); }
.howto p { color: var(--muted); font-size: var(--t-card); }
.howto .btn { margin-top: auto; }
@media (min-width: 900px) { .howto { grid-template-columns: repeat(3, 1fr); } }
.office { display: grid; gap: var(--s-5); }
.office__info { display: grid; gap: var(--s-5); align-content: start; padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }
.contact { list-style: none; padding: 0; display: grid; gap: 0; }
.contact li { display: grid; grid-template-columns: 1.5rem 1fr; gap: var(--s-3); padding-block: var(--s-3); border-bottom: 1px solid var(--line); align-items: start; }
.contact li:last-child { border-bottom: 0; }
.contact .ico { color: var(--gold-ink); margin-top: 0.15rem; }
.contact address { font-style: normal; }
.office__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.office__map { min-height: 20rem; border-radius: var(--r-md) var(--r-brand) var(--r-md) var(--r-md); overflow: hidden; background: var(--silver); display: grid; }
.office__map iframe { width: 100%; height: 100%; min-height: 20rem; border: 0; }
.map-load { border: 0; background: transparent; cursor: pointer; display: grid; place-content: center; justify-items: center; gap: var(--s-2); font: 600 1rem var(--f-head); color: var(--ink); min-height: 20rem; }
.map-load .ico { width: 2.25rem; height: 2.25rem; color: var(--gold-ink); }
.map-load:hover { background: var(--line); }
@media (min-width: 960px) { .office { grid-template-columns: 1fr 1.3fr; } }

/* ---------- Footer extras ---------- */
.footer address { font-style: normal; }
.footer p + p { margin-top: var(--s-2); }

/* =========================================================
   MOTION (2026-11-25, Emil Kowalski's rules via /find-animation-opportunities + /animate)
   Only where motion explains a change. Curve: the site's --ease-out. No scroll reveals.
   ========================================================= */
:root { interpolate-size: allow-keywords; color-scheme: light; } /* lets the FAQ animate to height:auto where supported */

/* 1. FAQ answers open and close instead of snapping (state indication). Unsupported browsers: instant, as before. */
.faq details::details-content {
  block-size: 0; overflow: clip; opacity: 0;
  transition: block-size 250ms var(--ease-out), opacity 250ms var(--ease-out), content-visibility 250ms allow-discrete;
}
.faq details[open]::details-content { block-size: auto; opacity: 1; }

/* 2. Phone menu drops from the header and leaves the same way; the icon becomes a close cross (spatial + state). */
@media (max-width: 959px) {
  .nav { transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), display 200ms allow-discrete; }
  .nav:not(.is-open) { opacity: 0; transform: translateY(-0.5rem); }
  .nav.is-open { opacity: 1; transform: none; }
  @starting-style { .nav.is-open { opacity: 0; transform: translateY(-0.5rem); } }
}
.menu-btn span { transition: background-color 120ms ease; }
.menu-btn span::before, .menu-btn span::after { transition: transform 200ms var(--ease-out); }
.menu-btn[aria-expanded="true"] span { background-color: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* 3. Press feedback on every small control (the big buttons already have it). */
.chip, .filters button, .lang button, .item__share, .menu-btn, .hero__dots button, .map-load {
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.chip:active, .filters button:active, .lang button:active, .item__share:active, .menu-btn:active, .hero__dots button:active { transform: scale(0.97); }
/* Photo zoom only for a real mouse: touch fires a hover on tap and leaves it stuck. */
.cat:hover img { transform: none; }
@media (hover: hover) and (pointer: fine) { .cat:hover img { transform: scale(1.04); } }

/* 4. First load of the item list: cards replace the skeletons with a short fade-up, staggered 40ms. Filtering and search do not animate. */
.items.is-arriving > .item { animation: item-in 260ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes item-in { from { opacity: 0; transform: translateY(0.5rem); } }

/* 5. "Link copied" toast rises from the bottom and leaves the same way. */
.toast { transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
@starting-style { .toast { opacity: 0; transform: translate(-50%, 0.5rem); } }
.toast.is-out { opacity: 0; transform: translate(-50%, 0.5rem); }

/* 6. Opened from a shared link: the gold ring draws in once the page has scrolled to the item. */
.item.is-target { animation: target-ring 400ms var(--ease-out) 300ms both; }
@keyframes target-ring { from { box-shadow: 0 0 0 0 var(--gold), var(--shadow-float); } }

/* 7. Office map fades in when it has loaded, over a "loading" note. */
.office__map > * { grid-area: 1 / 1; }
.map-wait { align-self: center; justify-self: center; font-size: var(--t-sm); color: var(--muted); }
.office__map iframe { opacity: 0; transition: opacity 300ms var(--ease-out); }
.office__map iframe.is-loaded { opacity: 1; }

/* Reduced motion: fewer and gentler, not zero. Keep short fades; remove movement, size changes and loops. */
@media (prefers-reduced-motion: reduce) {
  .hero__photo img, .hero__frame .slide.is-on, .item.is-target { animation: none; }
  .skeleton__img, .skeleton__line, .item--skeleton .item__img, .sk { animation: none; }
  .btn:active, .fab:active, .chip:active, .filters button:active, .lang button:active, .item__share:active, .menu-btn:active, .hero__dots button:active { transform: none; }
  .fab.is-hidden, .nav:not(.is-open) { transform: none; }
  .toast.is-out { transform: translateX(-50%); }
  @starting-style { .nav.is-open { transform: none; } .toast { transform: translateX(-50%); } }
  .cat img, .btn--ghost .ico { transition: none; }
  .items.is-arriving > .item { animation-name: item-fade; }
  .faq details::details-content { transition: opacity 200ms ease, content-visibility 200ms allow-discrete; }
  .menu-btn span::before, .menu-btn span::after { transition: none; }
}
@keyframes item-fade { from { opacity: 0; } }

/* Phone menu is open: page behind it does not scroll; a tap outside closes it (main.js initMenu). */
@media (max-width: 959px) { html.menu-open { overflow: hidden; } }

/* About: "Siapa kami" in segments (2026-11-25): short intro, three working points, slim motto, photo; facts as a strip below. */
.story__intro { font-size: var(--t-lead); max-width: 38rem; }
.pillars { list-style: none; padding: 0; margin-top: var(--s-5); display: grid; border-top: 1px solid var(--line); }
.pillars li { display: grid; grid-template-columns: 2.75rem 1fr; gap: var(--s-4); align-items: start; padding-block: var(--s-4); border-bottom: 1px solid var(--line); }
.pillars .card__icon { width: 2.75rem; height: 2.75rem; }
.pillars h3 { font-size: var(--t-h4); margin-bottom: 0.125rem; }
.pillars p { font-size: var(--t-card); color: var(--muted); }
.motto-line { margin-top: var(--s-5); padding-left: var(--s-4); border-left: 3px solid var(--gold); font: 600 var(--t-sm)/1.5 var(--f-head); color: var(--ink-2); }
.motto-line span span { font-weight: 400; color: var(--muted); }
.story__photo { aspect-ratio: 4 / 5; border-radius: var(--r-md) var(--r-brand) var(--r-md) var(--r-md); }
@media (min-width: 960px) { .story { grid-template-columns: 1.15fr 1fr; align-items: start; } .story__photo { aspect-ratio: 5 / 4; } }
#siapa .facts { margin-top: var(--s-6); }
#siapa .facts dl { gap: 0 var(--s-6); }
@media (min-width: 768px) { #siapa .facts dl { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { #siapa .facts dl { grid-template-columns: repeat(3, 1fr); } }
#siapa .facts dl div { grid-template-columns: 1fr; gap: 0.125rem; }

/* Spacing rhythm (2026-11-25, checked in Chrome): tighter sections, no doubled white gaps. */
:root { --section: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.section:not(.section--tint, .section--silver, .section--dark) + .section:not(.section--tint, .section--silver, .section--dark) { padding-top: 0; }
.phero + .section:not(.section--tint, .section--silver, .section--dark) { padding-top: var(--s-5); }
.phero { padding-bottom: var(--s-6); }
@media (min-width: 960px) { .phero { padding-block: var(--s-6) var(--s-7); } }
.final .wrap.section { padding-block: var(--s-6); }
@media (min-width: 960px) { .final__box { padding: var(--s-7) var(--s-8); } }
.footer__grid { padding-block: var(--s-7) var(--s-5); }


/* ---------- Language toggle: styled from <html data-lang> so it is right on first paint ---------- */
.lang button[aria-pressed="true"] { background: transparent; color: var(--muted); }
html[data-lang="ms"] .lang [data-set-lang="ms"], html[data-lang="en"] .lang [data-set-lang="en"] { background: var(--ink); color: var(--white); }
.lang button { transition: none; }

/* ---------- Footer redesign ---------- */
.footer__grid { gap: var(--s-6) var(--s-5); grid-template-columns: 1fr 1fr; padding-block: var(--s-7) var(--s-5); }
.footer__brand { grid-column: 1 / -1; }
.footer__tag { margin-top: var(--s-5); max-width: 26rem; line-height: 1.6; }
.footer h2 { font-size: 1rem; margin-bottom: var(--s-2); }
.footer ul { gap: var(--s-1); }
.footer ul a { min-height: 2rem; padding-block: 0.25rem; }
.footer address { line-height: 1.7; }
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(3, 1fr); } .footer__brand { grid-column: 1 / -1; } }
@media (min-width: 960px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: var(--s-6) var(--s-7); } .footer__brand { grid-column: auto; } }

/* ---------- Projects: cards, client row, lightbox ---------- */
/* width: buttons shrink to their text by default; a card always fills its grid column. */
button.proj { all: unset; box-sizing: border-box; display: grid; width: 100%; gap: var(--s-3); align-content: start; cursor: pointer; text-align: left; }
button.proj:focus-visible { outline: 3px solid var(--gold-ink); outline-offset: 4px; border-radius: var(--r-md); }
button.proj:hover .proj__img img { transform: scale(1.03); }
.proj__img img { transition: transform var(--t-slow) var(--ease-out); }
.proj__count { position: absolute; right: var(--s-3); bottom: var(--s-3); background: rgba(31,34,38,.85); color: #fff; font: 600 0.8125rem var(--f-body); padding: 0.2rem 0.6rem; border-radius: 999px; }
.proj__client { display: flex; align-items: center; gap: var(--s-2); font: 700 0.9375rem var(--f-head); color: var(--ink); }
.proj__client img, .proj__client .proj__initials { width: 2.25rem; height: 2.25rem; border-radius: 6px; background: #fff; border: 1px solid var(--line); object-fit: contain; flex: none; }
.proj__initials { display: grid; place-items: center; font: 700 0.8125rem var(--f-head); color: var(--muted); }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100dvh; }
dialog.lightbox::backdrop { background: rgba(20,22,25,.88); }
.lightbox__box { width: 100%; height: 100%; display: grid; grid-template-rows: auto 1fr auto auto; gap: var(--s-3); padding: var(--s-4); color: #fff; }
.lightbox__head { display: flex; align-items: center; gap: var(--s-3); }
.lightbox__head .proj__client { color: #fff; flex: 1; min-width: 0; }
.lightbox__head .proj__client span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox__close, .lightbox__nav { width: var(--tap); height: var(--tap); border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.3); }
.lightbox__stage { position: relative; min-height: 0; display: grid; place-items: center; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r-sm); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 0; } .lightbox__nav--next { right: 0; }
.lightbox__cap { text-align: center; font-size: var(--t-sm); }
.lightbox__cap strong { display: block; font: 700 1rem var(--f-head); }
.lightbox__thumbs { display: flex; gap: var(--s-2); justify-content: center; overflow-x: auto; padding-bottom: env(safe-area-inset-bottom); }
.lightbox__thumbs button { flex: none; width: 4.5rem; height: 3.25rem; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; cursor: pointer; opacity: .6; background: none; }
.lightbox__thumbs button[aria-current="true"] { border-color: #fff; opacity: 1; }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
button.proj .proj__img { display: block; width: 100%; }
button.proj .proj__body { display: grid; gap: var(--s-1); }
button.proj .proj__type, button.proj .proj__title { display: block; }
button.proj .proj__title { font: 700 var(--t-h4) var(--f-head); color: var(--ink); }
button.proj .proj__placeholder, button.proj .placeholder { display: grid; aspect-ratio: 4 / 3; }


/* ---------- For-sale cards: fixed rhythm so every card lines up, button pinned to the bottom ---------- */
.item { grid-template-rows: auto 1fr; }
.item__body { display: flex; flex-direction: column; gap: 0; padding: var(--s-4); }
.item__name { font-size: var(--t-h4); line-height: 1.25; min-height: 2.5em; display: flex; align-items: flex-start; margin-bottom: var(--s-2); }
.item__desc { line-height: 1.5; min-height: 3em; margin-bottom: var(--s-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item__meta { margin: 0 0 var(--s-3); min-height: 1.5rem; }
.item__meta > span { display: inline-flex; align-items: center; gap: 0.4rem; line-height: 1.3; }
.item__meta .ico { width: 1rem; height: 1rem; flex: none; }
.item__price { display: grid; gap: 0.125rem; padding-top: var(--s-3); border-top: 1px solid var(--line); margin: 0 0 var(--s-4); }
.item__price-main { display: block; font: 700 var(--t-card) var(--f-head); color: var(--ink); }
.item__price-sub { display: block; font: 400 var(--t-sm) var(--f-body); color: var(--muted); }
.item__actions { margin-top: auto; }
.item__actions .btn--wa { width: 100%; justify-content: center; }

/* ---------- Page hero: text block centred beside the photo, no stretched gaps (BM and EN alike) ---------- */
@media (min-width: 960px) {
  .phero .wrap { grid-template-rows: 1fr auto auto auto 1fr; row-gap: var(--s-4); align-items: start; }
  .phero .crumbs { grid-row: 2; }
  .phero__title { grid-row: 3; }
  .phero__lead { grid-row: 4; }
  .phero__photo { grid-row: 1 / -1; align-self: center; }
}

/* ---------- Project gallery: a compact panel that always fits the screen ---------- */
dialog.lightbox { margin: auto; width: min(54rem, 94vw); height: auto; max-height: 94dvh; background: #1f2226; border-radius: var(--r-md); overflow: hidden; }
.lightbox__box { height: auto; max-height: 94dvh; grid-template-rows: auto minmax(0, 1fr) auto auto; padding: var(--s-3) var(--s-4) var(--s-4); gap: var(--s-3); }
.lightbox__stage { height: min(52dvh, 28rem); }
.lightbox__stage img { width: 100%; height: 100%; object-fit: contain; }
.lightbox__nav { background: rgba(31,34,38,.7); }
.lightbox__nav--prev { left: var(--s-2); } .lightbox__nav--next { right: var(--s-2); }
.lightbox__thumbs { justify-content: center; padding-bottom: 0; }

.lightbox__stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); overflow: hidden; }
.lightbox__stage img { min-height: 0; min-width: 0; }
dialog.lightbox[open] { height: fit-content; }


/* ---------- About: licence cards, one per issuing body, all the same size, logos on one centred slot ---------- */
.licgrid { align-items: stretch; }
.liccard { align-self: stretch; display: grid; grid-template-columns: 7rem 1fr; gap: var(--s-4); align-items: center; min-height: 8.5rem; }
.liccard__logo { width: 7rem; height: 5rem; display: grid; place-items: center; }
.liccard__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.liccard__text { display: grid; gap: var(--s-2); }
.liccard__text h3 { font-size: var(--t-card); color: var(--muted); font-weight: 600; }
.liccard__text ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); }
.liccard__text li { font: 700 var(--t-h4) var(--f-head); line-height: 1.25; color: var(--ink); }
@media (max-width: 479px) { .liccard { grid-template-columns: 5rem 1fr; } .liccard__logo { width: 5rem; height: 4rem; } }

/* ---------- Project gallery: no panel, a bigger photo that still fits the viewport ---------- */
dialog.lightbox { width: min(72rem, 96vw); background: transparent; border-radius: 0; }
dialog.lightbox::backdrop { background: rgba(14,16,18,.92); }
.lightbox__box { padding: var(--s-3); gap: var(--s-3); }
.lightbox__stage { height: clamp(12rem, calc(100dvh - 15rem), 46rem); }
.licgrid { grid-auto-rows: 1fr; }
.liccard { min-height: 10rem; }
.liccard__logo { overflow: hidden; }
.liccard__logo img { max-width: 6.5rem; max-height: 4.5rem; }



/* ---------- Credentials: two groups, logos never wrap under each other ---------- */
.creds__logos { flex-wrap: nowrap; }
@media (max-width: 959px) { .creds__logos { flex-wrap: wrap; } }

/* "Trusted by": client logos on their own row under the licences. --k is set per logo from its shape (main.js fitLogos). */
.creds__row--clients { border-top: 1px solid var(--line); }
@media (max-width: 767px) { .creds__row--clients .creds__logos { flex-wrap: wrap; row-gap: var(--s-3); } }

/* ---------- For-sale cards v3: text stays tight; only the price + button pin to the bottom ---------- */
.item__name { min-height: 0; margin-bottom: var(--s-1); display: block; }
.item__desc { min-height: 0; margin-bottom: var(--s-2); display: block; -webkit-line-clamp: unset; overflow: visible; }
.item__meta { min-height: 0; margin-bottom: var(--s-3); }
.item__price { margin-top: auto; }

.item__actions { margin-top: 0; }
.item__actions .btn--wa { min-height: var(--tap); }

/* Sold: a plain status, not a greyed-out button (readable, and nothing that looks tappable) */
.item--sold .btn--wa, .item--sold .btn--wa[aria-disabled="true"] { opacity: 1; background: var(--silver-50); color: var(--ink-2); border: 1px dashed var(--line-strong); cursor: default; }
.item--sold .btn--wa .ico { display: none; }

/* Photo dots: a 44px-tall touch area, small dot; the badges let taps through */
.item__thumbs { bottom: 0; }
.item__thumbs button { width: 2rem; height: var(--tap); }
.item__tag, .item__sample, .item__status { pointer-events: none; }
.item__img img { touch-action: pan-y; }

.item--sold .item__actions { margin-top: auto; }


/* ---------- Hero: the panel keeps its top margin, so tall (English) text pushes the hero down instead of touching the header ---------- */
@media (min-width: 960px) { .hero__panel { margin-top: var(--s-7); } }

/* ---------- About: sections alternate (text/photo, photo/text) ---------- */
.split { display: grid; gap: var(--s-6); align-items: center; }
.split__media { margin: 0; min-height: 18rem; }
.split__media.photo { border-radius: var(--r-md) var(--r-brand) var(--r-md) var(--r-md); align-self: stretch; }
.split--flip .split__media.photo { border-radius: var(--r-brand) var(--r-md) var(--r-md) var(--r-md); }
.split__body { display: grid; gap: var(--s-5); align-content: center; min-width: 0; }
.split__body .shead { margin-bottom: 0; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: var(--s-8); } .split__media { min-height: 28rem; } }
.split .cards { grid-template-columns: 1fr; }
@media (min-width: 640px) { .split .cards { grid-template-columns: repeat(2, 1fr); } }
.split .serve { grid-template-columns: 1fr; }
@media (min-width: 640px) { .split .serve { grid-template-columns: repeat(2, 1fr); column-gap: var(--s-5); } }
.split .gallery { grid-template-columns: repeat(2, 1fr); height: 100%; align-content: stretch; }
.split .gallery li { aspect-ratio: 1 / 1; }
.split .equip { grid-template-columns: 1fr; margin-top: 0; }

/* ---------- Process flow: a vertical timeline on phones, one row of six from 1100px ---------- */
.flow { list-style: none; padding: 0; margin: 0; display: grid; counter-reset: f; }
.flow li { counter-increment: f; position: relative; padding: 0 0 var(--s-6) 4.25rem; min-height: 3.5rem; }
.flow li:last-child { padding-bottom: 0; }
.flow li::before { content: counter(f); position: absolute; left: 0; top: 0; z-index: 1; width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; font: 700 1.125rem var(--f-head); background: var(--ink); color: var(--white); border: 2px solid var(--ink); transition: background-color 240ms var(--ease-out), color 240ms var(--ease-out), border-color 240ms var(--ease-out), transform 240ms var(--ease-out); }
.flow li:last-child::before { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.flow h3 { font-size: var(--t-h4); margin-bottom: var(--s-1); }
.flow p { font-size: var(--t-card); color: var(--muted); }
.flow li > div { transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.flow__line { position: absolute; left: calc(1.5rem - 1px); top: 3rem; bottom: 0; width: 2px; background: var(--line); overflow: hidden; }
.flow__line::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: top; transition: transform 320ms var(--ease-out); }
/* Before the walk-through starts (JS only): numbers are quiet, text is faint, lines are empty. */
.flow--armed li:not(.is-on)::before { background: var(--white); color: var(--muted); border-color: var(--line-strong); transform: scale(0.92); }
.flow--armed li:not(.is-on) > div { opacity: 0.3; transform: translateY(6px); }
.flow--armed li:not(.is-on) .flow__line::after { transform: scaleY(0); }
@media (min-width: 1100px) {
  .flow { grid-template-columns: repeat(6, 1fr); }
  .flow li { padding: 4.25rem var(--s-4) 0 0; min-height: 0; }
  .flow__line { left: 3.25rem; right: 0.25rem; top: calc(1.5rem - 1px); bottom: auto; width: auto; height: 2px; }
  .flow__line::after { transform-origin: left; }
  .flow--armed li:not(.is-on) .flow__line::after { transform: scaleX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .flow li::before, .flow li > div, .flow__line::after { transition: none; }
}

/* Process flow: slower walk-through (700ms per step; each line finishes as the next number lights) */
.flow li::before { transition-duration: 450ms; }
.flow li > div { transition-duration: 550ms; }
.flow__line::after { transition-duration: 650ms; }


/* =========================================================
   Critique fixes, 2026-11-25
   ========================================================= */

/* Home "For sale now": the row header's div draws its own gold rule (.shead > div::before). */
.shead--row > div { display: grid; gap: var(--s-3); }

/* ---------- Item card location: the place only, wraps to two lines; the pin only when there is a place ---------- */
.item__meta { align-items: flex-start; gap: 0.45rem; color: var(--ink-2); }
.item__meta .ico { width: 1.125rem; height: 1.125rem; margin-top: 0.0625rem; color: var(--ink-2); }
.item__meta > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-width: 0; line-height: 1.35; }
.item__meta--ask, .item__meta--ask .ico { color: var(--muted); }

/* ---------- About: licence cards ---------- */
.liccard__logo img { height: calc(3.75rem * var(--k, 1)); max-height: none; max-width: 6.5rem; width: auto; object-fit: contain; }
/* No boxes: an open grid split by hairlines, the same treatment as the client wall below it. */
.licgrid { gap: 0; grid-auto-rows: auto; border-top: 1px solid var(--line); }
.liccard { grid-template-columns: 6rem minmax(0, 1fr); align-items: center; min-height: 0; padding: var(--s-5) 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.liccard__logo { width: 6rem; }
@media (min-width: 640px) {
  .liccard { padding: var(--s-5); }
  .liccard:nth-child(2n) { border-left: 1px solid var(--line); }
}
@media (min-width: 1100px) {
  .liccard:nth-child(2n) { border-left: 0; }
  .liccard:not(:nth-child(3n+1)) { border-left: 1px solid var(--line); }
}
/* Each credential is its own line with a gold dot, so two licences never read as one wrapped line. */
.liccard__text ul { gap: var(--s-2); }
.liccard__text li { display: flex; gap: 0.6rem; align-items: flex-start; }
.liccard__text li::before { content: ""; flex: none; width: 0.4rem; height: 0.4rem; margin-top: 0.5em; border-radius: 50%; background: var(--gold); }

/* ---------- About: the hero is its own band; "Who we are" starts with full spacing below it ---------- */
.phero--band { background: var(--silver-50); }
.phero--band { border-bottom: 1px solid var(--line); }
.phero.phero--band + .section:not(.section--tint, .section--silver, .section--dark) { padding-top: var(--section); }
@media (min-width: 960px) { .phero--band { padding-block: var(--s-7); } }

/* ---------- About: client wall, grouped by sector (consent-gated logos from the admin panel) ---------- */
.clientwall { display: grid; gap: var(--s-7); }
.clientwall[hidden], .serve[hidden] { display: none; }
.clientwall__group { display: grid; gap: var(--s-4); }
.clientwall__label { font: 600 0.8125rem/1.35 var(--f-head); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.clientwall__list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.client { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); column-gap: var(--s-4); row-gap: var(--s-3); align-items: center; align-content: start; padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.client { --logo-h: 3.5rem; }
.client__logo { height: var(--logo-h); display: grid; place-items: center start; overflow: hidden; }
.client__logo img { max-width: 100%; max-height: var(--logo-h); width: auto; height: auto; object-fit: contain; }
.client__id { display: grid; gap: 0.125rem; min-width: 0; }
.client__short { font: 700 var(--t-h4)/1.2 var(--f-head); color: var(--ink); overflow-wrap: anywhere; }
.client__name { font-size: var(--t-card); line-height: 1.4; color: var(--muted); }
.client__place { grid-column: 1 / -1; display: flex; gap: 0.4rem; align-items: center; padding-top: var(--s-3); border-top: 1px solid var(--line); font-size: var(--t-sm); color: var(--muted); }
.client__place .ico { width: 1rem; height: 1rem; flex: none; }
@media (min-width: 640px) {
  .clientwall__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client { padding: var(--s-5); }
  .client:nth-child(2n) { border-left: 1px solid var(--line); }
}
@media (min-width: 1100px) {
  .clientwall__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .client:nth-child(2n) { border-left: 0; }
  .client:not(:nth-child(3n+1)) { border-left: 1px solid var(--line); }
  .client { --logo-h: 4rem; }
  .client { grid-template-columns: 5rem minmax(0, 1fr); }
}

/* About: licences and "Who we serve" are both white; a full-width hairline and full spacing keep them apart
   (an id beats the white-after-white rule that removes the top padding). */
#pelanggan.section--ruled { padding-top: var(--section); border-top: 1px solid var(--line); }


/* =========================================================
   Mobile pass, 2026-11-25 (phones up to 767px; splits up to 959px)
   Most visitors arrive on a phone from WhatsApp: shorter pages, headings before photos,
   44px tap targets, nothing hidden under the WhatsApp button.
   ========================================================= */

@media (max-width: 959px) {
  /* Heading first, photo second: a section should say what it is before showing a picture. */
  .split__body { order: -1; }
  .split__media { min-height: 0; }
  .split__media.photo { aspect-ratio: 16 / 10; }
}

@media (max-width: 767px) {
  /* Home credentials strip: label above, logos on one line, so no logo drops to a row of its own. */
  .creds { --slot: 3rem; }
  .creds__group { grid-template-columns: 1fr; gap: var(--s-2); }
  .creds__logos { flex-wrap: nowrap; gap: var(--s-4); }
  .creds__logos img { max-width: 7rem; }

  /* Home "What we buy": five tall photo cards become one swipeable row (next card peeks in). */
  .cats { display: flex; gap: var(--s-3); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); padding-bottom: var(--s-2); scrollbar-width: none; }
  .cats::-webkit-scrollbar { display: none; }
  .cats > li { flex: 0 0 80%; scroll-snap-align: start; }
  .cat { min-height: 13rem; }
  .cat__body { padding: var(--s-4); }

  /* Home "For sale now": two items on a phone; "See all items" opens the rest. */
  .items--3 > .item:nth-child(n+3) { display: none; }

  /* For sale: category chips on one sideways row instead of four wrapped rows. */
  .filters { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); margin-bottom: var(--s-5); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; white-space: nowrap; }

  /* Tall photos are cut down so the text around them stays on screen. */
  .photo--tall, .story__photo { aspect-ratio: 16 / 10; }

  /* About "Why choose us" and Contact "Ways to reach us": icon beside the title, less padding. */
  .cards--split .card, .howto li { grid-template-columns: 2.5rem minmax(0, 1fr); column-gap: var(--s-3); row-gap: var(--s-2); align-items: center; padding: var(--s-4); }
  .cards--split .card .card__ico, .howto .card__ico { width: 2.5rem; height: 2.5rem; padding: 0.6rem; }
  .cards--split .card p, .howto p, .howto .btn { grid-column: 1 / -1; }
  .howto h3 { font-size: var(--t-h4); }
  .howto .btn { width: 100%; justify-content: center; }
  .cards { gap: var(--s-3); }

  /* A note with an icon keeps the icon beside its text instead of on a line of its own. */
  .note > .ico { flex: none; align-self: flex-start; margin-top: 0.15rem; }
  .note > .ico + span { flex: 1; min-width: 0; }

  /* Tap targets: footer and contact links get the full 44px. */
  .footer ul a { min-height: var(--tap); padding-block: 0; }
  .contact a { display: inline-flex; align-items: center; min-height: var(--tap); margin-block: -0.6rem; }

  /* The floating WhatsApp button never covers the last lines of the page. */
  .footer { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
}
