/* ==========================================================================
   Scammer Info Malaysia — shared design system
   Single-case dossier site. Dark "alert room" theme, red accent, blue info.
   ========================================================================== */

:root {
  --bg:            #070b14;
  --bg-soft:       #0b1220;
  --surface:       rgba(255, 255, 255, 0.035);
  --surface-2:     rgba(255, 255, 255, 0.065);
  --surface-solid: #101a2c;
  --border:        rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);

  --text:       #e9eef8;
  --text-dim:   #9aabc6;
  --text-faint: #6d7d99;

  --red:      #ff3547;
  --red-deep: #b70d1e;
  --red-soft: rgba(255, 53, 71, 0.12);
  --red-line: rgba(255, 53, 71, 0.34);

  --blue:      #4f8dff;
  --blue-soft: rgba(79, 141, 255, 0.12);
  --blue-line: rgba(79, 141, 255, 0.32);

  --green:      #2ee6a8;
  --green-soft: rgba(46, 230, 168, 0.12);
  --green-line: rgba(46, 230, 168, 0.3);

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;

  --shadow:    0 24px 70px -28px rgba(0, 0, 0, 0.9);
  --shadow-sm: 0 10px 30px -14px rgba(0, 0, 0, 0.8);

  --maxw:  1180px;
  --nav-h: 68px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font);
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------- reset -- */

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

/* The base colour lives on <html>, not <body>: body's own background would
   paint over the fixed z-index:-2 ambience layer below. overflow-x is on
   <html> too — on <body> it turns body into a scroll container and breaks
   the sticky header. */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  background: var(--bg);
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 2.5rem 0;
}

::selection { background: var(--red); color: #fff; }

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

/* Page ambience: red glow top-left, blue glow right, faint grid. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(255, 53, 71, 0.20), transparent 62%),
    radial-gradient(760px 520px at 92% 4%, rgba(79, 141, 255, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 55%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 78%);
}

/* ------------------------------------------------------------- layout -- */

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

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.section-head { max-width: 62ch; margin-bottom: 2.75rem; }
.section-head.is-center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.eyebrow.is-blue { color: var(--blue); }

.section-head h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); }

.lead {
  color: var(--text-dim);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--red);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------ topbar -- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(7, 11, 20, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.topbar.is-stuck {
  background: rgba(7, 11, 20, 0.94);
  border-bottom-color: var(--border-strong);
}

.topbar__inner {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.015em;
  text-decoration: none;
  min-width: 0;
}
.brand:hover { text-decoration: none; }
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  flex: none;
  background: #fff;
  box-shadow: 0 0 0 1px var(--border-strong), 0 0 22px -6px var(--red-glow, rgba(255, 53, 71, 0.5));
}
.brand__name { font-size: 0.98rem; line-height: 1.1; }
.brand__tag {
  display: block;
  font-family: var(--font);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.nav { display: flex; align-items: center; gap: 0.25rem; }

.nav a {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 0.8rem;
  border-radius: 9px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); background: var(--red-soft); box-shadow: inset 0 0 0 1px var(--red-line); }

/* language pill */
.lang {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  flex: none;
}
.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-faint);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 14px -4px rgba(255, 53, 71, 0.8);
}

.nav-toggle {
  display: none;
  appearance: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 11px;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex: none;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-x, .nav-toggle[aria-expanded="true"] .icon-bars { display: none; }
.nav-toggle[aria-expanded="true"] .icon-x { display: block; }

@media (max-width: 860px) {
  /* Comfortable touch target: the desktop pill is only ~30px tall. */
  .lang button { padding: 0.55rem 0.9rem; font-size: 0.8rem; }

  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.9rem 1.25rem 1.4rem;
    /* Fully opaque, and deliberately no backdrop-filter: nesting one inside
       .topbar's own backdrop-filter let page content ghost through the menu. */
    background: #0b1220;
    border-bottom: 1px solid var(--border-strong);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav a { padding: 0.8rem 0.9rem; font-size: 1rem; }
  .brand__tag { display: none; }
}

/* Very narrow phones: keep the wordmark to two lines beside the controls. */
@media (max-width: 400px) {
  .brand { gap: 0.55rem; }
  .brand img { width: 34px; height: 34px; }
  .brand__name { font-size: 0.86rem; }
}

/* ------------------------------------------------------------ buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
              background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  color: #fff;
  box-shadow: 0 14px 34px -14px rgba(255, 53, 71, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn--primary:hover { box-shadow: 0 20px 44px -14px rgba(255, 53, 71, 1), inset 0 1px 0 rgba(255, 255, 255, 0.28); }

.btn--ghost {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 255, 255, 0.3); }

.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.86rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* --------------------------------------------------------------- chips -- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.34rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.chip svg { width: 14px; height: 14px; flex: none; }
.chip--red   { border-color: var(--red-line);   background: var(--red-soft);   color: #ff8f99; }
.chip--blue  { border-color: var(--blue-line);  background: var(--blue-soft);  color: #9dc0ff; }
.chip--green { border-color: var(--green-line); background: var(--green-soft); color: #7bf0cd; }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.dot--pulse { animation: pulse 2s infinite; }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
  70%  { box-shadow: 0 0 0 7px transparent; opacity: 0.85; }
  100% { box-shadow: 0 0 0 0 transparent; opacity: 1; }
}

/* --------------------------------------------------------------- cards -- */

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.card--pad-lg { padding: clamp(1.6rem, 3.5vw, 2.6rem); }

.card--hover { transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease); }
.card--hover:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.card p { color: var(--text-dim); font-size: 0.95rem; }

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--red-soft);
  border: 1px solid var(--red-line);
  color: var(--red);
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 21px; height: 21px; }
.card__icon.is-blue  { background: var(--blue-soft);  border-color: var(--blue-line);  color: var(--blue); }
.card__icon.is-green { background: var(--green-soft); border-color: var(--green-line); color: var(--green); }

/* Column counts are capped explicitly — auto-fit would spread a "3-up" grid
   to four or five columns on a wide display. */
.grid { display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) {
  .grid--2, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------- stats -- */

.stats {
  display: grid;
  /* 130px keeps two columns on a 320px phone instead of collapsing to one. */
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: rgba(10, 16, 28, 0.85);
  padding: 1.4rem 1.25rem;
  text-align: center;
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat--red .stat__num { color: var(--red); }
.stat__label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* -------------------------------------------------------------- ticker -- */

.ticker {
  border-block: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(255, 53, 71, 0.1), rgba(255, 53, 71, 0.03) 45%, rgba(79, 141, 255, 0.07));
  overflow: hidden;
  padding: 0.6rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; flex: none; }
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding-inline: 1.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}
.ticker__item::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  margin-left: 0.7rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: grayscale(0.4) contrast(1.1);
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 11, 20, 0.62) 0%, rgba(7, 11, 20, 0.88) 62%, var(--bg) 100%),
    radial-gradient(760px 420px at 20% 30%, rgba(255, 53, 71, 0.22), transparent 65%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 940px) { .hero__grid { grid-template-columns: minmax(0, 1fr); } }

.hero h1 {
  font-size: clamp(2.15rem, 6.2vw, 4.05rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 1.15rem;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--red) 0%, #ff8f5c 55%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead { font-size: clamp(1rem, 1.9vw, 1.2rem); max-width: 56ch; margin-bottom: 2rem; }

.alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 0.95rem 0.42rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--red-line);
  background: var(--red-soft);
  color: #ff8f99;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* ------------------------------------------------------ case spotlight -- */

.case-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(160deg, rgba(255, 53, 71, 0.09), transparent 42%),
    rgba(12, 19, 33, 0.86);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.case-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), #ff8f5c, var(--blue));
}

.case-card__head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.6rem clamp(1.3rem, 3vw, 2rem) 1.2rem;
  border-bottom: 1px solid var(--border);
}
.case-card__logo {
  width: 66px;
  height: 66px;
  border-radius: 16px;
  background: #fff;
  padding: 7px;
  object-fit: contain;
  flex: none;
}
.case-card__id {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--red);
  text-transform: uppercase;
}
.case-card__title { font-size: clamp(1.2rem, 2.6vw, 1.55rem); margin: 0.15rem 0 0.1rem; }
.case-card__sub { color: var(--text-dim); font-size: 0.9rem; margin: 0; }

.case-card__body { padding: 1.4rem clamp(1.3rem, 3vw, 2rem) 1.7rem; }

.facts { display: grid; gap: 0; margin: 0 0 1.4rem; }
.facts > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.2rem;
  padding: 0.72rem 0;
  border-bottom: 1px dashed var(--border);
}
.facts > div:last-child { border-bottom: 0; }
.facts dt {
  color: var(--text-faint);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  flex: none;
}
.facts dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}
.facts .is-red { color: var(--red); font-family: var(--font-display); font-size: 1.05rem; }

/* On a phone the label/value pair has no room side by side — a long address or
   e-mail collapses into a ragged right-aligned sliver. Stack them instead. */
@media (max-width: 600px) {
  .facts > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }
  .facts dd { text-align: left; }
}

/* --------------------------------------------------------- money trail -- */

.trail { display: grid; gap: 0.7rem; }
.trail__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.trail__row:hover { border-color: var(--red-line); }
.trail__step {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--red-soft);
  border: 1px solid var(--red-line);
  color: #ff8f99;
  font-size: 0.8rem;
  font-weight: 700;
  flex: none;
}
.trail__date { color: var(--text-dim); font-size: 0.86rem; }
.trail__amt {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.trail__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--red-line);
  background: var(--red-soft);
}
.trail__total span:first-child {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff8f99;
}
.trail__total span:last-child {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 800;
  color: #fff;
}

/* Narrow screens: drop the amount onto its own line under the description
   rather than squeezing three columns into 335px. */
@media (max-width: 600px) {
  .trail__row { grid-template-columns: auto minmax(0, 1fr); row-gap: 0.45rem; }
  .trail__amt { grid-column: 2; text-align: left; }
}

/* ----------------------------------------------------------- timeline -- */

.timeline { position: relative; padding-left: 2.1rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--red), var(--blue) 70%, transparent);
  border-radius: 2px;
}
.timeline__item { position: relative; padding-bottom: 1.9rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -2.1rem;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--red);
  box-shadow: 0 0 0 4px rgba(255, 53, 71, 0.12);
}
.timeline__date {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.3rem;
}
.timeline__item h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.timeline__item p { color: var(--text-dim); font-size: 0.95rem; }

/* ------------------------------------------------------------- notices -- */

.notice {
  display: flex;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--red-line);
  background: var(--red-soft);
  color: #ffc9ce;
  font-size: 0.94rem;
}
.notice svg { width: 22px; height: 22px; flex: none; color: var(--red); margin-top: 2px; }
.notice p { color: inherit; }
.notice strong { color: #fff; }
.notice--blue { border-color: var(--blue-line); background: var(--blue-soft); color: #c9dcff; }
.notice--blue svg { color: var(--blue); }
.notice--plain {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 0.88rem;
}
.notice--plain svg { color: var(--text-faint); }

/* -------------------------------------------------------- emergency cta -- */

.sos {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--red-line);
  background:
    radial-gradient(700px 300px at 12% 0%, rgba(255, 53, 71, 0.22), transparent 68%),
    rgba(14, 16, 26, 0.9);
  padding: clamp(1.7rem, 4vw, 2.9rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.8rem;
  align-items: center;
  overflow: hidden;
}
@media (max-width: 760px) { .sos { grid-template-columns: minmax(0, 1fr); } }
.sos h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); margin-bottom: 0.5rem; }
.sos p { color: var(--text-dim); margin: 0; max-width: 54ch; }
.sos__num {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  padding: 1.1rem 1.6rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  box-shadow: 0 20px 50px -18px rgba(255, 53, 71, 0.95);
  color: #fff;
  text-decoration: none;
}
.sos__num:hover { text-decoration: none; }
.sos__num b { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; letter-spacing: -0.03em; }
.sos__num span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.9; margin-top: 0.3rem; }

/* --------------------------------------------------------- case layout -- */

/* minmax(0, 1fr), never a bare 1fr: a bare fr track floors at min-content, so
   the wide company table forced this column past the viewport and the page's
   overflow-x:hidden then clipped the prose beside it. */
.dossier {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.2rem);
  align-items: start;
}
@media (max-width: 960px) { .dossier { grid-template-columns: minmax(0, 1fr); } }

.toc {
  position: sticky;
  top: calc(var(--nav-h) + 22px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.1rem;
}
@media (max-width: 960px) { .toc { display: none; } }
.toc__title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.8rem;
  padding-inline: 0.55rem;
}
.toc a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.55rem;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 0.87rem;
  font-weight: 600;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.toc a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.toc a.is-active { color: #fff; border-left-color: var(--red); background: var(--red-soft); }

.dossier__section { scroll-margin-top: calc(var(--nav-h) + 24px); margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.dossier__section > h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.4rem;
}

/* profile / data blocks */
.profile { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.4rem; align-items: start; }
@media (max-width: 620px) { .profile { grid-template-columns: minmax(0, 1fr); } }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.data-table th,
.data-table td { padding: 0.7rem 0.9rem; text-align: left; border-bottom: 1px solid var(--border); }
.data-table thead th {
  background: var(--surface-2);
  color: var(--text-faint);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}
.data-table tbody td { color: var(--text); }
.data-table tr:last-child td { border-bottom: 0; }
/* min-width:0 lets the wrapper shrink below the table's min-content width so
   the table scrolls inside it instead of stretching the page. The table keeps
   a floor width so the columns stay readable while scrolling. */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
  border-radius: var(--radius-sm);
}
.table-scroll .data-table { min-width: 540px; }

.badge-expired {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  background: var(--red-soft);
  border: 1px solid var(--red-line);
  color: #ff8f99;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* contact rows (phones) */
.contact-list { display: grid; gap: 0.6rem; margin: 0.9rem 0 0; padding: 0; list-style: none; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.contact-list img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  border: 1px solid var(--border-strong);
  cursor: zoom-in;
}
.contact-list .num { font-family: var(--font-mono); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em; }

.link-list { list-style: none; padding: 0; margin: 0.7rem 0 0; display: grid; gap: 0.45rem; }
.link-list a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.62rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 0.88rem;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.link-list a:hover { color: var(--text); border-color: var(--blue-line); background: var(--blue-soft); text-decoration: none; }
.link-list svg { width: 17px; height: 17px; flex: none; color: var(--blue); }

/* thumbnails / evidence */
.thumbs { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.9rem; }
.thumb {
  display: block;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
  cursor: zoom-in;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.thumb:hover { transform: translateY(-3px) scale(1.02); border-color: var(--red-line); }
.thumb img { width: 132px; height: 132px; object-fit: cover; object-position: top; }
.thumb--doc img { width: 168px; height: 210px; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 0.6rem;
  margin-top: 1rem;
}
.gallery .thumb img { width: 100%; height: 148px; }

.gallery-more { margin-top: 1.2rem; display: flex; justify-content: center; }

/* ------------------------------------------------------------ lightbox -- */

.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  background: rgba(4, 6, 12, 0.95);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
/* minmax(0,…) — a plain 1fr track floors at the image's min-content height,
   so tall screenshots would overflow and push the caption off-screen. */
.lb.is-open { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
}
.lb__count { font-family: var(--font-mono); letter-spacing: 0.06em; margin-right: auto; }
.lb__full {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.9rem;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.lb__full:hover { color: #fff; text-decoration: underline; }
/* Flex, not grid: a percentage max-height on a grid item does not resolve
   against the track, so tall screenshots escaped the stage. */
.lb__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(0.6rem, 4vw, 4.5rem);
  min-height: 0;
}
.lb__stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px -30px #000;
}
.lb__cap {
  padding: 0.9rem 1.4rem 1.4rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  min-height: 2.5rem;
}
.lb__btn {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.lb__btn:hover { background: var(--red); transform: scale(1.06); }
.lb__btn svg { width: 20px; height: 20px; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb__nav--prev { left: clamp(0.4rem, 2vw, 1.4rem); }
.lb__nav--next { right: clamp(0.4rem, 2vw, 1.4rem); }

/* --------------------------------------------------------------- faq -- */

.accordion { display: grid; gap: 0.7rem; }
.acc {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.25s;
}
.acc[open] { border-color: var(--red-line); background: var(--surface-2); }
.acc summary {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.05rem 1.25rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  list-style: none;
  color: var(--text);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "";
  margin-left: auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-faint);
  border-bottom: 2px solid var(--text-faint);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease), border-color 0.25s;
  flex: none;
}
.acc[open] summary::after { transform: rotate(-135deg); border-color: var(--red); }
.acc__n {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--red);
  flex: none;
}
.acc__body { padding: 0 1.25rem 1.25rem; color: var(--text-dim); font-size: 0.95rem; }
.acc__body p { color: inherit; }

/* --------------------------------------------------------- prose pages -- */

.prose { max-width: 76ch; color: var(--text-dim); }
.prose h2 { color: var(--text); font-size: clamp(1.5rem, 3.4vw, 2rem); margin-top: 0; }
.prose h3 {
  color: var(--text);
  font-size: 1.18rem;
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}
.prose h4 { color: var(--text); font-size: 1rem; margin-top: 1.7rem; margin-bottom: 0.4rem; }
.prose strong { color: var(--text); }
.prose ul { padding-left: 1.15rem; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--red); }

/* ------------------------------------------------------------- footer -- */

.footer {
  margin-top: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--border);
  background: rgba(6, 9, 17, 0.7);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-bottom: 2.2rem;
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; } }
.footer h4 {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.9rem;
}
.footer p { color: var(--text-dim); font-size: 0.9rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.footer ul a { color: var(--text-dim); font-size: 0.9rem; text-decoration: none; }
.footer ul a:hover { color: var(--text); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  color: var(--text-faint);
  font-size: 0.83rem;
}
.social { display: flex; gap: 0.55rem; }
.social a {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-dim);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.social a:hover { color: #fff; border-color: var(--blue-line); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }

/* Must sit after the base rule above — a media query adds no specificity, so
   an earlier override would simply lose the cascade. */
@media (max-width: 860px) {
  .social a { width: 44px; height: 44px; }
}

/* ------------------------------------------------------------- to top -- */

.to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 80;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  background: rgba(16, 26, 44, 0.9);
  backdrop-filter: blur(8px);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s var(--ease), background 0.2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--red); }
.to-top svg { width: 19px; height: 19px; }

/* ------------------------------------------------------------ helpers -- */

.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }
.muted { color: var(--text-faint); }
.small { font-size: 0.84rem; }
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.25rem; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* language visibility — swapped by [data-lang] on <html> */
html[data-lang="en"] [data-only="ms"],
html[data-lang="ms"] [data-only="en"] { display: none !important; }

/* The pages are authored in English. When a returning visitor has chosen BM,
   the head bootstrap sets .i18n-pending so the English source text is never
   painted before site.js swaps it. visibility (not display) keeps the layout
   identical, so there is no reflow when the text appears. */
html.i18n-pending [data-i18n],
html.i18n-pending [data-i18n-html] { visibility: hidden; }

/* Reveal on scroll. Elements are only hidden once the observer is confirmed
   working (html.js-reveal), so a JS failure can never leave the page blank. */
.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.js-reveal .reveal:not(.is-in) { opacity: 0; transform: translateY(22px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js-reveal .reveal:not(.is-in) { opacity: 1; transform: none; }
}
